From: <fre...@km...> - 2004-03-29 20:24:58
|
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Freevo Wiki" for change notification. The following page has been changed by 69.196.182.170: http://freevo.sourceforge.net/cgi-bin/moin.cgi/DocumentationPage_2fSupportedHardware The comment on the change is: ati remote configuration without lirc ------------------------------------------------------------------------------ @@ -90,7 +90,8 @@ === ATI USB Remote === This remote is absolutely great. It is USB and has it's own receiver. However, it is an RF (radio frequency) receiver, as oppoased to an infrared receiver. There is a third-party hack to let it work with LIRC until support for this remote is included into the LIRC main branch. Here is how to get it working: -==== Requirements ==== +==== Installation Method One: Install using LIRC ==== +===== Requirements ===== 1. Linux system running devfs 2. Kernel source for your running kernel, located at '/usr/src/linux' (NOTE: This kernel source must have had at least 'make dep' run in it, so that the proper header files, etc. have been generated). 3. 'lirc-0.6.6' (or greater) from [http://lirc.sourceforge.net] @@ -98,7 +99,7 @@ 5. OPTIONAL: While in the CVS for 'ati_remote', you can grab the 'lircd.conf', but I have never had any luck getting it working; I have had to always generate my own. Your mileage may vary. 6. UPDATE: The lirc_usb.c is no longer available from either CVS or alternate sources (googled). The Gatos people seems to have integrated everything inte just one source file. Compliling the single source file ati_remote.c and running "insmod ati_remote.o" works. You just have to remember to recompile kernel with "input" and "USB" support. -==== Compilation ==== +===== Compilation ===== '''METHOD ONE:''' lirc is not already installed 1. Untar and uncompress 'lirc-0.6.6.tar.[gz|bz2]' 2. Copy 'lirc_usb.c' into one of the driver directories, and rename it to the same as whatever 'lirc_*.c' already exists in there. For example, if you copy into the 'drivers/lirc_sir' directory, you would rename the 'lirc_usb.c' file to 'lirc_sir.c' (This will overwrite the existing file 'lirc_*.c' file in the directrory) @@ -115,20 +116,68 @@ 5. Copy 'lirc_usb.o' to the '/lib/modules/<kernel_version>/misc' directory 6. Run 'depmod -a' -==== Configuration ==== +===== Configuration ===== 1. Load the module: 'modprobe lirc_usb debug=1' 2. Generate an 'lircd.conf' file for the remote: 'irrecord -d /dev/usb/remote0' (follow the instructions from 'irrecord') 3. Copy the resulting file to '/etc/lircd.conf' 4. Run '~freevo/helpers lircd2lircrc.pl' to generate an 'lircrc' file from your 'lircd.conf' file, that you can then put into '/etc/freevo' 5. Edit '/etc/freevo/lircrc' to change the name of some of the Freevo events to what Freevo is looking for, so as to have the remote work properly (refer to Freevo's sample 'lircrc' file for this) -==== Loading and Running ==== +===== Loading and Running ===== 1. Load the module: 'modprobe lirc_usb debug=1' 2. Start lirc: 'lircd -d /dev/usb/remote0 /etc/lircd.conf' 3. Confirm the remote is working properly by running 'irw' and pressing a few buttons Congratulations! You now have a working ATI USB remote for use with Freevo! - + +==== Installation Method Two: Without LIRC ==== + +===== Tutorial / Tutoriel ===== + +Follow the instructions on this page: http://remotew.free.fr/linux_en.htm + +Note: It is important to use ''xmodmap'' as suggested to configure keycodes + +Les mêmes instructions mais en français: http://remotew.free.fr/linux_fr.htm + +NB: Utilisez ''xmodmap'' commme les instructions suggèrent pour configurer les touches de votre manette. + +===== Check that it works ===== + +1. Use ''xev'' to verify funcitonality. This also gives you keycodes. See tutorial above. +2. If no output seen in ''xev'', the ''su'' to ''root'', and then run the following: + +|| This is the expected output || +|| . || +|| # lsmod | grep ati || +|| ati_remote 6424 0 (unused) || +|| input 5664 0 [ati_remote keybdev mousedev hid] || +|| usbcore 72992 1 [ati_remote hid printer usb-uhci] || + +3. If you are like me, you will discover that nothing showed up. Now check if the module 'hid' is loaded: + +|| This is the expected output || +|| . || +|| # lsmod | grep hid || +|| hid 20900 0 (unused) || +|| input 5664 0 [ati_remote keybdev mousedev hid] || +|| usbcore 72992 1 [ati_remote hid printer usb-uhci] || + +4. Again, if you are like, you will discover that ''hid'' is not installed either. Probably somewhere around this point you will realize that you do not have anything in ''/dev/input/mice'' The simple solution is to simply type the following: + +|| # modprobe hid || +|| # modprobe ati_remote || + +And voila, it will work. + +5. You do not want to do this everytime you load X, so a file called ''remote'' in the ''/etc/X11/xinit.d/'' directory with the follwing contents: + +|| modprobe hid || +|| modprobe ati_radeon || + +6. Finally, make this file executable by typing ''# chmod a+x /etc/X11/xinit.d/remote''. + + == Drives == These are devices that might require different setup than standard CR-ROM or DVD-ROM drives. |