# /etc/xdg/powermanagementprofilesrc — system-wide PowerDevil defaults
# for the Pocket DS image.
#
# Why this file exists: KDE's PowerDevil holds a `block` inhibitor on
# logind's handle-power-key (visible in `systemd-inhibit --list`), so
# /etc/systemd/logind.conf's HandlePowerKey=suspend never fires while
# Plasma is running — PowerDevil intercepts the press and consults its
# own per-profile [SuspendAndShutdown] PowerButtonAction. Upstream's
# default for that key on a `handset` chassis is unset / no-op, which
# is what made the power button feel dead on shipped images.
#
# KConfig merges this file under each user's
# ~/.config/powermanagementprofilesrc, so per-user overrides still win;
# we only set PowerButtonAction so suspend works out of the box.
#
# DimDisplay / DPMSControl / SuspendSession are all forced off
# (idleTime=0 → the bundled action's timer never arms). The DPU/DSI
# wake path on the SM8550 + dual Goodix/ft5x06 touch stack is fragile:
# after PowerDevil blanks the display on idle, the panels can come
# back without their touchscreens re-attaching, leaving the device
# visually awake but completely dead to input. Holding the screens
# on permanently sidesteps the whole wake-from-blank code path —
# fine for a handheld game device that's either in use or suspended
# via the power button (which still works, see PowerButtonAction).

[AC][SuspendAndShutdown]
PowerButtonAction=sleep

[AC][DimDisplay]
idleTime=0

[AC][DPMSControl]
idleTime=0

[AC][SuspendSession]
idleTime=0
suspendType=0

[Battery][SuspendAndShutdown]
PowerButtonAction=sleep

[Battery][DimDisplay]
idleTime=0

[Battery][DPMSControl]
idleTime=0

[Battery][SuspendSession]
idleTime=0
suspendType=0

[LowBattery][SuspendAndShutdown]
PowerButtonAction=sleep

[LowBattery][DimDisplay]
idleTime=0

[LowBattery][DPMSControl]
idleTime=0

[LowBattery][SuspendSession]
idleTime=0
suspendType=0
