Run 'xset -dpms' on resume from suspend
After I resume from suspend DPMS is enabled. I want is always disabled so the screen savers run when I walk away for it long enough. Any way to automate this? Is there a way to specify a script to run on resume from suspend? TIA, Jeffrey
Jeffrey Taylor composed on 2024-02-10 13:02 (UTC-0600):
After I resume from suspend DPMS is enabled. I want is always disabled so the screen savers run when I walk away for it long enough. Any way to automate this? Is there a way to specify a script to run on resume from suspend?
Create a file in /etc/X11/xorg.conf.d/ containing: Section "Monitor" Identifier "DefaultMonitor" Option "DPMS" "off" EndSection I've used 50-monitor.conf and 20-xorg.conf as names. I don't think the filename makes much difference as long as it ends in .conf. Identifier string won't matter either unless there are other files containing 'Section "Monitor"', in which case you should include the Option line in the existing file instead of creating a new file. If file /etc/X11/xorg.conf exists (normally it does not, unless NVidia's proprietary drivers are installed), then include the Option line there. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata
On 2024-02-10 20:02, Jeffrey Taylor via openSUSE Users wrote:
After I resume from suspend DPMS is enabled. I want is always disabled so the screen savers run when I walk away for it long enough. Any way to automate this? Is there a way to specify a script to run on resume from suspend?
The normal way is to choose a proper timeout for the blanking to happen. This is dependent on what desktop you are using. Yes, you can run a script. Place it in "/usr/lib/systemd/system-sleep/" man: systemd-sleep (8) - System sleep state logic systemd-sleep.conf (5) - Suspend and hibernation configuration file /etc/systemd/sleep.conf But it is better you configure the times in the desktop, or disable dpms in xorg. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)
participants (3)
-
Carlos E. R.
-
Felix Miata
-
Jeffrey Taylor