[How-to] add "never sleep" to display settings and keep display on
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
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;
Spam Hunter ( 2017-09-04 15:44:29 +0200 )editmcetool --set-demo=on
ormcetool --set-demo=off
changed the url in the text, thanks for the hint and your addition
rgrnetalk ( 2017-09-04 17:27:21 +0200 )edit@rgrnetalk I've made a simple app that does what
Tanghus ( 2019-12-22 20:08:46 +0200 )editmcetool
does above. I can upload it somewhere if you want?@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 +0200 )editI put it on openrepos: https://openrepos.net/content/tanghus/demo-mode
Tanghus ( 2019-12-22 21:46:16 +0200 )edit