[BUG] Volume Exceeds 100%
Describe the bug
When I use my volume scroll wheel I can Increase my volume to +infinite
Steps to reproduce
- Scroll volume wheel on the Logitech G915
- get you're ears destroyed
Expected behavior
Volume Cap at 100%
Screenshots
Distribution
EndeavourOS
If Other, specify
No response
Additional context
No response
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
I think of this as a feature, the speaker can handle > 100% volume, I frequently use it. Who decides what 100% output is anyway?
yeah but I frequently ruin my underwear by accidentally hitting that wheel :D
Do you have any idea on how to set a limit?
I will try to replicate it on my system.
#!/bin/sh
current=$(pactl -- get-sink-volume @DEFAULT_SINK@ | awk -F'/' '{print $2}' | sed 's/[^0-9]*//g')
[ $current -lt 95 ] && pactl set-sink-volume 0 +5% || pactl set-sink-volume 0 100%
This works on my system. Edited from: https://www.reddit.com/r/i3wm/comments/ahwb57/pulseaudio_exceeding_100_volume_with_keybindings/
Works on mine using the function keys, and I actually use it as a feature since most of my headphones can handle or sometimes need a higher volume.
I just disabled the wheel with a udev rule.
Hi, You can use wpctl with these commands:
bindel = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+ bindel = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
This limits the volume to 150%. Set the value to 1 to limit it to 100%, or 2 for 200%, etc.