08-23-2017, 12:27 PM
Thank you, this is very usefull !
Below it showed that the range for 'headphone volume' is from 0-63, and for ' speaker volume' 0-31.
On my PB I've changed the values as below. Further I had to add the -c 1 option for selecting the right card.
p.s. I really recommend to NOT set 'headphone volume' to the maximum of 63, it will probably will be way to loud! (i tried till 51, too loud alread!
Below it showed that the range for 'headphone volume' is from 0-63, and for ' speaker volume' 0-31.
Code:
root@pinebook:/etc/acpi# amixer -c 1 sset 'headphone volume' 35
Simple mixer control 'headphone volume',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 63
Mono: 35 [56%]
root@pinebook:/etc/acpi# amixer -c 1 sset 'speaker volume' 35
Simple mixer control 'speaker volume',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 31
Mono: 31 [100%]
On my PB I've changed the values as below. Further I had to add the -c 1 option for selecting the right card.
Code:
#!/bin/bash
case "$1" in
jack/headphone)
case "$3" in
plug)
amixer -c 1 sset 'speaker volume' 0
# amixer -D pulse sset Master 50% not working yet
amixer -c 1 sset 'headphone volume' 35
;;
unplug)
amixer -c 1 sset 'headphone volume' 0
# amixer -D pulse sset Master 50% not working yet
amixer -c 1 sset 'speaker volume' 31
;;
esac
;;
esac
p.s. I really recommend to NOT set 'headphone volume' to the maximum of 63, it will probably will be way to loud! (i tried till 51, too loud alread!