Using xrandr to scale screen along vertical direction

jdd at dodin.org jdd at dodin.org
Wed Mar 7 16:44:51 UTC 2018


Le 06/03/2018 à 20:12, Cooper, Douglas A. (GRC-FTK0) a écrit :

> I would expect the following command to then scale the screen while 
> still occupying only the upper portion of the monitor:
> 
> xrandr --fb 1920x540 --output VGA1 --scale 1x.5
> 
> However, this ends up scaling the display and occupying the entire monitor.
> 

may be my experience can help you.

http://dodin.org/wiki/pmwiki.php?n=Doc.AddXResolution

I have a 15.6 wide lcd with 1366x768 resolution, and I wanted to display 
full hd (1920x1080)

I could achieve it after long work with use of virtual console

by the way, the goal was to scale the screen to have smaller characters, 
specially in decorations, and it works very well

the first part (where is the config stored is important because some 
tests failed because of other config misplaced

last result if a script

xrandr --newmode "1920x1080"  173.00  1920 2048 2248 2576  1080 1083 
1088 1120 -hsync +vsync
xrandr  --addmode VIRTUAL1 1920x1080
xrandr --fb 1920x1080 --dpi 96 --output eDP1 --pos 0x0 --scale-from 
1920x1080 --same-as VIRTUAL1


jdd


-- 
http://dodin.org


More information about the xorg mailing list