please choosego to mobile | Continue to access the PC version
View: 12768|Reply: 2

Orange PI PC: Power button = no function? (with Armbian)

[Copy link]

1

threads

4

posts

47

credits

Novice

Rank: 1

credits
47
Published in 2016-3-24 23:29:36 | Show all floors |Read mode
Hello friends,

a couple of days ago I received my Orange PI PC and am pretty impressed so far!

What I understand so far is:
1. When the device is plugged it, the LEDs on the LAN port light up and it starts.
2. The Power LED only lights up when a working system is booted because it is software controlled.
This can be confirmed by "echo 1 > /sys/class/leds/red_led/brightness" to turn it off (or 0 to turn it on)
3. When I shutdown the booted Armbian with shutdown -h now, the device turns off:
First the LAN LEDs go dark, at last the Power LED.

Now, if I want to turn it on again, the PWR button does nothing.
I have to dis- and reconnect the DC plug.

I noticed that pressing and releasing the button increases (from /proc/interrupts) the counts of
irq3 (sunxi_gpio_irq_chip gk_EINT) and
irq77 (GIC PL)
for CPU0 by 1 each, so a short press increases those by 2.

Now, my questions:
1. What use is the power button, as it appears only to be an interrupt/software event usable when the system is running?
Maybe for sleeping / waking up a correctly configured kernel?
2. Is there any other way to turn on the OPI PC after shutting it down? Always having to pull/plug in power appears pretty inconvenient to me.

Thanks for your help

Greets, Lutz

0

threads

4

posts

42

credits

Novice

Rank: 1

credits
42
Published in 2016-5-2 02:17:32 | Show all floors
I have the same problem.The power button only work when OS is loaded and give you the options for reboot poweroff etc.
Is this a problem?
How to poweron my orange pi pc withouth unplug and plug the power adapter?

4

threads

1118

posts

9186

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9186
Published in 2016-5-2 02:33:32 | Show all floors
As d4t3n7od already found out, power button is just an ordinary button connected to GPIO pin. You can use it only for suspend/resume. Once CPU is shut down, it is of no use.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list