How to adjust the volume step change from 5% to 2%

Hi, I use Tumbleweed fully updated.
In Audio Volume Setting I try to set the volume step to 2% and although the value says 2%, the steps remain 5% which is too much.
I have been looking on the internet to find solutions and I thought I found one but that also doesn’t help:
Someone said to write

VolumePercentageStep=2.0 in ~/.config/kmixrc

I have used Manjaro till this week and there it works as expected so I guess it is something openSUSE does differently from Manjaro cause I use the same (or nearly the same) KDE version, and I never had this problem on Manjaro.

inxi -A
**Audio:     Card-1:** Advanced Micro Devices [AMD/ATI] SBx00 Azalia **driver:** snd_hda_intel  
           **Card-2:** NVIDIA GK104 HDMI Audio **driver:** snd_hda_intel  
           **Sound Server:** ALSA **v:** k4.18.9-1-default

I use card-1 cause that is the one with analog output. Sound on the Nvidia card is only on HDMI for which I have no connections to my speakers.

Any idea what to do to make this work?
Thanks.

That probably only applies to the kmix utility (which is still available), but by default KDE Plasma 5 uses the ‘Audio Volume’ applet by default.

Okay, but as I wrote at the start of my post, I also changed the value in Audio Volume settings and although the value is 2%, the increments are still 5%, even after reboot.
What can cause that?

I don’t know - it’s working for me on the laptop I’m typing this post from.

Just tried this in my other laptop and it works as expected as well.

FYI, the plasma audio volume applet has a number of files located in the /usr/share/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ directory. In particular main.qml contains the following line

property int volumeStep: Math.round(Plasmoid.configuration.volumeStep * PulseAudio.NormalVolume / 100.0)

I’m wondering if rounding is what effectively limits any perceived change for 2%- 5% perhaps.

With some experimentation, I was able to change the integer step size by editing this line as root, saving, and then restarting the desktop to test.

I have the directories /usr/share/plasma/plasmoids/org.kde.plasma.volume but there it ends. The directories contents/ui are not there.
I see 2 files: contents.rcc and metadata.json. That’s all.
Does this mean I did not install something I need?
I do have sound, I can change the volume, be it in too large steps, so what am I missing?

I’m using Leap 15.0, so it’s likely to have changed for the KDE Plasma version in TW. FWIW, I usually just drag the slider (via mouse/touchapod) to adjust as required, so don’t pay much attention to the increment size.

I have 2 audio buttons on my keyboard and they normal work just fine, only now the steps are too big. I find that easier than using the mouse.

If you upgraded from older versions maybe you still use the old audio control???

Nope. Just installed it earlier this week. Did it last weekend on an BTRFS disk but hated that so started over again, I guess it was Tuesday, so it’s all brand new.
The first 2 days I also had problems with the beeps when the volume changes, even though I unclicked the checkbox to make those beeps, but somehow that has stopped now. No idea why.
Now I hope this volume step will also automatically do what I ask it to do.

Strange - for me these changes take effect as soon as In click ‘Apply’. So, something may have changed with the KDE version in use. Ideally, other TW users need to chime in here.

Did you keep any old home files. There still could be setting in home that no longer work.

No, that doesn’t explain why the volume step can’t be adjusted and take effect immediately as expected.

Can you post the output from the following please?

zypper se -si plasma5-pa
rpm -ql plasma5-pa

BTW, the settings for the audio volume applet (along with others) are located in ~/.config/plasma-org.kde.plasma.desktop-appletsrc. For example I have…

[Containments][22][Applets][23]
immutability=1
plugin=org.kde.plasma.volume

[Containments][22][Applets][23][Configuration]
PreloadWeight=5

[Containments][22][Applets][23][Configuration][ConfigDialog]
DialogHeight=540
DialogWidth=720

[Containments][22][Applets][23][Configuration][General]
volumeStep=2

Okay, something changed here. Last night I saw that in my dock I have a volume icon in the system-tray with which I can adjust the volume, and I had a separate volume icon in my dock, next to other programs icons. I then removed the last one, leaving the one in the system-tray. But then I could not adjust the volume anymore, so I added the audio volume widget to the dock again, restoring things to what they were.
This morning I saw that, not only is the volume step 5%, it now also says it is 5% in the settings, plus the max volume is back at 100% (used to be 150%), plus the audio feedback tickbox is marked again. I then restored the settings to what I want them to be and now I have a 2% volume step, now it works. I removed and added the audio volume widget to my dock, that’s all I did.

To answer you question deano:

**[User: jan] @ [Server: linux-yyc4] - [Directory: ~]**
**$** zypper se -si plasma5-pa
Loading repository data...
Reading installed packages...

