Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Make X start with a certain dpi
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
equilibrium
Apprentice
Apprentice


Joined: 29 Jun 2003
Posts: 213
Location: UK

PostPosted: Sat May 15, 2004 1:50 pm    Post subject: Make X start with a certain dpi Reply with quote

OK I stumbled by this after using gnome and changing the resolution with the gnome tool. But now I've gone back to kde and want to change dpi. You can do "startx -- -dpi 100" but I cba typing all that every bootup. So to get it to do it automatically just do:
Code:
nano -w /usr/X11R6/bin/startx
find - serverflags=
add in "-dpi 100"
eg- serverflags="-dpi 100"

or for gdm
Code:
nano -w /etc/X11/gdm/gdm.conf
find command=
add in -dpi 100
eg- command=/usr/X11R6/bin/X -audit 0 -dpi 100

Don't know if this has been documented but I looked thru the forums and didn't see it anywhere :)

note: just change 100 to whatever you want. You can always play around with startx -- -dpi "xxx" before adding this :)

you can check the dpi has changed by doing : "xdpyinfo | grep resolution"
_________________
kernel 4.15.17-1-equk | i3wm | github
Back to top
View user's profile Send private message
mbobak
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2003
Posts: 106
Location: Ann Arbor, MI

PostPosted: Sun May 16, 2004 6:16 pm    Post subject: DDC? Reply with quote

Isn't this somewhat irrelevant since X started supporting DDC?
Back to top
View user's profile Send private message
equilibrium
Apprentice
Apprentice


Joined: 29 Jun 2003
Posts: 213
Location: UK

PostPosted: Sun May 16, 2004 11:51 pm    Post subject: Reply with quote

I'm not sure but there are a number of threads asking about setting the dpi of X to a certain value, which was why I posted this :).
Also not everyone is using the newest version of X ?
_________________
kernel 4.15.17-1-equk | i3wm | github
Back to top
View user's profile Send private message
cato`
Guru
Guru


Joined: 03 Jun 2002
Posts: 430
Location: Norway, Trondheim

PostPosted: Mon May 17, 2004 5:27 pm    Post subject: Reply with quote

If you use bash, isn't it easier to edit the .bashrc file? (if the system does not ut xdm)
Code:

startx="startx -- -dpi 100"

_________________
Don't mess with the Penguin.
Back to top
View user's profile Send private message
glen666
n00b
n00b


Joined: 06 Apr 2004
Posts: 9

PostPosted: Tue Jun 29, 2004 8:58 am    Post subject: confconfig Reply with quote

you can achive same for fontconfig-based apps


just add this to your ~/.fonts.conf:
Code:

 <match target="pattern" >
  <edit mode="assign" name="dpi" >
   <int>90</int>
  </edit>
 </match>


but i have rather question, how to figure out the correct DPI for the monitor, i had default 72, which was small, i set to 90, that was too big. can i set any number i'd like?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum