Ask / Submit

Adding an option to automatically start powersaving mode after disconnecting charger.

asked 2019-04-29 21:28:30 +0300

Malakay gravatar image

Hi all, I have one suggestion, question maybe. The thing is that until "oulanka" I had powersaving patch, which automatically started powersaving mode after disconnecting charger. Now, when powersave is built-in, this feature stopped working. I know that propable problem is some "duplicity" in setting - native powersafe setting and the patch. So, I am thinking about removing patch, but I want to be able to automatically set powersafe mode from full battery, not only few % which is available in settings. Any help appreciated.

edit retag flag offensive close delete


This function exists by default, if you active the first checkbox, the mobile phone will get in powersaving mode if not connected to a power cable. Its i think what you mean right?

Firefox84 ( 2019-04-29 23:32:10 +0300 )edit

okay, but I understood it that works this way : phone is charged, so I disconnect charger and the tick this, right? And after it it will keep powersave mode until next charging.

Thing I had and I want is that if I disconnect charger, it will activate powersave automatically without switching powersave option manually. You set this only once, and everytime you disconnect charger, it will switch to powersave.

So, which of these 2 options is that built-in option in Oulanka?

Malakay ( 2019-04-29 23:40:43 +0300 )edit

1 Answer

Sort by » oldest newest most voted

answered 2019-04-30 08:43:25 +0300

spiiroin gravatar image

What you are looking for is: Setting the power save mode threshold to such value that battery level never exceeds it -> PSM gets activated whenever charger is not connected.

While the settings UI does not support selecting such option, you can do it from command line:

mcetool --set-power-saving-mode=enabled --set-psm-threshold=100

The mcetool utility is not installed by default. To install it you need to have developer mode activated and then execute:

pkcon refresh
pkcon install mce-tools
edit flag offensive delete publish link more


Yeah, thats it :) i will try thia when I get home today and post if this solved the problem :) i will have to remove powersave patch first

Malakay ( 2019-04-30 09:17:20 +0300 )edit

Great work spiiroin, it works like a charm <3 Thank you very much :)

Malakay ( 2019-04-30 22:54:06 +0300 )edit
Login/Signup to Answer

Question tools



Asked: 2019-04-29 21:28:30 +0300

Seen: 150 times

Last updated: Apr 30