Forum
[PROBLEM] Logitech UltraX Media Remote - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Remotes and CEC support (/forum-26.html)
+--- Thread: [PROBLEM] Logitech UltraX Media Remote (/thread-763.html)

Pages: 1 2


Logitech UltraX Media Remote - zeRo82 - 9th Apr, 2013 06:26 AM

First of all, just to say Hi Smile

I have a little problem configuring above mentioned remote, so I hope that someone can help me.

My Setup:
Raspberry Pi B @ 900 MHZ
Xbian 1.0a5
Logitech UltraX Remote RF remote (link)

With this guide i get no return from mode2

lsusb

Code:
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1058:1110 Western Digital Technologies, Inc.
Bus 001 Device 005: ID 046d:c101 Logitech, Inc. UltraX Media Remote

input/devices

Code:
I: Bus=0003 Vendor=046d Product=c101 Version=0110
N: Name="Logitech USB Receiver"
P: Phys=usb-bcm2708_usb-1.3/input0
S: Sysfs=/devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/input/input0
U: Uniq=
H: Handlers=sysrq kbd event0
B: PROP=0
B: EV=120013
B: KEY=10000 7 ff800000 7ff febeffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=046d Product=c101 Version=0110
N: Name="Logitech USB Receiver"
P: Phys=usb-bcm2708_usb-1.3/input1
S: Sysfs=/devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.1/input/input1
U: Uniq=
H: Handlers=kbd event1
B: PROP=0
B: EV=100013
B: KEY=42c43b0 20d0400 0 0 0 4 1c000 31f8 d0011806 8e0440 0 0 0
B: MSC=10

I understand that remote is shown as usb keyboard, and that I need to configure lirc to recognize remote, but I don't know what exactly I need to change Sad

thanx in advance for help


RE: Logitech UltraX Media Remote - CurlyMo - 9th Apr, 2013 06:31 AM

I have answered someone once on how to do this, please search the forum.


RE: Logitech UltraX Media Remote - zeRo82 - 9th Apr, 2013 11:01 PM

I managed to make it work Smile

Just changed complete hardware.conf, and turned off CEC in xbian. Today remote works flawlessly Smile

And thanks once more


RE: Logitech UltraX Media Remote - CurlyMo - 10th Apr, 2013 04:14 AM

Can you share your config with us?


RE: Logitech UltraX Media Remote - zeRo82 - 11th Apr, 2013 07:06 AM

(10th Apr, 2013 04:14 AM)CurlyMo Wrote:  Can you share your config with us?

gladly Smile

/etc/lirc/hardware.conf

http://pastebin.com/QWM34beW

And I don't know if it matters, I turned off pulse-eight CEC in xbian


RE: Logitech UltraX Media Remote - CurlyMo - 11th Apr, 2013 07:21 AM

Can you try the following on a default Alpha 5 Lirc:
Code:
sudo su
wget -O - https://raw.github.com/xbianonpi/xbian/xbian-beta1/etc/lirc/hardware/logitech_ultrax.conf > /etc/lirc/hardware/logitech_ultrax.conf
wget -O - https://raw.github.com/xbianonpi/xbian/xbian-beta1/etc/lirc/hardware.conf > /etc/lirc/hardware.conf
reboot
Does your remote work out of the box after the reboot?


RE: Logitech UltraX Media Remote - zeRo82 - 12th Apr, 2013 06:28 AM

(11th Apr, 2013 07:21 AM)CurlyMo Wrote:  Can you try the following on a default Alpha 5 Lirc:
Code:
sudo su
wget -O - https://raw.github.com/xbianonpi/xbian/xbian-beta1/etc/lirc/hardware/logitech_ultrax.conf > /etc/lirc/hardware/logitech_ultrax.conf
wget -O - https://raw.github.com/xbianonpi/xbian/xbian-beta1/etc/lirc/hardware.conf > /etc/lirc/hardware.conf
reboot
Does your remote work out of the box after the reboot?

Yep, remote still works.

Only numerical part is unresponsive (no output on "irw"). And that leads to next question: if I want to reconfigure some of my buttons, what I need to do?

