rgnano: Sleep timer and idle poweroff support

Actually power off the handheld with the sleep timer and idle poweroff functions instead of closing rockbox.

This commit also moves setting system volume to max from the launch script to system-sdl.c so it works when running rockbox via instant play.

Change-Id: I174b67c6abef451faa05f4a8f52b8d9eeed98a22
This commit is contained in:
Hairo R. Carela 2025-08-12 21:34:17 -04:00 committed by Solomon Peachy
parent 5ecb5832e1
commit c9e16e4888
6 changed files with 38 additions and 28 deletions

View file

@ -1,6 +1,5 @@
# .cfg file created by rockbox c145f41658-250621 - http://www.rockbox.org
idle poweroff: 0
font: /FunKey/.rockbox/fonts/16-GNU-Unifont.fnt
database scan paths: /Music
qs top: brightness

View file

@ -39,9 +39,6 @@ if [ ! -f $CFGFILE ]; then
cp ./config.cfg $CFGFILE
fi
# Set volume to max with amixer so it's not permanent
amixer -q sset 'Headphone' 63 unmute
# Need to send SIGUSR1 to the rockbox process for instant play support
trap _send_sigusr1 SIGUSR1