S  | Name            | Type    | Version    | Arch   | Repository              
---+-----------------+---------+------------+--------+------------------------
i+ | plasma5-pa      | package | 5.13.5-1.1 | x86_64 | openSUSE-Tumbleweed-Oss
i+ | plasma5-pa-lang | package | 5.13.5-1.1 | noarch | openSUSE-Tumbleweed-Oss
**[User: jan] @ [Server: linux-yyc4] - [Directory: ~]**
**$** rpm -ql plasma5-pa
/usr/lib64/qt5/plugins
/usr/lib64/qt5/plugins/kcms
/usr/lib64/qt5/plugins/kcms/kcm_pulseaudio.so
/usr/lib64/qt5/qml
/usr/lib64/qt5/qml/org
/usr/lib64/qt5/qml/org/kde
/usr/lib64/qt5/qml/org/kde/plasma
/usr/lib64/qt5/qml/org/kde/plasma/private
/usr/lib64/qt5/qml/org/kde/plasma/private/volume
/usr/lib64/qt5/qml/org/kde/plasma/private/volume/PulseObjectFilterModel.qml
/usr/lib64/qt5/qml/org/kde/plasma/private/volume/libplasma-volume-declarative.so
/usr/lib64/qt5/qml/org/kde/plasma/private/volume/qmldir
/usr/share/doc/HTML
/usr/share/doc/HTML/en
/usr/share/doc/HTML/en/kcontrol
/usr/share/doc/HTML/en/kcontrol/plasma-pa
/usr/share/doc/HTML/en/kcontrol/plasma-pa/index.cache.bz2
/usr/share/doc/HTML/en/kcontrol/plasma-pa/index.docbook
/usr/share/kconf_update
/usr/share/kconf_update/disable_kmix.upd
/usr/share/kconf_update/plasmaVolumeDisableKMixAutostart.pl
/usr/share/kde4
/usr/share/kde4/apps
/usr/share/kde4/apps/kconf_update
/usr/share/kde4/apps/kconf_update/disable_kmix.upd
/usr/share/kde4/apps/kconf_update/plasmaVolumeDisableKMixAutostart.pl
/usr/share/kpackage
/usr/share/kpackage/kcms
/usr/share/kpackage/kcms/kcm_pulseaudio
/usr/share/kpackage/kcms/kcm_pulseaudio/contents
/usr/share/kpackage/kcms/kcm_pulseaudio/contents/ui
/usr/share/kpackage/kcms/kcm_pulseaudio/contents/ui/Advanced.qml
/usr/share/kpackage/kcms/kcm_pulseaudio/contents/ui/Applications.qml
/usr/share/kpackage/kcms/kcm_pulseaudio/contents/ui/CardListItem.qml
/usr/share/kpackage/kcms/kcm_pulseaudio/contents/ui/DefaultDeviceButton.qml
/usr/share/kpackage/kcms/kcm_pulseaudio/contents/ui/DeviceComboBox.qml
/usr/share/kpackage/kcms/kcm_pulseaudio/contents/ui/DeviceListItem.qml
/usr/share/kpackage/kcms/kcm_pulseaudio/contents/ui/Devices.qml
/usr/share/kpackage/kcms/kcm_pulseaudio/contents/ui/Header.qml
/usr/share/kpackage/kcms/kcm_pulseaudio/contents/ui/ListItemSeperator.qml
/usr/share/kpackage/kcms/kcm_pulseaudio/contents/ui/MuteButton.qml
/usr/share/kpackage/kcms/kcm_pulseaudio/contents/ui/StreamListItem.qml
/usr/share/kpackage/kcms/kcm_pulseaudio/contents/ui/VolumeSlider.qml
/usr/share/kpackage/kcms/kcm_pulseaudio/contents/ui/main.qml
/usr/share/kpackage/kcms/kcm_pulseaudio/metadata.desktop
/usr/share/kpackage/kcms/kcm_pulseaudio/metadata.json
/usr/share/kservices5
/usr/share/kservices5/kcm_pulseaudio.desktop
/usr/share/kservices5/plasma-applet-org.kde.plasma.volume.desktop
/usr/share/licenses/plasma5-pa
/usr/share/licenses/plasma5-pa/COPYING
/usr/share/licenses/plasma5-pa/COPYING.LIB
/usr/share/metainfo
/usr/share/metainfo/org.kde.plasma.volume.appdata.xml
/usr/share/plasma
/usr/share/plasma/plasmoids
/usr/share/plasma/plasmoids/org.kde.plasma.volume
/usr/share/plasma/plasmoids/org.kde.plasma.volume/contents.rcc
/usr/share/plasma/plasmoids/org.kde.plasma.volume/metadata.json
**[User: jan] @ [Server: linux-yyc4] - [Directory: ~]**


The directory I was missing is still not there:

**[User: jan] @ [Server: linux-yyc4] - [Directory: ~]**
**$** ls /usr/share/plasma/plasmoids/org.kde.plasma.volume                                                                                                                                                  
total 36
-rw-r--r-- 1 root root 25928 Sep 13 23:57 contents.rcc
-rw-r--r-- 1 root root  5518 Sep 13 23:56 metadata.json
**[User: jan] @ [Server: linux-yyc4] - [Directory: ~]**


Only the two files are present, no directories contents/ui

Well, for now things are working and I think I leave it like that. Thank you all for your help, it’s really appreciated.

Did you have kmix installed and running as well perhaps?

This morning I saw that, not only is the volume step 5%, it now also says it is 5% in the settings, plus the max volume is back at 100% (used to be 150%), plus the audio feedback tickbox is marked again. I then restored the settings to what I want them to be and now I have a 2% volume step, now it works. I removed and added the audio volume widget to my dock, that’s all I did.

That reads like an improvement.

Well, for now things are working and I think I leave it like that. Thank you all for your help, it’s really appreciated.

Glad to read that it is now working as expected. :slight_smile:

No, no kmix installed here. I must say since I use Tumbleweed (installed it last Tuesday) I had a couple of issues which disappeared after one or more reboots. No real fix done to the system, just a reboot and it’s fine.

I just leave it like this and further enjoy this system.

Eh, if I right click the applet, then click Configure Audio volume, in the General Tab it shows two percentage items:

  • Maximum volume : 110 % ( in my case )
  • Volume steps: 5%

Did you already try that? Works instantly on my Tumbleweed, with stock KDE Plasma 5.