Archived:Em2880/remote: Difference between revisions

From LinuxTVWiki
Jump to navigation Jump to search
No edit summary
 
m (add remote tutorial)
Line 1: Line 1:
==== Source ====
* [http://doc.ubuntu-fr.org/materiel/pctv_usb_stick_remote Ubuntu-fr] from [http://doc.ubuntu-fr.org/utilisateurs/nico4731 nico4731]
* [http://www.marcushellberg.com/pages/projects/digital-tv-in-linux.php Setting up the remote] from [http://www.marcushellberg.com/pages/about-me.php Marcus Hellberg]

This tutorial describes how to setup your remote to works with [http://kaffeine.sf.net Kaffeine] using [http://lineak.sourceforge.net LinEAK].

==== Installation ====

Install [http://lineak.sourceforge.net/ lineakd] :

* Debian & co

<pre><nowiki>
sudo aptitude install lineakd
</nowiki></pre>

* Gentoo

<pre><nowiki>
emerge lineakd
</nowiki></pre>



==== Configuration ====
Edit '''lineakkb.def''' :
<pre><nowiki>
sudo gedit /etc/lineakkb.def
</nowiki></pre>

Add this in the beginning :
<pre><nowiki>
#### 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 ####
</nowiki></pre>

Check if the setup is ok :
<pre><nowiki>
lineakd -l
</nowiki></pre>

You'll see :
<pre><nowiki>
PCTV Pinnacle PCTV USB Stick Remote Control
</nowiki></pre>

Create a configuration file ('''~/.lineak/lineakd.conf''') :
<pre><nowiki>
lineakd -c PCTV
</nowiki></pre>

Edit the configuration file :
<pre><nowiki>
gedit ~/.lineak/lineakd.conf
</nowiki></pre>

And this parameters :
<pre><nowiki>
# 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"
</nowiki></pre>

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
remote values in hex
<pre>
<pre>

Revision as of 13:38, 3 December 2006

Source

This tutorial describes how to setup your remote to works with Kaffeine using LinEAK.

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