You are not logged in.
Hi
I reinstalled Arch Linux with i3wm and I tried to put some shortcut keys for changing volume level just like before :
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set 'Master' 5%+
bindsym XF86AudioLowerVolume exec --no-startup-id amixer set 'Master' 5%-
bindsym XF86AudioMute exec --no-startup-id amixer set 'Master' mute
I installed both alsa and pulse audio packages and I think I'm using pulse :
[naruto@ArchLinux ~]$ ps aux | grep pulse
naruto 493 0.2 0.3 617000 15168 ? S<sl 17:32 0:03 /usr/bin/pulseaudio --daemonize=no
naruto 1018 0.0 0.0 8996 868 pts/0 S+ 18:05 0:00 grep pulse
I have sound but the problem is I can't change it's volume level with the buttons I put as shortcut in fact when I run "Amixer" command it says that my Speakers fronts are "off", as you can see here:
[naruto@ArchLinux ~]$ amixer
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 65536 [100%] [off]
Front Right: Playback 65536 [100%] [off]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 65536
Front Left: Capture 65536 [100%] [off]
Front Right: Capture 65536 [100%] [off]
Why my fronts are "off" as this "Front Left: Playback 65536 [100%] [off]" and "Front Left: Playback 65536 [100%] [off]" lines shows? is there anyways to turn them "on"? if yes how?
Thanks in advanced
Last edited by Hossein Heydari (2016-09-21 18:13:09)
Offline
If you use pulseaudio make your shortcuts use pulseaudio's tools, find the name of the master sink you want to adjust with
pacmd list-sinks
and then use
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $SINKNAME +5%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $SINKNAME -5%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute $SINKNAME toggle
See that last line as well, the fact that you used mute in your amixer command and that you likely hit the mute button to test, will always mute your outputs and never unmute them, pactl's toggle will do one or the other depending on the current state (amixer has the same toggle parameter, but as said, save yourself the potential headache and just use pulseaudio to control the pulseaudio sink).
Offline
Is there any way yo disable pulse and start using alsa and amixer? I prefer to use Amixer and Asla audio.
Can you help in this case?
Offline
Uninstall the pulseaudio* packages (libpulse packages contain shared libs and should remain) and configure ALSA, according to the wiki... If you don't want to remove pulseaudio completely you can also mask the socket and service
systemctl --user mask pulseaudio.{service,socket}
pulseaudio -k #To kill the server
If you use anything with a hard requirement on pulse (e.g. skype) you should configure apulse
Offline
Thanks! Solved
Offline