How can I change the volume step count? Currently it’s 5 steps (20%, 40%…100%), however I find: 1) I want 30% for my ringtone as 20% is too quiet and 40% is too loud, and 2) call volume at it’s lowest is too loud. It’s really odd. I’ve seen a patch that can achieve it, but I’m under the impression patchmanager doesn’t not work for Sailfish 4. That patch hasn’t been updated for a while either.
I would prefer finer steps too. And more control about min and max too. I did edit one file in the past. I don’t remember which one right now but there are many more info on old forum (one of many topic on the theme).
Thanks. Not the perfect solution, but I should have looked harder. I did think I saw it before, but obviously did a poor search this time round when I actually wanted to make the change.
I used this thread, and editted this file: /usr/share/lipstick-jolla-home-qt5/volumecontrol/VolumeControl.qml to at least get the ringtone volume in 10% increments.
Thank you. I was able to download it (plus your most recent version), but since upgrading from Sailfish 3 to 4, patchmanager 3 doesn’t work 100%. It would start up at boot, and attempt to apply patches, but they didn’t want to patch. I removed busybox-symliks-bash, and the others seem to work, but not your one “failed to install patch”. For reference, I’m able to install “default allowed orientations patch” and it installs fine.
I hadn’t, but now I have, and it didn’t solve the issue, though now I’m wondering if there was something I’ve changed that I can’t remember changing (10% unsure).
No, no fail info, it just comes up with a notification sailing installation failed.
Kvarken.
Is there an easy way to replace the edited files with default, in case i did make a change that’s causing issues?
cd /tmp
mkdir extract
cd extract
rpm2cpio /tmp/jolla-settings-system*.rpm | cpio -id
rpm2cpio /tmp/lipstick-jolla-home-qt5*.rpm | cpio -id
You now have a directory structure under /tmp/extract which contains all the files from the packages. You can now sync up the installed ones with the ones from the package.
Remember to clean up the things in /tmp after you’re done to save some precious memory.
You could also simply do a pkcon install --allow-reinstall jolla-settings-system but the above is the general approach to compare package and installed files. Also, doing a reinstall is sometimes a bit dangerous because of pre/post scripts that may change things you do not want changed.
It’s also NOT smart to have any patches applied while running that.
Thank you, this is an awesome guide. I really appreciate your help.
Unfortunately I couldn’t get cpio working (even though those files exist):
[root@Xperia10 extract]# rpm2cpio /tmp/jolla-settings-system*.rpm | cpio -i
cpio: can't open './usr/lib/locale/locale-archive': No such file or directory
[root@Xperia10 extract]# rpm2cpio /tmp/lipstick-jolla-home-qt5*.rpm | cpio -i
cpio: can't open './etc/mce/60-devicelock-lipstick-jolla-home.conf': No such file or directory
I then just did the reinstall method, and now your patch works great. Thank you! Great to know what the proper method looks like.