fix(sxmo): re-enable automatic screen-off on idle to stop backlight battery drain
The previous commit disabled sxmo_idle.sh and the idle_locker in the unlock/lock hooks, leaving the display backlight pinned at maximum brightness forever (Xorg runs with -s 0 -dpms and /sys/power/state is empty, so the panel never blanks). On a phone with no suspend this is by far the dominant battery drain. Restore sxmo_idle.sh and start idle_locker from the unlock and lock hooks so the screen blanks after SXMO_UNLOCK_IDLE_TIME (default 30s) / once locked after SXMO_LOCK_IDLE_TIME (default 8s). Locking itself stays explicit-only, matching the documented design; only the display blanks. Verified live on the device: after the idle timeout the state transitions to screenoff and /sys/class/backlight/backlight/brightness drops to 0.
This commit is contained in:
@@ -118,7 +118,7 @@ sudo dd if=./images/bananarchy-nokia-argon.img of=/dev/sdX bs=4M status=progress
|
||||
| **Slider close / open** | `SW_LID` (`lid:on` / `lid:off`) | **Close**: close open menu, turn off keypad backlight, and lock/turn screen off; **Open**: restore keypad backlight, unlock, and turn screen on |
|
||||
|
||||
> **Explicit locking & waking**:
|
||||
> X11 screensaver/DPMS blanking and automatic idle locking are disabled so the phone only locks when explicitly requested (`Power -> Lock / Lock (Screen off)`, `XDrawer -> Lock`, `2× End / Power`, or closing the physical slider). When locked, you can wake and unlock the phone in a single action by either:
|
||||
> X11 screensaver/DPMS blanking is disabled (the display is blanked explicitly by Sxmo, not by the X server), and automatic idle *locking* is disabled so the phone only locks when explicitly requested (`Power -> Lock / Lock (Screen off)`, `XDrawer -> Lock`, `2× End / Power`, or closing the physical slider). To save battery, the display still blanks automatically after a period of inactivity (`SXMO_UNLOCK_IDLE_TIME`, default 30s; `SXMO_LOCK_IDLE_TIME`, default 8s once locked) without locking. When the screen is off, you can wake and unlock the phone in a single action by either:
|
||||
> - **Opening the slider** (`SW_LID` off), or
|
||||
> - Pressing **End / Power (red)**, **Left softkey**, **Right softkey**, or **Call (green)** once.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user