Volume adjustment step.

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
zloe

Volume adjustment step.

Post by zloe »

Hello!
I google it for two days and finally gave up.
How to change volume adjustment step for volume keys?
I set up custom shortcuts (e.g. pactl set-sink-volume 1 +1%) but it really ugly workaround.
Is any way to change step in built-in functions?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
ALF13

Re: Volume adjustment step.

Post by ALF13 »

Why would you need that ? Just curious.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Volume adjustment step.

Post by Cosmo. »

To my knowledge there is no adjustment configurable.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Volume adjustment step.

Post by Flemur »

You could try amixer:
http://www.commandlinefu.com/commands/using/amixer
Can increment in db or integer (HW value, I think, typically 0 to 31), and percent (maybe?).

I have these hooked up my numberpad +/- keys:

Code: Select all

amixer sset Master,0 1+
amixer sset Master,0 1- 
Edit: You can find the limits of the integer value like this:
amixer get Master

Code: Select all

Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 31 [100%] [0.00dB] [on]
  Front Right: Playback 31 [100%] [0.00dB] [on]
So the lowest increment is "1", which is about 3% or 1.5db:

Code: Select all

  Front Left: Playback 30 [97%] [-1.50dB] [on]
  Front Right: Playback 30 [97%] [-1.50dB] [on]
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
zloe

Re: Volume adjustment step.

Post by zloe »

ALF13 wrote:Why would you need that ? Just curious.
5% is too much for my speakers. 1% is just fine :)
ALF13

Re: Volume adjustment step.

Post by ALF13 »

zloe wrote:
ALF13 wrote:Why would you need that ? Just curious.
5% is too much for my speakers. 1% is just fine :)
I see. :)
kevjonesin

Re: Volume adjustment step.

Post by kevjonesin »

Tue Feb 09, 2016 5:15 pm Flemur posted:
I have these hooked up my numberpad +/- keys:

Code: Select all

amixer sset Master,0 1+
amixer sset Master,0 1-
How specifically did you 'hook them up'? Script, assign keyboard shortcut somewhere, etc.?

My goal is to get finer volume control in "audtty" (an ncurses command line controller for audacious music player) as well as from mousewheel on volume icons in gui.
aless80
Level 2
Level 2
Posts: 83
Joined: Wed Nov 28, 2012 5:20 am

Re: Volume adjustment step.

Post by aless80 »

I found a solution using dconf

Code: Select all

env | grep DESKTOP_SESSION=     #gives cinnamon,mate, etc
dconf read /org/cinnamon/settings-daemon/plugins/media-keys/volume-step #6 by default
dconf write /org/cinnamon/settings-daemon/plugins/media-keys/volume-step 2  #set the step to 2 or 3
Alternatively use dconf with the dconf-editor GUI
Demmers
Level 3
Level 3
Posts: 101
Joined: Fri Aug 16, 2019 7:37 am
Location: England, UK

Re: Volume adjustment step.

Post by Demmers »

So i've just recently installed Mint 19.2 Cinnamon for the first time (first time Linux user in fact!) and as I use an Audioquest Dragonfly as my audio DAC, I immediately was annoyed as well by the 5% volume step. I would much rather have 1%. I tried the steps above, mainly using the custom keyboard shortcuts, but they weren't working. Discovered upon further investigation that the commands mentioned appear to now be out of date. The process to now follow is:

System Settings > Keyboard > Shortcuts > Sound and Media > On Volume Down & Up, double click the assigned keyboard bindings and press backspace for each > Custom Shortcuts > Add Custom Shortcut >
Name: Volume Up, Command: pactl set-sink-volume @DEFAULT_SINK@ +1% and for Volume Down, pactl set-sink-volume @DEFAULT_SINK@ -1%

Now as previously mentioned, this does remove the on-screen overlay, but at least my headphone listening experience has improved!
Locked

Return to “Cinnamon”