View previous topic :: View next topic |
Author |
Message |
wswartzendruber Veteran
Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Tue Jul 05, 2011 1:38 pm Post subject: |
|
|
I finally got it figured out. I needed RC6, MCE, Keymaps, but not the bridge. _________________ Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP. |
|
Back to top |
|
|
hagar42 n00b
Joined: 17 Jul 2011 Posts: 3
|
Posted: Sun Jul 17, 2011 6:51 pm Post subject: |
|
|
Well I took the plunge and switched to 2.6.38 with lirc-0.9.0.
UPDATE-1: irw is alive and gives events!
The kernel doesn't use "/dev/lirc0" but "/dev/input/by-path/pci-0000\:00\:0b.0-usb-0\:6\:1.0-event" instead!
Maybe this is a udev problem...?
UPDATE-2: /etc/make.conf needs LIRC_DEVICES="devinput", not "userspace" or "mceusb"
===
<s>Its not working. </s>
The kernel config is set to the earlier post with the Philips eHome build as module. I believe that the kernel driver is loaded.
Quote: |
# lsmod
Module Size Used by
mceusb 7999 0
rc_rc6_mce 1048 0
ir_rc6_decoder 1981 0
rc_core 10717 4 mceusb,rc_rc6_mce,ir_rc6_decoder
|
/etc/make.conf has LIRC_DEVICES="userspace"
dmesg shows:
Quote: |
[ 40.620865] IR RC6 protocol handler initialized
[ 40.647026] Registered IR keymap rc-rc6-mce
[ 40.647306] input: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815) as /devices/pci0000:00/0000:00:0b.0/usb2/2-6/2-6:1.0/rc/rc0/input5
[ 40.647430] rc0: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815) as /devices/pci0000:00/0000:00:0b.0/usb2/2-6/2-6:1.0/rc/rc0
[ 40.648158] mceusb 2-6:1.0: Registered Philips eHome Infrared Transceiver on usb2:2
[ 40.648255] usbcore: registered new interface driver mceusb
|
The lircd daemon creates socket /dev/lircd. There is no /dev/lirc0 and lircd doesn't seem to mind.
Quote: |
# ls -l /dev/lir*
lrwxrwxrwx 1 root root 19 Jul 17 11:46 /dev/lircd -> /var/run/lirc/lircd
# ls -l /var/run/lirc
srw-rw-rw- 1 root root 0 Jul 17 11:47 lircd
-rw-r--r-- 1 root root 5 Jul 17 11:47 lircd.pid
|
"irw" does not give any output so maybe lircd isn't talking to the kernel...?
Why is /dev/lirc0 not created? _________________ Hagar - the long road
Last edited by hagar42 on Sun Jul 17, 2011 8:22 pm; edited 1 time in total |
|
Back to top |
|
|
cdstealer Guru
Joined: 30 Oct 2005 Posts: 431 Location: Leeds
|
Posted: Sun Jul 17, 2011 8:03 pm Post subject: |
|
|
Hi Hagar42,
When the device file isn't created, this is a udev issue. I'm running version sys-fs/udev-164-r2. Have you rebooted/restarted udev? _________________ # touch it
touch: cannot touch `it': Permission denied |
|
Back to top |
|
|
hagar42 n00b
Joined: 17 Jul 2011 Posts: 3
|
Posted: Sun Jul 17, 2011 8:28 pm Post subject: |
|
|
cdstealer wrote: | Hi Hagar42,
When the device file isn't created, this is a udev issue. I'm running version sys-fs/udev-164-r2. Have you rebooted/restarted udev? |
Hi cdstealer, thanks for the reply.
Yep, I'm running udev-164-r2. I've reinstalled udev and rebooted and there is no /dev/lirc0.
In the meantime I have found out that using /dev/input/event2 works:
Quote: | ls -al /dev/input/by-path/pci-0000\:00\:0b.0-usb-0\:6\:1.0-event
lrwxrwxrwx 1 root root 9 Jul 17 13:19 /dev/input/by-path/pci-0000:00:0b.0-usb-0:6:1.0-event -> ../event2
|
I wonder if udev confuses this with with a keyboard or something instead of linking it to /dev/lirc0 _________________ Hagar - the long road |
|
Back to top |
|
|
cdstealer Guru
Joined: 30 Oct 2005 Posts: 431 Location: Leeds
|
Posted: Sun Jul 17, 2011 8:52 pm Post subject: |
|
|
That's very very likely. Here's what I have.
# grep IR /var/log/dmesg | grep -v IRQ
lirc_dev: IR Remote Control driver registered, major 252
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR LIRC bridge handler initialized
Registered IR keymap rc-empty
# lsmod
Module Size Used by
mceusb 10737 0
So I have RD5 protocol built in to the kernel and mceusb as a module. Pinning this down maybe a pain in the A due to the error logs or lack there of _________________ # touch it
touch: cannot touch `it': Permission denied |
|
Back to top |
|
|
hagar42 n00b
Joined: 17 Jul 2011 Posts: 3
|
Posted: Sun Jul 17, 2011 9:51 pm Post subject: |
|
|
cdstealer wrote: | That's very very likely. Here's what I have.
# grep IR /var/log/dmesg | grep -v IRQ
lirc_dev: IR Remote Control driver registered, major 252
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR LIRC bridge handler initialized
Registered IR keymap rc-empty
|
irw is working for me now using /dev/input/event2 and a lircd.conf for devinput. Mythtv takes it as well, if I add a mythtv specific .lircrc file.
For me with mceusb there is no difference with or without the RC5 and LIRC bridge kernel options, so I've left them out.
Quote: | # grep IR /var/log/dmesg | grep -v IRQ
[ 1.364757] lirc_dev: IR Remote Control driver registered, major 251
[ 1.364955] IR RC6 protocol handler initialized
[ 2.377074] Registered IR keymap rc-rc6-mce
|
Thanks for the help. _________________ Hagar - the long road |
|
Back to top |
|
|
cdstealer Guru
Joined: 30 Oct 2005 Posts: 431 Location: Leeds
|
Posted: Mon Jul 18, 2011 5:07 am Post subject: |
|
|
ok.. glad it's working _________________ # touch it
touch: cannot touch `it': Permission denied |
|
Back to top |
|
|
John Klug Tux's lil' helper
Joined: 20 Nov 2007 Posts: 75 Location: Minnesota
|
Posted: Thu Jul 28, 2011 6:52 am Post subject: |
|
|
I have Imon Pad remote, and some keys work, and some don't.
For instance, the remote has a button to switch from keyboard to mouse and that works. The arrow keys work (in keyboard mode), and the mouse arrow moves as expected in mouse mode, as well as the left and right mouse buttons.
The ESC key works.
Most of the keys on the remote do not work with irw. For instance (most annoying) play and pause do nothing.
Code: | # grep IR /var/log/dmesg | grep -v IRQ
[ 4.986054] IR NEC protocol handler initialized
[ 5.029377] IR RC5(x) protocol handler initialized
[ 5.042970] IR RC6 protocol handler initialized
[ 5.049481] imon 3-5:1.0: 0xffdc iMON VFD, iMON IR (id 0x24)
[ 5.061423] IR JVC protocol handler initialized
[ 5.077402] IR Sony protocol handler initialized
[ 5.333710] lirc_dev: IR Remote Control driver registered, major 61
[ 5.344027] Registered IR keymap rc-imon-pad
[ 6.029903] IR LIRC bridge handler initialized
[ 6.539023] Registered IR keymap rc-hauppauge
[ 6.539125] input: cx88 IR (pcHDTV HD5500 HDTV) as /devices/pci0000:00/0000:00:08.0/0000:01:08.0/rc/rc1/input7
[ 6.539163] rc1: cx88 IR (pcHDTV HD5500 HDTV) as /devices/pci0000:00/0000:00:08.0/0000:01:08.0/rc/rc1
|
I assume I should try to eliminate most of this stuff first? So I probably only need the "imon" driver and rc_imon_pad. Maybe keep rc_core as well?
I am not quite sure what the last two entries having to do with CX88 are doing there. They don't seem to be associated with a specific IR driver.
I haven't tried mce-usb yet either. I am using 0.9.0 with 2.6.39-gentoo-r3 SMP x86_64. |
|
Back to top |
|
|
karderio n00b
Joined: 17 Feb 2005 Posts: 8
|
|
Back to top |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3509
|
Posted: Tue Aug 30, 2011 12:17 pm Post subject: |
|
|
I've been too busy to make the jump to devinput/in-kernel, and have seen the hints that using lirc may not even be necessary with the in-kernel drivers. That leaves me with a few questions...
1 - Today I map button events to "keys" with (IIRC) ~/.lircd.conf and mythtv maps those "keys" to actions. What does the button mapping look like when using the in-kernel drivers?
2 - Will my button presses start showing up as key presses in an xterm?
3 - Today I also have a suspend script triggered by lirc, activated by the power button on the remote. How would I accomplish that same end with the new in-kernel drivers? I guess I'd need to open the specific input device non-exclusively? (share with others) I've never really coded against devices, only files, and am used to the idea of exclusive access. _________________ .sigs waste space and bandwidth |
|
Back to top |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2508 Location: Silver City, NM
|
Posted: Sat Oct 29, 2011 6:48 am Post subject: |
|
|
I running gentoo-sources-2.6.39-r3. I followed the instructions karderio pointed to here: http://en.gentoo-wiki.com/wiki/Media_Center_Remote_Control
I now have a /dev/lirc0 device that cats garbage when I hit keys on my remote. I can now use my remote (instead of the mousewheel) to scroll Firefox and to scroll through my history in Bash and Zsh with up-arrow and down-arrow when the cursor is over those windows. But ~/.lircrc seems to be ignored and I can't start /etc/init.d/lircd.
What do I need to do next so I can control programs with my remove via ~/.lircrc? Is that still possible? For me, the entire point of getting a remote was so I could control programs that **aren't** under the cursor. I've already got a wireless keyboard and wireless mouse that can deal with the program in the window under the cursor just fine.
Edit: I got it to work! In /etc/make.conf I changed LIRC_DEVICES="mceusb" to LIRC_DEVICES="userspace" and then I re-emerged lirc-0.9.0. I still can't get /etc/init.d/lircd to run but I can run "lircd -d /dev/lirc0" on the command line and then run "irexec -d" and my ~/.lircrc is working again.
Edit: I've even got /etc/init.d/lircd working now. I had added a log command to LIRCD_OPTS and that seemed to be causing lircd to fail to start. I reduced LIRCD_OPTS to "-d /dev/lirc0" and now it works.
Last edited by BitJam on Sat Oct 29, 2011 4:44 pm; edited 1 time in total |
|
Back to top |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3509
|
Posted: Sat Oct 29, 2011 11:57 am Post subject: |
|
|
Thanks for the *bump* on this. Maybe this will get me off my duff, and I'll get my mythfrontend machine "modern" finally one of these days. It's still running 2.6.38-gentoo-r7.
Maybe one of these days nvidia-drivers will work gracefully (direct from portage) with xorg-server-1.11 and kernel-3.x and then the system can really be up-to-date. _________________ .sigs waste space and bandwidth |
|
Back to top |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2508 Location: Silver City, NM
|
Posted: Sat Oct 29, 2011 4:40 pm Post subject: |
|
|
Well, my machine didn't boot on the first try this morning. It looked like there was a kernel panic related to at least one of the new modules I used to enable the remote. It booted okay on the 2nd try but the remote isn't working. The lircd service started up okay and /dev/lirc0 and /dev/lircd and /var/run/lirc/lircd= all exist.
I'm not out of the woods quite yet. |
|
Back to top |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3509
|
Posted: Mon Oct 31, 2011 3:32 pm Post subject: |
|
|
BitJam wrote: |
Edit: I got it to work! In /etc/make.conf I changed LIRC_DEVICES="mceusb" to LIRC_DEVICES="userspace" and then I re-emerged lirc-0.9.0. I still can't get /etc/init.d/lircd to run but I can run "lircd -d /dev/lirc0" on the command line and then run "irexec -d" and my ~/.lircrc is working again.
|
I'm curious where LIRC_DEVICES="userspace" comes from. I would have expected to need LIRC_DEVICES="devinput", but a little searching tells me that "userspace" apparently works better. Yet I find no official LIRC documentation on the option, at least not so far. I could believe it's a Gentoo-ism for building things, except that it appears to confer different function. _________________ .sigs waste space and bandwidth |
|
Back to top |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2508 Location: Silver City, NM
|
Posted: Mon Oct 31, 2011 5:56 pm Post subject: |
|
|
I think I got "userspace" from an Archlinux forum when I was Googling around for a solution. If you Google around you will see that "userspace" is not Gentoo specific. It seems to allow me to use Code: | LIRCD_OPTS="-d /dev/lirc0" |
in /etc/conf.d/lircd. My completely uninformed guess was that it was referring to using a device sitting out in the open in /dev/.
I don't really understand any of this and Gentoo-wiki with the page of instructions I used seems to be down ATM.
BTY, the kernel panics at boot continued so I backed down to an earlier config of Gentoo-2.9.39-r3 which seems stable but is lirc-less. I think the problem was that I enabled too many lirc related modules and they fight during boot and sometimes the booting loses. I plan to disable all lirc related modules except the ones recommended in that guide and try again. I had tried blacklisting all the modules but that didn't seem to help. Don't know why. Maybe I missed some. |
|
Back to top |
|
|
georgia_tech_swagger n00b
Joined: 14 Nov 2007 Posts: 42
|
Posted: Fri Apr 20, 2012 12:34 am Post subject: |
|
|
GENTLEMEN. I come bearing answers!!!!!
The solution is to disable ALL LIRC_DEVICE flags in in /etc/make.conf ... then have ONLY userspace in there. Then it stops failing so !@#$^!E epicly. Regarding kernel config ... I compiled in the entire remote directly. In /etc/conf.d/lircd I have only: LIRCD_OPTS="-d /dev/lirc1"
!#$^!#$^!#$^~!#$*^!e# GETTING THIS WORKING SUCKED MAJORLY.
This is in order: http://www.youtube.com/watch?v=TQXuazYI_YU (skip to 1:35) |
|
Back to top |
|
|
|