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 Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/991858

Title:
  volume keys stop working after brightness keys are used

Status in “gnome-settings-daemon” package in Ubuntu:
  New

Bug description:
  I have this notebook SONY VAIO YB3V1E/S with AMD E-450

  I am running Ubuntu 12.04 LTS (Lubuntu)

  When I first login, I can use the fn+ audio keys on the notebook to
  adjust the volume and mute/umute the audio.

  I get the small visual feedback window and the audio feedback as well.

  But if I use the fn + brightness keys to adjust the brightness, then
  the fn+ audio keys stop working.  The brightness keys continue to
  work.

  If I kill gnome-settings-daemon and start it again, then the fn +
  audio keys start working again until I use the brightness keys again.

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to