View previous topic :: View next topic |
Author |
Message |
equilibrium Apprentice
Joined: 29 Jun 2003 Posts: 213 Location: UK
|
Posted: Sat May 15, 2004 1:50 pm Post subject: Make X start with a certain dpi |
|
|
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 |
|
|
mbobak Tux's lil' helper
Joined: 24 Feb 2003 Posts: 106 Location: Ann Arbor, MI
|
Posted: Sun May 16, 2004 6:16 pm Post subject: DDC? |
|
|
Isn't this somewhat irrelevant since X started supporting DDC? |
|
Back to top |
|
|
equilibrium Apprentice
Joined: 29 Jun 2003 Posts: 213 Location: UK
|
Posted: Sun May 16, 2004 11:51 pm Post subject: |
|
|
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 |
|
|
cato` Guru
Joined: 03 Jun 2002 Posts: 430 Location: Norway, Trondheim
|
Posted: Mon May 17, 2004 5:27 pm Post subject: |
|
|
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 |
|
|
glen666 n00b
Joined: 06 Apr 2004 Posts: 9
|
Posted: Tue Jun 29, 2004 8:58 am Post subject: confconfig |
|
|
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 |
|
|
|