Em2880/remote
From V4LWiki
Contents |
Source
This tutorial describes how to setup your remote to works with Kaffeine using LinEAK.
Kaffeine is a multimedia-player for KDE.
LinEAK is a utility designed to enable the use and configuration of those special keys on Internet, Easy Access and Multimedia keyboards in Linux.
lineakd is the daemon that listens for incoming key and mouse events.
Installation
Install lineakd :
- Debian & co
sudo aptitude install lineakd
- Gentoo
emerge lineakd
Configuration
Edit lineakkb.def :
sudo gedit /etc/lineakkb.def
Add this in the beginning :
#### Pinnacle PCTV USB Stick Remote #### [PCTV] brandname = "Pinnacle" modelname = "PCTV USB Stick Remote Control" [KEYS] Mute = 160 Lancer = 110 #launch Eteindre = 222 #close Chaine_Precedente = 152 #channel down Stop = 232 Plein_Ecran = 177 #full screen Chaine_Suivante = 233 #channel up VolumeUp = 176 VolumeDown = 174 [END KEYS] [END PCTV] #### END Pinnacle PCTV USB Stick Remote ####
Check if the setup is ok :
lineakd -l
You'll see :
PCTV Pinnacle PCTV USB Stick Remote Control
Create a configuration file (~/.lineak/lineakd.conf) :
lineakd -c PCTV
Edit the configuration file :
gedit ~/.lineak/lineakd.conf
And this parameters :
# LinEAK - Linux support for Easy Access and Internet Keyboards # Copyright (c) 2001,2002, 2003 Sheldon Lee Wen <leewsb@hotmail.com> (Current Maintainer) # and Mark Smulders <Mark@PIRnet.nl> # http://lineak.sourceforge.net # # lineakd configuration file # # example key configuration: # play = "xmms --play-pause" # eject = EAK_EJECT # # Lineakd supports the following modifier keys: # control alt shift mod2 mod3 mod4 mod5 CdromDevice = /dev/cdrom Display_align = center Display_color = 0aff00 Display_font = -adobe-helvetica-bold-r-normal-*-*-240-*-*-p-*-*-* Display_hoffset = 0 Display_plugin = xosd Display_pos = bottom Display_soffset = 1 Display_timeout = 3 isplay_voffset = 50 KeyboardType = PCTV MixerDevice = /dev/mixer Screensaver = conffilename = /home/nico/.lineak/lineakd.conf deffilename = /etc/lineakkb.def keystate_capslock = keystate_numlock = keystate_scrolllock = userdeffile = /home/nico/.lineak/lineakkb.def Mute = "KMIX_MUTE" VolumeDown = "KMIX_VOLDOWN" VolumeUp = "KMIX_VOLUP" Chaine_Precedente = "dcop kaffeine KaffeineIface previous" Chaine_Suivante = "dcop kaffeine KaffeineIface next" Lancer = "dcop kaffeine KaffeineIface play" Eteindre = "dcop kaffeine KaffeineIface quit" Plein_Ecran = "dcop kaffeine KaffeineIface fullscreen" Stop = "dcop kaffeine KaffeineIface stop"
Add lineakd to startup :
- Gnome : Add lineakd & to System->Preferences->Sessions then Startup programs tab.
- KDE : ln -s /usr/bin/lineakd /home/marcus/.kde/Autostart/ into a terminal.
N.B = Fullscreen press record button because the fullscreen one is not active.
Misc information
remote values in hex
41 01
42 02 03 04
42 05 06 07
44 08 09 0a
45 0b 0c 0d
46 47 49 4a 4b
10
11 12 13
14
0f 16 4d
1c 4c 1b
1e 1d 1f
17 18 19 1a
58 48 40
54 4e 4f 5c
