[REQUEST] Add hibernation mode #292
Replies: 2 comments 2 replies
-
It would be nice of course, but Adam is not a development project, but a combined distribution of system, frontend and emulators. Also, I don't have the knowledge to know how to detect a period of inactivity to try to trigger ODbeta's sleep mode. |
Beta Was this translation helpful? Give feedback.
-
Inspired by https://www.reddit.com/r/RG350/comments/oe9jyf/deep_sleep_mode_for_rg350_rg280_retroarch_only/ Please keep in mind all path below are rg280v specific. /sbin/poweroff #!/bin/sh
PS=$(ps | grep retroarch | awk 'NR==2')
AUTOBOOT=/media/data/local/home/autoboot.sh
if [ -z "$PS" ]; then
rm $AUTOBOOT
else
killall -15 retroarch_rg350_odbeta
HISTORY_LIST="$HOME/.retroarch/content_history.lpl"
ROMINFO="$HOME/rominfo-filter.txt"
awk -F": " 'NR==11{print $2, $3}' $HISTORY_LIST > $ROMINFO
awk -F": " 'NR==13{print $2, $3}' $HISTORY_LIST >> $ROMINFO
PATH_GAME=$(awk -F"\"" 'NR==1{print $2}' $ROMINFO)
CORE_PATH=$(awk -F"\"" 'NR==2{print $2}' $ROMINFO)
rm $ROMINFO
echo "#!/bin/sh" > $AUTOBOOT
echo "/usr/local/bin/retroarch_rg350_odbeta -L \"$CORE_PATH\" \"$PATH_GAME\"" >> $AUTOBOOT
chmod +x $AUTOBOOT
fi
/usr/bin/busybox poweroff /etc/pwswd.conf
/media/data/local/home/.autostart #!/bin/sh
# author MashTec
# modified by FGL82
if [ -f /media/data/local/home/autoboot.sh ]; then
/media/data/local/home/autoboot.sh
rm /media/data/local/home/autoboot.sh
fi
if [ -f /media/data/apps/SimpleMenu-OD-BETA.opk ]; then
/usr/bin/opkrun -m default.gcw0.desktop /media/data/apps/SimpleMenu-OD-BETA.opk
elif [ -f /media/sdcard/apps/SimpleMenu-OD-BETA.opk ]; then
/usr/bin/opkrun -m default.gcw0.desktop /media/sdcard/apps/SimpleMenu-OD-BETA.opk
elif [ -f /media/sdcard/APPS/SimpleMenu-OD-BETA.opk ]; then
/usr/bin/opkrun -m default.gcw0.desktop /media/sdcard/APPS/SimpleMenu-OD-BETA.opk
else
/usr/bin/gmenu2x
fi After having these all in place, we can now press @eduardofilo not sure if you would like to integrate these into future release? EDIT: Got to update |
Beta Was this translation helpful? Give feedback.
-
OnionOS on the Miyoo Mini has a wonderful feature where after 5-10 minutes of being in sleep mode it would automatically enter hibernation mode. When powered back on, you would be plopped back where you were when you entered sleep mode.
This is such a fantastic feature there as I've noticed that battery life in sleep mode isn't the best and I accidentally turn the console on in my pocket all the time when carrying it atround.
Would this be possible to add as an option or as a hibernation script?
Beta Was this translation helpful? Give feedback.
All reactions