Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 8866|Reply: 2

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

[Copy link]

1

Threads

4

Posts

47

Credits

Novice

Rank: 1

Credits
47
Post time 2016-3-24 23:29:36 | Show all posts |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
Post time 2016-5-2 02:17:32 | Show all posts
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

1128

Posts

7504

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
7504
Post time 2016-5-2 02:33:32 | Show all posts
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 have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2020-1-28 13:06 GMT+8 , Processed in 0.027836 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list