[Linux] Ubuntu 12 eden pre 2 harmony wake up from suspend
#1
Hallo Community,

I'm trying to to wake up my Acer Travelbook 8101 WLMi running eden pre2 on ubuntu 12.10 (3.0.0-12-gerneric) with lirc 0.9.0 from standby
I used the german howto:

http://www.loggn.de/arch-linux-lirc-konf...#more-7431

Everything running well except wakeup from standby.

the reciever itself is mentioned to support wake up from S1/S3

I tried different things - as results:

lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 147a:e03e Formosa Industrial Computing, Inc. Infrared Receiver [IR605A/Q]


vi /etc/rc.local
echo USB1>/proc/acpi/wakeup
echo USB2>/proc/acpi/wakeup
echo USB3>/proc/acpi/wakeup
echo USB4>/proc/acpi/wakeup
echo USB5</proc/acpi/wakeup
echo USB7>/proc/acpi/wakeup
echo enabled > /sys/bus/usb/devices/5-1/power/wakeup
echo lirc > /sys/class/rc/rc0/protocols
Echo "rc.local has completed sucessfully." >>/tmp/resume.log
exit 0

cat /proc/acpi/wakeup
Device S-state Status Sysfs node
AZAL S3 *disabled pci:0000:00:1b.0
RP01 S4 *disabled pci:0000:00:1c.0
RP02 S4 *disabled pci:0000:00:1c.1
RP04 S4 *disabled
USB1 S3 *enabled pci:0000:00:1d.0
USB2 S3 *enabled pci:0000:00:1d.1
USB3 S3 *enabled pci:0000:00:1d.2
USB4 S3 *enabled pci:0000:00:1d.3
USB7 S3 *enabled pci:0000:00:1d.7
LANC S4 *enabled pci:0000:06:06.0

irw
000000037ff07bf3 00 KEY_POWER mceusb
000000037ff07bf3 01 KEY_POWER mceusb
000000037ff07bf3 02 KEY_POWER mceusb

dmesg |grep mceusb
[ 34.829803] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0
[ 34.829832] mceusb 5-1:1.0: Registered Formosa21 eHome Infrared Transceiver on usb5:2
[ 34.829899] usbcore: registered new interface driver mceusb
[ 188.436615] mceusb 5-1:1.0: suspend
[ 190.677529] mceusb 5-1:1.0: resume
[ 190.678538] PM: resume of drv:mceusb dev:5-1:1.0 complete after 1243.471 msecs

B.T.W Plugging off the receiver from usb port causes the reboot to awake.

Are there any suggestion to me to get the cow flying?
stricher1
Reply
#2
Things have changed with how remotes work in newer kernels and lirc isn't needed to use a remote.

Have you tried not using lirc and only the kernel drivers? This is a guide I used to get my remote working
http://forum.xbmc.org/showthread.php?tid=104541

I'm also thinking that you need to change

echo lirc > /sys/class/rc/rc0/protocols

To

echo lirc rc6 > /sys/class/rc/rc0/protocols
Reply
#3
Hello teeedubb,
You'r the man! Adding the rc6 @ echo lirc rc6 > /sys/class/rc/rc0/protocols made me happy.

Now i can suspend and awake as i wanted - suspending again causes xbmc and computer to crash completely, but that is another sad story - hope new release of xbmc may help

regards
stricher1
Reply
#4
Glad it worked. Maybe restarting xbmc or even x on resume would help with the crashing? I use a hook inside /etc/pm)utils/resume to restart xbmc every time my PC resumes so that my htpc doesn't turn on with the screen saver active.
Reply

Logout Mark Read Team Forum Stats Members Help
[Linux] Ubuntu 12 eden pre 2 harmony wake up from suspend0