原显卡为 R7 240, 更换为 3060Ti 后, 开机进桌面时卡在了黑屏界面, 键盘有反应, 但是无法进入 shell.
解决方案为 https://askubuntu.com/questions/1538108/cant-install-rtx-4060-ti-on-ubuntu-22-04-lts
启动后在开机菜单中(如果没有开机菜单, 需要按shift键), 进入recovery mode, 进入 root shell,
删除原有的 nvidia 驱动
sudo apt purge 'nvidia-*'
sudo apt autoremove --purge
sudo apt clean
安装官方驱动
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
ubuntu-drivers devices
(Check your device)sudo apt install nvidia-driver-XXX
(replace XXX with the driver you want (like 535))- 重启系统
如果还有问题, 手动设置显示参数
# you would need to replace the output you are using and set the display parameters you want
xrandr --output HDMI-0 --mode 1920x1080