https://wiki.archlinux.org/api.php?action=feedcontributions&user=L0co&feedformat=atomArchWiki - User contributions [en]2024-03-28T16:17:23ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=X10&diff=171915X102011-12-01T22:56:04Z<p>L0co: additional keys on newer medicon x10</p>
<hr />
<div>[[Category:Other hardware (English)]]<br />
{{i18n|X10}}<br />
<br />
X10 is a radio remote compatible with [[LIRC]]<br />
<br />
== Install LIRC ==<br />
<br />
# pacman -S lirc lirc-utils<br />
<br />
The package ''lirc'' provides the right kernel module.<br />
<br />
==Blacklist not working module==<br />
<br />
For some reason udev loads the wrong kernel module for this radio remote, so you need to blacklist it. This is done in {{filename|/etc/modprobe.d/}}<br />
<br />
Errors in dmesg with the wrong module:<br />
ati_remote 1-1.1:1.0: Unknown input from channel 0x00: data 72,9d<br />
ati_remote: Weird data, len=5 20 fa 5b 65 b6 20 ...<br />
ati_remote: Weird data, len=5 20 fa db 5d b6 00 ...<br />
<br />
To blacklist the module create the following file:<br />
{{file|name=/etc/modprobe.d/remote_blacklist.conf|content=<br />
# For some reason udev loads the wrong kernel module for the X10 radio remote, so blacklist it<br />
blacklist ati_remote<br />
}}<br />
<br />
You need to unload the wrong kernel module manually if you attached the receiver before blacklisting the module.<br />
<br />
Add the daemon to the daemons array to start it at boot:<br />
DAEMONS="(... lircd)"<br />
<br />
== Create /etc/lirc/lircd.conf ==<br />
This maps the keys from your remote to strings you can use for programs like mplayer.<br />
<br />
It can automatically generated or copied from one of the provided examples in {{filename|/usr/share/lirc/remotes}}. <br />
<br />
To generate your own lircd.conf use:<br />
<br />
sudo irrecord -H atilibusb --disable-namespace lircd.conf<br />
<br />
More details are available at [[LIRC#Making_a_configuration_file]].<br />
<br />
Here is one for a Medion X10 Remote:<br />
<pre><br />
# Please make this file available to others<br />
# by sending it to <lirc@bartelmus.de><br />
#<br />
# this config file was automatically generated<br />
# using lirc-0.8.2(default) on Sun Aug 12 02:13:30 2007<br />
#<br />
# contributed by Ben Adler @ gmx dot net<br />
#<br />
# brand: Medion / X10 (part of http://www.medion.de/md8824/)<br />
# remote control: RF Vista Remote Control (OR24V)<br />
# P/N: 2003 5335<br />
# devices being controlled by this remote: USB RF remote receiver (CM20E), P/N 2003 1776<br />
<br />
begin remote<br />
<br />
name Medion_X10<br />
bits 16<br />
eps 30<br />
aeps 100<br />
<br />
one 0 0<br />
zero 0 0<br />
pre_data_bits 8<br />
pre_data 0x14<br />
post_data_bits 16<br />
post_data 0x0<br />
gap 227978<br />
toggle_bit_mask 0x80800000<br />
<br />
begin codes<br />
red 0x87B2<br />
yellow 0x0934<br />
blue 0x8AB5<br />
green 0x0833<br />
power 0xD702<br />
text 0xEB16<br />
tvrecord 0x6D98<br />
disc 0xD904<br />
table 0x86B1<br />
tvplay 0xF11C<br />
back 0x75A0<br />
info 0x042F<br />
volume_up 0x5E89<br />
volume_down 0xDD08<br />
mute 0x5580<br />
channel_up 0xE00B<br />
channel_down 0x618C<br />
cursor_up 0xEF1A<br />
cursor_down 0x77A2<br />
cursor_left 0xF21D<br />
cursor_right 0x749F<br />
ok 0xF31E<br />
start 0x709B<br />
track_previous 0xF621<br />
track_next 0x78A3<br />
record 0xFC27<br />
pause 0x7EA9<br />
stop 0xFD28<br />
seek_backward 0x79A4<br />
play 0xFA25<br />
seek_forward 0x7BA6<br />
1 0xE20D<br />
2 0x638E<br />
3 0xE40F<br />
4 0x6590<br />
5 0xE611<br />
6 0x6792<br />
7 0xE813<br />
8 0x6994<br />
9 0xEA15<br />
0 0x6C97<br />
asterisk 0x0C37<br />
hash 0x8DB8<br />
clear 0x0530<br />
enter 0x8BB6<br />
photo 0x5A85<br />
music 0xDB06<br />
video 0x82AD<br />
end codes<br />
<br />
end remote<br />
</pre><br />
<br />
== Edit /etc/conf.d/lircd.conf ==<br />
<br />
Recent versions of LIRC drop support for the lirc_atiusb kernel module and so it is now necessary to use the atilibusb driver.<br />
<br />
Simply add "atilibusb" to the LIRC_DRIVER field so that the file looks like this:<br />
# Parameters for lirc daemon<br />
#<br />
<br />
LIRC_DEVICE="/dev/lirc0"<br />
LIRC_DRIVER="atilibusb"<br />
LIRC_EXTRAOPTS=""<br />
LIRC_CONFIGFILE=""<br />
<br />
<br />
== Starting lircd ==<br />
# /etc/rc.d/lircd start<br />
<br />
== Example mplayer config ==<br />
<br />
You need to remove --disable-lirc from mplayers PKGBUILD and recompile it, as it is disabled by default (04.02.09)<br />
<br />
You can check if LIRC support is compiled in with "mplayer -v someplayablefile.xyz", look for "Setting up LIRC support.<br />
<br />
{{filename|~/.lircrc}} is the default mplayer filename for the LIRC config, see man mplayer to change this.<br />
<br />
Change in {{filename|~/.lircrc}}:<br />
<pre><br />
begin<br />
button = VOLUME_UP #VOLUME_UP is the string defined in /etc/lirc/lircd.conf<br />
prog = mplayer <br />
config = volume 1 #this is mplayers internal command, see "mplayer -input cmdlist" for more<br />
end<br />
<br />
begin<br />
button = VOLUME_DOWN<br />
prog = mplayer<br />
config = volume -1<br />
end<br />
<br />
begin<br />
button = RIGHT<br />
prog = mplayer<br />
config = seek +1<br />
end<br />
<br />
begin<br />
button = LEFT<br />
prog = mplayer<br />
config = seek -1<br />
end<br />
<br />
begin<br />
button = UP<br />
prog = mplayer<br />
config = seek +50<br />
end<br />
<br />
begin<br />
button = DOWN<br />
prog = mplayer<br />
config = seek -50<br />
end<br />
<br />
begin<br />
button = PLAY<br />
prog = mplayer<br />
config = pause<br />
end<br />
<br />
begin<br />
button = PAUSE<br />
prog = mplayer<br />
config = pause <br />
end<br />
#show elapse/total time in the upper left corner<br />
#Source: http://prasinos.eu/articles/mplayer-lirc-elapsed-time<br />
begin<br />
button = GUIDE<br />
prog = mplayer<br />
config = osd_show_property_text "${time_pos} / ${length}"<br />
end<br />
</pre><br />
<br />
==Boxee (and XBMC)==<br />
Information about how to get the X10 remote control working in Boxee and XBMC is available: [[Boxee-source#LIRC_Remote_Controls]]</div>L0co