Skip to content

[mobile] various adjustments related to power management

Bhushan Shah requested to merge work/powerdevil-mobile into master

In 57ba878c we changed the profile generator to use Suspend to RAM by default. This change while worked fine for one device, it did not work out for other devices. Case study of 3 different devices,

  • Pinephone, currently is preferred to use the suspend using crust-firmware
  • Librem 5, is preferred to use the runtime power management rather than full suspend
  • Halium, is preferred to use the runtime power management

For all of 3 common bit of action is to turn the screen off

So changes I made are,

  • by default use the power key to turn screen on-off
  • adjust timeout for turning screen off to 1 minute instead of 10
  • adjust timeout for various actions to be more conservative on mobile

Related : #2

Merge request reports