2010-05-08

更换ubuntu10.04系统显卡驱动

安装完ubuntu10.04 (Lucid Lynx)后可以直接在system-->administration-->hardware drivers下直接选择安装。对于不喜欢这种驱动要安装官方网站最新驱动的可以先去http://www.nvidia.com/Download/index5.aspx?lang=en-us下载最新驱动,安装官方驱动可能会遇到如下内容对话框:
ERROR: Unable to load the kernel module ‘nvidia.ko’. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb/nvidiafb is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU installed in this system is not supported by this NVIDIA Linux graphics driver release.
这种情况可按照如下步骤解决:
1. 到上面的官网下载最新驱动
2.在终端执行命令:
gksudo gedit /etc/modprobe.d/blacklist.conf
打开blacklist.conf后加入如下几行内容:
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv
3.卸载先前的nvidia驱动:
sudo apt-get --purge remove nvidia-*
4. 重启
5.重启出现Ubuntu cannot load Nvidia drivers的提示,选择“Exit to terminal (Exit to console)“
6.cd进入你下载官方驱动的目录安装驱动(注意:你的文件名可能和下面不一样,请自行更正)
sudo sh NVIDIA-Linux-x86_64-195.36.24-pkg.run
7.安装完成后启动GDM
sudo service gdm start
或者sudo /etc/init.d/gdm start

如此你的驱动应该能正常运行了(可是我还是安装不上啊,怎么办呢)
本 文方法参考:http://www.ubuntugeek.com/howto-install-nvidia-drivers-manually- on-ubuntu-10-04-lucid-lynx.html

==============================================================================

我们也可以通过这种方法来安装驱动:
系统|系统管理|硬件驱动,安装驱动后重启。然后打开终端,

sudo gedit /etc/X11/xorg.conf的Device Section中添加如下代码:
Option "RegistryDwords" "EnableBrightnessControl=1"
这样就可以直接调节屏幕亮度了。(注意:代码都是在英文状态下写入的)

以下方法我没有使用,因为调节完后发现控制台显示有问题。请您使用时注意。
然后sudo gedit /etc/default/grub,
/etc/default/grub中 缺省是#GRUB_GFXMODE=640x480, 去掉#, 数字改为显卡支持的分辨率(我的Y450没驱动时不支持宽屏分辨率,选择了1024x768x32,注意要加色深16或32,否则色深是4位的,很难看)。
/etc /grub.d/00_header中找到set gfxmode=${GRUB_GFXMODE},后面加一行让plymouth和grub分辨率一样:
代码:
set gfxpayload=keep

保存后更新一下grub.cfg:
代码:
sudo update-grub
这样就可以使得开机启动画面分辨率好许多,而且控制台的命令行文字也可以正常完全显示。

2 条评论:

嬡茬扱煙湔 说...

直接在system-->administration-->hardware drivers下直接选择安装,我的就可以,同样是Y450A,你的也行的

嬡茬扱煙湔 说...

直接在system-->administration-->hardware drivers下直接选择安装,我的就可以,同样是Y450A,你的也行的