LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-17-2008, 05:47 AM   #1
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15
.lircrc and ALSA.


What do I need to put in my .lircrc entries to be able to control ALSA, e.g. mute etc?

At the moment I have the following entry...

Code:
begin
  remote = LiveDrive
  prog = ?
  button = mute
  config = ?
end
Thanks for the help.
 
Old 09-17-2008, 08:22 PM   #2
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Original Poster
Rep: Reputation: 15
OK, I now have the following as my lircrc...

Code:
begin
  remote = LiveDrive
  prog = irexec
  button = mute
  config = dcop kmix Mixer0 toggleMute 0
  repeat = 0
end
begin
  remote = LiveDrive
  prog = irexec
  button = vol+
  config = dcop kmix Mixer0 increaseVolume 0
  repeat = 1
end
begin
  remote = LiveDrive
  prog = irexec
  button = vol-
  config = dcop kmix Mixer0 decreaseVolume 0
  repeat = 1
end
Not working, though.

When I run "dcop kmix Mixer0 <command> 0" from the console, it produces the desired effect.

Running "ircat LiveDrive" from the console prints out the commands defined by config, when the buttons are pressed. e.g. pressing mute prints "dcop kmix Mixer0 toggleMute 0".

And pressing the buttons whilst irw is running gives the following...

"0000000080000040 00 mute LiveDrive"
"0000000080008082 00 vol- LiveDrive"
"0000000080008082 00 vol+ LiveDrive"

Yet still nothing works and I can't understand why.
 
Old 09-17-2008, 08:45 PM   #3
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Original Poster
Rep: Reputation: 15
Turns out it couldn't find dcop for some reason, so I set the full paths and then ran the irexec daemon and now it works.

Code:
begin
  remote = LiveDrive
  prog = irexec
  button = mute
  config = /usr/kde/3.5/bin/dcop kmix Mixer0 toggleMute 0
  repeat = 0
end
begin
  remote = LiveDrive
  prog = irexec
  button = vol+
  config = /usr/kde/3.5/bin/dcop kmix Mixer0 increaseVolume 0
  repeat = 1
end
begin
  remote = LiveDrive
  prog = irexec
  button = vol-
  config = /usr/kde/3.5/bin/dcop kmix Mixer0 decreaseVolume 0
  repeat = 1
end
 
  


Reply

Tags
alsa, lirc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mythtv lircrc - what am i missing? Carpo Slackware 1 09-14-2008 02:35 PM
USB sound card not detected by ALSA but is by lsusb, using alsa 1.0.15 mjkelly93 Linux - Hardware 1 10-20-2007 10:23 AM
kernel-2.6.3 compiled with alsa but xmms alsa output dont plays demmylls Linux - General 3 09-01-2006 04:32 AM
Alsa sound *jumpy*: alsa-space: xrun of at least 11.449 msecs. resetting stream qwijibow Linux - General 6 04-22-2006 07:35 PM
broke gentoo after installing alsa-driver & alsa-utils snakeo2 Linux - Newbie 1 01-26-2006 08:05 AM


All times are GMT -5. The time now is 01:55 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration