We have moved to a new Sailfish OS Forum. Please start new discussions there.
41

Ringtone volume adjustment now in too large steps [1.1.9.28]

asked 2015-09-25 14:24:29 +0200

Kimking gravatar image

updated 2015-09-26 22:13:49 +0200

dave gravatar image

this my opinion. 20% [steps for] [ringtone] volume adjustment steps is too much, compared to before you could adjust in 1% [steps].

edit retag flag offensive close delete

Comments

8

I totally agree. Looks also strange having a range of values 0-100% split into 5 units. I'd much prefer 5 or 10% steps if 1% is not possible for some reason

Cary Grant ( 2015-09-25 14:28:44 +0200 )edit
5

I think you guys are looking at the ringtone volume adjustment... Personally I hate it too that sometimes the volume keys deal with the ringtone volume and then in other cases with the media volume...

Philippe De Swert ( 2015-09-25 14:40:38 +0200 )edit

yes ringtone, adjusting.:)

Kimking ( 2015-09-25 14:44:21 +0200 )edit
1

I think 5% would be a good step amount.

JakeTheChangeling ( 2015-09-25 17:10:01 +0200 )edit

Maybe one of the more 'tech savvy' guys among us could create a patch for such an option? @Ancelad@coderus ;)

Spam Hunter ( 2015-09-26 16:40:26 +0200 )edit

1 Answer

Sort by » oldest newest most voted
13

answered 2015-09-26 16:03:38 +0200

Spam Hunter gravatar image

updated 2015-10-23 16:32:58 +0200

AliN gravatar image

This is not exactly an answer but a workaround for the time being! :)

@Kimking - I found a few files to play with and now have the volume adjustable by single step increments. I've been trying to make a patch for this, but so far, have failed miserably!. So I manually edited the files myself.

Volume Slider:

I found 2 files relating to audio volume settings, one for Ambience volume settings, the other in general Settings.

File one - found at /usr/lib/qt5/qml/com/jolla/gallery/ambience/VolumeAction.qml line 49 (ambience ringer volume)

File two - found at /usr/share/jolla-settings/pages/sounds/VolumeSlider.qml line 16 (Volume in Settings)

Just look for StepSize: 20 and change 20 to 1 - save the edit, pkill lipstick (restart homescreen) and voila!, single step increments of volume change. If you want 5% increments, change 20 to 5 - job done!

Volume Keys:

You can also change volume key increments in /usr/share/lipstick-jolla-home-qt5/volumecontrol/VolumeControl.qml. On lines 417 to 422 (on 2.0.0.10, 421 to 426) you can find:

if (volumeIncreasing)
   initialChange = profile.ringerVolume === 100 ? 0 : -0.2
else
   initialChange = profile.ringerVolume === 0 ? 0 : 0.2

adjustRingtoneVolume(volumeBar.volumeIncreasing ? 20 : -20)

Those -0.2, 0.2 and 20 : -20 are increments, just replace them as you wish.

There is another adjustRingtoneVolume on line 384 (on 2.0.0.10 388) for when you long press volume keys. If you want volume keys to rapidly mute the device don't change them.

I used Nano for editing the file via SSH over USB. To make changes to files in root using Nano, you must gain root access (devel-su) or the changes cannot be made. I find Nano much easier to use compared with Vim - Vim is powerful but not the most intuitive CLI app I've used.

edit flag offensive delete publish link more

Comments

cool, thx. il try to edit it if not next update bring it first.:)

Kimking ( 2015-09-28 12:18:43 +0200 )edit

Release notes of 2.0.4 seem that this has not been improved. So, we have to edit the files as long as there is no simple patch. 5% would be great. I hate it since 20% is too load and 0% not loud enough for some situations.

SagaciousT ( 2016-10-20 12:57:03 +0200 )edit

I checked XA2 with 3.1.0.11: I changed line 48 with devel-su vi /usr/lib/qt5/qml/com/jolla/gallery/ambience/VolumeAction.qml which works for me from Settings -> Ambients.

It seems that for top volume changes need to be done in line 40 devel-su vi /usr/share/jolla-settings/pages/sounds/VolumeSliderController.qmlwhich worked for me.

For volume keys changes seems that need to be done in lines 496 - 501 /usr/share/lipstick-jolla-home-qt5/volumecontrol/VolumeControl.qml but I didn't touch those as I prefer less steps there. Note that it might feel odd that way as the volume falls or rise 20% from new finer value with default values not jumps like 0-20-40-60-80-100 which one might expect or prefer. For example: it falls from 25 to 5%.

Note that you need to restart homescreen pkill lipstick or reboot the phone.

Filip K. ( 2019-08-22 01:39:15 +0200 )edit
Login/Signup to Answer

Question tools

Follow
10 followers

Stats

Asked: 2015-09-25 14:24:29 +0200

Seen: 903 times

Last updated: Aug 21 '19