Score:1

Ubuntu 20.04 with KDE - issue with resize to FullScreen

ao flag

I'm using a laptop with Full HD resolution, but sometimes I need the resolution to be lower.

When I try to change it using the following command:

xrandr -s 1440x900

the result is not what I expect. It's not scaled to full-screen. The picture covers only a square area with black spaces on left and right.

Is it possible to change resolution and force extend lower resolutions to fullscreen?

in flag
FullHD (1920x1080) and WXGA+ (1440x900) operate at different aspect ratios. Having the lower resolution fill the screen would stretch characters and images horizontally by 8%, reducing readability and contributing to eye strain. Is this something you want to do?
dominbdg avatar
ao flag
I would like to have the same as I have with extended monitor - when I change screen on extended monitor I have it on fullscreen and on my laptop I have lower resolution on not fullscreen. I would like to have other resolutions on fullscreen also.
Score:0
it flag

tl;dr / Short answer:

Rerun the command that you listed, but swap 1440 for 2560. If it is still a bit smaller on all sides, replace -s option with --scalefrom. That should fix. To go back to original pixel dimensions, run:

xrandr --preferred

An alternate solution

You can fill out the sides by incrementing the first number (1440 for you) little by little, in iterations, until it fits correctly. You can also decrease the second (900) little by little in the same fashion. The effect on the black spots will be the same for both methods, however, the effect on the resolution will be the opposite. To keep it (about) the same res, switch back and forth.

Also, as matigo said, you have switched your aspect ratio. That is what I am reffering to in the section below when I say that WxH needs to stay the same. This solution should put them somewhere close.

Full answer:

To get full screen, Your proportions need to be the same as those of the screen.

When you run:

xrandr -s 1440x900

with the -s command, you are not setting the resolution. You are setting the screen size. It uses pixels as an option, but..

Assuming no auto-rescale

..making the HxW larger will not make a pixel smaller. It will just make the actual size at which it tries to draw your screen bigger.. and vice versa in the opposite direction. This is the reason that the --scale option is included. You could double both H and W, which would keep the proportions, but would leave it double the required size. Running

xrandr--scale 0.5

​ would then bring it back with 2X resolution, if the hardware supports it. Also, running:

xrandr

with no options should show you what mode your screen prefers. This is the size that should result from the --preferred option.

​If one dimension is correct and the other is too small, it means you didn't use an appropriate proportions (the aspect ratio). Basically, dividing the first number by the second number will be the same for every possible set of "perfect" dimensions. This is how I got the number 810. I did the following:

1080/1920*1440 = the best W for `H == 900`
dominbdg avatar
ao flag
Hello, Thanks a lot for very comprehesiv explanation, Yes, You right - I was in wrong thinked that using xradr -s 1440x900 and all will be bigger. Currently xrandr --scale -> looks like resolved my issue.
Nate T avatar
it flag
If it helped, consider accepting, so others in the future who have the same issue and find this page via search will know it is worth implementing. Glad I could help.
dominbdg avatar
ao flag
what do You mean - accepting ?
Nate T avatar
it flag
you click underneath the vote arrows beside the answer that helped you / answered your question. This keeps it at the top and lets future readers know that the answer is helpful. It also rewards the answerer with rep.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.