Mute shortcut problem...
Andre Rodovalho
andre.rodovalho at gmail.com
Mon Apr 28 16:36:31 UTC 2014
I made it: https://bugs.launchpad.net/ubuntu/+source/alsa-utils/+bug/1313813
You guys can now click "affects me"...
2014-04-28 11:18 GMT-03:00 Andre Rodovalho <andre.rodovalho at gmail.com>:
> Hello guys! I found that this bug is language related/dependent. I
> installed an pure english system and I got no problems with this shortcut.
> After some tests I installed Portuguese language package, and now, shortcut
> is buggy again...
>
> I have no idea why those things are related... I will fill a bug report
> and post here the link ASAP, so this way you can click "affects me"...
>
>
> 2014-04-25 21:52 GMT-03:00 Andre Rodovalho <andre.rodovalho at gmail.com>:
>
> Using three action inside the keybind tag I could reproduce the same
>> effect a bash script can do. I prefer this way cause I don't need to worry
>> about an aditional file...
>>
>> <keybind key="XF86AudioMute">
>> *<action name="Execute">*
>> <command>amixer -c 1 -q sset Master toggle</command>
>> </action>
>> *<action name="Execute">*
>> <command>amixer -c 1 -q sset Speaker unmute</command>
>> </action>
>> *<action name="Execute">*
>> <command>amixer -c 1 -q sset Headphone unmute</command>
>> </action>
>> </keybind>
>>
>>
>> 2014-04-25 21:10 GMT-03:00 Israel <israeldahl at gmail.com>:
>>
>>> Hi,
>>> This is really nice!
>>> You can easily make a script for this command.
>>> simply save it in a text file with
>>> #!/bin/bash on top
>>> i.e.
>>>
>>> #!/bin/bash
>>>
>>> amixer -c 1 -q sset Master toggle && amixer -c 1 -q sset Speaker unmute
>>> && amixer -c 1 -q sset Headphone unmute
>>>
>>> then you can try using that in openbox (assuiming you named your text
>>> file file_name.sh)
>>> <command>./file_name.sh </command>
>>> If that wont work you can use bash
>>> <command>/bin/bash file_name.sh</command>
>>>
>>> Oh, don't forget to mark the script as executable!!
>>>
>>>
>>> On 04/25/2014 10:59 AM, Andre Rodovalho wrote:
>>>
>>> See, on this link, there is screenshots of the process I'm describing
>>> for you guys...
>>>
>>>
>>> http://kurtis319.blogspot.com.br/2013/01/sound-on-aspire-one-725-and-ubuntu-1210.html
>>>
>>>
>>> 2014-04-25 12:53 GMT-03:00 Andre Rodovalho <andre.rodovalho at gmail.com>:
>>>
>>>> To see the controls of your audio card you can use *alsamixer*. Just
>>>> call it on *lxterminal* and select the one you might want to test with
>>>> F6 key... On the F6 "selection window" you will see an ID for each audio
>>>> card followed by it's description...
>>>>
>>>> On another lxterminal window you can try those commands and test it
>>>> out, to see how does it change on alsamixer view!
>>>>
>>>>
>>>> 2014-04-25 12:47 GMT-03:00 Andre Rodovalho <andre.rodovalho at gmail.com>:
>>>>
>>>>
>>>> The shorcut file is ~/.config/openbox/lubuntu-rc.*xml*
>>>>> or */home/USER_DIR/openbox/*lubuntu-rc.*xml*
>>>>>
>>>>> It is not possible to use the ' character. You will get an error
>>>>> message if you do. I tried:
>>>>>
>>>>> uxterm -e 'amixer -c 1 -q sset Master toggle && amixer -c 1 -q sset
>>>>> Speaker unmute && amixer -c 1 -q sset Headphone unmute'
>>>>>
>>>>> But this returns the error message, just file the && did. The
>>>>> problem is you can't put those characters there, I guess it's a fault on
>>>>> the openbox xml processor.
>>>>>
>>>>> You can try your changes by the command:
>>>>>
>>>>> $ *openbox --restart*
>>>>>
>>>>> When you do, you can get the shortcuts to work without restarting
>>>>> the system!
>>>>>
>>>>>
>>>>> 2014-04-25 10:56 GMT-03:00 John Hupp <lubuntu at prpcompany.com>:
>>>>>
>>>>> On 4/24/2014 10:48 PM, Andre Rodovalho wrote:
>>>>>>
>>>>>> Now I made it (last message, I promis)
>>>>>>
>>>>>> My entry on lubuntu-rc.xml:
>>>>>>
>>>>>> <keybind key="XF86AudioMute">
>>>>>> <action name="Execute">
>>>>>> <command>amixer -c 1 -q sset Master toggle</command>
>>>>>> </action>
>>>>>> <action name="Execute">
>>>>>> <command>amixer -c 1 -q sset Speaker unmute</command>
>>>>>> </action>
>>>>>> <action name="Execute">
>>>>>> <command>amixer -c 1 -q sset Headphone unmute</command>
>>>>>> </action>
>>>>>> </keybind>
>>>>>>
>>>>>>
>>>>>> "-c 1" is to select a diferent audio card, so I guess most people
>>>>>> won't need it. I suppose the standard is "-c 0"
>>>>>>
>>>>>>
>>>>>> 2014-04-24 23:41 GMT-03:00 Israel <israeldahl at gmail.com>:
>>>>>>
>>>>>>>
>>>>>>> On 04/24/2014 09:34 PM, Andre Rodovalho wrote:
>>>>>>>
>>>>>>> Actually, I found that the best command is:
>>>>>>>
>>>>>>> $ amixer -c 1 -q sset Master toggle && amixer -c 1 -q sset Speaker
>>>>>>> unmute && amixer -c 1 -q sset Headphone unmute
>>>>>>>
>>>>>>> I guess it will need a shell script, because I'm having problems to
>>>>>>> get all these commands to work on lubuntu-rc.xml file. && I supose are not
>>>>>>> allowed!
>>>>>>>
>>>>>>>
>>>>>>> 2014-04-24 23:08 GMT-03:00 Andre Rodovalho <
>>>>>>> andre.rodovalho at gmail.com>:
>>>>>>>
>>>>>>>> The problem consists on the mute shortcut, that might behave like
>>>>>>>> a toggle button, but actually, only mutes, and you need to use the volume
>>>>>>>> control on "tray" to unmute!
>>>>>>>>
>>>>>>>> I have seen this problem occuring since I met Lubuntu. I don't
>>>>>>>> know if this affects everyone, but lately I spent some time to figure it
>>>>>>>> out. Here is where I got the "solution":
>>>>>>>> http://ubuntuforums.org/showthread.php?t=1796713
>>>>>>>>
>>>>>>>> What I found is that I can solve this issue changing the shortcut
>>>>>>>> command on ~/.config/openbox/lubuntu-rc.xml
>>>>>>>>
>>>>>>>> Original: amixer -q sset Master toggle
>>>>>>>> Modified: amixer -q sset Master toggle && amixer -q sset Speaker
>>>>>>>> toggle && amixer -q sset Headphone toggle
>>>>>>>>
>>>>>>>> This makes toggle mute to work like should be...
>>>>>>>>
>>>>>>>
>>>>>>> That is fantastic!
>>>>>>>
>>>>>>>
>>>>>> I haven't tried it yet, but thank you for working up this solution!
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>>
>>> --
>>> Regards
>>>
>>>
>>> --
>>> Lubuntu-users mailing list
>>> Lubuntu-users at lists.ubuntu.com
>>> Modify settings or unsubscribe at:
>>> https://lists.ubuntu.com/mailman/listinfo/lubuntu-users
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/lubuntu-users/attachments/20140428/342813f9/attachment-0001.html>
More information about the Lubuntu-users
mailing list