Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
remote control
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
allucid
Veteran
Veteran


Joined: 02 Nov 2002
Posts: 1314
Location: atlanta

PostPosted: Sun Feb 06, 2005 11:48 pm    Post subject: remote control Reply with quote

A remote control and usb infrared receiver came with my WinTV XP Pro tv tuner card. I am pretty sure I can get the remote working with lirc. I was wondering if I could get it to work with multiple applications (tvtime, mplayer, xmms, vlc, etc) and also use it to start these applications so I could (for example) start xmms or tvtime from across the room.
Back to top
View user's profile Send private message
misho
Apprentice
Apprentice


Joined: 15 Apr 2004
Posts: 189

PostPosted: Mon Feb 07, 2005 3:28 am    Post subject: Reply with quote

Once you get LIRC working, you can use a program called irexec comes with the lirc package and a ~/.lircrc or /etc/lircrc config file, to execute any command you want. mplayer itself, comes with built in lirc support (which i have never used). The documentation at lirc.org is pretty good at explaining all of this, including how to set up your config files.
_________________
"Pssht. Extreme sports. If you want a real adrenaline rush, go write a physics exam without a calculator." - D.Z.
Back to top
View user's profile Send private message
allucid
Veteran
Veteran


Joined: 02 Nov 2002
Posts: 1314
Location: atlanta

PostPosted: Mon Feb 07, 2005 6:05 am    Post subject: Reply with quote

thanks, I've got it partially working now. I'll have to look into modes later, too.
Back to top
View user's profile Send private message
phsdv
Guru
Guru


Joined: 13 Mar 2005
Posts: 372
Location: Europe

PostPosted: Sun Jul 17, 2005 11:02 am    Post subject: Reply with quote

allucid,

Did you get it working?

This weekend I managed to get LIRC working on my system with this very simple receiver http://www.lirc.org/receivers.html. At the moment I can control xmms with an old Sony remote control. I can also eject disks with help of irexec.

What I am looking for is to stop xmms and start (g)mplayer with this same remote. So I guess I need to define a button on the remote that tells irexec to stop xmms and start mplayer and vica versa. Is that how you did it?

Thanks,
Paul
Back to top
View user's profile Send private message
nightmarez
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2004
Posts: 111
Location: FSV Mainz 05 ;)

PostPosted: Sun Jul 17, 2005 11:57 am    Post subject: Reply with quote

in your ~/.lircrc you can define actions specifically for one application. e.g.:

Code:

begin
               remote = avertv
               button = power
               prog   = xmms
               repeat = 0
               config = QUIT
               flags  = mode
end


so, only if the program is running the action will take effect.
Back to top
View user's profile Send private message
phsdv
Guru
Guru


Joined: 13 Mar 2005
Posts: 372
Location: Europe

PostPosted: Sun Jul 17, 2005 12:08 pm    Post subject: Reply with quote

OK, next question. Can I give multiple commands? ie stop xmms and start mplayer with the same button?

Hmmm, just thinking about it, I could launch a script that checks the current status. If xmms is running it will be stopped and mplayer launched. And next time just the otherway around. The button on the remote would be linked to this script. Would that be the best way to do it?

I would prefere just to leave xmms and mplayer running and only change the mode of the remote. Maybe I have to find a remote that is capable of handling dvd, radio, cd etc. and sends out different codes depending on what you selected on the remote.
Back to top
View user's profile Send private message
nightmarez
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2004
Posts: 111
Location: FSV Mainz 05 ;)

PostPosted: Sun Jul 17, 2005 12:40 pm    Post subject: Reply with quote

phsdv wrote:
Maybe I have to find a remote that is capable of handling dvd, radio, cd etc. and sends out different codes depending on what you selected on the remote.

this would be an option and i would like to know if it works with such a remote control. i use kde und irkick which allows you to set several actions for one button.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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