Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] lirc and firefly-mini stopped working.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2066
Location: San Jose, CA

PostPosted: Sat Sep 01, 2007 9:24 am    Post subject: [solved] lirc and firefly-mini stopped working. Reply with quote

Final update: I emerge udev which overwrote my custom 10-lirc udev rule. When I regenerated it I used the wrong device (the keyboard device) where the special buttons are on the "mouse" device.

............................................

I don't think I emerged anything, I guess I must have...

But anyway.

I have linux-2.6.22-gentoo-r5, lirc--0.8.2-r1, udev-114-r2 (was 114, tried r2 for the heck of it).

I followed the instructions on this page: http://mythtv.org/wiki/index.php/Snapstream_firefly_mini a long time ago and got it working quite easily.

But now even though everything looks like its working, its not:

If I cat /dev/input/event2 (or the symlink /dev/input/firefly-mini) I get data when keys are pressed on the remote.

And when I check for the lircd daemon:

Code:
ps -ef | grep lirc
root      7317     1  0 02:10 ?        00:00:00 /usr/sbin/lircd --driver=dev/input --device=/dev/input/firefly-mini --output=/dev/lircd /etc/lircd.conf


But if I:

Code:
cat /dev/lircd
cat: /dev/lircd: No such device or address


And if I do an irw I get nothing during key presses.

I've tried older kernel (-r4) older lirc and even a few different ways to specify the input device, nothing makes any difference.

I know the device works because I can press enter in grub and it works.

I've googled, and searched the forums and can't figure it out. Does anyone have any ideas of things to try?

Anything to get me moving forward again would be great.

Raydude

Update 1: I've tried all kinds of versions of all kinds of things and nothing works. 2.6.21-gentoo-r4 kernel, 2.8.1 of lirc, udev-104...

However I have turned on lircd debug and found that the keycodes are changed for the remote and the only keys that register are 0-9, UP, DOWN, LEFT, RIGHT and ENTER (and they are different than what they are supposed to be). The other keys don't register at all. But if lircd is disabled then those keys (0-9,U,D,L,R,E) work as expected under X. Very strange.

What I'm trying to figure out now is how it suddenly changed after a reboot.

Consider this a bump as well.

Update 2: Here are the messages coming from lircd:

Code:
lircd-0.8.1[25465]: lircd(userspace) ready
lircd-0.8.1[25465]: registering local client
lircd-0.8.1[25465]: accepted new client on /dev/lircd
lircd-0.8.1[25465]: initializing '/dev/input/firefly-mini'
lircd-0.8.1[25465]: devinput_rec
lircd-0.8.1[25465]: time 1188756073.411266  type 1  code 2  value 1
lircd-0.8.1[25465]: code 80010002
lircd-0.8.1[25465]: trying "firefly-mini" remote
lircd-0.8.1[25465]: devinput_decode
lircd-0.8.1[25465]: failed "firefly-mini" remote
lircd-0.8.1[25465]: decoding failed for all remotes
lircd-0.8.1[25465]: devinput_rec
lircd-0.8.1[25465]: time 1188756073.411268  type 0  code 0  value 0
lircd-0.8.1[25465]: code 00000000
lircd-0.8.1[25465]: devinput_rec
lircd-0.8.1[25465]: time 1188756073.571241  type 1  code 2  value 0
lircd-0.8.1[25465]: code 00010002
lircd-0.8.1[25465]: trying "firefly-mini" remote
lircd-0.8.1[25465]: devinput_decode
lircd-0.8.1[25465]: failed "firefly-mini" remote
lircd-0.8.1[25465]: decoding failed for all remotes
lircd-0.8.1[25465]: devinput_rec
lircd-0.8.1[25465]: time 1188756073.571244  type 0  code 0  value 0
lircd-0.8.1[25465]: code 00000000
lircd-0.8.1[25465]: removed client
lircd-0.8.1[25465]: closing '/dev/input/firefly-mini'
lircd-0.8.1[25465]: caught signal


Its interesting to note that HID catches the normal keyboard codes, but USB is catching the special keys.

When I press the number "1" on the firefly-mini: I get the above message from lircd and this in HID:

Code:
evbug.c: Event. Dev: usb-0000:00:02.1-2/input0, Type: 0, Code: 0, Value: 0
drivers/hid/hid-core.c: report (size 8) (unnumbered)
drivers/hid/hid-core.c: report 0 (size 8) =  00 00 1e 00 00 00 00 00
hid-debug: input Keyboard.00e0 = 0
hid-debug: input Keyboard.00e1 = 0
hid-debug: input Keyboard.00e2 = 0
hid-debug: input Keyboard.00e3 = 0
hid-debug: input Keyboard.00e4 = 0
hid-debug: input Keyboard.00e5 = 0
hid-debug: input Keyboard.00e6 = 0
hid-debug: input Keyboard.00e7 = 0
hid-debug: input Keyboard.001e = 1
drivers/hid/hid-core.c: report (size 8) (unnumbered)
drivers/hid/hid-core.c: report 0 (size 8) =  00 00 00 00 00 00 00 00
hid-debug: input Keyboard.00e0 = 0
hid-debug: input Keyboard.00e1 = 0
hid-debug: input Keyboard.00e2 = 0
hid-debug: input Keyboard.00e3 = 0
hid-debug: input Keyboard.00e4 = 0
hid-debug: input Keyboard.00e5 = 0
hid-debug: input Keyboard.00e6 = 0
hid-debug: input Keyboard.00e7 = 0
hid-debug: input Keyboard.001e = 0


But when I press the record button I get nothing from lirc.

And this from USB:

Code:
hid-debug: input Consumer.00b2 = 1
evbug.c: Event. Dev: usb-0000:00:02.1-2/input1, Type: 1, Code: 167, Value: 1
evbug.c: Event. Dev: usb-0000:00:02.1-2/input1, Type: 0, Code: 0, Value: 0
drivers/hid/hid-core.c: report (size 3) (numbered)
drivers/hid/hid-core.c: report 3 (size 2) =  00 00
hid-debug: input Consumer.00b2 = 0
evbug.c: Event. Dev: usb-0000:00:02.1-2/input1, Type: 1, Code: 167, Value: 0
evbug.c: Event. Dev: usb-0000:00:02.1-2/input1, Type: 0, Code: 0, Value: 0


Code 167 seems valid, but lirc gets nothing from /dev/input/firefly-mini

Still looking for guidance...

Raydude
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum