Tired of the windows unoperating system, i recently decided to drop it for good
and use Linux and free softwares. I must admit i don't regret this choice for
i've never been so confident in my pc.
My only regret was that my ati remote
control didn't work under this environnement.
I finally succeeded in making
it work by finding a way to emulate the windows ati plugins. That's why i
propose this little tutorial.
1 - INSTALLATION OF THE ATI_REMOTE
You first need to grab the sources at :
go where you have downloaded the file :
uncompress it :
# tar zxvf
go to the created folder :
install the module :
# make install
First, you must
edit the /etc/rc.d/rc.local file and add the following lines if necessary
alias usb-controller usb-ohci
Depending on your distribution, edit /etc/X11/XF86Config or
XF86Config-4 to declare your remote control as a new device :
Identifier "ATI Remote"
Option "Device" "/dev/input/mice"
Again in XF86Config-4 add the following
line in the "ServerLayout" section :
InputDevice "ATI Remote"
If you don't know how to validate these changes, the
easiest (but not sharpest) way
is to reboot your computer.
MAPPING THE REMOTE CONTROL
At this point, your remote should be
recognized as a keyboard by the keybdev module (to test it, just open a shell
and press the "a", "b", "c" ... buttons). Nevertheless, the "play", "Mute" or
"Power" buttons can't work because they aren't identified yet. This problem can
be resolved with xev and xmodmap : xev will identify the keycode of the
unrecognized keys and xmodmap will map them.
If you start xev in a shell
and press the "TV" button, for example, you get the keycode 153 on the third
KeyRelease event, serial 27, synthetic NO, window 0x1c00001,
root 0x6e, subw 0x0, time 2755664947, (-551,664), root:(208,717),
0x10, keycode 153 (keysym 0x0, NoSymbol), same_screen YES,
gives 0 characters: ""
(all the remote control keycodes are listed at
the end of this document)
You can now remap the remote buttons by
creating a .Xmodap file. Here's an extract from the one i've created for xine
(apparently, you cannot attribute two keys such as Ctrl+m to a single keycode,
so i've decided to change some hotkeys in xine) :
keycode 222 =
keycode 168 = Return
keycode 110 = space
keycode 232 = x
keycode 106 = f
26 = e
keycode 166 = w
keycode 233 = Up
keycode 152 = Down
! VOLUME DOWN
keycode 165 = v
keycode 158 = j
NB : the remote control isn't recognized as a new
keyboard but as an extension of the existing one, that's why keys like "a", "b"
,"c" ... which can be found on both should not be modified.
In the case
of a Redhat 7.3 this file is executed at every start if you put it in your home
directory (see /etc/X11/xinit/xinitrc for more details) but i find it more
convenient to edit a script for each software so :
i put the xine script
in my home directory and i call it .xmodmap_xine then, i start xine with the
following command :
xmodmap /$HOME/.xmodmap_xine | xine
leads to start xine with the right button combination (you can put this line in
the desktop shortcut properties).
You can now edit a script for each
application (I also did it for mplayer, xmms and ogle) and, this way, emulate
the ati windows plugins working.
Being the only one with a good dvd
navigation, ogle is very appropriate to using the remote control but its
shortcuts are a bit hard to configure (for more details, try man oglerc and see
the "bindings" section).
REMOTE CONTROL KEYCODES
(from left to
right and up to down)
volume + 158
channel - 99
channel + 105
I hope this little howto will help
people who, like me, were missing this perfect tool for lazy boy under
I repeat it : i am a linux newbie so, if you find mistakes,
incoherences or blasphemous words, just write to me