No resume form standby with vista remote after 2.6.32-23 #37 Kernel version

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
alanwww1 Offline
Team-XBMC Member
Posts: 1,299
Joined: Nov 2008
Reputation: 31
Location: Hungary
Post: #171
CASHMON3Y Wrote:For some reason I just cant change the /proc/acpi/wakeup file. Ive tried echo-ing it, but then when I cat the file its not there. Ive tried just opening it in Nano, but as soon as I save and cat it its gone again. Im running XBMC Live Dharma final on a Zotac MAG with an MCE reciever. It works to put it in standby, but when I hit the power button the LED just stays lit on the reciever and nothing happens. Ideas?

You can change it if you actually go into super-user mode:

Code:
sudo su

After that type the echo commands.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
CASHMON3Y Offline
Donor
Posts: 396
Joined: Sep 2008
Reputation: 14
Location: Detroit, MI
Post: #172
alanwww1 Wrote:You can change it if you actually go into super-user mode:

Code:
sudo su

After that type the echo commands.
Already tried that. Same outcome, it just doesn't "stay". I echo it in, says it worked, then I cat the file and its not there. Ive even tried changed one that is in there to enabled, saved it in nano, then reopened it and its gone. Im installing XBMCFreak 10.00 now and ill post if it works under that. Then if not its back to Windows
find quote
KidKiwi Online
Posting Freak
Posts: 792
Joined: May 2007
Reputation: 0
Post: #173
alanwww1 Wrote:
Code:
sudo nano /etc/udev/rules.d/90-mcewakeup.rules

Put this there, of course changing the vendor and product ids.

Code:
# enable wake from S3 for MCE USB device 0471:0815
SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", ATTRS{idProduct}=="0815" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"

Alanwww1 - Thx very muchly for providing this fix. I have been spending part of my Xmas break upgrading to a newer version of LIVE - only to find much has changed - and all the fixes I detailed in my install guide didn't work.

Thankfully, this resolved my remote issue. So I humbly bow to you sir. Thx for taking the time to detail it here.

ZOTAC IONITX-D-E Intel Atom N330 Dual Core 1.6 GHz NVIDIA ION with LIVE on SSD
find quote
KidKiwi Online
Posting Freak
Posts: 792
Joined: May 2007
Reputation: 0
Post: #174
Oops...spoke too soon. Seems that after resuming from suspend, the remote stops working. I've been reading all arvo about lirc stopping and starting etc, I have installed a script to combat this and still NOTHING!

Any suggestions?

I running xbmc 10 with 2.6.35-24 kernel.

ZOTAC IONITX-D-E Intel Atom N330 Dual Core 1.6 GHz NVIDIA ION with LIVE on SSD
find quote
darkscout Offline
Posting Freak
Posts: 2,148
Joined: Jul 2008
Reputation: 12
Post: #175
My script does this:
stops lirc.
stops lirc on xbmc (xbmc-send)

starts lirc.
starts lirc on xbmc

[Image: aeKO.jpeg]
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
find quote
KidKiwi Online
Posting Freak
Posts: 792
Joined: May 2007
Reputation: 0
Post: #176
darkscout Wrote:My script does this:
stops lirc.
stops lirc on xbmc (xbmc-send)

starts lirc.
starts lirc on xbmc

HI - were you actually replying to me?? If so, what script and where can it be found?

ZOTAC IONITX-D-E Intel Atom N330 Dual Core 1.6 GHz NVIDIA ION with LIVE on SSD
find quote
KidKiwi Online
Posting Freak
Posts: 792
Joined: May 2007
Reputation: 0
Post: #177
Okay...seems like I got it to work (fingers crossed Laugh).

I used this...
Code:
sudo dpkg-reconfigure lirc

Then selected

Code:
Remote Control Configuration: Windows Media Center Transciever/Remotes (All)

AND

Code:
IR transmitter: Microsoft Windows Media Center V2 (usb) - Direct TV Reciever

Suddenly it is working. Don't figure. Not sure if anything else I did had any bearing on this. Wish I knew how to undo all of it so I could figure WHICH steps solved the problem.

ZOTAC IONITX-D-E Intel Atom N330 Dual Core 1.6 GHz NVIDIA ION with LIVE on SSD
find quote
mianos Offline
Junior Member
Posts: 1
Joined: Jan 2011
Reputation: 0
Post: #178
alanwww1 Wrote:G
Has anyone got a solution how to find the USBx number which we need to enable for the device at /proc/acpi/wakeup ? In XBMC Live Luigi is using command lshal. But as we don't have HAL installed (at least on my minimal Maverick system) and i really don't want to install that (slows down boot) we have to find another solution. So any idea is welcome.

Here you go, this should work out the ACPI device from the USB device ID.
It should also work where there are multiple device IDs but different vendors.
(ie. 0001 gets used a few times).

Code:
USB_DEVICE="062a:0818"
ID_PRODUCT=`echo $USB_DEVICE | cut -d: -f2`
ID_VENDOR=`echo $USB_DEVICE | cut -d: -f1`

for dev in `grep -l $ID_VENDOR /sys/bus/usb/devices/*/idVendor`
do
        devicedir=`dirname $dev`
        if grep -q $ID_PRODUCT $devicedir/idProduct
        then
                echo enabled > $devicedir/power/wakeup
                devnode=`cd "$devicedir"; /bin/pwd | cut -d/ -f5`
                acpinode=`grep $devnode /proc/acpi/wakeup | cut -f1`
                echo $acpinode > /proc/acpi/wakeup

        fi
done
(This post was last modified: 2011-01-12 03:05 by mianos.)
find quote
pennant Offline
Member
Posts: 63
Joined: Jun 2010
Reputation: 0
Post: #179
I used Shadow_Mx's solution to get my remote to suspend/resume on Xbmcfreak maverick beta 3. However, occasionally I need to press the power button on my MCE remote *twice* to get the machine to suspend. I press it once and the screen goes black but XBMC immediately reappears. I press the remote again and it suspends normally. Any ideas?
find quote
clock2113 Offline
Fan
Posts: 636
Joined: Feb 2007
Reputation: 0
Location: XBMC+Unraid=Happy!
Post: #180
Wow, this thread is long!

So what's the simplest solution to fix no resume-from-USB (everything else suspend-wise/remote-wise is working) on this system:

Ubuntu 10.04
kernel: 2.6.32-33-generic-pae

Just I just downgrade the kernel a version? Worried that might mess up other things...

XBMC: XBMCbuntu 12.0, with Transparency!
17.5 TB Unraid Server: 2500 movies, 8800 episodes of TV Apps: SABnzbd, Sickbeard, Couchpotato, mySQL
HTPC: E6500, mAtx, 210GT
Watching on: Sony 32" Bravia with lowend Sony 5.1 HTIB
find quote
Post Reply