[mythtv-users] Powering up hidden FE

Dale Pontius DEPontius at edgehp.net
Tue Jan 3 02:47:43 UTC 2012


On 01/02/2012 04:59 PM, Thomas Boehm wrote:
> Brian J. Murrell wrote:
>> On 11-12-26 10:12 PM, Joey Morris wrote:
>>>
>>>   echo enabled > /sys/devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0/rc/rc0/input4/../power/wakeup
>>
>> This seems to always yield:
>>
>> # echo enabled > /sys/devices/pci0000\:00/0000\:00\:10.1/usb3/3-1/3-1\:1.0/rc/rc0/input10/../power/wakeup
>> bash: echo: write error: Invalid argument
>>
>> for every device I've tried.  :-(
> 
> The path seems to be wrong. Firstly the ".." looks wrong and secondly
> the path on my Ubuntu system looks more like
> 
> /sys/devices/pci0000\:00/0000\:00\:10.1/power/wakeup
> 
> There are no folders called usb* in /sys/devices/pci0000\:00/*/ on my system
> 
> 
> This is how it works on my FE:
> 
> Get the ID of your USB device
> 
> ~# lsusb
> 
> ...
> 
> Bus 003 Device 002: ID 0471:0815 Philips eHome Infrared Receiver
> 
> ...
> 
> Get the port details
> 
> ~# grep 0815 /sys/bus/usb/devices/*/idProduct
> 
> /sys/bus/usb/devices/3-1/idProduct:0815
> 
> In my case it's port 3-1
> 
> Check the state of this port
> 
> ~# cat /sys/bus/usb/devices/3-1/power/wakeup
> 
> disabled
> 
> If it's disabled, add the following into your /etc/rc.local before the
> "exit 0" line
> 
> echo enabled > /sys/bus/usb/devices/3-1/power/wakeup
> 
My system has both paths.  Take a look and you'll see that the stuff in
/sys/bus/usb/devices are all symlinks back to
/sys/devices/pciXXXX:XX/XXXX:XX:XX.X/usb*.

I believe his problem was that he was trying to set "wakeup" in the
input subsystem rather than in the device itself.  Note that you're
setting wakeup in the device, not in the input subsystem.  I believe the
stuff around "rc/rc0/input*" and perhaps a bit before is where he
started going wrong.

Dale



More information about the mythtv-users mailing list