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

Change pixel density in Sailfish OS 2.1.x?

asked 2018-06-29 14:26:17 +0200

MeowDude gravatar image

updated 2018-07-02 10:35:21 +0200

jiit gravatar image

Is there any way to change the pixel density in Sailfish OS 2.1.x, specifically on port devices? I assume it'd be via command line, and before someone links me to the "dconf write /desktop/sailfish/silica/theme_pixel_ratio 1.x" thread, I say "no, that doesn't work in Sailfish OS >1.1"

The pixel density on flo is just really low, the lockscreen clock is bigger on my Nexus 5 which is concerning.

edit retag flag offensive close delete

Comments

I believe this is a setting that should be preset to the correct value by the port developer, but I have no idea where the setting is...

Edit: do you have any example device?

Direc ( 2018-06-29 16:59:09 +0200 )edit

I am using Nexus 7 2013 (flo) I know how to change pixel density via droid configs, but I don't have access to their private sources nor the time to build for a third device. I was hoping it'd be similar to Sailfish OS 1.x where it was an actual lipstick value that you could change. It has to be right?

MeowDude ( 2018-06-29 17:26:30 +0200 )edit

1 Answer

Sort by » oldest newest most voted
7

answered 2018-06-30 11:19:37 +0200

Spam Hunter gravatar image

updated 2018-06-30 13:47:42 +0200

These key values for pixel ratio are non-writable, so changes have to be made within dconf to make that specific key writable.

To make the key writable, we need to navigate to; /etc/dconf/db/vendor.d/locks - this should display 2 files, the one we need to edit is called ui-configs.txt and the text inside reads;

/desktop/sailfish/silica/theme_pixel_ratio - this is basically a lock preventing the user from changing the pixel ratio. Edit that line of code by putting a hash symbol at the start of the line;

# /desktop/sailfish/silica/theme_pixel_ratio - you will need to be root (devel-su) to make the change.

After editing the above file, you need to update dconf to make the changes stick, do this with; devel-su dconf update /desktop/sailfish/silica/theme_pixel_ratio and restart lipstick to make the change stick.

Then you can make writes to theme_pixel_ratio using dconf;

(example)

dconf write /desktop/sailfish/silica/theme_pixel_ratio "2.0"

1.0 pixel ratio (normal)

image description

1.5 pixel ratio

image description

Additionally, if you are not comfortable editing files, you could try this app from fravacarro;

https://openrepos.net/content/fravaccaro/ui-themer - which I believe also deals with pixel ratio adjustment, but I've never used it, so YMMV.

edit flag offensive delete publish link more

Comments

1

Finally! I assure you this answer will see many views, if I had a nickel for every initial non updated SFOS 2.x port with the default 1.0 ratio I'd have enough money to buy both a Jolla C and a Jolla Tablet (oh if only). 1000 thanks for this in depth answer!

MeowDude ( 2018-06-30 13:40:36 +0200 )edit

You're welcome. I love playing around and discovering/working out how to do things with SFOS. I'm glad you'll find it useful :)

Spam Hunter ( 2018-06-30 13:43:10 +0200 )edit

can someone post the terminal commands to do that

Camerwas ( 2019-02-21 23:48:46 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2018-06-29 14:26:17 +0200

Seen: 685 times

Last updated: Jun 30 '18