Linux-CentOS安装N卡驱动以及解决屏幕亮度不可调问题

本文详细介绍了如何在Linux环境下安装NVIDIA显卡驱动,包括下载官方驱动、安装必要的GCC和Kernel-devel包、禁用Nouveau内核驱动等步骤,并提供了屏幕亮度不可调的解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

首先,去Nvidia官网下载相应的显卡驱动,注意语言选择英文,中文的下载不下来。
http://www.nvidia.cn/Download/index.aspx?lang=cn (使用wget下载,为了加快下载速度可以使用axel进行下载)


之后,怎么安装呢?

1.安装gcc,(显卡驱动安装时需要)
2.禁用The Nouveau kernel driver,参考http://enetq.blog.51cto.com/479739/591622
3.安装kernel-devel包
     linux系统,未安装该包时会提示:  
     error:unable to find the kernel source tree for the currently running kernel. please make sure you have installed the kernel source files for your kernel and that htey are properly configured; on red hat linux system, for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM installed. if you know the correct kernel source files are installed ,you may specify the kernel source path with the '--kernel-source-path' command line option.
     安装kernel-devel包:yum install kernel-devel-内核版本号,(内核版本号通过uname -r查看),然后在安装显卡驱动时指定路径:./Nvidia*.sh –kernel-source-path=/usr/src/kernels/内核版本


屏幕亮度不可调的解决方法:

目前安装了最新的N卡驱动后,出现屏幕亮度不能调节的问题,解决办法:修改/etc/X11/xorg.con文件,找Section "Device",然后在相应的EndSection之前添加一行Option "RegistryDwords" "EnableBrightnessControl=1"保存并重启就可以了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值