View previous topic :: View next topic |
Author |
Message |
Vrenn Guru

Joined: 15 Dec 2004 Posts: 300
|
Posted: Tue Dec 22, 2015 1:00 pm Post subject: [solved] How to prevent X to shut of display? |
|
|
Dear Gentoo experts!
I solved many problems with my Asus ROG 751JY (Haswell, Geforce980M with nvidia-drivers 355.11-r2). But some remain.
I have configured in the kde system settings (4.14. in each profile that the display should never power off completely.
But it does.
Additional X does not wake up when I move the mouse or press a key.
I need to go to terminal and back (Control-Alt-F2/F7) to get X back again.
Any Idea how to prevent to go to sleep or to wake up with anykey pressed?
What I am missing?
Thanks for your help! _________________ With nice greetings
Vrenn
Last edited by Vrenn on Tue Dec 22, 2015 4:36 pm; edited 1 time in total |
|
Back to top |
|
 |
xaviermiller Bodhisattva


Joined: 23 Jul 2004 Posts: 8620 Location: ~Brussels - Belgique
|
Posted: Tue Dec 22, 2015 1:12 pm Post subject: |
|
|
Hi!,
You need to disable DPMS, permanently in the xorg.conf file or with that command Code: | xset -dpms
xset s off |
_________________ Kind regards,
Xavier Miller |
|
Back to top |
|
 |
Vrenn Guru

Joined: 15 Dec 2004 Posts: 300
|
Posted: Tue Dec 22, 2015 4:36 pm Post subject: |
|
|
It worked, thank you! _________________ With nice greetings
Vrenn |
|
Back to top |
|
 |
khayyam Watchman


Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Tue Dec 22, 2015 5:59 pm Post subject: |
|
|
Vrenn ...
Rather than disable dpms completely you can provide parameter for its three 'modes' ... 'standby', 'suspend', and 'off'.
man xset wrote: | When numerical values are given, they set the inactivity period (in units of seconds) before the three modes are activated. The first value given is for the 'standby' mode, the second is for the 'suspend' mode, and the third is for the 'off' mode. Setting these values implicitly enables the DPMS features. A value of zero disables a particular mode. |
... so, for example, setting the following disables 'standby' and 'suspend', and sets 'off' to 10 minutes.
Code: | $ xset dpms 0 0 600 |
In regard to the keypress note that DPMS (Display Power Management Signaling) is effecting the (physical) display, so you may want to disable it going into the particular mode that doesn't wake on keypress. I'd have thought kde would offer some method to effect these modes seperately, but from the above this doesn't seem to be the case, so you might have to play with xset to get the right setting, and then create a script and add it to your startup items (or whatever kde calls them).
HTH & best ... khay |
|
Back to top |
|
 |
Vrenn Guru

Joined: 15 Dec 2004 Posts: 300
|
Posted: Wed Dec 23, 2015 1:42 pm Post subject: |
|
|
what I did: /etc/X11/xorg.conf.d/50-nvidia.conf: | Option "DPMS" "false" | as you suggested.
You are right, kde offers some method to effect these modes separately. But before the xorg-change X dint care and shut off the Display after some minutes when AC is plugged in.
Now I have done following:
1) disable DPMS in xorg.conf.d
2) disable screen standby modes in kde when AC is plugged in
3) enable screen standby modes in kde running on battery
Disconnecting AC from the laptop results in immediately lowering luminosity to 60%, after some more to 20%
KDE shuts off Display when I put it down and turns it on when I open the notebook.
Not working is the KDE-option "shutting display off after X minutes", but as told, flip the display turns it of/on.
Perhaps X-dpms and kde-dpms are not working together but are parallel working rivals?
X might not get the "key pressed so wake me up"-event because kde steals it first.
Somehow KDE talks with the display even with the dpms-off-xorg-option. Perhaps over the nvidia-driver directly.
Anyway thank you for the help and I will keep xset in my mind when I want to tweak anything more. _________________ With nice greetings
Vrenn |
|
Back to top |
|
 |
|