Ich hab schon einige Zeit gesucht wie ich alle Tasten meiner Zotac Fernbedienung nutzen kann.
[Blocked Image: http://techreport.com/r.x/zotac-zbox-nano/remote.jpg]
Die Ferni wird wie folgt erkannt:
Das Problem läst sich mit einer gepatchten LIRC Version lösen: (getestet mit Ubuntu 12.10. / 12.04. Kernel 3.5 & 3.17.4 / XBMC Frodo / Gotham)
*** Wichtig für yaVDR > 0.5 ***
für yaVDR ist dieser Thread hier zu beachten:
Ist wenig verwunderlich - das ist ein dummes HID-Gerät...
Es gibt einen Würgaround über lirc:
PHILIPS MCE USB IR Receiver- Spinel plus: Nicht alle Tasten funktionieren
Major references:
http://ben.periton.co.uk/2012/…otac-zbox-remote-control/
Note: I had some frustrating issues with the Howto above, so i'll provide the same version with some important mentions and corrections
http://forum.xbmc.org/showthread.php?tid=133071&page=2
Follow carefully theses steps:
Plug the external USB IR receiver
If "LIRC" is already installed
, uninstall it:
Nachtrag: Bei installierten LIRC bsp.: von yaVDR muss der Befehl 2x abgesetzt werden
IMPORTANT TO AVOID ISSUES: Ensure the original LIRC init script does not exist:
Install some requirements:
Nachtrag: im FernetMenta GIT gibt es eine neuere Version die noch sudo apt-get install make help2man pkg-config erfordert
IMPORTANT TO AVOID ISSUES: Avoid the kernel from loading the module "ite_cir" that manages the internal IR
Note: On some systems (i had the case under Xubuntu 12.04) if you don't do that you may go in great troubles with latency and crazy repeating keys when using the remote.
Edit "/etc/modprobe.d/blacklist.conf" and add the following line at the end of the file:
Download and extract Fermenta's LIRC:
wget https://github.com/FernetMenta/lirc/tarball/master -O lirc.tar.gz
tar -xvf lirc.tar.gz
cd <EXTRACTED DIR>
Configure and install, when running setup.sh, select driver zotac under usb, save & configure:
Nachtrag: Ich bekomme das neue LIRC leider nicht gebaut. make install wird bei mir nicht erfolgreich ausgeführt.
Es werden zwar die neuen Dateien kopiert, LIRC aber nicht installiert.
Das ist aber soweit kein Problem da die neuen Dateien lircrcd, lircd und lircmd trotzdem erzeugt werden und funktionieren.
Hier zum Querlesen eine andere herangehensweise für yaVDR: http://www.vdr-portal.de/board…2-plus-mit-fernbedienung/
Create links in /usr/sbin:
Set LIRC to launch at system startup (with good options) :
Create "/etc/udev/rules.d/85-xbmc.rules":
#Remote Control
SUBSYSTEM=="usb" , ATTRS{idVendor}=="0471", ATTRS{idProduct}=="20cc", SYMLINK+="remote", ACTION=="add", RUN+="/sbin/initctl --quiet emit --no-wait ir-ready"
Nachtrag: bei neueren Kernel >3.5.x muss SUBSYSTEM=="usbmisc" eingesetzt werden (bei mir geht es nur so unter Kernel 3.17.4)
Create "/etc/init/lirc.conf":
description "lirc"
emits "lirc-ready"
expect fork
start on (remote-filesystems
and local-filesystems
and started rsyslog
and ir-ready)
stop on runlevel [!2345]
pre-start script
while [ ! -e /dev/remote ]
do
sleep 1
done
mkdir /var/run/lirc
end script
exec /usr/local/sbin/lircd --driver=zotac --device=/dev/remote
post-start script
ln -s /var/run/lirc/lircd /dev/lircd
end script
post-stop script
rm /dev/lircd
rm -rf /var/run/lirc
end script
Display More
Stop X11 from registering the device as a keyboard:
*** IMPORTANT REMARK ***
Xorg upgrades will break this!
In case you later upgrade your system, you really should ensure the file "/usr/share/X11/xorg.conf.d/10-evdev.conf" hasn't been overwritten.
If it has been overwritten, simply re-do the step bellow. (if you don't you will go in troubles)
Edit "/usr/share/X11/xorg.conf.d/10-evdev.conf" and add the following section at the beginning of the file:
Section "InputClass"
Identifier "PHILIPS MCE USB IR Receiver- Spinel plus"
MatchProduct "PHILIPS MCE USB IR Receiver- Spinel plus"
MatchIsKeyboard "true"
Option "Ignore" "true"
EndSection
Configure several files as follow:
Replace "/etc/lirc/hardware.conf":
# hardware.conf for Zotac
#
REMOTE="Zotac MCE Remote"
REMOTE_MODULES=""
REMOTE_DRIVER="zotac"
REMOTE_DEVICE="/dev/remote"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="zotac/lircd.conf"
REMOTE_LIRCD_ARGS=""
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
START_LIRCD="true"
LOAD_MODULES="true"
LIRCMD_CONF=""
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""
Display More
Replace "/etc/lirc/lircd.conf":
# Please make this file available to others
# by sending it to
#
# this config file was automatically generated
# using lirc-0.9.1-git(zotac) on Mon Apr 2 14:10:29 2012
#
# contributed by
#
# brand: zotac.conf
# model no. of remote control:
# devices being controlled by this remote:
#
begin remote
name zotac.conf
bits 32
eps 30
aeps 100
one 0 0
zero 0 0
gap 100123
min_repeat 9
# suppress_repeat 9
# uncomment to suppress unwanted repeats
# toggle_bit_mask 0x7004F
begin codes
KEY_SLEEP 0x00010082
KEY_WAKEUP 0x00010083
KEY_RECORD 0x000C00B2
KEY_PAUSE 0x000C00B1
KEY_STOP 0x000C00B7
KEY_REWIND 0x000C00B4
KEY_PLAY 0x000C00B0
KEY_FORWARD 0x000C00B3
KEY_LEFTSHIFT 0x000C00B6
KEY_RIGHTSHIFT 0x000C00B5
KEY_BACK 0x000C0224
KEY_INFO 0x000C0209
KEY_MENU 0xFFBC000D
KEY_UP 0x00070052
KEY_LEFT 0x00070050
KEY_RIGHT 0x0007004F
KEY_DOWN 0x00070051
KEY_OK 0x00070028
KEY_VOLUMEUP 0x000C00E9
KEY_VOLUMEDOWN 0x000C00EA
KEY_MUTE 0x000C00E2
KEY_CHANNELUP 0x000C009C
KEY_CHANNELDOWN 0x000C009D
KEY_1 0x0007001E
KEY_2 0x0007001F
KEY_3 0x00070020
KEY_4 0x00070021
KEY_5 0x00070022
KEY_6 0x00070023
KEY_7 0x00070024
KEY_8 0x00070025
KEY_9 0x00070026
KEY_0 0x00070027
KEY_NUMERIC_STAR 0x10070025
KEY_NUMERIC_POUND 0x10070020
KEY_CLEAR 0x00070029
KEY_TEXT 0xFFBC005A
KEY_TITLE 0x000C008D
KEY_ENTER 0x00070028
KEY_RED 0xFFBC005B
KEY_GREEN 0xFFBC005C
KEY_YELLOW 0xFFBC005D
KEY_BLUE 0xFFBC005E
end codes
end remote
Display More
Create "~/.xbmc/userdata/Lircmap.xml" as your XBMC user:
<lircmap>
<remote device="zotac.conf">
<power>KEY_SLEEP</power>
<wake>KEY_WAKEUP</wake>
<record>KEY_RECORD</record>
<pause>KEY_PAUSE</pause>
<stop>KEY_STOP</stop>
<reverse>KEY_REWIND</reverse>
<play>KEY_PLAY</play>
<forward>KEY_FORWARD</forward>
<skipminus>KEY_LEFTSHIFT</skipminus>
<skipplus>KEY_RIGHTSHIFT</skipplus>
<back>KEY_BACK</back>
<info>KEY_INFO</info>
<start>KEY_MENU</start>
<up>KEY_UP</up>
<left>KEY_LEFT</left>
<right>KEY_RIGHT</right>
<down>KEY_DOWN</down>
<select>KEY_OK</select>
<volumeplus>KEY_VOLUMEUP</volumeplus>
<volumeminus>KEY_VOLUMEDOWN</volumeminus>
<mute>KEY_MUTE</mute>
<up>KEY_CHANNELUP</up>
<down>KEY_CHANNELDOWN</down>
<zero>KEY_0</zero>
<one>KEY_1</one>
<two>KEY_2</two>
<three>KEY_3</three>
<four>KEY_4</four>
<five>KEY_5</five>
<six>KEY_6</six>
<seven>KEY_7</seven>
<eight>KEY_8</eight>
<nine>KEY_9</nine>
<red>KEY_RED</red>
<green>KEY_GREEN</green>
<yellow>KEY_YELLOW</yellow>
<blue>KEY_BLUE</blue>
<star>KEY_NUMERIC_STAR</star>
<hash>KEY_NUMERIC_POUND</hash>
<subtitle>KEY_TEXT</subtitle>
<title>KEY_TITLE</title>
<clear>KEY_CLEAR</clear>
</remote>
</lircmap>
Display More
REBOOT
And finally test your remote control, everything should be working like a charm!
Quelle: http://youresuchageek.blogspot…nfig-howto-for-linux.html
Und hier der Thread dazu: http://forum.xbmc.org/showthread.php?tid=133071