Resume from standby running XBMCFREAK Eden Beta 3
#1
so I have a new SSD hard drive and I just installed XbmcFreaks Eden Beta3 and my resume from standby is not working. I have done the following

Enabled my USB Ports
Code:
xbmc@xbmc:~$ cat /proc/acpi/wakeup
Device  S-state   Status   Sysfs node
PS2K      S4    *enabled   pnp:00:09
SMB0      S4    *disabled  pci:0000:00:03.2
[color=red]USB0      S4    *enabled   pci:0000:00:04.0
USB2      S4    *enabled   pci:0000:00:04.1[/color]
US15      S4    *disabled  pci:0000:00:06.0
US12      S4    *disabled  pci:0000:00:06.1
NMAC      S5    *enabled   pci:0000:00:0a.0
PBB0      S4    *disabled  pci:0000:00:09.0
HDAC      S4    *disabled  pci:0000:00:08.0
XVR0      S4    *disabled  pci:0000:00:0c.0
XVR1      S4    *disabled
P0P5      S4    *disabled
P0P6      S4    *disabled  pci:0000:00:15.0
P0P7      S4    *disabled  pci:0000:00:16.0
P0P8      S4    *disabled  pci:0000:00:17.0
P0P9      S4    *disabled  pci:0000:00:18.0
PWRB      S4    *enabled

Checking what USB device my Receiver is plugged into
Code:
xbmc@xbmc:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 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 004 Device 002: ID 0471:0815 Philips (or NXP) eHome Infrared Receiver

xbmc@xbmc:~$ grep 0815 /sys/bus/usb/devices/*/idProduct
/sys/bus/usb/devices/4-1/idProduct:0815

xbmc@xbmc:~$ cat /sys/bus/usb/devices/4-1/power/wakeup
enabled

Edited my /etc/rc.local file
Code:
xbmc@xbmc:~$ cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

echo "USB0" > /proc/acpi/wakeup
echo "USB2" > /proc/acpi/wakeup
echo enabled > /sys/bus/usb/devices/4-1/power/wakeup

exit 0


my usb receiver is getting power once its in S3 sleep mode because when I try and wake it I can see the red light flashing.


any help would be much appreciated


-=Jason=-
Reply
#2
Strange, it looks like you did the same as what I did to get resume from remote working.

Have you tried another usb port? And have you checked that the settings hold after a reboot?
Reply
#3
I tried another USB port and made the same changes, however that port didn't get power. my MOBO only powers one USB port from S3 state.
yes my settings hold after rebooting.

this is very strange

-=Jason=-
Reply
#4
still haven't fixed it... is there some sort of debug log I can post orHuh?

my only option is to leave the HTPC on 24/7 I really don't want to leave it on when I don't have to....


-=Jason=-
Reply
#5
I struggled with the resume as well but eventually got it working. Unfortunately, I don't know exactly what worked. For what it's worth, my Foxconn nt330i worked great with Dharma XBMC-Live until I accidentally overwrote the hdd while playing with Openelec. I installed an Eden beta and could not get the resume to work. Finally, I double checked the BIOS settings for the power states and re-set the BIOS defaults. In addition, I followed the forum advice (basically what is written above) and now the resume works (using xbmcbuntu beta3).
Reply
#6
well I just went into the bois and did a optimal reset on it... then changed my stanby mode from the S1 back to S3... maybe this will help.. I can't test right now because my son is watching "Cars" for the millionth time. but maybe now it will just work.

what is odd is my usb receiver is getting power when in standby, but I can't even wake it by pressing my keyboard. when I press the keyboard or try and send the "toggle power" command my tv screen changes, but it never wakes up.

-=Jason=-

edit: here is my /etc/pm/sleep.d/99lirc-resume script
Code:
xbmc@xbmc:~/.xbmc/addons$ cat /etc/pm/sleep.d/99lirc-resume
#!/bin/bash

#      Copyright (C) 2005-2010 Team XBMC
#      http://www.xbmc.org
#
#  This Program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2, or (at your option)
#  any later version.
#
#  This Program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with XBMC; see the file COPYING.  If not, write to
#  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#  http://www.gnu.org/copyleft/gpl.html

# This script will restart Lirc upon resume.

. /usr/lib/pm-utils/functions

case "$1" in
        hibernate|suspend)
                /etc/init.d/lirc stop
                echo "Unloading lirc kernel modules"
                rmmod ir-lirc-codec
                rmmod lirc_dev
                ;;
        thaw|resume)
                echo "loading lirc kernel modules"
                modprobe ir-lirc-codec
                modprobe lirc_dev
                /etc/init.d/lirc start
                ;;
        *)
                ;;

esac

exit $?

EDIT: after a fresh bios reset it still doesn't work like it should Sad
Reply
#7
Tried removing that lirc script? I use xbmc on a bare bones Ubuntu install and don't recall seeing that file in my sleep.d dir
Reply
#8
no I'll remove the script and see what happens.

the wife and kiddo are using the htpc once again so I can't do it now.

-=Jason=-
Reply

Logout Mark Read Team Forum Stats Members Help
Resume from standby running XBMCFREAK Eden Beta 30