Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-09-08 18:05:36

orentsur
Member
Registered: 2021-05-03
Posts: 3

Audio Amplification in XFCE

Hi all, new to the forum but not to Linux or XFCE.  XFCE is my favorite desktop.
One issue which is bugging me is volume level which is always quite low, unless using an app like VLC where it is possible to increase volume within the app.
I noticed that in Cinnamon and Gnome (under audio settings) it is possible to raise volume level above 100%, essentially amplifying system audio.
Unfortunately when using pavucontrol, although it is possible to increase system audio beyond 100%, as soon as I reduce volume with my keyboard, the system volume level reduces and I need to 'slide' the volume up with my mouse to go beyond 100%.

Is there a way to set system 'master' volume beyond 100% as done in, for example, Cinnamon?

Offline

#2 2021-09-08 19:04:39

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 8,020

Re: Audio Amplification in XFCE

Hello and welcome.

Are you using the xfce4-pulseaudio-plugin? It has the capability to increase the volume to 150% (and manage levels between 100 and 150). The one caveat here is that you have to use the slider in the plugin's popup to do that (scrolling on the plugin is still limited to 100%). For more info on this limitation, see: https://gitlab.xfce.org/panel-plugins/x … /issues/12:

For the record, I've implemented it this way on purpose, to prevent accidental increase of volume beyond 100%. Volumes above 100% are accessible via volume slider only. Whilst at >100% volume it is possible to use keyboard shortcuts to decrease the volume, though.
Maximum volume is somewhat arbitrarily set to 150% (afair). There is nothing special about this value other than the fact that higher volume range would make the sliders difficult to use precisely. Also, pulseaudio-mixer is using a similar maximum volume level (153%?).
If other devs have different preferences I'm fine with changing this behaviour. The above is to explain the reasons behind the current implementation.

Offline

#3 2021-09-08 19:26:14

orentsur
Member
Registered: 2021-05-03
Posts: 3

Re: Audio Amplification in XFCE

ToZ wrote:

Hello and welcome.

Are you using the xfce4-pulseaudio-plugin? It has the capability to increase the volume to 150% (and manage levels between 100 and 150). The one caveat here is that you have to use the slider in the plugin's popup to do that (scrolling on the plugin is still limited to 100%). For more info on this limitation, see: https://gitlab.xfce.org/panel-plugins/x … /issues/12:

For the record, I've implemented it this way on purpose, to prevent accidental increase of volume beyond 100%. Volumes above 100% are accessible via volume slider only. Whilst at >100% volume it is possible to use keyboard shortcuts to decrease the volume, though.
Maximum volume is somewhat arbitrarily set to 150% (afair). There is nothing special about this value other than the fact that higher volume range would make the sliders difficult to use precisely. Also, pulseaudio-mixer is using a similar maximum volume level (153%?).
If other devs have different preferences I'm fine with changing this behaviour. The above is to explain the reasons behind the current implementation.

Thanks ToZ!  Yes I am.  I was hoping to find a solution which will allow me to do one of two - a) set a 'master' volume level of, let's say, 150% so in essence audio is amplified (as don in Cinnamon and Gnome) or b) ability to increase volume, using the keyboard, beyond 100%.

Offline

#4 2021-09-08 22:20:38

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 8,020

Re: Audio Amplification in XFCE

Using the keyboard, you can do something like:
Raise the volume by 5%:

pactl set-sink-volume 0 +5%

Lower the volume by 5%:

pactl set-sink-volume 0 +5%

Assign those commands to keyboard shortcuts and it will let you exceed 100%.

Note: you might have to change the sink number (0 from above) to the correct sink from your system. You can also change the increment/decrement amount (5% above) to whatever suits. Available sinks can be viewed with:

pactl list sinks

Offline

#5 2021-09-09 22:32:44

orentsur
Member
Registered: 2021-05-03
Posts: 3

Re: Audio Amplification in XFCE

UPDATE - so, I managed to find a crude but effective workaround.  I am not about to embark on a scripting adventure so I simply combined ToZ's code snippets with an available functionality - Keyboard shortcuts. I got the idea from another page I visited.

Setting --> Keyboard.  Under Keyboard shortcuts, create a new entry. When prompted type in the following command - pactl set-sink-volume 0 +5%.  0 represents the sink ID.  In my case it is 0.  Then assign any keyboard key or combination.  I chose 'Ctrl' + 'Vol Up'.  This now allows me to raise the volume level, well, as high as I chose really.  Obviously one has to be mindful of one's speakers limitations.... ;-).

I hope this proves useful for someone, until the guys at XFCE decide to implement something more elegant...

Thanks again ToZ!

Offline

Board footer

Powered by FluxBB