ES Favorites not saving
- SuperOldboy
- Posts: 22
- Joined: Sun Jul 02, 2017 12:05 pm
- Has thanked: 4 times
- Been thanked: 1 time
ES Favorites not saving
Hey,
when I add a game to my favorites it shows up there but when I restart my GBZ they are all gone. All I found was setting the "save metadata on exit" in "other settings" to ON, but this didn´t help. Couldn´t find any other solutions in the internet.
Thanks.
when I add a game to my favorites it shows up there but when I restart my GBZ they are all gone. All I found was setting the "save metadata on exit" in "other settings" to ON, but this didn´t help. Couldn´t find any other solutions in the internet.
Thanks.
-
- Posts: 226
- Joined: Tue Jan 31, 2017 11:06 am
- Location: Tianjin / China
- Has thanked: 25 times
- Been thanked: 53 times
Re: ES Favorites not saving
Do you shut down your Gameboy by the SafeShutdown board feature? I recogniced a similar problem then. Try to shut down by the EmulationStation software. In my case this safes the last played games in the list.
- SuperOldboy
- Posts: 22
- Joined: Sun Jul 02, 2017 12:05 pm
- Has thanked: 4 times
- Been thanked: 1 time
Re: ES Favorites not saving
Yes when i shutdown via the ES menu it saves it. I use the normal power switch at the top, i´ve got the CSO.
-
- Posts: 226
- Joined: Tue Jan 31, 2017 11:06 am
- Location: Tianjin / China
- Has thanked: 25 times
- Been thanked: 53 times
Re: ES Favorites not saving
I thing it's part of how Emulation Station works:
-During shutdown procedure last settings are saved.
-If shutdown via safe-shutdown cirquit linux initiates shutdown and just closes all runnings application.
Could be improved by adding to the shutdown command something that saved last settings from emulationstation.
-During shutdown procedure last settings are saved.
-If shutdown via safe-shutdown cirquit linux initiates shutdown and just closes all runnings application.
Could be improved by adding to the shutdown command something that saved last settings from emulationstation.
- SuperOldboy
- Posts: 22
- Joined: Sun Jul 02, 2017 12:05 pm
- Has thanked: 4 times
- Been thanked: 1 time
Re: ES Favorites not saving
And where or what should i add?McGyver wrote: ↑Sun Feb 18, 2018 11:28 pmI thing it's part of how Emulation Station works:
-During shutdown procedure last settings are saved.
-If shutdown via safe-shutdown cirquit linux initiates shutdown and just closes all runnings application.
Could be improved by adding to the shutdown command something that saved last settings from emulationstation.
i´ve found this but i don´t know how to do it. https://retropie.org.uk/forum/topic/128 ... m-shutdown
-
- Posts: 226
- Joined: Tue Jan 31, 2017 11:06 am
- Location: Tianjin / China
- Has thanked: 25 times
- Been thanked: 53 times
Re: ES Favorites not saving
Nice research! This link explains exactly the situation we are talking about.
I will install this during the next days and report if it works. Should be all being possible by the terminal connected via SSH.
I will install this during the next days and report if it works. Should be all being possible by the terminal connected via SSH.
- SuperOldboy
- Posts: 22
- Joined: Sun Jul 02, 2017 12:05 pm
- Has thanked: 4 times
- Been thanked: 1 time
Re: ES Favorites not saving
Ok, if it works could you be so kind an write me a step by step tutorial?
-
- Posts: 226
- Joined: Tue Jan 31, 2017 11:06 am
- Location: Tianjin / China
- Has thanked: 25 times
- Been thanked: 53 times
Re: ES Favorites not saving
First of all: the description in https://retropie.org.uk/forum/topic/128 ... m-shutdown works with some adaptation because the folder /etc looks to be root owned so all files have to be created by using sudo. Just one disadvantage: the shutdown procedure needs about 10 seconds longer! During shutdown the pi jumps to the terminal prompt but the shutdown goes on after maybe 10 sec. This is maybe due to the sleep routines used in the script.
And: the BBCode masses up a little here on the forum website. Maybe better copy the scripts from the external link on retropie.org!
Here a short tutorial for installing this software. General explanation: inside the terminal send: means copy or typing the text behind the send:_ contend and press ENTER.
Open your terminal and SSH into your pi:
send: ssh pi@192.168.xxx.xxx
type your password if your are asked for. The standard passwd should be raspberry, buy the way: please change it!
maybe security warning appears: „Are you sure you want to continue connecting (yes/#no)?“
send: yes
in the terminal send: pwd to know where you arrived in the filesystem.
In my case it is /home/pi
So I need send two times the command cd .. press ENTER KEY cd .. press ENTER KEY to arrive in the root directory. You can send dir to list all sub folders. This search should include the /etc directory we are looking for.
send: cd etc to go into /etc directory
send: sudo nano killes.sh
paste into the editor:
#!/bin/bash
# Check if EmulationStation is running. Finish the script if doesn't.
espid="$(pgrep -f "/opt/retropie/supplementary/.*/emulationstation([^.]|$)")" || exit 0
# the "sed" command below isn't a crypted message, it's just a trick to
# make $emucall regex-safe to use in the "pgrep -f" below.
emucall="$(sed '4!d; s/\([\\"]\|[[:alnum:]_]\+=[^ ]* \)//g; s/[][(){}^$*.|+? ]/\\&/g' /dev/shm/runcommand.info)"
# If there's an emulator running, we need to kill it and go back to ES
if [[ -n "$emucall" ]]; then
emupid="$(pgrep -f "$emucall" | tr '\n' ' ')"
pkill -P "$(echo $emupid | tr ' ' ',')"
kill "$emupid"
wait "$emupid"
sleep 5 # maybe it can be lesser
fi
kill "$espid"
wait "$espid"
sleep 5 # maybe it can be lesser
press control+x / press y / press enter after confirming the file name will be saved as killes.sh
send: sudo chmod a+x /etc/killes.sh
send: cd systemd/system
send: sudo nano killes.service
paste into the editor:
[Unit]
Description=Kill EmulationStation
After=autologin@tty1.service
[Service]
Type=oneshot
RemainAfterExit=true
ExecStop=/etc/killes.sh
[Install]
WantedBy=multi-user.target
press control+x / press y / press enter after confirming the file name will be saved as killes.service
send: sudo systemctl enable killes
Done! Try some shutdown commands via terminal or safe-shutdown switch feature to see if it works. I tested it with the lasted played feature in emulationstation which is now being saved.
And: the BBCode masses up a little here on the forum website. Maybe better copy the scripts from the external link on retropie.org!
Here a short tutorial for installing this software. General explanation: inside the terminal send: means copy or typing the text behind the send:_ contend and press ENTER.
Open your terminal and SSH into your pi:
send: ssh pi@192.168.xxx.xxx
type your password if your are asked for. The standard passwd should be raspberry, buy the way: please change it!
maybe security warning appears: „Are you sure you want to continue connecting (yes/#no)?“
send: yes
in the terminal send: pwd to know where you arrived in the filesystem.
In my case it is /home/pi
So I need send two times the command cd .. press ENTER KEY cd .. press ENTER KEY to arrive in the root directory. You can send dir to list all sub folders. This search should include the /etc directory we are looking for.
send: cd etc to go into /etc directory
send: sudo nano killes.sh
paste into the editor:
#!/bin/bash
# Check if EmulationStation is running. Finish the script if doesn't.
espid="$(pgrep -f "/opt/retropie/supplementary/.*/emulationstation([^.]|$)")" || exit 0
# the "sed" command below isn't a crypted message, it's just a trick to
# make $emucall regex-safe to use in the "pgrep -f" below.
emucall="$(sed '4!d; s/\([\\"]\|[[:alnum:]_]\+=[^ ]* \)//g; s/[][(){}^$*.|+? ]/\\&/g' /dev/shm/runcommand.info)"
# If there's an emulator running, we need to kill it and go back to ES
if [[ -n "$emucall" ]]; then
emupid="$(pgrep -f "$emucall" | tr '\n' ' ')"
pkill -P "$(echo $emupid | tr ' ' ',')"
kill "$emupid"
wait "$emupid"
sleep 5 # maybe it can be lesser
fi
kill "$espid"
wait "$espid"
sleep 5 # maybe it can be lesser
press control+x / press y / press enter after confirming the file name will be saved as killes.sh
send: sudo chmod a+x /etc/killes.sh
send: cd systemd/system
send: sudo nano killes.service
paste into the editor:
[Unit]
Description=Kill EmulationStation
After=autologin@tty1.service
[Service]
Type=oneshot
RemainAfterExit=true
ExecStop=/etc/killes.sh
[Install]
WantedBy=multi-user.target
press control+x / press y / press enter after confirming the file name will be saved as killes.service
send: sudo systemctl enable killes
Done! Try some shutdown commands via terminal or safe-shutdown switch feature to see if it works. I tested it with the lasted played feature in emulationstation which is now being saved.
Last edited by McGyver on Tue Feb 20, 2018 8:41 am, edited 1 time in total.
- SuperOldboy
- Posts: 22
- Joined: Sun Jul 02, 2017 12:05 pm
- Has thanked: 4 times
- Been thanked: 1 time
Re: ES Favorites not saving
McGyver wrote: ↑Tue Feb 20, 2018 8:12 amFirst of all: the description in https://retropie.org.uk/forum/topic/128 ... m-shutdown works with some adaptation because the folder /etc looks to be root owned so all files have to be created by using sudo. Just one disadvantage: the shutdown procedure needs about 10 seconds longer! During shutdown the pi jumps to the terminal prompt but the shutdown goes on after maybe 10 sec. This is maybe due to the sleep routines used in the script.
And: the BBCode masses up a little here on the forum website. Maybe better copy the scripts from the external link on retropie.org!
Here a short tutorial for installing this software. General explanation: inside the terminal send: means copy or typing the text behind the send:_ contend and press ENTER.
Open your terminal and SSH into your pi:
send: ssh pi@192.168.xxx.xxx
type your password if your are asked for. The standard passwd should be raspberry, buy the way: please change it!
maybe security warning appears: „Are you sure you want to continue connecting (yes/#no)?“
send: yes
in the terminal send: pwd to know where you arrived in the filesystem.
In my case it is /home/pi
So I need send two times the command cd .. press ENTER KEY cd .. press ENTER KEY to arrive in the root directory. You can send dir to list all sub folders. This search should include the /etc directory we are looking for.
send: etc to go into /etc directory
send: sudo nano killes.sh
paste into the editor:
#!/bin/bash
# Check if EmulationStation is running. Finish the script if doesn't.
espid="$(pgrep -f "/opt/retropie/supplementary/.*/emulationstation([^.]|$)")" || exit 0
# the "sed" command below isn't a crypted message, it's just a trick to
# make $emucall regex-safe to use in the "pgrep -f" below.
emucall="$(sed '4!d; s/\([\\"]\|[[:alnum:]_]\+=[^ ]* \)//g; s/[][(){}^$*.|+? ]/\\&/g' /dev/shm/runcommand.info)"
# If there's an emulator running, we need to kill it and go back to ES
if [[ -n "$emucall" ]]; then
emupid="$(pgrep -f "$emucall" | tr '\n' ' ')"
pkill -P "$(echo $emupid | tr ' ' ',')"
kill "$emupid"
wait "$emupid"
sleep 5 # maybe it can be lesser
fi
kill "$espid"
wait "$espid"
sleep 5 # maybe it can be lesser
press control+x / press y / press enter after confirming the file name will be saved as killes.sh
send: sudo chmod a+x /etc/killes.sh
send: cd systemd/system
send: sudo nano killes.service
paste into the editor:
[Unit]
Description=Kill EmulationStation
After=autologin@tty1.service
[Service]
Type=oneshot
RemainAfterExit=true
ExecStop=/etc/killes.sh
[Install]
WantedBy=multi-user.target
press control+x / press y / press enter after confirming the file name will be saved as killes.service
send: sudo systemctl enable killes
Done! Try some shutdown commands via terminal or safe-shutdown switch feature to see if it works. I tested it with the lasted played feature in emulationstation which is now being saved.
Nice! Thank you i'm gonna try it out later today
- SuperOldboy
- Posts: 22
- Joined: Sun Jul 02, 2017 12:05 pm
- Has thanked: 4 times
- Been thanked: 1 time
Re: ES Favorites not saving
McGyver wrote: ↑Tue Feb 20, 2018 8:12 amFirst of all: the description in https://retropie.org.uk/forum/topic/128 ... m-shutdown works with some adaptation because the folder /etc looks to be root owned so all files have to be created by using sudo. Just one disadvantage: the shutdown procedure needs about 10 seconds longer! During shutdown the pi jumps to the terminal prompt but the shutdown goes on after maybe 10 sec. This is maybe due to the sleep routines used in the script.
And: the BBCode masses up a little here on the forum website. Maybe better copy the scripts from the external link on retropie.org!
Here a short tutorial for installing this software. General explanation: inside the terminal send: means copy or typing the text behind the send:_ contend and press ENTER.
Open your terminal and SSH into your pi:
send: ssh pi@192.168.xxx.xxx
type your password if your are asked for. The standard passwd should be raspberry, buy the way: please change it!
maybe security warning appears: „Are you sure you want to continue connecting (yes/#no)?“
send: yes
in the terminal send: pwd to know where you arrived in the filesystem.
In my case it is /home/pi
So I need send two times the command cd .. press ENTER KEY cd .. press ENTER KEY to arrive in the root directory. You can send dir to list all sub folders. This search should include the /etc directory we are looking for.
send: cd etc to go into /etc directory
send: sudo nano killes.sh
paste into the editor:
#!/bin/bash
# Check if EmulationStation is running. Finish the script if doesn't.
espid="$(pgrep -f "/opt/retropie/supplementary/.*/emulationstation([^.]|$)")" || exit 0
# the "sed" command below isn't a crypted message, it's just a trick to
# make $emucall regex-safe to use in the "pgrep -f" below.
emucall="$(sed '4!d; s/\([\\"]\|[[:alnum:]_]\+=[^ ]* \)//g; s/[][(){}^$*.|+? ]/\\&/g' /dev/shm/runcommand.info)"
# If there's an emulator running, we need to kill it and go back to ES
if [[ -n "$emucall" ]]; then
emupid="$(pgrep -f "$emucall" | tr '\n' ' ')"
pkill -P "$(echo $emupid | tr ' ' ',')"
kill "$emupid"
wait "$emupid"
sleep 5 # maybe it can be lesser
fi
kill "$espid"
wait "$espid"
sleep 5 # maybe it can be lesser
press control+x / press y / press enter after confirming the file name will be saved as killes.sh
send: sudo chmod a+x /etc/killes.sh
send: cd systemd/system
send: sudo nano killes.service
paste into the editor:
[Unit]
Description=Kill EmulationStation
After=autologin@tty1.service
[Service]
Type=oneshot
RemainAfterExit=true
ExecStop=/etc/killes.sh
[Install]
WantedBy=multi-user.target
press control+x / press y / press enter after confirming the file name will be saved as killes.service
send: sudo systemctl enable killes
Done! Try some shutdown commands via terminal or safe-shutdown switch feature to see if it works. I tested it with the lasted played feature in emulationstation which is now being saved.
Hm i did everything as you said but it didn't work. I also took the code from the link. Also the shutdown didn't take longer at all. Any idea i what i did wrong?
Who is online
Users browsing this forum: No registered users and 1 guest