# Can't change the DPI in Xorg

**URL:** <https://forum.endeavouros.com/t/cant-change-the-dpi-in-xorg/56509>\
**Category:** Kernel, boot, graphics & hardware\
**Created:** [June 9, 2024, 5:14pm UTC](https://forum.endeavouros.com/t/cant-change-the-dpi-in-xorg/56509 "2024-06-09T17:14:52Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![thecheddarcheese](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/thecheddarcheese/32/96291_2.png) [@thecheddarcheese](https://forum.endeavouros.com/u/thecheddarcheese)\
**Post date:** [June 9, 2024, 5:14pm UTC](https://forum.endeavouros.com/t/cant-change-the-dpi-in-xorg/56509/1 "2024-06-09T17:14:52Z")

</div>

I have openbox with Xorg and lightdm, and everything is really small on my 3072x1920 screen, so I wanted to change the DPI. I added this line to the lightdm.conf file (rest is commented):

`xserver-command=X -dpi 210`

But the screen stays the same. When I run `grep DPI /var/log/Xorg.0.log` I get this output:

```auto
[6.721] (==) AMDGPU(0): DPI set to (96, 96)
[8.379] (WW) NVIDIA(G0): Unable to get display device for DPI computation.
[8.379] (==) NVIDIA(G0): DPI set to (75, 75); computed from built-in default
[8.681] (==) modeset(G1): DPI set to (96, 96)
[9.604] (==) modeset(G1): DPI set to (96, 96)

```

Am I doing something wrong or is this a bug?

---

<div class="post-metadata">

**Author:** ![vazicebon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/vazicebon/32/81098_2.png) [@vazicebon](https://forum.endeavouros.com/u/vazicebon)\
**Post date:** [June 9, 2024, 5:30pm UTC](https://forum.endeavouros.com/t/cant-change-the-dpi-in-xorg/56509/2 "2024-06-09T17:30:19Z")

</div>

Welcome,

You also can try to change the display size.

[https://wiki.archlinux.org/title/xorg#Display\_size\_and\_DPI](https://wiki.archlinux.org/title/xorg#Display_size_and_DPI)

---

<div class="post-metadata">

**Author:** ![thecheddarcheese](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/thecheddarcheese/32/96291_2.png) [@thecheddarcheese](https://forum.endeavouros.com/u/thecheddarcheese)\
**Post date:** [June 9, 2024, 6:36pm UTC](https://forum.endeavouros.com/t/cant-change-the-dpi-in-xorg/56509/3 "2024-06-09T18:36:56Z")

</div>

That kind of worked, but now the title bars and everything openbox related is very big and all the apps stayed the same.

 ![dpi](https://forum.endeavouros.com/uploads/default/original/3X/0/e/0e9a27af7f7c27efb51f9a202aea0a1abfa20b10.png)

---

<div class="post-metadata">

**Author:** ![vazicebon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/vazicebon/32/81098_2.png) [@vazicebon](https://forum.endeavouros.com/u/vazicebon)\
**Post date:** [June 9, 2024, 6:45pm UTC](https://forum.endeavouros.com/t/cant-change-the-dpi-in-xorg/56509/4 "2024-06-09T18:45:36Z")

</div>

What about xrand before launching openbox-session

```auto
xrandr --output xxxxxxx --dpi 210

```

---

<div class="post-metadata">

**Author:** ![thecheddarcheese](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/thecheddarcheese/32/96291_2.png) [@thecheddarcheese](https://forum.endeavouros.com/u/thecheddarcheese)\
**Post date:** [June 10, 2024, 4:10pm UTC](https://forum.endeavouros.com/t/cant-change-the-dpi-in-xorg/56509/5 "2024-06-10T16:10:09Z")

</div>

Bit of a dumb issue, but I’m not exactly sure what to put in output. “Screen 0” doesn’t work, nor do any other items on the list.

Here’s the result of `xrandr --current`

```auto
Screen 0: minimum 320 x 200, current 3072 x 1920, maximum 16384 x 16384
eDP connected primary 3072x1920+0+0 (normal left inverted right x axis y axis) 312mm x 195mm
   3072x1920 60.00*+ 120.00  
   1920x1200 60.00  
   1920x1080 60.00  
   1600x1200 60.00  
   1680x1050 60.00  
   1280x1024 60.00  
   1440x900 60.00  
   1280x800 60.00  
   1280x720 60.00  
   1024x768 60.00  
   800x600 60.00  
   640x480 60.00  
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
DisplayPort-3 disconnected (normal left inverted right x axis y axis)
DisplayPort-4 disconnected (normal left inverted right x axis y axis)
DisplayPort-5 disconnected (normal left inverted right x axis y axis)

```

---

<div class="post-metadata">

**Author:** ![vazicebon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/vazicebon/32/81098_2.png) [@vazicebon](https://forum.endeavouros.com/u/vazicebon)\
**Post date:** [June 10, 2024, 4:24pm UTC](https://forum.endeavouros.com/t/cant-change-the-dpi-in-xorg/56509/6 "2024-06-10T16:24:38Z")

</div>

> [@thecheddarcheese](#):
>
> I’m not exactly sure what to put in output

The one that is connected, so eDP for you.

---

<div class="post-metadata">

**Author:** ![thecheddarcheese](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/thecheddarcheese/32/96291_2.png) [@thecheddarcheese](https://forum.endeavouros.com/u/thecheddarcheese)\
**Post date:** [June 10, 2024, 5:03pm UTC](https://forum.endeavouros.com/t/cant-change-the-dpi-in-xorg/56509/7 "2024-06-10T17:03:24Z")

</div>

Ok yeah that didn’t work either. I’m starting to think there might be a deeper issue here.

---

<div class="post-metadata">

**Author:** ![petsam](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/petsam/32/41308_2.png) [@petsam](https://forum.endeavouros.com/u/petsam)\
**Post date:** [June 11, 2024, 2:36am UTC](https://forum.endeavouros.com/t/cant-change-the-dpi-in-xorg/56509/8 "2024-06-11T02:36:18Z")

</div>

> [@thecheddarcheese](#):
>
> That kind of worked, but now

The link you were given has several options to try. What exactly had you modified, and how did you test it?

> [@thecheddarcheese](#):
>
> Bit of a dumb issue, but I’m not exactly sure what to put in output. “Screen 0” doesn’t work, nor do any other items on the list.

This is included in the above link/article:

```auto
xrandr --dpi 144

```

FWIW, I would change gtk font size (with `lxappearance` or similar utility).

---

<div class="post-metadata">

**Author:** ![thecheddarcheese](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/thecheddarcheese/32/96291_2.png) [@thecheddarcheese](https://forum.endeavouros.com/u/thecheddarcheese)\
**Post date:** [June 11, 2024, 5:30am UTC](https://forum.endeavouros.com/t/cant-change-the-dpi-in-xorg/56509/9 "2024-06-11T05:30:22Z")

</div>

> The link you were given has several options to try. What exactly had you modified, and how did you test it?

 ![image](https://forum.endeavouros.com/uploads/default/original/3X/2/2/2283fb6fe4f4e4faf4d6426cb544c00e9d13cc15.png)  
Made a file with exactly that name and those contents, then rebooted. Later changed the display name, still same result.  
And `xrandr --dpi` doesn’t work either way.

Edit: Now that I think about it, obenbox does scale properly when I do that, the DPI is set correctly now, the apps just don’t really want to comply…

---

<div class="post-metadata">

**Author:** ![petsam](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/petsam/32/41308_2.png) [@petsam](https://forum.endeavouros.com/u/petsam)\
**Post date:** [June 11, 2024, 1:55pm UTC](https://forum.endeavouros.com/t/cant-change-the-dpi-in-xorg/56509/10 "2024-06-11T13:55:32Z")

</div>

> [@thecheddarcheese](#):
>
> the apps just don’t really want to comply

Try the standard [methods](https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications).
