2013-10-24, 03:28
I'm getting started with XBMC and it's great, I'm really enjoying it. There are a few things I'm trying to iron out to get the "girlfriend" approval rating.
My question relates to DPMS and Ubuntu. I'd like a way to turn off the monitor with a button on the remote. I found the "ToggleDPMS" action which should do the trick, but it's not quite working right on Ubuntu and I think I have an idea why.
The first problem is that while ToggleDPMS turns off the screen, it will sometimes come right back on. I think what's happening here is that the "keyup" event is bringing the monitor out of DPMS. I don't believe that it's XBMC that is waking the monitor, I think it's Ubuntu/X11. I've read that a small sleep before turning off DPMS is required for this reason.
The second problem is that moving the mouse or tapping a key brings the monitor back on. Unfortunately XBMC doesn't realize this as it thinks the monitor is in "manual" DPMS mode and it shouldn't be waking up. The effect is that the screen only updates at 5 FPS until executing ToggleDPMS again, bringing things back to normal.
So my question is how can I disable the DPMS wake in Ubuntu/X11? I tried "xset -dpms" but that doesn't disable the wake, just the automatic screen off while in Ubuntu. I know that XBMC is SDL, and therefore SDL also disables the automatic screen off which seems to work fine. But none of these things disable the screen wake on keypress/movement.
Anyone have an idea of where I should look? Thanks!
My question relates to DPMS and Ubuntu. I'd like a way to turn off the monitor with a button on the remote. I found the "ToggleDPMS" action which should do the trick, but it's not quite working right on Ubuntu and I think I have an idea why.
The first problem is that while ToggleDPMS turns off the screen, it will sometimes come right back on. I think what's happening here is that the "keyup" event is bringing the monitor out of DPMS. I don't believe that it's XBMC that is waking the monitor, I think it's Ubuntu/X11. I've read that a small sleep before turning off DPMS is required for this reason.
The second problem is that moving the mouse or tapping a key brings the monitor back on. Unfortunately XBMC doesn't realize this as it thinks the monitor is in "manual" DPMS mode and it shouldn't be waking up. The effect is that the screen only updates at 5 FPS until executing ToggleDPMS again, bringing things back to normal.
So my question is how can I disable the DPMS wake in Ubuntu/X11? I tried "xset -dpms" but that doesn't disable the wake, just the automatic screen off while in Ubuntu. I know that XBMC is SDL, and therefore SDL also disables the automatic screen off which seems to work fine. But none of these things disable the screen wake on keypress/movement.
Anyone have an idea of where I should look? Thanks!