1:安装epel源:
sudo rpm -ivh epel-release-7.5.noarch.rpm
2:安装elrepo源:
sudo rpm -Uvh elrepo-release-7.0-4.1.x86_64.rpm
3:依赖安装bumblebee
sudo yum install bumblebee
4:修改/etc/bumblebee/bumblebee.conf中的driver-nvidia]中的ernelDrive为nvidia
# Module name to load, defaults to Driver if empty or unset
<span style="color:#FF0000;"><strong>KernelDriver=nvidia</strong></span>
PMMethod=auto
5:重启。
6:查看NVIDIA显卡是否是rev ff状态。
7:测试女idia显卡驱动正常安装:
optirun glxspheres64
备注:
在多次使用optirun之后可能会出现
[ 994.608946] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Server terminated successfully (0). Closing log file.[ 994.609055] [ERROR]Aborting because fallback start is disabled.
可以修改etc/bumblebee/bumblebee.conf:
Driver=nvidia
KernelDriver=nvidia-current