12 lines
947 B
Markdown
12 lines
947 B
Markdown
# Battery settings stage
|
|
|
|
Added `BatterySettings.qml` using existing Quickshell UPower hardware discovery. The Battery and Power page appears only when `Hardware.batteries` is nonempty. Battery level is read-only; no privileged or potentially disruptive power operations are performed. The page has a fixed StackLayout index (7) so hotplug cannot redirect navigation to another page.
|
|
|
|
## Validation
|
|
|
|
Run `python3 -m unittest discover -s quickshell/tests -p "test_*.py"` and `node quickshell/tests/hardware_policy_node.cjs`. On an actual phone or laptop verify battery percentage, charging state updates, and that the page disappears when no battery is present. Note that a QML runtime test was not possible in the build container.
|
|
|
|
## Remaining
|
|
|
|
System power profiles, suspend policies, global gestures, SIM PIN/PUK and secure session locking/fingerprint authentication still require implementation and hardware validation. Keep hyprlock enabled.
|