HomeAboutMailing ListList Chatter /0/0 3.236.84.188

DPMS please stay Off!

2021-06-13 by: Unkmar
From: Unkmar 
------------------------------------------------------
I want the screen to stay off, when I tell the screen to go off:
  $ sleep 2; xset dpms force off
Notice the 2 second delay. I have time to remove my hand from the keyboard.
I can physically remove my external mouse.
I can have the touchpad disabled:
  $ xinput set-prop 21 'Device Enabled' 0
The screen will go off. And within 1 minute it will come back on for no
apparent reason.
I leave a one second loop running to display idle time and the milliseconds
keep increasing before and after the wake up. With no time reset until I
touch the keyboard or move the mouse.
  $ while sleep 2; do xprintidle; done

I disabled XHC, whatever that is.
 # grep XHC.*disabled /proc/acpi/wakeup || echo XHC | tee /proc/acpi/wakeup
Human version
  # grep XHC /proc/acpi/wakeup
-- Does it return enabled or disabled?
if I see enabled then toggle with.
  # echo XHC > /proc/acpi/wakeup

And none of that works. The screen keeps coming back on. This is one
nightlight in the den that I would prefer to stay turned off when I'm not
using it.
Sure, I can brute force it every second with:
 $ xset s 1 1
But that requires a manual disable to get the screen to stay on with
something like
  $ xset s 600 600

Or I can brute force with a tight loop
  Stay in a loop of turning the screen off every 10th of a second until
keyboard/mouse activity
  $ sleep 2; while [[ `xprintidle` -gt 1000 ]]; do xset dpms force off;
sleep .1; done

So far, my investigations lead me to believe that maybe, just maybe: The
polling of the xscreensaver daemon is turning the screen on.

Any other help or suggestions are welcomed.

-- Lucius L. Hilley III

=============================================================== From: Dave Brockman ------------------------------------------------------ Does the monitor have a power button? -Dave

=============================================================== From: Unkmar ------------------------------------------------------ I fixed my problem. I removed xscreensaver. The lockscreen feature defaults to using xscreensaver. So, I lost that until I learned of dm-tool for use with lightdm. I replaced the two places that used xscreensaver -lock with dm-tool lock. Now I have screen lock and dpms force off works. Someday, someone might fix the xscreensaver polling bug that keeps the computer screen awake.\ -- Lucius L. Hilley III - unkmar