This box will be fixed on your screen using Firefox, Opera9 or IE7.

“花屏” as soon as back to console

给台机换了张好点的N卡,一切设置如驱动、xorg.conf 等全部调整 OK后,进系统、进 X 都很正常。但邪门的是只要进 X 后返回控制台则花屏,严格说也不叫花屏就是控制台显示的字会变花,类似失焦、模糊的效果,让人很难辨认,不过连猜带蒙还是可以猜一些。这就怪了,以前那张卡还差些都从来没这问题(也是N 卡,但驱动版本要低些),反而是换张好点的还出问题?

赶紧 Google 一通,返回的结果基本上都是说 grub 中 vga 参数的问题,我在 grub 中 vga 参数反复调成不同分辨率均是同样问题:第一次启动进入控制台是正常的,但只要从 X 返回控制台就一定花,除非 grub 中不加 vga,但这样控制台字大面积小,很不利命令行操作。

还有文章认为 vesafb 驱动太老,某些新显卡就会有问题,目前已有 Gentoo 新项目 uvesafb 代替。赶紧又安装设置 uvesafb,但最终效果感觉不如 vesafb 来得精细清晰,设置为同样的控制台分辨率,uvesafb 要糙得多,字也要大些,不过不花了,先凑合吧。

一般来说,像此类技术问题直接搜英文文章找答案比较容易,但我不知道类似我这种“花屏”英文用什么来表述,用了一些像:confuse, mix up, out of focus 等词语都未能找到直中要害的文章。昨天突然想到干脆把 nividia 加为关键词来搜搜看,没想到一下就找到了官方论坛上的解决方法: No more black terminals after starting X

只要在系统的显卡设置文件中设置 NVreg_UseVBios=0 即可,不同发行版略有不同,作者是 Gentoo 修改 /etc/modprobe.d/nvidia 即可,而我的 Archlinux 没有此文件,则修改 /etc/modprobe.conf ,添加一行:
[code lang=”cpp”]options nvidia NVreg_UseVBios=0[/code]

重启后 cat /proc/driver/nvidia/registry 可以看是否生效。startx 后再回到 console 完全正常了。激动啊,终于又能用回 vesafb 了。

2 Comments

  1. yang Comments @ 11:11:20 on 2008-12-18

    perfect!

  2. kobe 11 Comments @ 09:32:48 on 2018-11-07

    My wife and i ended up being joyful Michael managed to complete his reports using the ideas he had out of the blog. It’s not at all simplistic to just be releasing tactics that many many people may have been selling. Therefore we remember we have the website owner to appreciate for this. Most of the illustrations you have made, the simple website navigation, the relationships your site make it easier to create - it’s many unbelievable, and it is facilitating our son in addition to the family do think that article is brilliant, and that is exceedingly serious. Thank you for the whole thing!