Is the safe shutdown necessary?

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: Is the safe shutdown necessary?

Post by HoolyHoo » Wed May 24, 2017 5:37 am

RetroRocket wrote:
Tue May 23, 2017 9:36 pm
Mitaccio wrote:
Tue May 23, 2017 7:41 pm
I am thinking of using Cambles shutdown but was wondering if it is redundant with Helders AIO battery monitor function?
Well, you can run a script that will safely shut down the GBZ when the power draw gets too low, but it will only do so when the voltage gets below that certain point. If you have the battery monitor function and want to shut down the system before you run out of juice, you'll either need to go back to the main menu and shut down Emulation Station manually, or get a safe shut down of some persuasion to do the work for you when you flip the power switch.
There is redundancy using Cambles circuit and my scripts. My battery monitoring hex and script for helders board, however, includes on screen battery level feedback and fixes analog stick and gamepad double presses. Also now allows you to select in DOS style menus in ES. You also get a warning video when battery level is 25% and an automatic shutdown video and shutdown when battery reaches critical level. I have also included in the script the option if you install a momentary switch (I recommend placement in the already made perfect size hole in the original GB charging port) to do a safe shutdown without having to go through the convoluted ES menu.

If you already bought Cambles circuit, use that. If not, and you have Helders board, then use my script. It will work with any power supply and works really well. I would not try to use both as some features overlap. And yes, it will work with version 1.2 of helders board as long as your not using the analog stick. :D

See more here:
viewtopic.php?f=22&t=2970

pajordan
Posts: 33
Joined: Mon Jun 27, 2016 11:24 pm
Has thanked: 53 times
Been thanked: 1 time

Re: Is the safe shutdown necessary?

Post by pajordan » Thu Jan 04, 2018 1:46 pm

How risky is it to power off (no safe shutdown, just cut power) from the ES menu? Have any of you on this forum ever had an SD card get corrupted from doing this?

My first build has no safe shutdown - I always exit a game to the ES menu before powering off and wondering if I'm rolling the dice each time...

This was my understanding, from an old raspberrypi.org thread:
"Corruption generally occurs when writing data to the card. The influencing factors are power loss and over clocking.

If you loose power when writing to the SD Card it can corrupt the card. This is typically due to cutting power during shut down, power on, etc.. When the Pi is up and running a lot is happening in memory and no writes are committed so power loss is not a guarantee of corruption when the Pi is running.
"

User avatar
rodocop
Posts: 1723
Joined: Mon Aug 22, 2016 3:14 pm
Location: Saskatchewan
Has thanked: 606 times
Been thanked: 608 times

Re: Is the safe shutdown necessary?

Post by rodocop » Thu Jan 04, 2018 3:23 pm

pajordan wrote:
Thu Jan 04, 2018 1:46 pm
How risky is it to power off (no safe shutdown, just cut power) from the ES menu? Have any of you on this forum ever had an SD card get corrupted from doing this?

My first build has no safe shutdown - I always exit a game to the ES menu before powering off and wondering if I'm rolling the dice each time...

This was my understanding, from an old raspberrypi.org thread:
"Corruption generally occurs when writing data to the card. The influencing factors are power loss and over clocking.

If you loose power when writing to the SD Card it can corrupt the card. This is typically due to cutting power during shut down, power on, etc.. When the Pi is up and running a lot is happening in memory and no writes are committed so power loss is not a guarantee of corruption when the Pi is running.
"
i've only seen one corrupt card ever, and it was on a pi3 kodi/retropie setup i made for my sister and her family. It may have been that it was a cheap canakit card or cause the kids just pulled the plug and didn't shut it down properly.

As long as you choose shutdown system from the ES menu and wait for the pi to shutdown before sliding the switch you'll be fine. I've also used this is a few builds to add a tactile button for a ssafe shutdown anytime:

https://pie.8bitjunkie.net/retropie-shu ... e-easy-way

User avatar
tinkerBOY
Posts: 710
Joined: Tue May 30, 2017 4:00 am
Has thanked: 294 times
Been thanked: 206 times

Re: Is the safe shutdown necessary?

Post by tinkerBOY » Fri Jan 05, 2018 4:46 am

Maybe if we could put the whole sdcard into something like read-only mode so we can just flip the switch off? :)
New! tinkerBOY PowerSwitch v1.0 with Safe Shutdown
Game Boy Zero Controllers available @ tinkerBOY.xyz * Support
tinkerBOY Controller v3.0 - built-in usb controller, usb audio, and usb hub
tinkerBOY Controller v2.0 - GPIO buttons and builtin PWM Audio and Amplifier
tinkerBOY Controller v1.1 - simple pcb button
* DPI Adapter - better display for GBZ
* keyboard converters - IBM XT/AT Soarer's Converter | ADB to USB Converter

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: Is the safe shutdown necessary?

Post by YaYa » Fri Jan 05, 2018 6:09 am

Actually you can put the whole retropie into read only mode. I’m making some tests in that way but i’m still encountering some issues.
This would be the ultimate tweak lol.
Things are working better on a Pi3 because we have more ram available
Follow me on instagram Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest