Ticket #300 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Screen dimming/suspend suppresion through dbus

Reported by: spaetz Owned by: ainulindale
Priority: minor Milestone:
Component: shr-settings Version: SHR-unstable
Keywords: Cc:

Description

It's currently quite annoying to have to click the timeouts from 20 to -1 to just prevent the screen from dimming. Furthermore it means we lose the timeout value and cannot simply turn on/off dimming and suspend. Fortunately there is a way to prevent both screen dimming and suspending programmatically. You can set the "ResourcePolicy?" to keep some Resource always enabled.

E.g. this will prevent the screen from dimming:

mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy? Display enabled

By setting this to enabled for the Resource "CPU" you can prevent suspending. This could be a simple checkbox above or below the timeouts, saying:

Prevent screen dimming: X
Prevent suspend: X

There is one open bug on broken screen dimming through an obsolete rules.yaml, and screen dimming is also enabled through the illume Power settings which interferes with the dimming/suspending through frameworkd. But those things can be ironed out...

Change History

comment:1 Changed 3 years ago by dos

fixed

comment:2 Changed 3 years ago by dos

More: fixed by adding toggles in SHR Settings ;)

comment:3 Changed 3 years ago by dos

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.