mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
Interactive tool scripts for EmulationStation's OPTIONS menu at /opt/system/: system-info, wifi-setup, bluetooth-setup, performance-mode, suspend-mode, usb-mode, factory-reset. Uses shared menu-lib.sh with fbcon rendering. Gamepad configs: default.gptk (RetroArch), tools.gptk (menu navigation with D-pad arrows, A=enter, B=escape). Note: scripts need further testing on hardware — left disabled for now. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
796 B
Bash
29 lines
796 B
Bash
#!/bin/bash
|
|
# NAME: Sleep Mode
|
|
. /usr/lib/archr/menu-lib.sh
|
|
tool_init
|
|
|
|
while true; do
|
|
CURRENT=$(archr-suspend-mode status 2>/dev/null || echo "unknown")
|
|
|
|
menu_select "Sleep Mode — Current: $CURRENT" \
|
|
"Deep Sleep (mem)" \
|
|
"Freeze (s2idle)" \
|
|
"Disable Sleep" || break
|
|
|
|
case "$MENU_RESULT" in
|
|
0)
|
|
archr-suspend-mode mem 2>/dev/null
|
|
msg_show "Sleep Mode" "Deep sleep (mem) enabled.\nLowest power, slower wake."
|
|
;;
|
|
1)
|
|
archr-suspend-mode freeze 2>/dev/null
|
|
msg_show "Sleep Mode" "Freeze (s2idle) enabled.\nModerate power, fast wake."
|
|
;;
|
|
2)
|
|
archr-suspend-mode off 2>/dev/null
|
|
msg_show "Sleep Mode" "Sleep disabled."
|
|
;;
|
|
esac
|
|
done
|