nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Laptop, dual monitor, twinview: no easy way out (http://www.nvnews.net/vbulletin/showthread.php?t=161905)

cova 04-26-11 09:23 AM

Laptop, dual monitor, twinview: no easy way out
 
Hy guys, after searching, googling and trying several thigs I guess I need some help, even a link to some useful documentation (that I've not read :) ) will be most welcome.
Problem:
I'm using a HPElitebook 8440p with NVIDIA GPU NVS 3100M , nvidia drivers 270.41.03, X.Org X Server 1.10.1 (with queue patch to avoid lockups), gentoo 64bit platform.
I usually have two different monitors attached (different resolution) but often I have to disconnect one monitor and use the laptop with only his LCD or attach it to a different monitor.
Right now I'm using twinview option and all works fine, besides the fact that I'm unable, no matter what, to tell xorg to rescan and/or be aware of a monitor change, unless I restart xorg. As you can understand this is pretty cumbersome.
I don't require any auto detection when a monitor is detected or disconnected; I've tried to activate HP WMI to detect fn+f4 (monitor output), activated acpid and placed
Option "EnableACPIHotkeys" "true" but I'm unable to tell xorg to rescan or twinview to manage properly a monitor change situation. I could be enough to find a command or something else that could be scripted and activated by some key combination, but so far I've had no success.
right now my configuration is the following, that allows me to work fine (laptop LCD is the primary monitor, otherwise the toolbar management becomes a nightmare) once I have monitor connected at x startup.
I'll be glad to anyone able to give me some hints on how to sort this out, it is really annoyng. I know that this topic has been discussed a lot but I failed to find a solution, no matter how hard I tried.


Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Option "Xinerama" "0"
EndSection

Section "Files"
ModulePath "/usr/lib64/xorg/modules"
ModulePath "/usr/lib64/opengl/xorg-x11/extensions/"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "NVS 3100M"
Option "AllowDDCCI" "true"
Option "RegistryDwords" "EnableBrightnessControl=1"
Option "EnableACPIHotkeys" "true"
Option "DPMS" "FALSE"
EndSection


Section "Screen"

# Removed Option "TwinView" "0"
# Removed Option "metamodes" "DFP: nvidia-auto-select +0+0"
Identifier "Screen0"
Device "Device0"
DefaultDepth 24
Option "TwinView" "1"
Option "TwinViewXineramaInfoOrder" "DFP-3"
Option "metamodes" "CRT: nvidia-auto-select +1600+0, DFP: nvidia-auto-select +0+0"
Option "DPI" "96 x 96"
SubSection "Display"
Depth 24
EndSubSection
EndSection

jolan 04-26-11 09:50 AM

Re: Laptop, dual monitor, twinview: no easy way out
 
Hi,

Unfortunately the binary drivers don't support XRandR 1.2 which is needed for monitor hotplugging support.

cova 04-27-11 01:45 AM

Re: Laptop, dual monitor, twinview: no easy way out
 
Quote:

Originally Posted by jolan (Post 2423685)
Hi,

Unfortunately the binary drivers don't support XRandR 1.2 which is needed for monitor hotplugging support.

Ouch. This means "no monitor hotplugging on nvidia linux laptop"? Seems quite incredible... no workarounds/tricks or whatever?
I can't believe that in Nvidia someone can really think that is acceptable.

Right now I'm using nouveau, works for me: it's way from perfect ant it's slow, but at least it has monitor hotplugging....

ppurka 04-27-11 04:30 AM

Re: Laptop, dual monitor, twinview: no easy way out
 
Why don't you use disper ( http://willem.engen.nl/projects/disper/ )? Launch it when the acpi event (Fn+F4) occurs. That would be a scriptable solution.

Monitor hotplugging is very much allowed, as long as you have DynamicTwinview active (by default it is active). If you use the GUI nvidia-settings, then also you should be able to dynamically (de-)activate any attached monitor.

Oh yes, in my usage, till date I haven't missed anything from xrandr-1.2 while using nvidia-drivers.

cova 04-27-11 07:27 AM

Re: Laptop, dual monitor, twinview: no easy way out
 
Quote:

Originally Posted by ppurka (Post 2424174)
Why don't you use disper ( http://willem.engen.nl/projects/disper/ )? Launch it when the acpi event (Fn+F4) occurs. That would be a scriptable solution.

Monitor hotplugging is very much allowed, as long as you have DynamicTwinview active (by default it is active). If you use the GUI nvidia-settings, then also you should be able to dynamically (de-)activate any attached monitor.

Oh yes, in my usage, till date I haven't missed anything from xrandr-1.2 while using nvidia-drivers.

Many thanks for the hint, I'll try that. Basically, since I have DynamicTwinView active, I should be able to switch without using xrandr, If I read correctly.
I'll give also a try to disper: many thanks for the help.


All times are GMT -5. The time now is 01:37 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.