Bananian

How to set proper actions for reset and power button

16 10034
Haxy  
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" ??

Haxy  
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...

xividi  
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

Hi,

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/shutdown.sh
Copy the Code
2.) /etc/acpi/shutdown.sh:
  1. #!/bin/bash
  2. shutdown -h now
Copy the Code
Make shutdown.sh executable:
  1. chmod +x /etc/acpi/shutdown.sh
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 shutdown.sh)!

Pete  
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.

wty123  
coach factory, nfl bills jerseys, coach factory outlet, mcm bags, dansko shoes outlet, coach factory outlet, new orleans pelicans jerseys, nike shoes, hollister co, vans shoes, true religion jeans outlet, nike air, nike mercurial, nfl saints jerseys, nike air max, adidas online shop, north face, marc jacobs handbags, flat iron, oakley pas cher, michael kors handbags, northface, christian louboutin, minnesota timberwolves jerseys, washington wizards jerseys, michael kors outlet online, hilfiger outlet, oakley sunglasses, puma online shop, coach bags friday, nike roshe run, burberry outlet online, hermes birkin, iphone 5s cases, tommy hilfiger canada, oakley holbrook, purses and handbags, nike roshe run, burberry handbags, ray-ban sunglasses, juicy couture handbags, christian louboutin, pandora bracelet, nfl falcons jerseys, burberry handbags, michael kors outlet, michael kors handbags, spurs jerseys, nfl titans jerseys, hermes tracksuits, chrome hearts clothings, mcm backpack, true religion jeans outlet, red bottom shoes, michael kors outlet online, shoes outlet, versace, ralph lauren outlet online, louboutin shoes, true religion, ray ban prezzi, nuggets jersey, nfl jets jerseys, skechers shoes outlet, supra shoes, tommy hilfiger outlet, coach shop factory, ralph lauren, uhren shop, ralph lauren, coach factory outlet, cheap ray ban, kate spade handbags, michael kors outlet online, air max, bcbg max azria, ray ban pas cher, ralph lauren factory store, oakley, air jordan retro, nike free, asics gel, ralph lauren outlet, iphone 4s cases, babyliss flat iron, rolex watch, nike store, ralph lauren, celine outlet, cheap jordans, polo ralph, nike outlet, air max, nba jersey, coach outlet, michael kors purses, nfl ravens jerseys, nfl steelers jerseys, jordans, polo ralph, huarache, nfl packers jerseys, nfl vikings jerseys, juicy couture clothings, true religion jeans women, polo ralph lauren outlet, asics, nike roshe run, thomas sabo, nike roche, birkenstock taschen deutschland, new balance, oakley sunglasses cheap, air max 95, longchamp, tommy hilfiger online, new balance shoes,

coach outlet online
uggs
ray bans
michael kors uk
canada goose jackets
michael kors outlet online
canada goose jackets
ralph lauren sale
canada goose coats
louis vuitton factory outlet
uggs outlet
burberry outlet online
coach factory outlet online
moncler
yeezy boost
yeezy shoes
moncler coats
louis vuitton outlet store
moncler jackets
fred perry shirts
ugg boots
michael kors outlet canada
jerseys cheap
cheap air jordans
ugg outlet online
cheap ugg boots
michael kors outlet online
ugg boots
polo outlet online
pandora charms sale clearance
birkenstock shoes
longchamp bags
uggs on sale
michael kors outlet store
ray ban sunglasses discount
harden vol 1
adidas yeezy boost
birkenstock outlet
ugg boots
ugg boots
coach outlet store
moncler outlet online
salvatore ferragamo outlet
moncler uk
michael kors
red bottoms
adidas outlet online
ugg boots
uggs outlet
uggs outlet
mbt
ferragamo shoes
ralph lauren outlet online
cheap air jordans
pandora charms outlet
polo ralph lauren outlet
cheap jordan shoes
ugg outlet
adidas outlet online
salvatore ferragamo shoes
coach outlet online
coach outlet store
ugg boots
columbia sportswear outlet
mlb jerseys cheap
supreme shirts
ugg outlet
ugg australia outlet
ugg outlet
canada goose jackets
coach outlet online
ugg outlet online
pandora charms
coach outlet online
coach factory outlet online
canada goose outlet online
canada goose jackets
north face jackets
louboutin outlet
mulberry
ugg canada
canada goose jackets
coach handbags outlet
uggs outlet
adidas nmd r1
michael kors outlet store
nike outlet
michael kors handbags
ugg outlet
uggs outlet
ugg boots
canada goose parka
coach outlet online
pandora uk
canada goose outlet
louboutin outlet
fitflop sandals
birkin handbags
the north face outlet
air jordan retro
air max
michael kors outlet clearance
michael kors outlet online
moncler jacket
ugg boots outlet
canada goose outlet
ugg canada
canada goose
uggs outlet
adidas nmd runner
michael kors outlet online
north face jackets
uggs sale
coach factory outlet online
canada goose sale
cheap air jordans
michael kors outlet store
air max shoes
adidas superstar shoes
171128yueqin

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

Points Rules