z0rc / debumblebee

DEPRECATED. Don't use it anymore — Optimus graphics support for Debian through VirtualGL
http://suwako.nomanga.net/
GNU General Public License v3.0
26 stars 2 forks source link

External monitor and nvidia-settings #41

Closed SGr33n closed 12 years ago

SGr33n commented 12 years ago

Hi,

First of all, thanks for your precious work, debumblebee works like a charm. Anyway I'd need an hel in the setup of an external TV, connected by HDMI.

This is my xorg.conf.nvidia

Section "ServerLayout"
    Identifier     "Layout1"
    Option         "AutoAddDevices" "false"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    BusID          "PCI:4:0:0"
    Option         "ConnectedMonitor" "DFP-0"
    Option         "NoLogo" "true"
    Option         "UseEDID" "SAMSUNG"
    Option         "DPI" "96x96"
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth   24
    SubSection     "Display"
        Depth      24
        Modes      "1920x1200" "1920x1080" "1680x1050" "1600x1200" "1440x900" "$
    EndSubSection
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    Modeline       "1920x1200" 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -$
    Modeline       "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -$
    Modeline       "1680x1050" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -$
    Modeline       "1600x1200" 161.00 1600 1712 1880 2160 1200 1203 1207 1245 -$
    Modeline       "1440x900"  106.50 1440 1528 1672 1904 900  903  909  934  -$
    Modeline       "1366x768"  71.80  1366 1414 1446 1526 768  771  777  784  -$
    Modeline       "1280x1024" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -$
    Modeline       "1280x800"  83.50  1280 1352 1480 1680 800  803  809  831  -$
EndSection

If I run some app with optirun a symbol X appears on the second screen, while the laptop display working. Sounds strange because this is the result of nvidia-xconfig --query-gpu-info:

root@debian:~# nvidia-xconfig --query-gpu-info
Number of GPUs: 1

GPU #0:
  Name      : ION
  PCI BusID : PCI:4:0:0

  Number of Display Devices: 2

  Display Device 0 (CRT-0):
     No EDID information available.

  Display Device 1 (DFP-0):
     EDID Name             : SAMSUNG
     Minimum HorizSync     : 26.000 kHz
     Maximum HorizSync     : 81.000 kHz
     Minimum VertRefresh   : 24 Hz
     Maximum VertRefresh   : 75 Hz
     Maximum PixelClock    : 230.000 MHz
     Maximum Width         : 1920 pixels
     Maximum Height        : 1080 pixels
     Preferred Width       : 1920 pixels
     Preferred Height      : 1080 pixels
     Preferred VertRefresh : 60 Hz
     Physical Width        : 160 mm
     Physical Height       : 90 mm

Seems that Samsung (External) is DFP-0, and DFP-0 is the current monitor in .conf.nvidia This is the result without Samsung connected:

root@debian:~# nvidia-xconfig --query-gpu-info
Number of GPUs: 1

GPU #0:
  Name      : ION
  PCI BusID : PCI:4:0:0

  Number of Display Devices: 1

  Display Device 0 (CRT-0):
     No EDID information available.

Then I have a xorg.conf.new in /root and no xorg.conf in etc/X11/, is it ok?

I see that I can configure external displays with nvidia-settings, but when I launch it gdm3 says it is not currently running nvidia drivers, is it due to the fact that it should start with optirun?

Thanks a lot :)

z0rc commented 12 years ago

Hello,

Unfortunately I've never run across such configuration and I wasn't able to test it. I can give you only some hints.

First, HDMI output (DFP-0) is connected directly to nVidia card, while laptop monitor connected to Intel card. CRT-0 is virtual output, it doesn't have any physical connections. So basically you have two cards, two monitors. I guess it's somehow possible to join them with Xinerama, but I've never actually tried this. Also most likely you won't be able use acceleration at that case. Also you must note that running X server for nVidia card requires different libGL and libglx, so this may be a problem. If ION is supported by nouveau, that probably you're more close to goal.

Also try to check your BIOS, maybe there is option for switching graphics modes/cards or something like this. If it's present, then you're lucky and most likely can switch nVidia card to be primary one. Then just remove debumblebee, apt-get install nvidia-kernel-dkms and you're done. But if there is no such option, then only the hard unexplored way remains.

As conclusion debumblebee doesn't do anything useful at this case, try to build custom configuration from scratch.

SGr33n commented 12 years ago

Thanks :) I'm trying, my Asus EeePC 1215N doesn't have a bios option, then seems Gnome3 have problems in running with 2 displays.

z0rc commented 12 years ago

Again, discard all logic that you have just two displays. You have two separate video cards, and each one has its own display.

z0rc commented 12 years ago

Closing as this isn't debumblebee issue, but question of very specific xorg configuration.