Notifications
Clear all

10/18/2023 Map Stopped Working?
Visit this post for the fix

Power down/restart button

16 Posts
3 Users
0 Reactions
1,451 Views
(@greygoose)
Eminent Member
Joined: 4 years ago
Posts: 14
Topic starter  

I noticed after the new software update v4.346 that the power off button doesn't work any longer. The reboot still works after holding for 3 seconds. After holding for 6 sec or longer, it will shutoff and not reboot.  


   
Quote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

I may be misunderstanding, but what you described is how it should work. If you press the reboot/power-off button for 3 seconds, it should reboot. If you hold it for 6 seconds it should power off. If you have powered off the RPi and you have the startup button wired (which is different from the reboot/power-off button) it should start back up.

I just tried this on my board and it works as it always has. So if I'm not understanding, please bounce back with more info and I'll see what might be going on. 

image

   
ReplyQuote
(@greygoose)
Eminent Member
Joined: 4 years ago
Posts: 14
Topic starter  

@markyharris

I reread, it was good until the last sentence. It will not shutoff anymore and power down the rpi. Everything I do by holding 3 or 6 sec will only reboot the rpi. It will not power it down at all. I’ve tried extended holds on it as well and get a reboot only. 
It was working correctly before, I’ll check everything again. 


   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

Ok, understood. The code that controls the switch on/off is a daemon that runs in the background and has nothing to do with any of the code in LiveSectional. So any updates made will not effect this issue.

My suggestion is that you check to see if you have anything connected to GPIO 3 (pin 5). If so, disconnect it and try it again. This pin, when pulled to ground when the RPi is off will awake it (this is how the turn on switch works). So its possible that this pin is grounded for some reason so that when you hold the power off switch of 6 or more seconds it goes to sleep, but then the RPi sees pin 5 grounded and wakes back up right away. It's worth a check. - Mark


   
ReplyQuote
(@captain_ron)
Estimable Member
Joined: 5 years ago
Posts: 162
 

@markyharris I’m not sure if this is connected but after my map turns off via the time off function, I can’t turn it On with the on push button. Running 4.346


   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

Ron, the software is written to temporarily turn the map back on (5 mins in user settings) while its sleeping if the button is pressed. Are you saying that this is not working? I did change the sleep routine to make it more robust, so its possible that I did something to break this feature. So bounce back to confirm the circumstances and I'll look it over. - Mark


   
ReplyQuote
(@captain_ron)
Estimable Member
Joined: 5 years ago
Posts: 162
 

@markyharris Yes, it worked before I upgraded the PI software. I only did it once I think and it turned on for the expected 5 minutes. Now, I’ve tried holding the button for 3-4 seconds as well as over 6 and nothing happens. 


   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

Hi Ron,

I tried it on my board when I got home today and it worked as expected. Please double check that the reset switch is connected to GPIO Pin 22.

image

You shouldn't have to hold the button for more than a few seconds for it to work. If you have OLED's connected, it may take a second longer because the OLED needs to cycle through the routine before it recognizes that the switch is being pressed. If you feel that the switch is connected properly, press the reset switch and monitor the logfile. You should see a message that the button is being pressed if all is good. Feel free to press the button and then download the logfile and post it here. I'd be happy to look. - Mark


   
ReplyQuote
(@captain_ron)
Estimable Member
Joined: 5 years ago
Posts: 162
 

@markyharris ok, I’ll give that a try.


   
ReplyQuote
(@captain_ron)
Estimable Member
Joined: 5 years ago
Posts: 162
 

I have the on button wired to pin 5 and it shares a pin for the single OLED as shown on the OLED schematic page. You say here it’s pin 22 for the on button. I have a single OLED wired up too.

when you say press the reset button, which one is that? I see off/reboot, refresh and on as labeled in the schematic. 

This post was modified 4 years ago 3 times by Captain_Ron

   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

Ron, the refresh switch is connected to GPIO 22 (pin 15). The picture of the pinouts from the previous post unfortunately had pin 22 highlighted. So I apologize if that was mis-leading. If you check the schematic that I believe matches your build, there is only one wire connected to GPIO 22, the reset switch. So there should be no conflict with anything else.

The switch you spoke of above is the 'On' switch which is also tied to the same pin used by the OLED. We are able to get away with this because the 'On' switch is used only when the RPi is off and therefore not running the OLED. If however you were to press the 'On' switch when the board is already on, you'll pull that line to ground which will temporarily disrupt the signal being sent to the OLED. This will corrupt the data for a moment and the OLED display will show some garbage for a little bit. But it doesn't hurt anything. Hope this is helping. - Mark

image

   
ReplyQuote
(@captain_ron)
Estimable Member
Joined: 5 years ago
Posts: 162
 

@markyharris Thanks for clarifying as nothing I saw in a schematic was connected to pin 22. Now the remaining area to clear up is when you talk about a RESET switch. I only know of 3 switches, Off, On, Refresh. I’ll try texting the on switch tomorrow, it’s been a long day.


   
ReplyQuote
(@captain_ron)
Estimable Member
Joined: 5 years ago
Posts: 162
 

As I see it the refresh button will turn on the map for 5 minutes if it’s been put to sleep by the time off parameter.

The “on” button only works to wake the map up if it’s been turned off by the “Off” button.

The “Off” button shutdowns the RPI, or reboots it.


   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

Correct. Your summary is dead on. - Mark


   
ReplyQuote
(@captain_ron)
Estimable Member
Joined: 5 years ago
Posts: 162
 

@markyharris Cool, I finally understand something.

One last thing, it seems that the refresh button needs to be held for 1-2 seconds before it works. Can the time be reduced so a momentary push triggers it? 


   
ReplyQuote
Page 1 / 2
Share: