3

The touchscreen monitor I'm using for my Raspberry Pi is about 150 DPI (1280x800 @ 10"). Such high dpi is hard to work with with a touch interface. I'd like to increase the DPI such that text is rendered larger and that the QT UI I'm programming will use larger buttons (etc).

I've tried a couple things, including using xrandr --dpi and adding Xft.dpi: 150 to ~/.Xdefaults. Neither of these things have made a difference.

I'm using the default LXDE window manager.

What do I need to do to increase the DPI?

Edit: solution is to use ~/.Xresources instead of ~/.Xdefaults. A symlink solves this easily enough.

1 Answer 1

3

Have a look in ~/.Xresources for

! Xft settings ---------------------------------------------------------------
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight

If you change any of these you will have to log out and log back in for changes to take effect

Do you have an xorg.conf file in /etc/X11? You could try creating one, that should work if all else is failing.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.