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`