How to set proper actions for reset and power button

12 23399
Where can I find config file for the buttons on the BananaPi?Now reset and power button don't work correctly.
What did you mean of "don't work correctly" ??

Pressing power button don't run shutdown - h now command
Pressing reset button don't run reboot command

Post Last Edited by opticprism at 2014-9-7 12:40

Post Last Edited by opticprism at 2014-9-7 12:40

Post Last Edited by opticprism at 2014-9-7 12:33

I have been searching this forum and looking through pictures on this website and I can't seem to find anything that helps CLEARLY HELP set up the banana pi. I have plugged in a 5v-1a miniusb power supply in the spot CLOSE to where the HDMI cable goes, a wireless keyboard, and I plugged in the HDMI cable to my TV checked TV settings that it was on HDMI, I then put a 4G SD CARD in,  and then I PLUGGED in the miniusb 5v-1a power and NOTHING HAPPENS... What gives???

EDIT: I click on the "Power Key" NOTHING happens from the way I see it on the pitcure, that's on the home page and when I click on the "RESET" button I get a RED Light but, that is all I don't see it booting up or nothing, so I ask again what gives???

Post Last Edited by opticprism at 2014-9-7 13:13

Can someone PLEASE HELP me with this, I don't feel safe doing anything else, out of fear I may mess something up.

EDIT: I think I am having a bad SD CARD connection but, I was hoping to see some flashing on the RED LED diode but, I guess I will just have to keep digging aimlessly for some guide which I would hope that lemaker would make a DETAILED ... PDF file guide on how to properly set up and power on the banana pi hardware...I have yet to SEE anything anywhere about rather or NOT the "POWER KEY" or should I say in my case the "RESET" button needs to be pressed to see any action, such in my case a RED LED light...

sudo apt-get install acpi
This package will allow OS to access physical buttons.

Now run sudo acpi_listen. Press power button on your banana. On console you will see something like that line:
button/power PBTN 00000000 00000000
each time you press the power button on banana.
Next step is up to you, you can write a bash script to handle this action and perform shutdown. Or write a simple program that handles it in any programming language. It is passed by STDOUT.

Edited by Bananian at Sun Jan 11, 2015 14:46


that is simple.

Install acpid:
  1. aptitude install acpid
Copy the Code
Create the following files:

1.) /etc/acpi/events/button_power:
  1. event=button/power
  2. action=/etc/acpi/
Copy the Code
2.) /etc/acpi/
  1. #!/bin/bash
  2. shutdown -h now
Copy the Code
Make executable:
  1. chmod +x /etc/acpi/
Copy the Code
Restart acpid (ignore error messages..):
  1. /etc/init.d/acpid restart
Copy the Code
Press power button and the Banana Pi will shutdown (or whatever you define in!

Hey Thanks for sharing this Information its really good.

I am sharing my Experience with a essay write online, This is one of the best Writing service Company. I hope you like this Important Information And you will Check Out, If you need any Kind of writing Services Online.

Great infos !

My bananapi dont auto startup (boot) when I plug the power on...
May be I can find a solution with acpid
OR it is an Emmc/bios config (to auto restarting when power is on) ?

Thanks !

Banyak diantara pemain poker online di dunia yang memulai bermain di dewapoker asia dari pemain pemula yang awalnya mencoba coba, setelah mereka menemukan cara bermain yang nyaman akhirnya mereka bisa memeproleh kemenangan secara besar. Penjelasan lengkap pada website dewapoker online menjadi ciri khas bahwa agen judi tersebut memang terpercaya dan layak untuk dimainkan. Dengan promo yang bagus di website bonus poker 88 asia Anda berkesempatan mendapatkan hadiah dalam jumlah yang banyak yang bisa Anda gunakan sebagai modal bermain judi poker.

You have to log in before you can reply Login | Sign Up

Points Rules