Jump to content

Power Button on OrangePi Lite not responding to ACPI events


Recommended Posts

Posted (edited)

I am using OrangePi Lite with Armbian 21.02.3 (5.10.21-sunxi) and the power button is not responding to acpi events.

 

I have followed suggestions here but nothing works:

- http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=2460

- https://parglescouk.wordpress.com/2016/08/30/shutting-down-an-orange-pi-from-the-on-board-button/

 

Here is my debugging process:

 

root@orangepilite:~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:      r_gpio_keys
/dev/input/event1:      sunxi-ir
Select the device event number [0-1]: 0
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "r_gpio_keys"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 256 (BTN_0)
Properties:
Testing ... (interrupt to exit)

then pressing power key:

Event: time 1618068887.287759, type 1 (EV_KEY), code 256 (BTN_0), value 1
Event: time 1618068887.287759, -------------- SYN_REPORT ------------
Event: time 1618068887.463763, type 1 (EV_KEY), code 256 (BTN_0), value 0
Event: time 1618068887.463763, -------------- SYN_REPORT ------------

 

 

value on this line (currently at 15) increments when pressing power button:

watch cat /proc/interrupts
131:         15          0          0          0  sunxi_pio_edge   3 Edge      sw4

 

 

Pressing power key when running this command shows no result:

acpi_listen


 

I've tried installing archive image (Armbian 19.11.3 - kernel 5.3.9) but same issue.

 

Not sure if I need to enable `gpio-sunxi` module (found somewhere this may need to enable?) but both current and archive image says: "Module gpio-sunxi not found".

 

Which Armbian image version should I use to have this working? Or any module i need to install?

Edited by tech3215
code format, links, additional question
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines