Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Howto : Hauppauge Remote with v4l drivers (ir-kbd-i2c)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Lorijho
n00b
n00b


Joined: 22 Jul 2003
Posts: 38
Location: Luxembourg

PostPosted: Sun Jun 13, 2004 1:17 pm    Post subject: Howto : Hauppauge Remote with v4l drivers (ir-kbd-i2c) Reply with quote

Hi everyone!

Here follows a mini howto for setting up the Hauppauge remote, bundle with their common TV cards, using the v4l drivers (ir-kbd-i2c).
In 2.6 kernels the modules ir-kbd-i2c and ir-common introduce the possibility to operate the remote control as a keyboard. Newer versions of LIRC support this.

I'm using the following remote, so the howto is written for this particular piece of hardware.
http://www.hauppauge.de/images/remote.jpg

Configuration

Part 1 - The Kernel

This drivers were first introduced with kernel 2.6.2. I'm using gentoo-dev-sources-2.6.5-r1.

We need the following modules:
Code:

Device Drivers  --->
   Input device support  --->
      <*> Event interface
   I2C support  --->
      <M> I2C support
      I2C Algorithms  --->
         <M> I2C PCF 8584 interfaces
   Multimedia devices  --->
      <M> Video For Linux
       Video For Linux  --->
          <M> BT848 Video For Linux   (select the appropriate module for your tv card)


Part2 - LIRC

note: I'm still using lircd because it is widely supported by multimedia apps, though it is not necessary to use lircd!

We need a recent lirc release...
Code:

LIRC_OPTS="--with-driver=any" emerge /app-misc/lirc/lirc-0.7.0_pre4.ebuild

...so lircd supports all drivers or if only dev/input (which is necessary for ir-kdb-i2c) is needed...
Code:

LIRC_OPTS="--with-driver=devinput" emerge /app-misc/lirc/lirc-0.7.0_pre4.ebuild


Next the modules are loaded, be sure to select the appropriate tvcard driver
Code:

modprobe bttv
modprobe ir-kbd-i2c

The ir modules have created a device in /dev/input. To select the right one you have to...
Code:

cat /proc/bus/input/devices

I: Bus=0018 Vendor=0000 Product=0000 Version=0000
N: Name="i2c IR (Hauppauge)"
P: Phys=i2c-0/0-001a/ir0
H: Handlers=event2 kbd
B: EV=100003
B: KEY=c0000 2010804 0 0 0 3 2008000 180 4801 9e0000 7bb80 0 0


Now we can configure lircd to work with ir-kbd-i2c, edit /etc/conf.d/lircd...
Code:

LIRCD_OPTS="-H dev/input -d /dev/input/event2"


The last step consists of adapting /etc/lircd.conf, i have configured it to only consider the Hauppauge remote buttons...
Code:

begin remote
        name hauppauge-input-layer
        begin codes
                        1               0x1004f
                        2               0x10050
                        3               0x10051
                        4               0x1004b
                        5               0x1004c
                        6               0x1004d
                        7               0x10047
                        8               0x10048
                        9               0x10049
                        0               0x10052
                        TV              0x10179
                        RADIO           0x10074
                        CH+             0x10192
                        CH-             0x10193
                        VOL+            0x10073
                        VOL-            0x10072
                        FULL_SCREEN     0x1008b
                        MUTE            0x10071
                        SOURCE          0x1016b
                        RESERVED        0x100d9
                        MINIMIZE        0x1008e
        end codes
end remote




Finally start lircd...
Code:

/etc/init.d/lircd start


Feel free to ask or suggest related stuff! Like I already mentionned this howto covers only the Hauppage remote but tweaks for other remotes are most welcome, so post them !
I hope some people can benfit from this small howto.
Back to top
View user's profile Send private message
sklettke
Guru
Guru


Joined: 05 Nov 2002
Posts: 352
Location: Madison, WI

PostPosted: Sun Jun 13, 2004 4:53 pm    Post subject: Reply with quote

Thanks for the how to. I'm using the grey remote that came with the pvr-250. I have bttv and ir-kbd-i2c loaded but when running cat /proc/bus/input/devices, the only devices listed are my keyboard and mouse.

I'm thinking about buying a cheap serial port IR receiver from RadioShack and trying that with the same grey remote. Or, what do you know about USB-UIRT? Does this work well with lirc? I do have a serial to USB converter; would linux be able to recognize the receiver through this?

Thanks a lot,
Scott
_________________
Jab.ID: scottk@jabber.org

Kernel: 2.6.11-rc3-nitro0
KDE 3.3.2 with Xorg
MythBox: 2.6.5-gentoo-dev-r2 (LVMed 360GB in XFS; Athlon 2500+)
Back to top
View user's profile Send private message
soulwarrior
Guru
Guru


Joined: 21 Oct 2002
Posts: 331

PostPosted: Mon Jun 14, 2004 7:51 am    Post subject: Re: Howto : Hauppauge Remote with v4l drivers (ir-kbd-i2c) Reply with quote

Lorijho wrote:

The last step consists of adapting /etc/lircd.conf, i have configured it to only consider the Hauppauge remote buttons...


