GNOME Bugzilla – Bug 660962
Ignore DPMSSetTimeouts() and DPMSForceLevel() return value
Last modified: 2011-10-05 08:16:08 UTC
While investigating bug #660859, I added lots of fprintfs to xset-1.2.2 source. And it turned out that, at least under the nvidia binary blob, DPMSSetTimeouts() and DPMSForceLevel() *always* return BadRequest, even when they succeed. On another machine, one with Intel graphics, DPMSSetTimeouts() returns 0 on success (as expected), but DPMSForceLevel() always returns BadRequest. Basically, I think we should assume that the return values of DPMSSetTimeouts() and DPMSForceLevel() are a terrible, blatant lie, and ignore them. Incidentally, that is precisely what xset-1.2.2 does. Fixing this will allow gnome-settings-daemon's power plugin to work correctly.
Created attachment 198308 [details] [review] Ignore DPMSSetTimeouts() and DPMSForceLevel() return value
Committed with a small change to remove the duplication (that I introduced with the last patch) Thanks!