Jump to content

waking from suspend mode


jimg

Recommended Posts

First off, I'd like to thank the maintainers for all the work you've put into Armbian.  It's really been a pleasure to use.

 

I'm currently using an OrangePI 2+as a kiosk computer, and I'm wondering if there might be some other way to wake it from sleep other than pressing the power button.  Would it be possible for it to wake from sleep if one of the GPIO pins were pulled high, for instance?

 

TIA,

 

-Jim

Link to comment
Share on other sites

Would it be possible for it to wake from sleep if one of the GPIO pins were pulled high, for instance?

 

This should be possible but you would've to adjust fex file:

 

1st step: check schematics how PL03 is handled to get the idea how this button works (I'm a hardware NOOB)

 

2nd step: choose the pin from the list of declared GPIO pins: https://github.com/igorpecovnik/lib/blob/master/config/fex/orangepiplus.fex#L331-L349 for example PG07 located at physical pin 40 on the header:

 

Xunlong_OrangePi_expansion_header_pinout

3rd step: edit the fex file (use either bin2fex and convert /boot/bin/orangepiplus.bin to a temporary location or use the link above), remove the GPIO definition so that it reads gpio_num = 18 and the order of pins in this section is intact. Then replace occurences of PL03 in line 232 and 1241 with the pin you chose (PG07).

 

4th step: please report back here in this thread :)

Link to comment
Share on other sites

I haven't quite figured out PL03 yet in the schematic, but it's a moot point for now anyway because I can't resume from suspend using the reset switch :(. I lose the wifi connection and get errors in a terminal window. Here's what I get in the terminal upon resume using the reset switch:

Message from syslogd@localhost at Aug 20 20:40:13 ...
kernel:[ 1864.565193] sunxi oops: enable sdcard JTAG interface

Message from syslogd@localhost at Aug 20 20:40:13 ...
kernel:[ 1864.565202] sunxi oops: cpu frequency: 1008 MHz

Message from syslogd@localhost at Aug 20 20:40:13 ...
kernel:[ 1864.565210] sunxi oops: ddr frequency: 672 MHz

Message from syslogd@localhost at Aug 20 20:40:13 ...
kernel:[ 1864.565219] sunxi oops: gpu frequency: 252 MHz

Message from syslogd@localhost at Aug 20 20:40:13 ...
kernel:[ 1864.565227] sunxi oops: cpu temperature: 48

Message from syslogd@localhost at Aug 20 20:40:13 ...
kernel:[ 1864.565238] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM

Message from syslogd@localhost at Aug 20 20:40:13 ...
kernel:[ 1864.568434] Process ifconfig (pid: 3353, stack limit = 0xd20322f8)

Message from syslogd@localhost at Aug 20 20:40:13 ...
kernel:[ 1864.568446] Stack: (0xd2033d80 to 0xd2034000)

Message from syslogd@localhost at Aug 20 20:40:13 ...
kernel:[ 1864.568462] 3d80: eea44000 00000000 eea44500 00000000 d2033db4 d2033da0 c04643cc c0461b38

...(more stack trace)...
I can post the dmesg output if you want.

 

FWIW, I'm using /etc/network/interfaces.default as the /etc/network/interfaces file.

 

Following this, it won't shutdown properly, either. It just hangs, and I have to power off to get it to shutdown.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines