[mythtv-users] Powering up hidden FE
Joey Morris
rjmorris at nc.rr.com
Tue Jan 3 03:07:46 UTC 2012
Dale Pontius <DEPontius at edgehp.net> wrote on Mon, Jan 02, 2012 at 09:47:43PM -0500:
> 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.
Yes, sorry. The path I included in my earlier email was from my notes,
which apparently were out of date or wrong. The actual command
executed by my udev rule is:
echo enabled > /sys/devices/pci0000:00/0000:00:1a.2/usb5/5-1/../power/wakeup
Note that I'm not actually typing this path anywhere. udev is giving
it to me. I included it in my earlier email, but for reference here is
my udev rule:
SUBSYSTEM=="usb", ATTRS{idVendor}=="1784", ATTRS{idProduct}=="0008" RUN+="/bin/s
h -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"
I will note that I do have another frontend, also running Ubuntu and
the same kernel as this one, where even with this udev rule I can't
get it to wake from USB. The motherboard manual says it's supported,
and it's enabled in the BIOS. I'm still investigating that one.
More information about the mythtv-users
mailing list