By Date: <-- -->
By Thread: <-- -->

Get xawtv to use remote - OT



Dave M G,
	Given this is really a LIRC configuration problem, not a "Linux and
Kernel Video" problem, I'd suggest that the lirc mailing list is the better
place for your query....

Lirc list page:
 https://lists.sourceforge.net/lists/listinfo/lirc-list

Now going off-topic.....

So, since I'm on both lists, here's some more info for you.....

Lirc is a "translator", it listens for signals and converts them to button
codes/names (and vice versa if sending infrared).  It then has to do
something with those codes (like send them to an application, or execute an
application, etc), and this it's not yet doing in your system as you haven't
told it how.
You've got it suggessfully listening to the remote (since it's able to tell
you the names it's given to each of the buttons) - that's the first half.
You need to tell it where to send those button codes, and what each of them
actually is supposed to do.

In my configuration (which I believe is fairly typical); /etc/lircd.conf
contains the configuration for 'lircd' the first half of the above; and
/etc/lircrc (or ~/.lircrc) contains the configuration for getting the second
half done.

Since your lircd.conf seems to work, I'll skip that part, but your
/etc/lircrc (or ~/.lircrc) should contain something like the following
extract (from mine)....
....
        Begin
	  # sends simulated right arrow keyboard press to current window
                button = right    <- this is the lirc button name that is
shown in irw
                prog = irxevent   <- this is the application that you want
to send event to
                config = Key Right CurrentWindow <- this is the parameters
you want to pass to the above application
        end
        begin
        # 
                button = tv_onoff  <-- this is the lirc button name that is
shown in irw
                prog = irexec      <-- this is the application that you want
to send event to
                repeat = 0         <-- there are a number of optional extra
things you can put in the lircrc file
                config = /run/this/command  <- this is the parameters you
want to pass to the above application
        end
....

Since you are using xawtv, and you mentioned 'xawtv-remote', I'm guessing
you want to put xawtv-remote in your 'prog = ...' section, and put it's
parameters (like maybe 'setstation next' as an example) in the 'config = '
section.  I googled xawtv-remote, and got this page, which has all the
parameters for xawtv-remote:
http://linux.about.com/library/cmd/blcmdl1_xawtv-remote.htm

Best of luck.
Buzz.
  

> -----Original Message-----
> From: video4linux-list-bounces (at) redhat.com 
> [mailto:video4linux-list-bounces (at) redhat.com] On Behalf Of Dave M G
> Sent: Thursday, 18 May 2006 6:55 PM
> To: video4linux-list (at) redhat.com
> Subject: Get xawtv to use remote
> 
> Video4Linux,
> 
> I came to this web site via the Xaw TV web site, because that 
> web site said it handled discussion here. I'm hoping I can 
> get a little help with my Xawtv set up, and if I'm lucky with 
> my remote as well.
> 
> I have in my computer a Hauppage PVR-150 TV tuner card. I 
> have successfully set it up so that I can see TV signals in 
> Xawtv. I had to install a more recent version of Xawtv than 
> what was in the repositories, because apparently only the new 
> version handles IVTV correctly. Xawtv seems to be, at the 
> moment, the only option for TV signals for my hardware and OS set up.
> 
> I have succeeded in mapping all the Japanese broadcast 
> channels as well.
> 
> The next step is to set up LIRC to be able to use the remote 
> that comes with the Hauppauge card. This is where I have hit a wall.
> 
> I have been able to get the latest version of LIRC installed 
> and running.
> 
> At the command prompt, when I run "irw" and press buttons on 
> my remote, I get the following output:
> 0000000000001781 00 1 Hauppauge_350
> 0000000000001782 00 2 Hauppauge_350
> 0000000000001783 00 3 Hauppauge_350
> 0000000000001784 00 4 Hauppauge_350
> 0000000000001785 00 5 Hauppauge_350
> 00000000000017a5 00 OK Hauppauge_350
> 
> As you can see, it is correctly identifying the buttons, 
> although mis-identifying the card as a PVR-350. So the remote works.
> 
> But how to configure the remote to do the following has 
> proven beyond me, despite reading the instructions on the 
> LIRC web site:
> 
> 1. Correctly identify the remote control as a Hauppauge_150 
> (This may not be critical, as the buttons reported from "irw" 
> do match the buttons pressed on the remote),
> 
> 2. Be able to change channels in Xawtv. I have not been able 
> to find instructions on the web which clearly specify how to 
> do this. By searching the web I have discovered that there is 
> a program called xawtv-remote, but running it simultaneously 
> with xawtv has produced no results, I suspect because I have 
> not properly configured the remote for use with the program.
> 
> 3. Have LIRC, running at boot time so that pressing some 
> button on the remote can do specific tasks, such as start and 
> stop programs like xawtv.
> 
> I have come across a command called "irrecord". This should 
> theoretically allow me to configure my remote so that I can 
> specify what buttons do what commands.
> 
> But when I try to run it, I get errors:
> dave (at) homebase:~$ irrecord hauppauge_150
> irrecord -  application for recording IR-codes for usage with 
> lirc Copyright (C) 1998,1999 Christoph Bartelmus(lirc (at) bartelmus.de)
> irrecord: could not open /dev/lirc
> irrecord: default_init(): Permission denied
> irrecord: could not init hardware (lircd running ? --> close it, check
> permissions)
> 
> If "lircd" is already running, what is it doing?
> 
> Any advice is much appreciated. Thank you for taking the time 
> to read this.
> 
> --
> Dave M G
> 
> --
> video4linux-list mailing list
> Unsubscribe 
> mailto:video4linux-list-request (at) redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/video4linux-list
> 


--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request (at) redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list