Portsdown Stretch 2019 Software
Re: Portsdown Stretch 2019 Software
I removed my shutdown button. Now there is an option on the screen the only time you would need it is when the PI has crashed, and then it doesn't work.
Mike
Mike
Re: Portsdown Stretch 2019 Software
Tom
I have rechecked this function on my test rig and it seems to work as expected.
Can you check from the command line whether the process pi-sdn is running?
Can you shutdown from the button on Menu 2?
Does the state of the "SD Button Enabled/disabled" change when you select it?
Is there a possibility that you night have damaged that input pin (static?) on your RPi?
Dave
I have rechecked this function on my test rig and it seems to work as expected.
Can you check from the command line whether the process pi-sdn is running?
Can you shutdown from the button on Menu 2?
Does the state of the "SD Button Enabled/disabled" change when you select it?
Is there a possibility that you night have damaged that input pin (static?) on your RPi?
Dave
Re: Portsdown Stretch 2019 Software
Hi Dave,
to your questions:
How can I check this from command line if pi-sdn is running?
Yes, I can shutdown from button in Menu 2.
Yes, the state is changing when I select it. From disabeld to enabeld immediately, from enabeld to disabeld I have to reboot.
I don't know, I am very careful when I touch electronics, my workplace is ESD protected...
73 Tom
to your questions:
How can I check this from command line if pi-sdn is running?
Yes, I can shutdown from button in Menu 2.
Yes, the state is changing when I select it. From disabeld to enabeld immediately, from enabeld to disabeld I have to reboot.
I don't know, I am very careful when I touch electronics, my workplace is ESD protected...
73 Tom
Re: Portsdown Stretch 2019 Software
Hi Tom
To check whether pi-sdn is running, you would need to log in by ssh (details here: https://wiki.batc.org.uk/Console_mode) and then go to the shutdown menu, Exit to Linux, and then type:
If it returns a number, pi-sdn is running. If it simply gives you another prompt, then it isn't running.
Dave
To check whether pi-sdn is running, you would need to log in by ssh (details here: https://wiki.batc.org.uk/Console_mode) and then go to the shutdown menu, Exit to Linux, and then type:
Code: Select all
pgrep pi-sdn
Dave
Re: Portsdown Stretch 2019 Software
Hi Dave,
thanks for the info. You must know I am not a Linux expert
I only get back a prompt and not a number. So pi-sdn is not running.
What should I do now?
73 de Tom
thanks for the info. You must know I am not a Linux expert
I only get back a prompt and not a number. So pi-sdn is not running.
What should I do now?
73 de Tom
Re: Portsdown Stretch 2019 Software
Hi Tom
Please could you enable the button (from Menu 3, System Config) and then go to the command line again. This time, type:and tell me the response.
Dave
Please could you enable the button (from Menu 3, System Config) and then go to the command line again. This time, type:
Code: Select all
cat .pi-sdn
Dave
Re: Portsdown Stretch 2019 Software
Hi Dave,
this is the response of my Raspi:
pi@raspberrypi:~ $ cat .pi-sdn
## called by .bashrc at log-on to enable hardware button shutdown
## If this file is in ~, then hardware button shutdown is enabled
sudo /home/pi/pi-sdn 3 2 > /dev/null 2>&1 &
##
73 de Tom
this is the response of my Raspi:
pi@raspberrypi:~ $ cat .pi-sdn
## called by .bashrc at log-on to enable hardware button shutdown
## If this file is in ~, then hardware button shutdown is enabled
sudo /home/pi/pi-sdn 3 2 > /dev/null 2>&1 &
##
73 de Tom
Re: Portsdown Stretch 2019 Software
Hi Tom
What response do you get if you run this command:
It may be that the pi-sdn file is not present on your system. Failing that, I suggest you test the GPIO pin with another program.
Dave
What response do you get if you run this command:
Code: Select all
sudo /home/pi/pi-sdn 3 2
Dave
Re: Portsdown Stretch 2019 Software
Hi Dave,
the response is:
sh: 1: /home/pi/rpidatv/scripts/shutdown_script.sh: Permission denied
... and the led is on.
73 de Tom, DL6RCG
the response is:
sh: 1: /home/pi/rpidatv/scripts/shutdown_script.sh: Permission denied
... and the led is on.
73 de Tom, DL6RCG
Re: Portsdown Stretch 2019 Software
Hi Tom
That shouldn't happen, and I worry what else might be wrong. However, you can cure that specific problem by entering:
Let me know how that goes.
Dave
That shouldn't happen, and I worry what else might be wrong. However, you can cure that specific problem by entering:
Code: Select all
chmod +x /home/pi/rpidatv/scripts/shutdown_script.sh
Dave