Page 1 of 1

Disable Hall Effect Sensor Shutdown

Posted: Tue Jan 28, 2020 5:33 pm
by Levitation77
Hi, I recently built myself a MintyPi v3, and have been having a lot of fun with it. I have found the hall effect shutdown to be a bit annoying, however, as it takes a long time to boot back up and I prefer manually turning it off anyway. Is there anyway to disable this (like some execution file I could delete) without physically removing the magnet? Thanks for the help.

Re: Disable Hall Effect Sensor Shutdown

Posted: Wed Jan 29, 2020 10:30 am
by infinitLoop
Levitation77 wrote:
Tue Jan 28, 2020 5:33 pm
Hi, I recently built myself a MintyPi v3, and have been having a lot of fun with it. I have found the hall effect shutdown to be a bit annoying, however, as it takes a long time to boot back up and I prefer manually turning it off anyway. Is there anyway to disable this (like some execution file I could delete) without physically removing the magnet? Thanks for the help.
the hall sensor shouldn't affect boot-up at all. it acts like a button, so when it's activated, it initiates the software shutdown, the same as if you went into the menus and selected "shutdown system". that can take a few seconds because it has to safely close all the apps in memory, but if all you do is hit the power button to turn off, you will eventually end up causing data corruption or even totally ruining the card.


.

Re: Disable Hall Effect Sensor Shutdown

Posted: Wed Jan 29, 2020 5:52 pm
by Levitation77
infinitLoop wrote:
Wed Jan 29, 2020 10:30 am
Levitation77 wrote:
Tue Jan 28, 2020 5:33 pm
Hi, I recently built myself a MintyPi v3, and have been having a lot of fun with it. I have found the hall effect shutdown to be a bit annoying, however, as it takes a long time to boot back up and I prefer manually turning it off anyway. Is there anyway to disable this (like some execution file I could delete) without physically removing the magnet? Thanks for the help.
the hall sensor shouldn't affect boot-up at all. it acts like a button, so when it's activated, it initiates the software shutdown, the same as if you went into the menus and selected "shutdown system". that can take a few seconds because it has to safely close all the apps in memory, but if all you do is hit the power button to turn off, you will eventually end up causing data corruption or even totally ruining the card.


.
I may have worded my question a bit weird. The sensor isn't affecting boot up, I just tend to open and close the lid quite frequently and it is annoying when it shuts down every time and I have to wait for it to turn back on. I also never hit the power button to shut it off, I hit shutdown system in the menu. Is there anyway to disable the sensor shutdown?

Re: Disable Hall Effect Sensor Shutdown

Posted: Wed Jan 29, 2020 6:05 pm
by infinitLoop
Levitation77 wrote:
Wed Jan 29, 2020 5:52 pm
I may have worded my question a bit weird. The sensor isn't affecting boot up, I just tend to open and close the lid quite frequently and it is annoying when it shuts down every time and I have to wait for it to turn back on. I also never hit the power button to shut it off, I hit shutdown system in the menu. Is there anyway to disable the sensor shutdown?
ah. that makes sense now.

yeah, i think that you should be able to disable it by changing the config...

ssh into your mintypi, or plug a keyboard in and hit f4 to exit out of retropie to a terminal prompt, and type.

Code: Select all

sudo nano ~/OneForAll/keys.cfg
at the top there should be a setting for SHUTDOWN_DETECT - change it to 0

hit ctrl-X to exit, say Y to save and hit enter without changing the file name.

reboot ("sudo reboot now" at the prompt) and it should be disabled
.

Re: Disable Hall Effect Sensor Shutdown

Posted: Wed Jan 29, 2020 6:46 pm
by Levitation77
infinitLoop wrote:
Wed Jan 29, 2020 6:05 pm

ah. that makes sense now.

yeah, i think that you should be able to disable it by changing the config...

ssh into your mintypi, or plug a keyboard in and hit f4 to exit out of retropie to a terminal prompt, and type.

Code: Select all

sudo nano ~/OneForAll/keys.cfg
at the top there should be a setting for SHUTDOWN_DETECT - change it to 0

hit ctrl-X to exit, say Y to save and hit enter without changing the file name.

reboot ("sudo reboot now" at the prompt) and it should be disabled
.
Thanks for the quick reply! For some reason just changing the shutdown detect number to 0 didn't fix it, so I made the lid sensor number something random and now it is disabled. Thanks again!

Re: Disable Hall Effect Sensor Shutdown

Posted: Wed Jan 29, 2020 7:08 pm
by infinitLoop
Levitation77 wrote:
Wed Jan 29, 2020 6:46 pm

Thanks for the quick reply! For some reason just changing the shutdown detect number to 0 didn't fix it, so I made the lid sensor number something random and now it is disabled. Thanks again!
huh. weird that it didn't take that setting, but that's good that it worked with the other workaround. just be careful that you dont pick a random pin thats actually used by something, or you might get a random shutdown :cry: :?