This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shutdown button with moitessier hat
#8
Done.

follow this step: https://bre.is/CVB_1qr2R

Exclamation Exclamation  Exclamation  Attention at step 5:
activate on sturt up
"In order to make the shutdown button 'active' when your Raspberry Pi starts up, you need to include it in an rc.local script.

Open a new terminal and type sudo nano /etc/rc.local

This will open the Leafpad editor, with the rc.local file loaded. At the end of the file (before exit 0 in the code) add the following:
sudo python3 /home/pi/shutdown.py &

Save the file and exit nano.

STEP 6
sudo chmod 755 shutdown.py

Reboot the system.

Big Grin

Thank you jim321 for the suggestions
Reply


Messages In This Thread
Shutdown button with moitessier hat - by luchin0 - 2019-02-06, 06:35 PM
Shutdown button with moitessier hat - by luchin0 - 2019-04-24, 03:49 PM
Shutdown button with moitessier hat - by luchin0 - 2019-04-25, 11:04 AM
RE: Shutdown button with moitessier hat - by luchin0 - 2019-04-26, 09:23 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)