geaz / simplyRetro-Z5

A 3D printed, five inch retro gaming handheld.
Other
129 stars 13 forks source link

Cant figure out shutdown using retropie #11

Closed miitygames closed 4 years ago

miitygames commented 4 years ago

Everything works fine and boots properly. But when using the button on wont shutdown for some reason. I've added dtoverlay line in .config and added the retropower.cfg to root I didn't add the poweridicator pcb can this be the reason? Hope u can help me figure out how it works

geaz commented 4 years ago

The power indicator is not necessary for the boot pcb/script. Should be fine on this side. Are you using the the simplyRetro image?

miitygames commented 4 years ago

No I'm using the retropie internals are the same and gamecon is installed for button layout over gpio pins It seems it does turn on without any problems but it wont turn of

On Tue, 14 Jan 2020, 09:20 Gerrit Gazic, notifications@github.com wrote:

The power indicator is not necessary for the boot pcb/script. Should be fine on this side. Are you using the the simplyRetro image?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/geaz/simplyRetro-Z5/issues/11?email_source=notifications&email_token=ANJXDGJGA4WYRDZL4DM7ZU3Q5VYUDA5CNFSM4KGN3QD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI3W6CI#issuecomment-574058249, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANJXDGJFFXYFDKB7NRXLEM3Q5VYUDANCNFSM4KGN3QDQ .

miitygames commented 4 years ago

Sorry not gamecon its retrogame.cfg

On Tue, 14 Jan 2020, 10:36 Mitty ., miityofficial@gmail.com wrote:

No I'm using the retropie internals are the same and gamecon is installed for button layout over gpio pins It seems it does turn on without any problems but it wont turn of

On Tue, 14 Jan 2020, 09:20 Gerrit Gazic, notifications@github.com wrote:

The power indicator is not necessary for the boot pcb/script. Should be fine on this side. Are you using the the simplyRetro image?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/geaz/simplyRetro-Z5/issues/11?email_source=notifications&email_token=ANJXDGJGA4WYRDZL4DM7ZU3Q5VYUDA5CNFSM4KGN3QD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI3W6CI#issuecomment-574058249, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANJXDGJFFXYFDKB7NRXLEM3Q5VYUDANCNFSM4KGN3QDQ .

geaz commented 4 years ago

Ok, I think this is the "problem". The power off functionality needs a script running in the background. This script listens for the button press and initiates the shutdown, if the button is held for a few seconds.

I can link the script and a small explanation to this issue by tomorrow.

miitygames commented 4 years ago

That will be great! Thanks for ure help!

On Tue, 14 Jan 2020, 11:20 Gerrit Gazic, notifications@github.com wrote:

Ok, I think this is the "problem". The power off functionality needs a script running in the background. This script listens for the button press and initiates the shutdown, if the button is held for a few seconds.

I can link the script and a small explanation to this issue by tomorrow.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/geaz/simplyRetro-Z5/issues/11?email_source=notifications&email_token=ANJXDGNVUW2Y5LYD7FRY7QDQ5WGX5A5CNFSM4KGN3QD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI4CIQY#issuecomment-574104643, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANJXDGJUII6F6VVEZ43RXT3Q5WGX5ANCNFSM4KGN3QDQ .

miitygames commented 4 years ago

Just thinking about it, isnt it just the python3 script and then changing the default to gpio 19 ? Because I've already was thinking about that last night

On Tue, 14 Jan 2020, 11:20 Gerrit Gazic, notifications@github.com wrote:

Ok, I think this is the "problem". The power off functionality needs a script running in the background. This script listens for the button press and initiates the shutdown, if the button is held for a few seconds.

I can link the script and a small explanation to this issue by tomorrow.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/geaz/simplyRetro-Z5/issues/11?email_source=notifications&email_token=ANJXDGNVUW2Y5LYD7FRY7QDQ5WGX5A5CNFSM4KGN3QD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI4CIQY#issuecomment-574104643, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANJXDGJUII6F6VVEZ43RXT3Q5WGX5ANCNFSM4KGN3QDQ .

geaz commented 4 years ago

This is the "retropower application". The application is responsible for the battery indicator and the shutdown on button hold.

Don't forget to save the retropower config file to your boot partion (same location as your retrogame.cfg). I disabled the battery indicator functionality in the config. Please change the shutdown pin too, if necessary. Hope it helps!

retropower config.zip retropower.zip

geaz commented 4 years ago

CLosing due to inactivity