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

Screen Resolution

asked 2019-08-10 18:23:24 +0200

nepsis.localhost gravatar image

Hi Sailxperts,

I've bought an Xperia Xa2 ultra, just to reuse SailfishOs. Now my biggest concern is how to find out the screen resolution, so I can configure my remote VNC machines.

Is there a cli command, or ay other way so I can discover what is the display resolution that my Xa2 Ultra is using?

Best Regards, Nepsis.localhost

edit retag flag offensive close delete

Comments

i find this question actually interesting. sfos doesnt use x-server, but wayland. so, all the x-tools dont exist and the standard wayland stuff i found online also doesnt work. whats the name of the wayland compositor sfos uses? and how to get the screen resolution?

misc11 ( 2019-08-11 00:33:45 +0200 )edit

1 Answer

Sort by » oldest newest most voted
4

answered 2019-08-10 19:39:14 +0200

Spam Hunter gravatar image

updated 2019-08-11 01:35:39 +0200

Xperia XA2 Ultra resolution = 1080 x 1920 pixels, 16:9 ratio (~424 ppi density)

You could have googled this information, actually, you could have also googled for the command line and with a bit of investigation into the OS, we find;

/sys/class/graphics/fb0/modes
/sys/class/graphics/fb1/modes

I use a J1 device, I also use nano as my preferred editor, so I did the following in terminal;

nano /sys/class/graphics/fb0/modes

this yields the following response from my J1;

U:540x960p-0

and this yields the following from my J1;

U:1280x720p-0

540 x 960 is the correct resolution for the Jolla1, but I'm not sure about the second output from 'frame buffer 1' (fb1).

edit flag offensive delete publish link more

Comments

2

Thank you very much Edz,

indeed I was looking for something like that: nemo@Sailfish ~]$ cat /sys/class/graphics/fb0/modesU:1080x1920p-60 By the screen resolution of the phone I've managed to solve my problem, and yet that's not the best way to approach the screen resolution that's using, for example when using the gemini pda connected to an external screen I must change screen res via term, in order to have everything in place. BTW, where did you find this info?

nepsis.localhost ( 2019-08-11 08:32:46 +0200 )edit

Both your questions were largely answered by simply googling your question.

Screen res of Xperia = can't recall which site

Find screen res with command line = https://stackoverflow.com/questions/46578951/list-screen-resolutions-using-wayland-weston - and then investigated my device to make corrections of URL path required.

Spam Hunter ( 2019-08-11 14:18:28 +0200 )edit

Is there any way to change (lower) the resolution on the XA2? It could help with frame rates in games, and to reduce power consumption overall. Writing another resolution to /sys/class/graphics/fb0/mode only yields an error.

Fuzzillogic ( 2019-08-12 16:48:24 +0200 )edit
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2019-08-10 18:23:24 +0200

Seen: 411 times

Last updated: Aug 11 '19