Forum

Full Version: Lenovo USV IR Receiver
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I followed the Wiki tutorial on remote but nothing is displayed with I pushed my remote buttons while running mode2.

Here is the dmesg :
Terminal

...
[ 2.724340] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
[ 2.804309] usb 1-1.2: device descriptor read/64, error -32
[ 3.019144] usb 1-1.2: New USB device found, idVendor=0609, idProduct=0357
[ 3.019172] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.019188] usb 1-1.2: Product: WMC RECEIVER Emulator Device 2009
[ 3.019200] usb 1-1.2: Manufacturer: SMK CORPORATION
[ 3.019212] usb 1-1.2: SerialNumber: PA110322165856F
[ 3.114350] usb 1-1.3: new low-speed USB device number 5 using dwc_otg
[ 3.219723] usb 1-1.3: New USB device found, idVendor=046d, idProduct=c012
[ 3.219750] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.219765] usb 1-1.3: Product: USB-PS/2 Optical Mouse
[ 3.219778] usb 1-1.3: Manufacturer: Logitech
[ 3.226559] input: Logitech USB-PS/2 Optical Mouse as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/input/input0
[ 3.227056] hid-generic 0003:046D:C012.0001: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-bcm2708_usb-1.3/input0
...

Isn't it suppose to create an input like my mouse???
Can you check if you can find some info on the internet about what modules you need.
Ok work a bit on it using that thread:
http://forum.xbmc.org/showthread.php?tid=136205

Looks like it is using mceusb modules but not in default vendor/product-id recognized by the module.
If I do :
Unplug IR
rmmod mceusb
modprobe mceusb
echo 0609 0357 > /sys/bus/usb/drivers/mceusb/new_id
Replug Device
/etc/init.d/lirc stop
mode2

I see
Terminal

pulse 450
space 450
pulse 450
space 400
pulse 500
space 400
pulse 900
space 450
pulse 500
space 400
pulse 450
space 450
pulse 450
space 400
pulse 550

But I soons as I reboot I need to put the new id again.
And irw donT' output anyhting. But I'm near...

Oh sorry I modified /etc/lirc/hardware.conf before all this, I put back the default one and irw is working now. Just need to find a way to make it work on boot.

Here is the howto (as root) :
1. vi (or nano) /etc/udev/rules.d/95-mceusb.rules
2. Put
Code:
SUBSYSTEM=="usb", ATTR{idVendor}=="0609", ATTR{idProduct}=="0357", RUN="/etc/udev_mceusb.sh"
3. vi /etc/udev_mceusb.sh
4. Put
Code:
#!/bin/sh
modprobe mceusb
echo 0609 0357 > /sys/bus/usb/drivers/mceusb/new_id
5. chmod 755 /etc/udev_mceusb.sh
6. Reboot!

Test with irw after reboot, you should see something like
Terminal
xbian@xbian ~ $ irw
000000008001006a 00 KEY_RIGHT devinput
0000000080010069 00 KEY_LEFT devinput
000000008001006c 00 KEY_DOWN devinput
0000000080010067 00 KEY_UP devinput

Since this is a common IR on ebay (and really cheap, bought mine for 13$) maybe it could be added to mceusb module.
Reference URL's