Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] How to prevent X to shut of display?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Vrenn
Apprentice
Apprentice


Joined: 15 Dec 2004
Posts: 285

PostPosted: Tue Dec 22, 2015 1:00 pm    Post subject: [solved] How to prevent X to shut of display? Reply with quote

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.8) 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
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7900
Location: ~Brussels - Belgique

PostPosted: Tue Dec 22, 2015 1:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vrenn
Apprentice
Apprentice


Joined: 15 Dec 2004
Posts: 285

PostPosted: Tue Dec 22, 2015 4:36 pm    Post subject: Reply with quote

It worked, thank you!
_________________
With nice greetings
Vrenn
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Tue Dec 22, 2015 5:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vrenn
Apprentice
Apprentice


Joined: 15 Dec 2004
Posts: 285

PostPosted: Wed Dec 23, 2015 1:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum