PDA

View Full Version : gnome 3 change dpi


Japplo
14th March 2011, 01:37 PM
Hi, how can I change the dpi in Gnome 3? I can't find a Option in dconf- or gconf-editor......?

tuxor
14th March 2011, 05:27 PM
would love to have answer to that as well.

mps2006
15th March 2011, 05:34 PM

Not sure what the 'official' way to do in is, but if you put a line:

Xft.dpi: 120

in /etc/X11/Xresources

(adjusting the 120 to your taste) and restarting X (log out and back in for example) you can change the settings (NB this will affect everyone and every desktop environment).

I'm sure there is a more user-friendly way of doing it as well!

HTH
M.

tuxor
15th March 2011, 05:55 PM
I tried some values and it never changed anything... Maybe /etc/Xresources is overwritten by another config file?

Japplo
16th March 2011, 09:31 AM
same problem, /etc/X11/Xresources doesn't work

vallimar
16th March 2011, 03:41 PM
Gnome doesn't like to honour those values, hasn't for sometime.
Only a small handful of programs still do, like xterm and maybe emacs.

mps2006
16th March 2011, 09:40 PM
Interesting. Works for me for Firefox, Skype, emacs and kde apps (under fluxbox at the moment).

You can check whether it is being set somewhere else by commenting out the line you just added and then doing:

xrdb -query | grep dpi

If there is a value then it is being set elsewhere.

You can always do "startx -dpi 120" or so. Or find the proper way to do it, whatever that is!

Cheers
M.

AdamW
17th March 2011, 07:07 PM
GNOME does use the X server DPI value. It does not override it.

ganlu
18th March 2011, 09:41 AM
https://wiki.archlinux.org/index.php/Gnome_3

Japplo
18th March 2011, 10:06 PM
@ganlu I have written in my first post, that I can't find this option in the dconf-editor.....

kiddokun
20th March 2011, 10:34 PM
As far as I can tell, GNOME3 does not have a DPI setting anymore. Instead, you must use dconf-editor to change the following key (I found it by looking/searching through dconf-editor):
/org/gnome/desktop/interface/text-scaling-factor

I hope there's going to be some sort of user interface to replace the missing "Appearance" panel for gnome-control-center and provide an easier/more discoverable way to set this property...

Japplo
21st March 2011, 08:15 PM
I know. You can also change the text-scaling-factor in gnome menü to 1,25. But this is not the same like a dpi change.....

graysky
5th May 2011, 08:32 AM
Here is a solution for nvidia users: https://wiki.archlinux.org/index.php/Xorg#Setting_DPI_manually

If you use Nvidia card, you can manually set the DPI adding the options bellow on /etc/X11/xorg.conf.d/20-nvidia.conf (inside Device section):

Option "DPI" "96 x 96"