Thursday, April 25, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1493  / 2 Years ago, tue, march 1, 2022, 3:25:50

I recently updated to Ubuntu 13.10 and realized that scripts in /etc/pm/power.d do not fire anymore. Has something changed in the way pm-utils work? Is there any way to make it work.



I have a script which automatically changes the brightness on my monitor if the power cable is plugged out and I would like to be able to use it again.



UPDATE
I realized that the main reason why the scripts aren't executing automatically is because the upowerd is not running. If i run upower --monitor, the scripts start to execute whenever I connect or disconnect the charger.



The man upowerd says the following:




upowerd provides the org.freedesktop.UPower service on the system message bus. Users or administrators should never need to start this daemon as it will be automatically started by dbus-daemon(1) whenever an application calls into the org.freedesktop.UPower service.




Why doesn't the upowerd start automatically on boot?


More From » power-management

 Answers
5

I ended up adding the



upower -e


line to my /etc/rc.local file, which just enumerates the available power sources and starts upowerd if it's not already running.


[#28968] Wednesday, March 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
imonove

Total Points: 82
Total Questions: 113
Total Answers: 106

Location: Saint Vincent and the Grenadines
Member since Wed, Nov 3, 2021
3 Years ago
;