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

Revision history [back]

click to hide/show revision 1
initial version

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

[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.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

[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.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

[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.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

[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.qml/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