[How-to] add "never sleep" to display settings and keep display on

asked 2017-09-04 12:05:54 +0300

rgrnetalk gravatar image

updated 2017-09-04 17:26:04 +0300

Disclaimer: changing files on your jolla as described in this how-to is always your own decision.

In the file /usr/share/jolla-settings/pages/display/display.qml add a listelement. I have chosen the value 600000 which means the display will stay on for almost 7 days:

    ListModel {
            id: timeoutModel 
            ListElement {
                label: "settings_display-me-15_seconds"
                value: 15
            }
            // other listelements
            ListElement {
                label: "settings_display-me-10_minutes"
                value: 600
            }
        // add listelement never sleep    
            ListElement {
                label: "never sleep"
                value: 600000
            }
    }

When you click the "Sleep after" combobox, a seperate dialog will appear because there are now 6 choices in your combobox (standard silica behavior for small screens)

Warnings:

  • the setting "Keep display on while charging" is not changed when you select "Sleep after" never sleep
  • keep display always on can reduce battery life severely (keep charger at hand)
  • when jolla decides to change the file display.qml, the setting will vanish

image description

image description

edit retag flag offensive close delete

Comments

2

Your URL is incorrect. It should be: /usr/share/jolla-settings/pages/display/display.qml

Also, with mcetools installed (pkcon install mce-tools), you can set display to never go off until the user changes the string; mcetool --set-demo=on or mcetool --set-demo=off

Edz ( 2017-09-04 15:44:29 +0300 )edit

changed the url in the text, thanks for the hint and your addition

rgrnetalk ( 2017-09-04 17:27:21 +0300 )edit

@rgrnetalk I've made a simple app that does what mcetool does above. I can upload it somewhere if you want?

Tanghus ( 2019-12-22 20:08:46 +0300 )edit
1

@Tanghus: I would say harbour, or if it isn't allowed: openrepos... So it's available for more people...

rgrnetalk ( 2019-12-22 21:24:22 +0300 )edit

I put it on openrepos: https://openrepos.net/content/tanghus/demo-mode

Tanghus ( 2019-12-22 21:46:16 +0300 )edit