How did you get those codes?
Would need to adapt them to the grey/silver hauppage remote control. The ones from ivtv doesn't seem to work with these driver.
Back to top
View user's profile Send private message
Lorijho
n00b
n00b


Joined: 22 Jul 2003
Posts: 38
Location: Luxembourg

PostPosted: Mon Jun 14, 2004 1:31 pm    Post subject: Reply with quote

@ soulwarrior

Moien Soulwarrior, du bass den éischten Lëtzebuerger deen ech hei untreffen, an et freet mech ze gesin dat linux an virunallem gentoo vun Matbierger "gehackt" get! Wiirklech den Glanz!
Waat mech nach brennend interesséiert as wéi een Mineral Waasser dann daat bescht as vir grëngen Téi zouzebereeden, mat Krunnewaasser schmaacht en wiirklech batter ?!
Fueren ob englesch virun... ;)

Check this lircd.conf , IMHO the buttons of the grey Hauppauge remote are included. A quick query returned OK, Yellow, Green, Blue and Red button.
Back to top
View user's profile Send private message
soulwarrior
Guru
Guru


Joined: 21 Oct 2002
Posts: 331

PostPosted: Mon Jun 14, 2004 8:33 pm    Post subject: Reply with quote

Lorijho wrote:
@ soulwarrior

Moien Soulwarrior, du bass den éischten Lëtzebuerger deen ech hei untreffen, an et freet mech ze gesin dat linux an virunallem gentoo vun Matbierger "gehackt" get! Wiirklech den Glanz!
Waat mech nach brennend interesséiert as wéi een Mineral Waasser dann daat bescht as vir grëngen Téi zouzebereeden, mat Krunnewaasser schmaacht en wiirklech batter ?!
Fueren ob englesch virun... ;)


Du bass den zweeten Letzebuerger, denn ech hei utreffen ;)
Dem aneren Letzebuerger sein Nick ass "e-nigma".
Ma dat ass "Spa Reine", misst en ziemlech iwerall am Land kreien, ass dat Mineralwasser mat denen weinegsten Mineralien: 33mg/L. An den Tei schmacht domader wirklech am beschten.


Lorijho wrote:

Check this lircd.conf , IMHO the buttons of the grey Hauppauge remote are included. A quick query returned OK, Yellow, Green, Blue and Red button.


I tried it out and it seems to work; there is some actions when I press the keys on the remote but not the way I was used to on kernel-2.4 with lircd. So I guess I have only to map the remote keys to the action I want on mythtv.
I had hoped somebody did already do this work for the grey hauppage command ;)
Back to top
View user's profile Send private message
sklettke
Guru
Guru


Joined: 05 Nov 2002
Posts: 352
Location: Madison, WI

PostPosted: Mon Jun 14, 2004 9:28 pm    Post subject: Reply with quote

For anyone wondering, this is how I got the grey pvr-250 remote to work as a remote the standard way and as a keyboard with ir-kbd-i2c:
http://forums.gentoo.org/viewtopic.php?p=1241746#1241746

Scott
_________________
Jab.ID: scottk@jabber.org

Kernel: 2.6.11-rc3-nitro0
KDE 3.3.2 with Xorg
MythBox: 2.6.5-gentoo-dev-r2 (LVMed 360GB in XFS; Athlon 2500+)
Back to top
View user's profile Send private message
djdavethewave
n00b
n00b


Joined: 22 Dec 2004
Posts: 7

PostPosted: Thu Dec 23, 2004 2:09 am    Post subject: remote control handled as a keyboard Reply with quote

My remote control doesn't work with the i2c and event interface stuff compiled into the kernel.

Result(?):
Code:
cat /proc/bus/input/devices

...gives me the following result:

cat /proc/bus/input/devices
I: Bus=0011 Vendor=0002 Product=0006 Version=0071
N: Name="ImExPS/2 Logitech Explorer Mouse"
P: Phys=isa0060/serio1/input0
H: Handlers=mouse0
B: EV=7
B: KEY=1f0000 0 0 0 0 0 0 0 0
B: REL=103

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
H: Handlers=kbd
B: EV=120003
B: KEY=4 2000000 3802078 f840d001 f2ffffdf ffefffff ffffffff fffffffe
B: LED=7

I: Bus=0018 Vendor=0000 Product=0000 Version=0000
N: Name="i2c IR (Hauppauge)"
P: Phys=i2c-0/0-0018/ir0
H: Handlers=kbd
B: EV=100003
B: KEY=c0000 2010804 0 0 0 3 2008000 180 4801 9e0000 7bb80 0 0



So if I press "1" on the remote control and another window is activated, a "1" appears - asremote control if I had pressed the key on the keyboard. What is logical to me because it has the same Handler (=kdbd)
All (rc) keys which are not recognized by my keyboard settings are ignored, so for example channel+ channel- tv fullscreen etc.

Any idea how to fix this? Does someone probably know how to tell my gentoo what to do if a "key on the keyboard" (which is actually on the remote control) is pressed?[/i][/code]

I would be very happy if anyone could help me!
Thanks, David
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum