Ask / Submit
31

Enable three-finger volume gesture for phone

asked 2015-10-06 21:45:48 +0300

Alen gravatar image

updated 2015-10-06 21:46:17 +0300

In the changelog for 1.1.9.28 release it is said:

[lipstick-jolla-home] Disable volume gesture on small screen devices. Fixes JB#28123

It says disable. Does it imply that one can re-enable it? And how?

edit retag flag offensive close delete

Comments

1

Reopened as openrepos is not the "user"-way to have it available (and to reduce duplication)

chemist ( 2016-04-28 17:46:48 +0300 )edit

2 Answers

Sort by » oldest newest most voted
11

answered 2015-10-06 22:50:28 +0300

Alen gravatar image

updated 2015-10-12 03:29:00 +0300

virgi26 gravatar image

Update: created a patch according to your changes (@virgi26) https://openrepos.net/content/virgi/patch-three-fingers-volume-control

CAUTION: Please be careful about changing system files, especially compositor.qml. You can brick your device. Before editing make backups from original files, enable ssh and write down IPs for the case of emergency. Double-check what you're typing. (Read more on comments.)

Ok, I myself found a way, I don't know if I should call it an answer, or just a workaround.

Editing two lines in two files will help:

  1. /usr/share/lipstick-jolla-home-qt5/compositor.qml line 194, removing the variable considering the screen size to enable the three-finger gesture for phone:

    enabled: !systemGesturesDisabled
    
  2. /usr/share/lipstick-jolla-home-qt5/volumecontrol/VolumeControl.qml line 241, replacing the screen size variable with true to enable continuous volume control for phone:

    showContinuousVolume: true
    
edit flag offensive delete publish link more

Comments

A little patch will be usefull to prevent editing errors. However, thanks for the trick. Will try it soon ! Edit : Awesome ! Thankks !

malibu1106 ( 2015-10-07 10:30:05 +0300 )edit

@malibu1106, sorry, if I knew how to package rpm files I would publish patches and layouts. :( But I'm not a developer.

Alen ( 2015-10-09 21:04:15 +0300 )edit

Can we confirm this is safe? Because, after that, my phone was unable to boot and I had to factory-restore. Probably I made some kind of typo while editing that QMLs, but I want to be sure (another restore process would kill me). Thanks.

Mced ( 2015-10-10 09:54:44 +0300 )edit

@Mced, maybe. The compositor file is very important for the UI. If you want to edit files it is safer to enable ssh, make backup from the original file, and then try to edit it. So in the case of bricking you can use ssh to revert the changes.

Alen ( 2015-10-10 15:06:48 +0300 )edit
1

To backup files you can enter in Terminal:

cd /usr/share/lipstick-jolla-home-qt5

devel-su cp compositor.qml compositor.qml.bkp

To use ssh on your PC, you should enter:

ssh nemo@phone-ip replacing the phone-ip with your device IP, for example, 192.168.1.100.

Then to revert the changes, enter:

cd /usr/share/lipstick-jolla-home-qt5

devel-su cp compositor.qml.bkp compositor.qml

devel-su killall lipstick

Alen ( 2015-10-10 15:21:25 +0300 )edit
5

answered 2016-04-28 17:50:04 +0300

chemist gravatar image

Suggested an Option https://together.jolla.com/question/133593/feature-request-release-3-finger-volume-swipe-to-jolla1/ and closed it after finding this - this needs to be a Settings item, not some patch.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
8 followers

Stats

Asked: 2015-10-06 21:45:48 +0300

Seen: 1,296 times

Last updated: Apr 28 '16