|
|
#1 | |
|
Registered User
Join Date: May 2010
Posts: 4
|
Hello all, I have new laptop with nvidia card (using nvidia-drivers) and have a slight problem with it. With ati I used to turn off display completely (with acpi) so it stayed off even when I used mouse or keyboard. I am trying to do something similar with nvidia, without success so far.
I can use xset dpms force off and it works, but when I move the mouse or type something the display turns itself back on. I want it to stay off. Is it possible to do it somehow? Thank you |
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Jun 2006
Posts: 678
|
Try to use 'xrandr'.
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jan 2010
Posts: 8
|
If you have a card like mine, your display turns off permanently even if you don't want it to: http://www.nvnews.net/vbulletin/showthread.php?t=151348
Seriously, use xrandr to change the display to another output, or you could use the "UseDisplayDevice" or "ConnectedMonitor" xorg.conf options to disable the monitor you want turned off. |
|
|
|
|
|
#4 | |
|
Registered User
Join Date: May 2010
Posts: 4
|
Xrandr doesn't work
, it lists one output (default) but xrandr --output default --off does nothing. I don't want to use xorg.conf options because I need it to be switchable in runtime (eg when I shut the lid) Quick and dirty solution seems to be to use xinput to disable mouse and then use xset dpms ... but I would like to avoid that. There is also vbetool which works (vbetool dpms off) but when I turn the display back on (vbetool dpms on) something clashes somewhere (my guess: nvidia module) and I get complete lockout and need to restart the system |
|
|
|
|
|
|
#5 |
|
NVIDIA Corporation
Join Date: Mar 2005
Posts: 2,487
|
Are you trying to switch to a configuration where you have only an external monitor enabled? You can do that by setting up a set of metamodes with your different configurations:
Code:
Option "TwinView" Option "MetaModes" "DFP-0: nvidia-auto-select; DFP-1: nvidia-auto-select; DFP-0: nvidia-auto-select, DFP-1: nvidia-auto-select" |
|
|
|
|
|
#6 | |
|
Registered User
Join Date: May 2010
Posts: 4
|
I don't have any external monitor, I am sorry if I explained it badly.
I have only internal monitor and I want to control it - I want to be able to shut it off and on. Like with "xset dpms off/on" but independently so that it doesn't come back on automaticly (with mouse move, keyboard press etc) Now when I close the laptop lid nothing happens (monitor is still on -> bad for battery) so I want to create acpi hook that will shut the monitor down on LID/CLOSE but I don't know how (besides xset dpms off that is) |
|
|
|
|
|
|
#7 |
|
NVIDIA Corporation
Join Date: Mar 2005
Posts: 2,487
|
Oh I see. That's odd, most laptops turn off the internal display automatically when you close the lid. I don't think the driver will validate metamodes with no active display devices. You could hack it by making the driver think an external display is connected using the ConnectedMonitor option, then configure metamodes like I described, switching to the nonexistent external display when you want the internal one to turn off.
|
|
|
|
|
|
#8 |
|
Registered User
Join Date: May 2010
Posts: 4
|
I can not figure it out or it just doesn't work.
My xorg.conf: Code:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
#Option "ConnectedMonitor" "DFP-3;DFP-1" Tried with and without this line
Option "MetaModes" "DFP-0: nvidia-auto-select; DFP-1: nvidia-auto-select; DFP-0: nvidia-auto-select, DFP-1: nvidia-auto-select"
Option "TwinView"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "Disable"
EndSection
|
|
|
|
|
|
#9 |
|
NVIDIA Corporation
Join Date: Mar 2005
Posts: 2,487
|
ConnectedMonitor takes a comma-separated list, i.e. "DFP-1, DFP-3".
|
|
|
|
![]() |
| Thread Tools | |
|
|