dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

[BUG] Volume Exceeds 100%

Open ParadoxLeon opened this issue 11 months ago • 7 comments

Describe the bug

When I use my volume scroll wheel I can Increase my volume to +infinite

Steps to reproduce

  1. Scroll volume wheel on the Logitech G915
  2. get you're ears destroyed

Expected behavior

Volume Cap at 100%

Screenshots

Image

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

ParadoxLeon avatar Apr 04 '25 09:04 ParadoxLeon

I think of this as a feature, the speaker can handle > 100% volume, I frequently use it. Who decides what 100% output is anyway?

Karthik-Dulam avatar Apr 08 '25 04:04 Karthik-Dulam

yeah but I frequently ruin my underwear by accidentally hitting that wheel :D

Do you have any idea on how to set a limit?

ParadoxLeon avatar Apr 08 '25 19:04 ParadoxLeon

I will try to replicate it on my system.

mylinuxforwork avatar Apr 09 '25 15:04 mylinuxforwork

#!/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/

Karthik-Dulam avatar Apr 10 '25 12:04 Karthik-Dulam

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.

Cr4zyG4mr avatar Jun 09 '25 20:06 Cr4zyG4mr

I just disabled the wheel with a udev rule.

ParadoxLeon avatar Jun 11 '25 19:06 ParadoxLeon

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.

didhacktic avatar Oct 26 '25 17:10 didhacktic