nvidia显卡驱动后lightdm服务报错,怎么修?
Tofloor
poster avatar
dyx123
deepin
2020-06-12 22:45
Author
本帖最后由 dyx123 于 2020-6-12 15:30 编辑
  1. [+0.02s] DEBUG: Logging to /var/log/lightdm/lightdm.log
  2. [+0.02s] DEBUG: Starting Light Display Manager 1.26.0, UID=0 PID=2320
  3. [+0.02s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
  4. [+0.02s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
  5. [+0.02s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/60-deepin.conf
  6. [+0.02s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
  7. [+0.02s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
  8. [+0.02s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
  9. [+0.02s] DEBUG: Registered seat module local
  10. [+0.02s] DEBUG: Registered seat module xremote
  11. [+0.02s] DEBUG: Registered seat module unity
  12. [+0.02s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
  13. [+0.03s] DEBUG: Monitoring logind for seats
  14. [+0.03s] DEBUG: New seat added from logind: seat0
  15. [+0.03s] DEBUG: Seat seat0: Loading properties from config section Seat:*
  16. [+0.03s] DEBUG: Seat seat0: Starting
  17. [+0.03s] DEBUG: Seat seat0: Creating user session
  18. [+0.41s] DEBUG: Loading users from org.freedesktop.Accounts
  19. [+0.42s] DEBUG: User /org/freedesktop/Accounts/User1000 added
  20. [+0.62s] DEBUG: Seat seat0: Creating display server of type x
  21. [+0.62s] DEBUG: posix_spawn avoided (fd close requested)
  22. [+0.62s] DEBUG: posix_spawn avoided (fd close requested)
  23. [+0.63s] DEBUG: Deactivating Plymouth
  24. [+0.63s] DEBUG: posix_spawn avoided (fd close requested)
  25. [+0.65s] DEBUG: Using VT 1
  26. [+0.65s] DEBUG: Seat seat0: Starting local X display on VT 1
  27. [+0.65s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
  28. [+0.65s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
  29. [+0.65s] DEBUG: XServer 0: Launching X Server
  30. [+0.65s] DEBUG: Launching process 2337: /usr/bin/X -background none :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt1 -novtswitch
  31. [+0.65s] DEBUG: XServer 0: Waiting for ready signal from X server :0
  32. [+0.65s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
  33. [+0.65s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
  34. [+3.42s] DEBUG: Process 2337 exited with return value 1
  35. [+3.42s] DEBUG: XServer 0: X server stopped
  36. [+3.42s] DEBUG: Releasing VT 1
  37. [+3.42s] DEBUG: XServer 0: Removing X server authority /var/run/lightdm/root/:0
  38. [+3.42s] DEBUG: Quitting Plymouth
  39. [+3.42s] DEBUG: posix_spawn avoided (fd close requested)
  40. [+3.43s] DEBUG: Seat seat0: Display server stopped
  41. [+3.43s] DEBUG: Seat seat0: Stopping session
  42. [+3.43s] DEBUG: Seat seat0: Session stopped
  43. [+3.44s] DEBUG: Launching process 2368: /usr/sbin/deepin-fix-xauthority-perm
  44. [+3.44s] DEBUG: Process 2368 terminated with signal 11
  45. [+3.44s] DEBUG: Seat seat0: Stopping display server, no sessions require it
  46. [+3.44s] DEBUG: Seat seat0: Active display server stopped, starting greeter
  47. [+3.44s] DEBUG: Seat seat0: Creating greeter session
  48. [+3.51s] DEBUG: Seat seat0: Creating display server of type x
  49. [+3.51s] DEBUG: Using VT 1
  50. [+3.51s] DEBUG: Seat seat0: Starting local X display on VT 1
  51. [+3.51s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
  52. [+3.51s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
  53. [+3.51s] DEBUG: XServer 0: Launching X Server
  54. [+3.51s] DEBUG: Launching process 2369: /usr/bin/X -background none :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt1 -novtswitch
  55. [+3.51s] DEBUG: XServer 0: Waiting for ready signal from X server :0
  56. [+3.91s] DEBUG: Process 2369 exited with return value 1
  57. [+3.91s] DEBUG: XServer 0: X server stopped
  58. [+3.91s] DEBUG: Releasing VT 1
  59. [+3.91s] DEBUG: XServer 0: Removing X server authority /var/run/lightdm/root/:0
  60. [+3.91s] DEBUG: Seat seat0: Display server stopped
  61. [+3.91s] DEBUG: Seat seat0: Stopping session
  62. [+3.91s] DEBUG: Seat seat0: Session stopped
  63. [+3.91s] DEBUG: Seat seat0: Stopping display server, no sessions require it
  64. [+3.91s] DEBUG: Seat seat0: Stopping; greeter display server failed to start
  65. [+3.91s] DEBUG: Seat seat0: Stopping
  66. [+3.91s] DEBUG: Seat seat0: Stopped
  67. [+3.91s] DEBUG: Required seat has stopped
  68. [+3.91s] DEBUG: Stopping display manager
  69. [+3.91s] DEBUG: Display manager stopped
  70. [+3.91s] DEBUG: Stopping daemon
  71. [+3.92s] DEBUG: Exiting with return value 1
Copy the Code

  1. X.Org X Server 1.20.4
  2. X Protocol Version 11, Revision 0
  3. Build Operating System: Linux 4.19.0-6-amd64 x86_64 Uos
  4. Current Operating System: Linux dyx-PC 5.3.0-3-amd64 #1 SMP deepin 5.3.15-6apricot (2020-04-13) x86_64
  5. Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.3.0-3-amd64 root=UUID=c494a284-1038-4d9d-838c-9eb7ff205ba5 ro splash quiet DEEPIN_GFXMODE=1,1600x1200,1280x1024,1024x768
  6. Build Date: 12 January 2020  01:39:33PM
  7. xorg-server 2:1.20.4.2-1+deepin (https://www.debian.org/support)
  8. Current version of pixman: 0.36.0
  9.         Before reporting problems, check http://wiki.x.org
  10.         to make sure that you have the latest version.
  11. Markers: (--) probed, (**) from config file, (==) default setting,
  12.         (++) from command line, (!!) notice, (II) informational,
  13.         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
  14. (==) Log file: "/var/log/Xorg.0.log", Time: Fri Jun 12 14:26:54 2020
  15. (==) Using config directory: "/etc/X11/xorg.conf.d"
  16. (==) Using system config directory "/usr/share/X11/xorg.conf.d"
  17. vesa: Ignoring device with a bound kernel driver
  18. (EE)
  19. Fatal server error:
  20. (EE) no screens found(EE)
  21. (EE)
  22. Please consult the The X.Org Foundation support
  23.          at http://wiki.x.org
  24. for help.
  25. (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
  26. (EE)
  27. (EE) Server terminated with error (1). Closing log file.
Copy the Code

在网上搜到一个技术帖,改了makefiles,总算顺利安装完nvidia340.108驱动了,但是开机却不显示桌面,无意中查服务发现lightdm服务报错,怎么修改?
附上修改装驱动报错的技术帖。觉得挺厉害的。
https://blog.csdn.net/itszhangy/article/details/103934271

而且,安装驱动后,最后有个选项只能选No,不然重启进系统就卡在进桌面前黑屏,尝试过删除/etc/X11/xrog.conf(这个文件名忘了,应该是这个),桌面前就不卡死了,而是启动服务列表,但也不进桌面。安装日志:
  1. nvidia-installer log file '/var/log/nvidia-installer.log'
  2. creation time: Fri Jun 12 07:11:08 2020
  3. installer version: 340.108

  4. PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

  5. nvidia-installer command line:
  6.     ./nvidia-installer

  7. Using: nvidia-installer ncurses v6 user interface
  8. -> License accepted.
  9. -> Installing NVIDIA driver version 340.108.
  10. -> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: Yes)
  11. -> Installing both new and classic TLS OpenGL libraries.
  12. -> Installing both new and classic TLS 32bit OpenGL libraries.
  13. -> Install NVIDIA's 32-bit compatibility libraries? (Answer: Yes)
  14. -> Skipping installation of the libvdpau wrapper library.
  15. -> Searching for conflicting X files:
  16. -> done.
  17. -> Searching for conflicting OpenGL files:
  18. -> done.
  19. -> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86_64' (340.108):
  20.    executing: '/usr/sbin/ldconfig'...
  21. -> done.
  22. -> Driver file installation is complete.
  23. -> Installing DKMS kernel module:
  24. -> done.
  25. -> Running post-install sanity check:
  26. -> done.
  27. -> Post-install sanity check passed.
  28. -> Shared memory test passed.
  29. -> Running runtime sanity check:
  30. -> done.
  31. -> Runtime sanity check passed.
  32. -> Would you like to run the nvidia-xconfig utility to automatically update your X configuration file so that the NVIDIA X driver will be used when you restart X?  Any pre-existing X configuration file will be backed up. (Answer: No)
  33. -> Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 340.108) is now complete.  Please update your XF86Config or xorg.conf file as appropriate; see the file /usr/share/doc/NVIDIA_GLX-1.0/README.txt for details.
Copy the Code

现在只能/etc/modprobe.d/里
blacklist nvidia
#blacklist nouveau

如果屏蔽nouveau而#blacklist nvidia的话,进系统就只能到服务列表,Ctrl+alt+F2能进init3,sudo systemctl start lightdm没用,查看服务lightdm服务报错,无法启动lightdm服务。

lightdm的status信息:
* lightdm.service - Light Display Manager
   Loaded: loaded (/lib/systemd/system/lightdm.service; indirect; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2020-06-12 15:20:32 CST; 3min 48s ago
     Docs: man:lightdm(1)
  Process: 2760 ExecStartPre=/bin/sh -c [ "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/lightdm" ] (code=exited, status=0/SUCCESS)
  Process: 2768 ExecStart=/usr/sbin/lightdm (code=exited, status=1/FAILURE)
Main PID: 2768 (code=exited, status=1/FAILURE)

Jun 12 15:20:28 dyx-PC systemd[1]: Starting Light Display Manager...
Jun 12 15:20:29 dyx-PC systemd[1]: Started Light Display Manager.
Jun 12 15:20:32 dyx-PC systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Jun 12 15:20:32 dyx-PC systemd[1]: lightdm.service: Failed with result 'exit-code'.
Jun 12 15:20:32 dyx-PC systemd[1]: lightdm.service: Triggering OnFailure= dependencies.
ubuntu可以驱动并启动,深度却不行,我装ubuntu试了。
Reply Favorite View the author
All Replies
avatar
156******15
deepin
2022-04-21 18:47
#1

有解决办法了吗

Reply View the author
avatar
dyx123
deepin
2023-05-23 05:30
#2

驱动无法正常安装的原因找到了,我买的是山寨改卡GTX 750 TI,有的驱动管理软件显示芯片gm107,在win7的gpu-z显示gf116,百度搜索结果其实是gtx 550 ti的显卡芯片,在nvidia的网站下载gtx550ti的Linux驱动安装后正常驱动,之前因为没驱动用的开源驱动,还要另外插音箱线放声音的,安装gtx550ti的Linux驱动后电视就有声音了,再也不用外插音响来看视频听音乐了,看来很多驱动管理软件连芯片都无法正确显示,我还以为深度系统的问题。

Reply View the author