LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Changing the dpi (https://www.linuxquestions.org/questions/linux-general-1/changing-the-dpi-131324/)

budhusa 01-04-2004 01:12 AM

Changing the dpi
 
Does anyone have any ideas on how to change the dpi besides editing /etc/X11/fs/config, cause that is not working for me...its still 75x75 and i cant get it to change...aaah...

thanks a million

budhusa 01-04-2004 03:06 AM

after about 2 months of searching the net and posting this question here repeatedly, I FINALLY FOUND MY ANSWER!!! This whats best about linux - this feeling...when you finally solve a problem. So here was my solution just in case anyone has this trouble:

Edit /etc/X11/xdm/Xservers as root.

Change:
:0 local /usr/X11R6/bin/XSomething
to
:0 local /usr/X11R6/bin/XSomething -dpi 100

You need to restart for this to work.

Thats it...im a newbie, but if im correct what this does is change the default dpi of the LOGIN screen to 100 dpi. This is why i was having seemingly random shifts between 75 and 100 dpi depending on how i logged in and out...

Thanks to all who would have helped... :-) God I am so glad now...

ezra143 01-04-2004 04:36 AM

well, since you answered your own question, just a brief thanks for posting the ANSWER here.

I wish more people did, it may cut down on googling day in and day out, as im sure someone will have this problem later on. And it would be nice if more people indicated that a suggestion given did, infact, fix the problem, so that other could reap the benfits of thier misfortune at a later date..... anyhow, thanks.

Ryanbmx5 02-16-2006 03:26 PM

Indeed. Thanks for posting the answer to this question. I was wondering how to change the dpi from the default 75. Thanks

I am also a Linux :newbie:

wearetheborg 07-31-2006 02:52 AM

I also had to add the following to ~/.Xresources
Xft.dpi: 96


Then rebooted, now KDE is seems to be 96 dpi (everything smaller).
However xdpyinfo |grep dots still gives 131x132
*Shrug*

bonecrusher 11-13-2006 01:27 PM

system wide xdm Xresources
 
Quote:

Originally Posted by wearetheborg
I also had to add the following to ~/.Xresources
Xft.dpi: 96


Then rebooted, now KDE is seems to be 96 dpi (everything smaller).
However xdpyinfo |grep dots still gives 131x132
*Shrug*


Well that or (since we are messing with /etc/X11/xdm:)

change /etc/X11/xdm/Xresources instead.
(not sure if this is picked up if running kde/gnome - non-xdm(kdm/gdm) display managers???)

In xorg.conf, you can also change to system wide by doing this:
(in monitor section)
Code:

DisplaySize 336 252 # 96 DPI @ 1280x960

(OR)

DisplaySize 337.5 270.0 # 96 @ 1280 x 1024

this is subject to changing, though, if you change the resolution... (Alt+Ctrl+PLUS or Minus +/-)

Now if you use KDE with KDM like me, I finally figured out what to change:
put "-dpi 96"
on the end of ServerArgsLocal (not ServerCmd):
/opt/kde/share/config/kdm/kdmrc
Code:

ServerArgsLocal=-nolisten tcp
becomes
Code:

ServerArgsLocal=-nolisten tcp -dpi 96

See http://wiki.archlinux.org/index.php/Xorg and http://scanline.ca/dpi/ this for more info.
Also on this site check: Making fonts look nice.
For info on KDE changes see:
Control Fonts in X and Mozilla DPI issues

Hope this helps someone!

-Brady


All times are GMT -5. The time now is 07:04 AM.