ThinkPad-P16-Gen-2 with Nvidia RTX A5000 GPU installs nvidia driver on ubuntu 22.04

My ThinkPad-P16-Gen-2's ubuntu22.04 kernel is 5.15.0,which cannot successfully install nvidia driver with commad:

sudo apt install nvidia-driver-545

To solve this problem, we have to upgrade the kernel from 5.15.0 to 5.19.0 which you can download from:Index of /mainline

and then use the following command to install the 5.19.0 kernel in the folder:

sudo dpkg -i linux-*

sudo update-grub

and then reboot the laptop to ensure your ubuntu22.04 is using kernel with version 5.19.0.

when it comes to install the nvidia driver, you should follow the traditional way like below:

sudo gedit /etc/modprobe.d/blacklist.conf
blacklist nouveau
options nouveau modeset=0
sudo apt-get update
sudo apt-get install build-essential

After the update,input the following command to check whether nouveau is turned off.

lsmod | grep nouveau

If there is no output, it means sucess, or you should reboot your laptop.

then use the following command to install nvidia driver

sudo apt install nvidia-driver-545

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值