Install GPU Driver Manually for NVIDIA GPUs on Ubuntu

If Ubuntu didn't find any drivers automatically, you can try installing drivers manually. Follow the steps below for NVIDIA GPUs:

  1. Add the official PPA for NVIDIA drivers:
bash 复制代码
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
  1. Install the recommended NVIDIA driver:
bash 复制代码
sudo apt install nvidia-driver-XXX

For this step, check with the latest driver version shown for your GPU by "ubuntu-drivers devices", the replace the "XXX" with the driver version you find.

  1. Reboot your system:
bash 复制代码
sudo reboot

When you reboot your system, there will be a window asking you to input the password you set before rebooting. When the system reboot successfully, check with"nvidia-smi".

4.Check BIOS Settings (For laptops)

If you're using a laptop, it's possible that your system is set to use the integrated graphics (like Intel) by default. You can:

  • Reboot your computer and enter the BIOS/UEFI setup.
  • Look for settings like "Hybrid Graphics," "Discrete Graphics," or "Switchable Graphics."
  • Change the setting to Discrete Graphics to force the use of your dedicated GPU.
  1. Force Re-detection of Hardware

You can try forcing Ubuntu to re-detect your hardware by running:

bash 复制代码
sudo update-pciids

This will update your PCI IDs, potentially helping Ubuntu recognize your GPU.

Once you've gone through these steps, check again if the drivers are being detected with:

bash 复制代码
ubuntu-drivers devices
相关推荐
r***93486 分钟前
PostgreSQL 向量扩展插件pgvector安装和使用
数据库·postgresql
z***677729 分钟前
Spring Boot 实战:轻松实现文件上传与下载功能
java·数据库·spring boot
赵师的工作日37 分钟前
MongoDB-从0到1-安全管理
数据库·安全·mongodb
Jinkxs37 分钟前
MongoDB - MongoDB处理大文件:GridFS的使用场景与教程
数据库·mongodb
i***279543 分钟前
Oracle分页sql
数据库·sql·oracle
铃汐留44 分钟前
MongoDB设置密码并使用MongoDB Compass连接
数据库·mongodb
i***171844 分钟前
mysql如何发现慢查询sql
数据库·sql·mysql
阿宁又菜又爱玩1 小时前
MySQL基础学习
数据库·学习·mysql
3***89191 小时前
sql实战解析-sum()over(partition by xx order by xx)
数据库·sql
Data_agent1 小时前
1688获得1688公司档案信息API,python请求示例
开发语言·数据库·python