cutefishos / screenlocker

System screen locker.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monitor shut off does nothing (Possibly due to dual monitor setup)

rdrms opened this issue · comments

commented

Hi, I wasn't able to get my monitors turned off even with the setting to turn it off after 10 minutes.

xset q returns the following for the dpms (power saving) information:
DPMS (Energy Star):
Standby: 0 Suspend: 0 Off: 0
DPMS is Enabled
Monitor is On

A setting of 0 means that the X server will not do the action, ever. If we are going to stick wtih X11 for the time being, it would be a good idea for the power menu setting to update this information with the command:

xset dpms 0 0 420

When the user sets the timeout to be 5 minutes, and have this setting applied on every new login somehow

2 minutes
xset dpms 0 0 120

10 minutes
xset dpms 0 0 600

15 minutes
xset dpms 0 0 900

30 minutes
xset dpms 0 0 1800

The current workaround I am doing to make this usable is to add the xset command to the script that I run every login (which rotates and moves the monitors with an arandr script, does the xset command, and then executes xbindkeys to add some shortcuts for the launcher and launching terminal). When Cutefish supports running stuff on login it will be trivial to add it to autostart.