You are not logged in.
Ever since upgrading my graphics card to a NVidia GeForce GTX 650 Ti, KDM has used the wrong DPI. I previously was able to circumvent this by using this in /usr/share/config/kdm/kdmrc, as found on the Arch Wiki page for KDM:
[...]
ServerArgsLocal=-dpi 96 -nolisten tcp
[...]
This used to work, but after upgrading my system recently, it does not. I have tried manually setting the DPI in xorg.conf, manually setting the screen size in xorg.conf, making a startup script to change the DPI when KDM loads, and setting "UseEdidDpi" to "FALSE" in xorg.conf, but none of this has worked. Any help is appreciated.
edit: Apparently it's a resolution problem, so disregard all of this DPI talk.
Last edited by stickychickenjohnson (2013-05-24 18:37:01)
Offline
I'm suspicious that 96x96 DPI is correct for your monitor. What does Nvidia set for DPI, and why do you think it's wrong?
Here's previous discussions on DPI.
Offline
I'm not sure as to how to find Nvidia's suggested DPI, but the one that is used on KDM is obviously wrong, being pixelly and distorted.
Offline
xdpyinfo | grep -B1 dot
"Pixelly"? Is it a truetype or bitmap font? A screenshot would probably help.
Last edited by brebs (2013-05-19 07:10:53)
Offline
dimensions: 1360x768 pixels (359x203 millimeters)
resolution: 96x96 dots per inch
Offline
Run that *without* already overriding the DPI to 96, of course.
Offline
Ok, so after fooling around and trying to get it to load as it does on KDM, I realized that it's not a DPI problem at all; it's a resolution problem. I thought I'd had this problem before but it was different, now that I remember. Any advice on forcing the resolution on KDM? Sorry about that.
Offline
Ok, so after fooling around and trying to get it to load as it does on KDM, I realized that it's not a DPI problem at all; it's a resolution problem. I thought I'd had this problem before but it was different, now that I remember. Any advice on forcing the resolution on KDM? Sorry about that.
Have you checked /var/log/Xorg.0.log for any clues?
Offline
I did actually find this, which may be relevant:
[ 11.687] (II) NVIDIA(0): Virtual screen size determined to be 1280 x 720
[ 11.715] (++) NVIDIA(0): DPI set to (96, 96); computed from -dpi X commandline option
[ 11.715] (--) Depth 24 pixmap format is 32 bpp
I guess that it's worth mentioning that 1280x720 is not the right resolution, and that it should be 1360x768.
Offline
I did actually find this, which may be relevant:
[ 11.687] (II) NVIDIA(0): Virtual screen size determined to be 1280 x 720 [ 11.715] (++) NVIDIA(0): DPI set to (96, 96); computed from -dpi X commandline option [ 11.715] (--) Depth 24 pixmap format is 32 bpp
I guess that it's worth mentioning that 1280x720 is not the right resolution, and that it should be 1360x768.
Can you post your xorg.conf?
Offline
xorg.conf:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 304.64 (buildmeister@swio-display-x86-rhel47-12) Tue Oct 30 12:04:46 PDT 2012
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
DisplaySize 360 203
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
# Option "UseEdidDpi" "FALSE"
# Option "DPI" "96 x 96"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "NoLogo" "1"
Option "TripleBuffer" "1"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1360x768_60.00"
EndSubSection
EndSection
Offline
Try the following. Just make sure that you create a back up copy of your current xorg.conf file before you proceed!
Add the following line to the "Monitor" section of your xorg.conf:
Option "PreferredMode" "1360x768"
make the changes -> Save -> Reboot and hope it works, if not just fall back to your back up config file.
Offline
Unfortunately it didn't work.
Offline
Okay, try this
Add the following to your "Monitor" section:
Modeline "1360x768_60.00" 84.72 1360 1424 1568 1776 768 769 772 795 -HSync +Vsync
Reboot, if that doesn't do it .. then I've also hit a wall
Offline
Yeah, no dice
Thanks for trying, though
Offline
All I keep finding when searching online, is to make the "Modeline" match what you have for "Mode". I've had a problem with KDM not making the monitor of my choice the "primary." I ran then nvidia-settings (GUI), made all my changes in the section for Screens, then hit the option to save the xorg.conf that it generated. That forced all monitor settings instead of letting KDM or KDE touch it, it might be worth a shot.
Offline
There we go! It worked after I generated a fresh new xorg.conf with nvidia-settings. Thanks a lot for your help!
Offline