You are not logged in.
Pages: 1
Hi everyone,
I've been using this forum stealthily for quite some time, but never posted because the questions I had had already been answered. Obviously, today it's not the case ![]()
I'm in the process of building an HTPC, running Arch and XBMC. Everything works fine, so I'm down to the little details that have been bugging me. One of them is that I can't turn on the monitor with my remote control (WinFast Y04G0004 in case that matters). I've bound this script to the power key with irexec :
#!/bin/bash
MONITORSTAT=`xset -display :0 q|grep -c Monitor\ is\ On`
if [ "$MONITORSTAT" -eq "1" ]; then
xset -display :0 dpms force off
elif [ "$MONITORSTAT" -eq "0" ]; then
xset -display :0 dpms force on
fi
exitThe display turns off fine (power saving mode, LED turns orange), then if I hit the key again it turns on (exits power saving mode, LED turns green), but it stays black ; I have to hit a key on the keyboard to see X again.
Thanks in advance for helping me ![]()
Offline
Isn't that screensaver?
Offline
You were right, it was the screensaver. I had turned any automatic screensaving off, and I can't see why "xset dpms force off" would turn on the screensaver, so I didn't even think of trying that out. But adding "xset -display :0 s off" to the elif part of the script did the job, thank you ![]()
Offline
Pages: 1