for example, i don't use KEY_RECORD, or KEY_RED and I need "Title" command (right mouse click).
Output of my irw:
Code:
000000008001018e 00 KEY_RED devinput
00000000800100a7 00 KEY_RECORD devinput
0000000080010072 00 KEY_VOLUMEDOWN devinput
0000000080010073 00 KEY_VOLUMEUP devinput
0000000080010071 00 KEY_MUTE devinput
0000000080010071 00 KEY_MUTE devinput
Do I need to make my own lircmap.xml?


RE: Logitech UltraX Media Remote - CurlyMo - 12th Apr, 2013 06:32 AM

Can you map your remote with irrecord?


RE: Logitech UltraX Media Remote - zeRo82 - 12th Apr, 2013 07:43 AM

(12th Apr, 2013 06:32 AM)CurlyMo Wrote:  Can you map your remote with irrecord?

I'll try it tomorrow...

I just get this:

Code:
irrecord /home/xbian/remote.conf

irrecord -  application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

irrecord: could not get file information for /dev/lirc0
irrecord: default_init(): No such file or directory
irrecord: could not init hardware (lircd running ? --> close it, check permissions)

I'll try it tomorrow...


RE: Logitech UltraX Media Remote - CurlyMo - 12th Apr, 2013 07:46 AM

Read the advice in the last line Wink


RE: Logitech UltraX Media Remote - zeRo82 - 12th Apr, 2013 05:01 PM

Ok... after a nap, I got following:

Code:
xbian@xbian ~ $ sudo /etc/init.d/lirc stop
[ ok ] Stopping remote control daemon(s): LIRC:.
xbian@xbian ~ $ mode2
mode2: could not get file information for /dev/lirc0
mode2: default_init(): No such file or directory

When I stop lirc, remote is unresponsive, like it should be... but mode2 doesn'n work.

with irrecord (i followed your tutorial) I still have same message Sad

Please advise

little update:
Code:
xbian@xbian ~ $ mode2 --device=/dev/input/by-id/usb-Logitech_USB_Receiver-event-if01
mode2: could not get hardware features
mode2: this device driver does not support the LIRC ioctl interface
mode2: did you mean to use the devinput driver instead of the default driver?
xbian@xbian ~ $



RE: Logitech UltraX Media Remote - CurlyMo - 12th Apr, 2013 05:09 PM

What does this say:
Code:
ls -Al /dev/lirc*



RE: Logitech UltraX Media Remote - zeRo82 - 12th Apr, 2013 06:09 PM

(12th Apr, 2013 05:09 PM)CurlyMo Wrote:  What does this say:
Code:
ls -Al /dev/lirc*

Code:
lrwxrwxrwx 1 root root 21 Apr 12 07:08 /dev/lircd -> ../var/run/lirc/lircd

But... i think i managed to record it with:
Code:
irrecord --driver=devinput --device=/dev/input/by-id/usb-Logitech_USB_Receiver-event-if01 MyRemote

here is after recording:
http://pastebin.com/CPPcMAj8


RE: Logitech UltraX Media Remote - CurlyMo - 12th Apr, 2013 06:15 PM

Now do the following:
Code:
sudo su
wget -O - http://pastebin.com/raw.php?i=CPPcMAj8 > /etc/lirc/remotes/logitech_ultrax.conf
echo 'include "/etc/lirc/remotes/logitech_ultrax.conf"' >> /etc/lirc/lircd.conf
/etc/init.d/lirc restart
Now run irw again and check it's output.


RE: Logitech UltraX Media Remote - zeRo82 - 12th Apr, 2013 06:48 PM

I already done that Smile

I figured out why irw doesn't show output for numerical part:

Logitech UltraX is recognized as 2 input devices, 1 as remote, that I included in hardware.conf, and 2-nd as normal keyboard (up, down, left, right, select). I didn't wanted to move that part, because it works Smile

Numerical part of remote belongs also in that keyboard group Smile (tried "clear" and "enter", both with lirc stopped, and it gives me response.

I'm making now my lircmap.xml, and will post it as soon I'm done