View: 8317|Reply: 4

Button "Power" on OrangePi Plus 2 does not work under armbian

[Copy link]

1

threads

4

posts

22

credits

Novice

Rank: 1

credits
22
Published in 2018-6-15 17:03:09 | Show all floors |Read mode
Edited by MickPF at 2018-6-15 17:08

Hello,

Most likely, this issue was already addressed in one thread and may even be resolved, but my search was unsuccessful.

Recently, I dug up my completely useless OrangePi Plus 2 again because I found the Armbian (Debian 9.x) with kernel 4.14.x on the internet and had a usage for it.

It works so far and can be used, only one thing does not work: The button 'Power' does not work.
I found on the internet instructions on how to use acpid to get them up and running, it is very easy:
Install package acpid
Create the file "/etc/acpi/events/button_power":
  1.     event=button/power
  2.     action=/sbin/shutdown -h now
Copy code
Enable and (re)start the acpid.service. That's all, should be easy, even for a true professional like me.
Nothing happens when I press the button 'Power'! I can press and hold the button for hours, but nothing happens!
According to the (wrong) schematics it should be the GPIO PL3 (under Linux GPIO 355). The schamatics available on the internet belong to the OrangePi Plus and not to the OrangePi Plus 2.
I do not know if there are any significant differences in the schematics, but I noticed that the schematics and board drawings for OrangePi Plus 2 are still not available! One could get the impression that they are top secret ...
Because it does not work with acpid, I tested the button by the query of the GPIO:
  1. Command:    echo "355" > "/sys/class/gpio/export"
  2. Command:    cat "/sys/class/gpio/gpio355/direction"
  3.     Output: in
  4. Command:    cat "/sys/class/gpio/gpio355/active_low"
  5.     Output: 0
  6. Command:    cat /sys/class/gpio/gpio355/value"
  7.     Output: 0
Copy code
Pressing and holding power button
  1. Command:    cat /sys/class/gpio/gpio355/value"
  2.     Output: 0
Copy code
My resume: It does not work also!

Is the specification of the GPIO 'PL3' wrong?
Is it another connection?

Thanks in advance,
Michael


9

threads

634

posts

4427

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4427
Published in 2018-6-15 18:24:28 | Show all floors
The button 'Power' does not work.
I found on the internet instructions


True. That function was not developed yet.

1

threads

4

posts

22

credits

Novice

Rank: 1

credits
22
 Author| Published in 2018-6-15 20:34:48 | Show all floors
igorpec replied at 2018-6-15 18:24
True. That function was not developed yet.

Hello Igor,

What does it mean? Is the button connected to nothing? Is it for decoration only?



An unfermented and immature feature like everything around Allwinner's SOCs again!
For what purpose are the Allwinner SOCs and the boards around them?
Existence only for the sake of existence?
Anyway, I got that impression!



9

threads

634

posts

4427

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4427
Published in 2018-6-15 21:01:19 | Show all floors
Edited by igorpec at 2018-6-15 14:07
An unfermented and immature feature like everything around Allwinner's SOCs again!

The button works with stock Allwinner kernel 3.4.y or ours 3.4.113, but the mainline kernel, which you asked, is done by the community, by amateurs. I heard it can be implemented, but the day has only 24h and we are only a few working on this. BTW. This button is not power on/off ... but it can trigger (undocumented) suspend/resume. Board can also be waked up by IR.

For the modern kernel, we invest mostly our time and money. There is a little help from board vendors and around 15 min of work/month is also covered by donations: https://www.armbian.com/donate
Check attached file. It was tested with legacy 3.4.113 kernel but on mainline ... don't know.

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

1

threads

4

posts

22

credits

Novice

Rank: 1

credits
22
 Author| Published in 2018-6-16 03:23:45 | Show all floors
igorpec replied at 2018-6-15 21:01
The button works with stock Allwinner kernel 3.4.y or ours 3.4.113, but the mainline kernel, which  ...

Sorry, I did not want to attack anybody from Armbian.

I just want to know from Orangepi.org if the GPIO number is correct. Finally, the board is an OrangePi.

Since there is no schematic of Orange Pi Plus 2, I have no foundation to make my own customizations in kernel code.

As I see it, I have to dig up the old kernel code and try to find out what the GPIO number is.



You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list