-dpi option of Xephyr

Alan Coopersmith alan.coopersmith at oracle.com
Thu Mar 5 23:56:43 UTC 2020


On 3/5/20 6:14 AM, Sagar Tiwari wrote:
> What does the `-dpi` option of `Xephyr` do. I'm trying different values like this:
> 
>      Xephyr -dpi 20 -screen 640x480 :1
> 
> and the programs running in the session don't look different in any way.

It changes the static global resolution size reported by xdpyinfo - for 
instance, with the above, xdpyinfo says:

screen #0:
   dimensions:    640x480 pixels (813x610 millimeters)
   resolution:    20x20 dots per inch

but with -dpi 96 it says:

screen #0:
   dimensions:    640x480 pixels (169x127 millimeters)
   resolution:    96x96 dots per inch

It doesn't change the way X draws anything - some applications may choose to
use it to adjust the size they scale images or text to, or they may ignore it.

-- 
	-Alan Coopersmith-               alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - https://blogs.oracle.com/alanc


More information about the xorg mailing list