The reason the fn + audio keys don't do anything is that the commands in
~/.config/openbox/lubuntu-rc.xml are lik

           <command>amixer -q sset Master 3%+</command>
          <command>amixer -q sset Master 3%-</command>
          <command>amixer -q sset Master toggle</command>

The problem with this is that amixer can't find anything on my system
with the -c1 option there.

Another problem is taht while toggling master off mutes everything,
toggling it again does not unmute everything.

So, I changed these things in lubuntu-rc.xml to invoke these scripts (I
got some of the ideas from someobody else's post from somewhere else)

volume_up.sh:

#!/bin/bash

CURRENT_STATE=`amixer -c 1 get Master | egrep 'Playback.*?\[o' | egrep
-o '\[o.+\]'`

if [[ $CURRENT_STATE == '[on]' ]]; then
    #amixer -q -c 1 set Master mute
    cd . # just a noop
else
    amixer -q -c 1 set Master unmute
    amixer -q -c 1 set Headphone unmute
    amixer -q -c 1 set Speaker unmute
fi

amixer -q -c 1 sset Master 3dB+ unmute


volume_down.sh:

#!/bin/bash

CURRENT_STATE=`amixer -c 1 get Master | egrep 'Playback.*?\[o' | egrep
-o '\[o.+\]'`

if [[ $CURRENT_STATE == '[on]' ]]; then
    #amixer -q -c 1 set Master mute
    cd . # just a noop
else
    amixer -q -c 1 set Master unmute
    amixer -q -c 1 set Headphone unmute
    amixer -q -c 1 set Speaker unmute
fi

amixer -q -c 1 sset Master 3dB- unmute


toggle_mute.sh:

#!/bin/bash

CURRENT_STATE=`amixer -c 1 get Master | egrep 'Playback.*?\[o' | egrep
-o '\[o.+\]'`

if [[ $CURRENT_STATE == '[on]' ]]; then
    amixer -c 1 set Master mute
else
    amixer -c 1 set Master unmute
    amixer -c 1 set Headphone unmute
    amixer -c 1 set Speaker unmute
fi


% changes iin volume work too, i just like the progression with +/- 3dB better

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/991858

Title:
  volume keys stop working after brightness keys are used

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/991858/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to