安装闭源nvidiA,字体dpi变形
Tofloor
poster avatar
kfnx1981
deepin
2016-11-12 07:55
Author
安装后界面菜单 浏览器收藏夹等字体会变小,重启两次后恢复到正常差不多,但依然肉眼有些区别。而打开wps则会提醒字体dpi不对称。
这问题在其他linux也存在,不知道各位怎么解决的?
Reply Favorite View the author
All Replies
avatar
kfnx1981
deepin
2016-11-13 21:33
#1
搜索nvidia dpi,找到网页Lubuntu change fonts DPI when using proprietary Nvidia driver http://www.techytalk.info/lubunt ... tary-nvidia-driver/



Recently during my Lubuntu 12.10 Quantal Quetzal review I've noticed that after installing proprietary Nvidia driver my fonts were a little too small. Since I've discovered the problem was in fonts DPI value, in this article I'll show you how to specify your fonts DPI manually inside your xorg.conf.

Proprietary Nvidia drivers are smart enough to access your monitor EDID to detect it's panel DPI settings. Unfortunately that DPI makes my fonts too small because I like my fonts at standard 96 DPI. Most desktop environments come with GUI tool where you can specify your font size and DPI. LXDE from Lubuntu unfortunately doesn't have this tool so you must specify your fonts DPI manually inside your xorg.conf.

I'll assume you have your proprietary Nvidia driver installed. First thing you must do is to generate default xorg.conf like this:

sudo nvidia-xconfig --no-use-edid-dpi
This will generate default xorg.conf and disable use of DPI info acquired from your monitor EDID. Now you are free to specify your desired DPI by placing following inside section "Monitor" of your /etc/X11/xorg.conf:

Option "DPI" "96 x 96"
You can change DPI value from 96 to your desired value. Changes should be noticeable after reboot.————————————————————
我没安装xconfig,直接sudo su密码   nvidia-settings,在保存前可点击预览编辑,在里面同样有Option那几行 添加就可以了。应该效果一致吧。再打开wps就不提示dpi不对称了。注意第一次打开wps默认选择忽略再次提示,要试验的话就取消对号。

Reply View the author
avatar
slhtks
deepin
2016-11-14 00:40
#2
我是这么搞的:

把
  1. xrandr --dpi 96
Copy the Code

添加到 ~/.profile 里,可以登陆时自动搞定。
Reply View the author