You are not logged in.
Pages: 1
Topic closed
Hy,
I gave up on OSS with my card so i'm have setup ALSA+Pulseadio on my Arch system. I'm folowing wiki on how to setup pulseaudio on my system however i stumbled on this:
and you can change the volume using this script.
#!/bin/bash
device="alsa_output.pci-0000_00_14.2.analog-stereo"
case "$1" in
"up") # increase volume by 1000
pacmd dump | awk --non-decimal-data '$1~/set-sink-volume/{if ($2~/'${device}'/) {if ($3+1000 > 65535) {system ("pactl "$1" '${device}' "65535)} else {system ("pactl "$1" '${device}' "$3+1000)}}}'
;;
"down") # decrease volume by 1000
pacmd dump | awk --non-decimal-data '$1~/set-sink-volume/{if ($2~/'${device}'/) {if ($3-1000 < 0) {system ("pactl "$1" '${device}' "0)} else {system ("pactl "$1" '${device}' "$3-1000)}}}'
;;
"mute") # toggle mute
pacmd dump|awk --non-decimal-data '$1~/set-sink-mute/{if ($2~/'${device}'/) {system ("pactl "$1" '${device}' "($3=="yes"?"no":"yes"))}}'
;;
esac
Where do i need to put this script for multimedia keys to work?
Last edited by tomek@vz (2011-07-10 06:36:12)
For some tasks, the CLI is quicker. That's not elitism nor arrogance, that's just a fact of life.
Offline
Well this is old but just in case someone else stumbles across this problem I would recommend installing xfce4-mixer for volume control and then setting Pulseaudio Mixer for playback. Solved the problem for me at least.
Cheers
Offline
Offline
Pages: 1
Topic closed