How to stop DPI from changing on resolution change
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to stop DPI from changing on resolution change
I am running slackware inside of a virtual machine (vmware workstation 5.5) and running xfce on X. My home monitor is a 20" LCD at 1600x1200. I have set my DisplaySize in my xorg.conf to end up with 96 dpi with these settings. The problem occurs when changing resolutions.
Sometimes, I want to use my VM in a smaller window:
when running from x11vnc my laptop is 1400x1050
when on windows and linux at the same time, I like to run around 1280x1024 to be able to see both well
The problem is that when I change my resolution while X is running using "xrandr" or the display applet in xfce, the DPI changes to try to reflect my monitor size. I don't want this, I want the DPI to ALWAYS be 96 regardless of the resolution. That way on my laptop over vncviewer and when shrinking my vmware application window, my fonts will be readable (right now, if I set the resolution to 1400x1050 for example on my laptop the fonts are too small).
Is there any way to permanently fix the DPI and stop the font scaling by screen dimensions?
The display size seems to be ignored, as it should be 96 dpi at the given display size and resolution from what I saw on other posts, but it is 69 at this resolution and 1600 was still 96.
You must set the DPI explicitly in your window manager. I am using XFCE, so I looked at the .xinitrc file in my user directory and saw that it was pulling settings from "$HOME/.config/xfce" as the 'BASEDIR' and font information from "$BASEDIR/Xft.xrdb"
So I modified the ~/.config/xfce/Xft.xrdb. I now have the following:
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintfull
Xft.rgba: rgb
Xft.dpi: 96
The key is the last line. This tells XFCE to always use 96 DPI. Now whatever resolution I use, 96 DPI will always be used.
In my case, I use SUSE.10.1.beta9
with KDE and I cannot locate any files
and directories like the ones you mention.
There should be something similar though.
In my case, I use SUSE.10.1.beta9
with KDE and I cannot locate any files
and directories like the ones you mention.
There should be something similar though.
Check out this link for SuSE help.
Optimal Use of MS TrueType Core Fonts for a KDE Desktop on SuSE
en.opensuse . org/Optimal_Use_of_Fonts_on_SuSE
FYI it was founded on this link:
Optimal Use of Fonts on Linux
avi.alkalay . net/linux/docs/font-howto/Font.html
Sorry about the goofy links...the forum software settings are preventing from linking them properly.
Quote:
Originally Posted by dive
If you have an nvidia card you can put this in driver section:
Code:
Option "UseEdidDpi" "FALSE"
Option "DPI" "96 x 96"
Worked like a charm for me. Thanks! In my case I just wanted to get back to the 81x81 VectorLinux setting I had before Nvidia driver 1.0-8762 changed it to 75x75.
In my case, I use SUSE.10.1.beta9
with KDE and I cannot locate any files
and directories like the ones you mention.
There should be something similar though.
Did you ever figure find it? I posted the Nvidia solution I'm using above, but I'd like to learn a non-Nvidia solution for then the need arises on a non-Nvidia vided rig.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.