Comment 14 for bug 1772325

Revision history for this message
In , Eyal Soha (eyal0) wrote :

Sure. It works for me. I patched in the code that I attached, ran make, then I copied the new xfce4-power-manager into /usr/bin as root.

Then I went into the power manager settings and in the display tab I set "Brightness reduction" "Reduce after" to just 10 seconds.

Then I shut and save the settings and just wait 10 seconds. The screen dims.

Then I open YouTube in Chrome and start a video. When I click on the battery icon now, there is a list that says that chrome is inhibiting.

Then I wait way more than 10 seconds and there is no screen dimming.

Are you sure that you installed the patch correctly? You could put printfs around the patched code and then kill the power manager and re-run it like this:

xfce4-power-manager --debug --debug --debug --no-daemon

Then you'll be able to see your printf's in the output.

What did you try that failed?