Some people prefer to have a more content-packed screen to have as much informations as possible at a glance.

On Android devices, this can be obtained by fiddling with DPI, i.e. the amount of dots per inch, while on Sailfish OS the device pixel ratio (DPR) is used for the same purpose – more on this here.

Check the DPR

The DPR value is stored in a dconf key. To read the value open the terminal and type, as regular user:

dconf read /desktop/sailfish/silica/theme_pixel_ratio

On a Jolla C, this will return a value of 1.25.

Custom value

Empirically, a lower number would give more space to be filled by content, at the expense of a smaller font (although this can be tuned from the Settings).

To edit the value type, as regular user:

dconf write /desktop/sailfish/silica/theme_pixel_ratio VALUE

then refresh the homescreen.

DPR 1.10

Type, as regular user:

dconf write /desktop/sailfish/silica/theme_pixel_ratio 1.10

then refresh the homescreen.

DPR 0.90

Type, as regular user:

dconf write /desktop/sailfish/silica/theme_pixel_ratio 0.90

then refresh the homescreen.

Reset the DPR to the default value

Type, as regular user:

dconf reset /desktop/sailfish/silica/theme_pixel_ratio

then refresh the homescreen.

Tablet UI

With smaller DPR values, it may make sense to enable the quick settings sidebar like seen on the Jolla Tablet.

Open, as root, the file:

/usr/share/lipstick-jolla-home-qt5/main/Desktop.qml

locate the line:

property bool showEventsViewSidebar: Screen.sizeCategory >= Screen.Large

and change it as following:

property bool showEventsViewSidebar: Screen.sizeCategory >= Screen.Small

then refresh the homescreen.

Alien Dalvik

Android apps will follow a standard DPI setting. To tune it open, as root, the file:

/opt/alien/system/build.prop

then edit the following line:

ro.sf.lcd_density=VALUE

Even here, a lower number would give more space to the content. Common values are 240, 280, 300, 320.

Restart the Android environment to apply the changes.

Wrap-up

I may work on some simple UI to edit the DPR value, but my programming skiils are really limited, so feel free to use the infos from this post to create your app/patch, considering a link to this page if it was useful.

Update

A preliminary package has been uploaded here.

Advertisements

5 thoughts on “Sailfish OS: how to display more content

  1. Thanks a lot for this guide.

    On my nexus 4 running 2.0.5.6, the dconf setting was locked, giving an error about a non-writable key.
    To fix this, I removed /etc/dconf/db/vendor.d/locks/silica-configs.txt . After running “dconf update”, I was able to change the setting.

    1. the packages sailfish-content-graphics-closed-z1.0 and sailfish-content-graphics-jolla-z1.0 may be missing on your device

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s