Are you sure? My understanding is that the point of the NVIDIA Optimus design is that the NVIDIA GPU outputs via the Intel IGP display memory. Anyway, the following command outputs are from my NVIDIA Optimus laptop (Clevo W230SS, with both VGA and HDMI ports):
Code: Select all
$ lspci | grep -i 'nvidia\|graphics'
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
Code: Select all
$ hwinfo --gfxcard
13: PCI 100.0: 0302 3D controller
[Created at pci.386]
Unique ID: VCu0.c2RzB8M11m3
Parent ID: vSkL.NFcUR5JtbJ0
SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0
SysFS BusID: 0000:01:00.0
Hardware Class: graphics card
Model: "nVidia GM107M [GeForce GTX 860M]"
Vendor: pci 0x10de "nVidia Corporation"
Device: pci 0x1392 "GM107M [GeForce GTX 860M]"
SubVendor: pci 0x1558 "CLEVO/KAPOK Computer"
SubDevice: pci 0x2300
Revision: 0xa2
Driver: "nvidia"
Driver Modules: "nvidia"
Memory Range: 0xf6000000-0xf6ffffff (rw,non-prefetchable)
Memory Range: 0xe0000000-0xefffffff (ro,non-prefetchable)
Memory Range: 0xf0000000-0xf1ffffff (ro,non-prefetchable)
I/O Ports: 0xe000-0xe07f (rw)
Memory Range: 0xf7000000-0xf707ffff (ro,non-prefetchable,disabled)
IRQ: 16 (70724 events)
Module Alias: "pci:v000010DEd00001392sv00001558sd00002300bc03sc02i00"
Driver Info #0:
Driver Status: nvidia_drm is active
Driver Activation Cmd: "modprobe nvidia_drm"
Driver Info #1:
Driver Status: nvidia is active
Driver Activation Cmd: "modprobe nvidia"
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #10 (PCI bridge)
22: PCI 02.0: 0300 VGA compatible controller (VGA)
[Created at pci.386]
Unique ID: _Znp.zZiZv4pay43
SysFS ID: /devices/pci0000:00/0000:00:02.0
SysFS BusID: 0000:00:02.0
Hardware Class: graphics card
Model: "Intel 4th Gen Core Processor Integrated Graphics Controller"
Vendor: pci 0x8086 "Intel Corporation"
Device: pci 0x0416 "4th Gen Core Processor Integrated Graphics Controller"
SubVendor: pci 0x1558 "CLEVO/KAPOK Computer"
SubDevice: pci 0x2300
Revision: 0x06
Driver: "i915"
Driver Modules: "i915"
Memory Range: 0xf7400000-0xf77fffff (rw,non-prefetchable)
Memory Range: 0xd0000000-0xdfffffff (ro,non-prefetchable)
I/O Ports: 0xf000-0xf03f (rw)
Memory Range: 0x000c0000-0x000dffff (rw,non-prefetchable,disabled)
IRQ: 16 (70724 events)
I/O Port: 0x00 (rw)
Module Alias: "pci:v00008086d00000416sv00001558sd00002300bc03sc00i00"
Config Status: cfg=new, avail=yes, need=no, active=unknown
Primary display adapter: #22
Code: Select all
$ xrandr --prop
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
eDP1 connected (normal left inverted right x axis y axis)
EDID:
00ffffffffffff000dae431300000000
34150104a51c10780293ada9534c9625
114f5300000001010101010101010101
010101010101363680a0703820402e1e
24001aa510000018242480a070382040
2e1e24001aa510000018000000fe0043
4d4e0a202020202020202020000000fe
004e3133334853452d4541310a2000cd
BACKLIGHT: 279
range: (0, 976)
Backlight: 279
range: (0, 976)
scaling mode: Full aspect
supported: Full, Center, Full aspect
Colorspace: Default
supported: Default, RGB_Wide_Gamut_Fixed_Point, RGB_Wide_Gamut_Floating_Point, opRGB, DCI-P3_RGB_D65, BT2020_RGB, BT601_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, BT2020_CYCC, BT2020_YCC
max bpc: 12
range: (6, 12)
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
panel orientation: Normal
supported: Normal, Upside Down, Left Side Up, Right Side Up
link-status: Good
supported: Good, Bad
non-desktop: 0
range: (0, 1)
1920x1080 60.00 + 59.93 40.00
1680x1050 59.88
1400x1050 59.98
1600x900 60.00 59.95 59.82
1280x1024 60.02
1400x900 59.96 59.88
1280x960 60.00
1368x768 60.00 59.88 59.85
1280x800 59.81 59.91
1280x720 59.86 60.00 59.74
1024x768 60.00
1024x576 60.00 59.90 59.82
960x540 60.00 59.63 59.82
800x600 60.32 56.25
864x486 60.00 59.92 59.57
640x480 59.94
720x405 59.51 60.00 58.99
640x360 59.84 59.32 60.00
DP1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 290mm
EDID:
00ffffffffffff005a632f6b01010101
1c1901030e331d782ee595a656529d27
105054bfef80b300a940a9c095009040
818081408100023a801871382d40582c
4500fd1e1100001e000000ff00553044
3135323830313831300a000000fd0032
4b185211000a202020202020000000fc
005658323336332053657269657300f8
Colorspace: Default
supported: Default, RGB_Wide_Gamut_Fixed_Point, RGB_Wide_Gamut_Floating_Point, opRGB, DCI-P3_RGB_D65, BT2020_RGB, BT601_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, BT2020_CYCC, BT2020_YCC
max bpc: 12
range: (6, 12)
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
audio: auto
supported: force-dvi, off, auto, on
subconnector: VGA
supported: Unknown, VGA, DVI-D, HDMI, DP, Wireless, Native
link-status: Good
supported: Good, Bad
non-desktop: 0
range: (0, 1)
1920x1080 60.00*+
1600x1200 60.00
1680x1050 59.95
1400x1050 59.98
1600x900 60.00
1280x1024 75.02 60.02
1440x900 59.89
1280x960 60.00
1280x800 59.81
1152x864 75.00
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 59.94
720x400 70.08
HDMI1 disconnected (normal left inverted right x axis y axis)
max bpc: 12
range: (8, 12)
content type: No Data
supported: No Data, Graphics, Photo, Cinema, Game
Colorspace: Default
supported: Default, SMPTE_170M_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, opRGB, BT2020_CYCC, BT2020_RGB, BT2020_YCC, DCI-P3_RGB_D65, DCI-P3_RGB_Theater
aspect ratio: Automatic
supported: Automatic, 4:3, 16:9
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
audio: auto
supported: force-dvi, off, auto, on
link-status: Good
supported: Good, Bad
non-desktop: 0
range: (0, 1)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
non-desktop: 0
supported: 0, 1
Code: Select all
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: VT1802 Analog [VT1802 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 2: VT1802 Alt Analog [VT1802 Alt Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
If I plug both the VGA and HDMI connectors from my external ViewSonic VX2363Smhl monitor into the VGA and HDMI ports on the laptop:
Code: Select all
$ xrandr --listmonitors
Monitors: 2
0: +*DP1 1920/510x1080/290+0+0 DP1
1: +HDMI1 1920/510x1080/290+1920+0 HDMI1
I can then switch between the two ports:
Code: Select all
$ xrandr --output HDMI1 --auto # Enable the HDMI output.
$ xrandr --output DP1 --off # Disable the VGA output.
$ xrandr --output DP1 --auto # Enable the VGA output.
$ xrandr --output HDMI1 --off # Disable the HDMI output.