Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] How to get inputlirc with imon running?
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
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Sat Nov 26, 2011 4:57 pm    Post subject: [solved] How to get inputlirc with imon running? Reply with quote

Hi there.

I'm building up an HTCP and have some trouble to get the remote control running. It's a iMON remote. The receiver is built-in in a Chieftech case.

Steps, I have done so far:
lsusb:
Bus 003 Device 003: ID 15c2:0036 SoundGraph Inc. LC16M VFD Display/IR Receiver


cat /proc/bus/input/devices:
I: Bus=0003 Vendor=15c2 Product=0036 Version=0002
N: Name="iMON Panel, Knob and Mouse(15c2:0036)"
P: Phys=usb-0000:00:1d.1-2/input1
S: Sysfs=/devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0/input/input3
U: Uniq=
H: Handlers=kbd mouse1 event3
B: PROP=0
B: EV=100007
B: KEY=10800320 200000200000000 30000 400110000 411000000801 e168000000000 10000002
B: REL=103

I: Bus=0003 Vendor=15c2 Product=0036 Version=0002
N: Name="iMON Remote (15c2:0036)"
P: Phys=usb-0000:00:1d.1-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0/rc/rc0/input4
U: Uniq=
H: Handlers=kbd event4
B: PROP=0
B: EV=100013
B: KEY=1000000 0 0
B: MSC=10


la /dev/input/by-id/:
lrwxrwxrwx 1 root root   9 26. Nov 14:10 usb-15c2_0036-event-if00 -> ../event4
lrwxrwxrwx 1 root root   9 26. Nov 14:10 usb-15c2_0036-event-mouse -> ../event3
lrwxrwxrwx 1 root root   9 26. Nov 14:10 usb-15c2_0036-mouse -> ../mouse1


Ok, the device exists. Now the configuration:
/etc/make.conf:
LIRC_DEVICES="devinput"

-> emerge lirc inputlirc

kernel-3.1.0:
Device Drivers  --->
 <*> Multimedia support  --->
  <*>   Remote Controller adapters  --->
   <M>   SoundGraph iMON Receiver and Display


lsmod:
Module                  Size  Used by
nvidia              12030466  40
imon                   17897  0


-> Now I copied the default config-file from lirc:
Code:
cp /usr/share/lirc/remotes/devinput/lircd.conf.devinput /etc/lirc/lircd.conf


inputlirc-Config:
/etc/conf.d/inputlircd:
INPUTLIRCD_OPTS="-g -m 0 -c -r250 /dev/input/by-id/usb-15c2_0036-*"


created the lirc-Symlink:
Code:
ln -s /dev/lircd /var/run/lirc/lircd


start inputlirc
Code:
/etc/init.d/inputlirc start
irw


And I don't get nothing. Not even one a little output.

Do I have a look into /var/log/messages, I see the following:
tail -f /var/log/messages:
...
Nov 26 17:41:37 localhost kernel: [12652.807932] imon 3-2:1.0: imon_incoming_packet: unknown keypress, code 0x1000ef4
Nov 26 17:41:37 localhost kernel: [12652.847927] imon 3-2:1.0: imon_incoming_packet: unknown keypress, code 0x1000efc
Nov 26 17:41:37 localhost kernel: [12652.919912] imon 3-2:1.0: imon_incoming_packet: unknown keypress, code 0x1000e00
Nov 26 17:41:37 localhost kernel: [12652.959901] imon 3-2:1.0: imon_incoming_packet: unknown keypress, code 0x1000e00
Nov 26 17:41:37 localhost kernel: [12652.999901] imon 3-2:1.0: imon_incoming_packet: unknown keypress, code 0x1000e00
Nov 26 17:41:37 localhost kernel: [12653.031905] imon 3-2:1.0: imon_incoming_packet: unknown keypress, code 0x1000e00
Nov 26 17:41:37 localhost kernel: [12653.071898] imon 3-2:1.0: imon_incoming_packet: unknown keypress, code 0x1000efc
Nov 26 17:41:37 localhost kernel: [12653.111889] imon 3-2:1.0: imon_incoming_packet: unknown keypress, code 0x100f2f6
Nov 26 17:41:37 localhost kernel: [12653.143872] imon 3-2:1.0: imon_incoming_packet: unknown keypress, code 0x100f200
...


If I press the wheel on the remote I can generate thousands of those lines. Means, the remote works. What did I forget to get that thing working?


Last edited by musv on Thu Dec 01, 2011 10:12 am; edited 2 times in total
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Thu Dec 01, 2011 10:07 am    Post subject: Reply with quote

Ok, I found the reason.

I compiled the whole IR stuff fix into the kernel. Only the iMON module I compiled as module to find out or play around with the available modules. For some strange reason I didn't get any signal. When I tried to built the whole stuff as modules, it worked.

-> working kernel config:
Code:

Device Drivers  --->
 <*> Multimedia support  --->
  <M>   Remote Controller adapters  --->
   <M>   SoundGraph iMON Receiver and Display


Maybe I'll check that anytime later, if it works when I compile everything fixed into the kernel and nothing as module.
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Thu Dec 01, 2011 10:12 am    Post subject: Re: [solved] How to get inputlirc with imon running? Reply with quote

me wrote:
inputlirc-Config:
/etc/conf.d/inputlircd:
INPUTLIRCD_OPTS="-g -m 0 -c -r250 /dev/input/by-id/usb-15c2_0036-*"


In almost every tutorial I found, these options were preferred. In my case the wheel on the remote which is responsible to simulate a cursor produced the lines in /var/log/messages. Of course it didn't work within any program. So I removed "-g -m 0" and got my direction key codes.
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