得不偿失,安装NVIDIA驱动不成功,却开机无法登录图形界面
Tofloor
poster avatar
kirin2020
deepin
2020-10-09 05:58
Author
今天趁有空,对着论坛的帖子想自己体验一下安装N卡的官方闭源驱动,但结果令人悲伤。得不偿失的是安装NVIDIA驱动不成功,最后却把deepin 20搞砸了,开机无法登录图形界面了,直接文字界面tty了,很不爽,请赐教如何才能恢复直接登录图形界面???谢谢。


注:就连系统自带的那个开源N卡驱动也让我清除了,所以无法切换到原来的开源驱动了,只能用集成显卡intel。


Reply Favorite View the author
All Replies
kirin2020
deepin
2020-10-09 06:02
#1
现在每次启动计算机都直接进入那个tty文字界面了,
而且要输入命令:sudo systemctl restart lightdm   

才能进入原来的图形界面。好烦哦
Reply View the author
忘记、过去
deepin
2020-10-09 06:27
#2
sudo apt autopurge nvidia-* 卸载所有 NVIDIA 相关的驱动包

然后把你按照帖子里写入的配置文件都还原,比如删除 /etc/X11/xorg.conf,删除 /etc/lightdm/display-setup.sh,恢复 /etc/lightdm/lightdm.conf 内容,删除 ~/.xinitrc 等。

大概就记得这些了,照着帖子慢慢还原试试吧。
Reply View the author
kirin2020
deepin
2020-10-09 06:56
#3
https://bbs.deepin.org/post/203536
sudo apt autopurge nvidia-* 卸载所有 NVIDIA 相关的驱动包

然后把你按照帖子里写入的配置文件都还原,比 ...

除了 /etc/lightdm/lightdm.conf 不知道原来的内容是什么?所以无法恢复。你所说的其它步骤,我都做过了的,清理干净了的。无效哦,晕
Reply View the author
a***1@163.com
deepin
2020-10-09 07:40
#4
话说你们弄驱动或者弄一些心里没底的大型软件之前,
都不对系统用live盘做个备份dim镜像吗?
Reply View the author
spectator000
deepin
2020-10-09 07:47
#5
我也遇到过,安装官方闭源n卡驱动时:安装时dkms选项选yes,32位库选yes,如果不是第一次安装还会多个libglvnd库选项选覆盖安装,xconfig我选的是yes,之前有次装选no,造成xorg配置不对(不知道是不是个例),启动不能进桌面,需要手动tty后命令启动桌面。估计关于xorg.conf那项选的no,搜搜论坛里有重置xorg.conf命令,估计就行。
Reply View the author
spectator000
deepin
2020-10-09 07:50
#6
系统自带驱动完全够用,兼容性升级性更稳,只需注意对于n卡用户:1:打开32位架构支持(sudo dpkg --add-architecture i386) 2:安装32位nvidia驱动(sudo apt install nvidia-driver-libs:i386)3:安装vulkan spir-v编译库(sudo apt install libnvidia-glvkspirv )我遇到linux版steam在deepin下运行缺的部分。
Reply View the author
spectator000
deepin
2020-10-09 07:50
#7
本帖最后由 spectator000 于 2020-10-8 23:58 编辑

系统自带闭源驱动完全够用,兼容性升级性更稳,只需注意对于n卡用户:1:打开32位架构支持(sudo dpkg --add-architecture i386) 2:安装32位nvidia驱动(sudo apt install nvidia-driver-libs:i386)3:安装vulkan spir-v编译库(sudo apt install libnvidia-glvkspirv )我遇到linux版steam在deepin下运行缺的部分。
Reply View the author
kirin2020
deepin
2020-10-10 04:42
#8
https://bbs.deepin.org/post/203536
系统自带闭源驱动完全够用,兼容性升级性更稳,只需注意对于n卡用户:1:打开32位架构支持(sudo dpkg --ad ...

如何恢复系统自带的N卡闭源驱动???
Reply View the author
kirin2020
deepin
2020-10-10 05:54
#9
看来只能重装系统了,呜呜呜呜............
Reply View the author
deepinuser17
deepin
2020-10-10 08:23
#10
https://bbs.deepin.org/post/203536
看来只能重装系统了,呜呜呜呜............

运行所附的脚本,卸载闭源N卡驱动,恢复开源N卡驱动。然后重启机器。
  1. tar zxf deepin_remove_nvidia_driver.tar.gz
  2. sudo ./deepin_remove_nvidia_driver.sh
Copy the Code
Reply View the author
kirin2020
deepin
2020-10-10 16:51
#11
https://bbs.deepin.org/post/203536
运行所附的脚本,卸载闭源N卡驱动,恢复开源N卡驱动。然后重启机器。

马上试试,不管结果如何,都得感谢兄弟的关注和援手。哈哈哈
Reply View the author
kirin2020
deepin
2020-10-10 18:45
#12
有错误提示,原来的开源驱动没找到了,晕。怎么办?

Reply View the author
muxia_jhy
deepin
2020-10-10 18:55
#13
你没把Xserver打开,所有Linux发行版的图形界面都依赖这个东西,打开命令sudo systemctl default graphical.target
Reply View the author
muxia_jhy
deepin
2020-10-10 18:57
#14
sudo systemctl set-default graphical.target,刚刚手误了
Reply View the author
deepinuser17
deepin
2020-10-10 19:30
#15
本帖最后由 deepinuser17 于 2020-10-10 11:32 编辑
https://bbs.deepin.org/post/203536
有错误提示,原来的开源驱动没找到了,晕。怎么办?

文件名缺了一个字母x, xserver-xorg-video-nouveau.

重新下载这个附件。

或者直接运行以下命令:
  1. sudo apt -y install xserver-xorg-video-nouveau libdrm-nouveau2
Copy the Code





Reply View the author
kirin2020
deepin
2020-10-10 23:52
#16
https://bbs.deepin.org/post/203536
sudo systemctl set-default graphical.target,刚刚手误了

无效哦
Reply View the author
kirin2020
deepin
2020-10-10 23:53
#17
本帖最后由 kirin2020 于 2020-10-10 16:01 编辑
https://bbs.deepin.org/post/203536
文件名缺了一个字母x, xserver-xorg-video-nouveau.

重新下载这个附件。

提示已经安装了最新版本了,还是一样,无效哦
Reply View the author
deepinuser17
deepin
2020-10-11 07:46
#18
https://bbs.deepin.org/post/203536
提示已经安装了最新版本了,还是一样,无效哦

查看/etc/modprobe.d/文件夹,里面会有一个类似blacklist-nouveau.conf的文件。 把这个文件移走。
  1. sudo mv /etc/modprobe.d/blacklist-nouveau.conf /root
Copy the Code


更新kernel initramfs文件:
  1. sudo cp /boot/initrd.img-$(uname -r){,.without_nouveau}
  2. sudo update-initramfs -u
Copy the Code


重启机器
Reply View the author