Hama lirc infrared. How to install that ?
Hello,
I did this Code:
apt-get install lirc-svga lirc-x lirc lirc-modules-source cat /etc/lirc/lircd.conf my usb hama http://studentscorner.gr/images/00039704abb.jpg lsusb Bus 002 Device 001: ID 0000:0000 Bus 001 Device 003: ID 147a:e019 Formosa Industrial Computing, Inc. Code:
#UNCONFIGURED # lircd -c ask me for driver, but which one, and whihc config for lirc ? big question. pitty that we dont have a normal mac for drivers. my dmesg: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory NFSD: starting 90-second grace period NET: Registered protocol family 10 lo: Disabled Privacy Extensions eth0: no IPv6 routers present hdh: cdrom_pc_intr: The drive appears confused (ireason = 0x01). Trying to recover by ending request. usb 1-1.1: USB disconnect, address 3 usb 1-1.4: new low speed USB device using ehci_hcd and address 4 usb 1-1.4: configuration #1 chosen from 1 choice input: Formosa Industrial Computin Formosa RC102-809 USB Remot as /class/input/input4 input: USB HID v1.10 Device [Formosa Industrial Computin Formosa RC102-809 USB Remot] on usb-0000:00:1a.7-1.4 cat /proc/bus/usb/devices T: Bus=01 Lev=02 Prnt=02 Port=03 Cnt=01 Dev#= 4 Spd=1.5 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=147a ProdID=e019 Rev= 1.02 S: Manufacturer=Formosa Industrial Computin S: Product=Formosa RC102-809 USB Remot C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=300mA I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=10ms |
The driver you need is probably the USB HID (Human Interface Driver) hiddev driver. You can see this is already loaded in your /proc/bus/usb/devices output.
This means that LIRC can read the commands from the device /dev/usb/hiddev0 (at least that's what it's called on my machine). But you may still have to make up a configuration file. It's a while since I looked at LIRC, so I am not sure exactly what is involved. I believe the DVICO remote is now supported in LIRC, and this also uses hiddev, so maybe you could use that as an example. Edit: I see your driver is called usbhid, not hiddev. Maybe I am out of date on this stuff. Edit2: Apparently hiddev depends on usbhid. You could try manually loading hiddev ('modprobe hiddev' as root) and see what happens. |
Quote:
Code:
modprobe hiddev |
Sorry about my rushed reply to your question. I got a DVICO remote a year or two ago and assumed this was similar.
I get the same message from 'modprobe hiddev' because the module is already built into the kernel. I don't know the reason in your case. Did you compile the kernel yourself? When I plug the device in I get the following dmesg: usb 4-1: new low speed USB device using uhci_hcd and address 3 usb 4-1: configuration #1 chosen from 1 choice hiddev96: USB HID v1.10 Device [DVICO DVICO USB HID Remocon V1.00] on usb-0000:00:1d.2-1 This is kernel 2.6.21.6, and I think things may have changed a bit since I first looked at this. Anyway if I run 'cat /dev/usb/hiddev0' and click the remote buttons I can see the codes printed out on-screen. My understanding is that I can then configure LIRC to read from this device. There is another bunch of device files in /dev/input. You could try reading from those instead while operating the remote. |
Quote:
http://www.linuxquestions.org/questi...d.php?t=567367 Greetings |
Quote:
|
You can certainly try 'modprobe hiddev', along with checking the 'dmesg' output after plugging in the remote.
What kernel are you using now? Do you have its configuration file? You can check the status of the hiddev driver by searching for HIDDEV in there - e.g. $ grep HIDDEV /usr/src/linux/.config Depending on how the kernel was compiled the gzipped config file might also be stored at /proc/config.gz. I'm just guessing here - maybe this driver is not needed at all. |
Quote:
Code:
TCP: Treason uncloaked! Peer 84.6.151.184:9856/57886 shrinks window 777737388:777739803. Repaired. Code:
# lsusb Code:
# uname -r Code:
# grep HIDDEV /usr/src/linux/.config Code:
# grep HIDDEV /usr/src/linux-headers-2.6.20.1-frenchn00b/.config Code:
# modprobe hiddev Code:
# modprobe HIDDEV |
OK, so the hiddev driver is built into the kernel. It's possible the remote is already delivering codes to some device file. To check, try running
$ cat /dev/usb/hiddev0 and clicking some buttons on the remote. If the 'cat' command shows no output try again for the device files in directory /dev/input, /dev/input/event0 and so on. |
Quote:
then Code:
/usb/hiddev0: No such device reboot with irda and try again.... let's cross fingers |
I tried all the events and nothg but keyboard and mouse
Code:
cat /dev/input/event3 nothg too I put and unplug and it says : Quote:
only and cat /dev/input/event3 gives : Quote:
/dev/.udev/db/class@input@input5@event3 /sys/class/input/input5 /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-2/3-2:1.0/input:input5 cat /sys/class/input/input5/name gives the name of the IRDA what should I do now ? good help : http://doc.gwos.org/index.php/Hauppa...ntrolinKubuntu so event3 is my guy Quote:
|
cat /dev/input/event3 wuith pressing key => nothg
And: Code:
sudo /usr/sbin/lircd -H dev/input -d /dev/input/event3 -n gives nothg Quote:
|
Some progresses:
I remove / replug the irda receiver, then: cat /proc/bus/input/devices read the eventXXXXX value (event3) then, Code:
lircd -H dev/input -d /dev/input/event3 -n then I got this message in hte lircd daemon window: Quote:
I can press all keys and nothg So only one single press works to give code 0000 What should I do to let the machine see I press againa and again ... ? thank you !! some progresses a bit |
so, result:
I unplug / replug, then & pressing remote command gives: Code:
# cat /dev/input/event3 pfff :confused: :confused: :( :( :( |
Wow, you have been busy! I'm sure you know more about the problem than I do at this point. It seems you are doing all the right things but no success.
I had another look at what I did to get my USB remote working with lirc-0.7.2., and it is very similar to what you have tried, except with 'dvico' driver instead of 'dev/input'. Doing lircd -H dev/input -d /dev/input/event3 -n looks correct. I don't know if you have already found the tutorial at http://www.linuxtv.org/v4lwiki/index...te_controllers but it would be worth checking the steps described there. Otherwise this situation is quite unfamiliar to me. EDIT: Another thing to try: if you are compiling lirc from source code you can give the flag --enable-debug to ./configure. It looks like the dev/input driver should then print more information. |
Some news...
nothing working: I launched from root from xterm a single line : Code:
killall -e lircd ; for each in $(cat /root/drivers ) ; do killall -e $each ; echo "------$each-----------" ; sleep 1s ; echo $each ; printf " " ; xterm -e "lircd -H $each -d /dev/input/event3 " ; printf "** Not working, enter for next driver? ***" ; read kjklfds ; killall -e lircd ; sleep .5s ; done Code:
alsa_usb |
My guess at this stage is that your remote is operating as an extra USB keyboard. It's possible there are settings in the BIOS for using a USB keyboard that you could play with, maybe in conjunction with 'xev' to see if the X server is capturing any events from the remote. Another poster had the problem that his remote was interfering with the built-in keyboard on his notebook.
I never used a USB keyboard, so I'm not quite sure what to expect. As a last resort you can recompile lirc with the debug option enabled, and even add extra debugging code to the dev/input driver. There is some documentation about the USB input system in directory Documentation/input of the kernel source code (especially input.txt), but I never got my head around this stuff.:confused: |
|
|
Almost working, but stuck to :
Quote:
|
All times are GMT -5. The time now is 06:19 PM. |