Advertisement
edmundlaugasson

nVidia with XWayland on EndeavourOS

Mar 10th, 2024 (edited)
1,139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.94 KB | None | 0 0
  1. cat /usr/lib/endeavouros-release
  2. VERSION=2024.01.25
  3.  
  4. lsb_release -a
  5. Distributor ID: EndeavourOS
  6. Description:    EndeavourOS Linux
  7.  
  8. # clean online install on March 10, 2024 with KDE desktop
  9.  
  10. # https://discovery.endeavouros.com/nvidia/new-nvidia-driver-installer-nvidia-inst/2022/03/
  11.  
  12. nvidia-inst --drivers
  13. NVIDIA card id: 13b0
  14. Fetching driver data from nvidia.com ...
  15. Series 550: supported (nvidia.com: 550.54.14)
  16.  
  17. nvidia-inst --series 550 -t
  18. 2024-03-11 00:11:38: Info: Running: nvidia-inst v23.1-1
  19. 2024-03-11 00:11:38: Info: Command line: nvidia-inst --series 550 -t
  20. 2024-03-11 00:11:38: Info: Selected mode: nvidia
  21. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22. COMMANDS TO RUN:
  23.     ==> Looks like all requested packages and settings are already OK!
  24. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25.  
  26. inxi -xxxGz
  27. Graphics:
  28.   Device-1: NVIDIA GM107GLM [Quadro M2000M] vendor: Lenovo driver: nvidia
  29.     v: 550.54.14 arch: Maxwell pcie: speed: 5 GT/s lanes: 16 ports: active: none
  30.     off: eDP-1 empty: DP-1,DP-2,DP-3 bus-ID: 01:00.0 chip-ID: 10de:13b0
  31.     class-ID: 0300
  32.   Device-2: Lite-On Integrated Camera driver: uvcvideo type: USB rev: 2.0
  33.     speed: 480 Mb/s lanes: 1 bus-ID: 1-8:2 chip-ID: 04ca:7058 class-ID: 0e02
  34.   Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.4
  35.     compositor: kwin_wayland driver: X: loaded: nvidia unloaded: modesetting
  36.     alternate: fbdev,nouveau,nv,vesa gpu: nvidia display-ID: 0
  37.   Monitor-1: eDP-1 res: 1536x864 size: N/A modes: N/A
  38.   API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 2
  39.     drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: nvidia
  40.     x11: drv: zink inactive: device-1
  41.   API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.54.14
  42.     glx-v: 1.4 direct-render: yes renderer: Quadro M2000M/PCIe/SSE2
  43.     display-ID: :1.0
  44.   API: Vulkan v: 1.3.279 layers: 1 surfaces: xcb,xlib,wayland device: 0
  45.     type: discrete-gpu driver: nvidia device-ID: 10de:13b0
  46.  
  47. journalctl -xb -p3
  48. March 10 23:50:43 host kwin_wayland[1443]: kwin_wayland_drm: Pageflip timed out! This is a kernel bug
  49. March 10 23:50:48 host kwin_wayland[1443]: kwin_wayland_drm: Pageflip timed out! This is a kernel bug
  50. March 10 23:50:53 host kwin_wayland[1443]: kwin_wayland_drm: Pageflip timed out! This is a kernel bug
  51. March 10 23:50:57 host kwin_wayland[1443]: kwin_wayland_drm: Pageflip timed out! This is a kernel bug
  52. March 10 23:51:02 host kwin_wayland[1443]: kwin_wayland_drm: Pageflip timed out! This is a kernel bug
  53. March 10 23:51:07 host kwin_wayland[1443]: kwin_wayland_drm: Pageflip timed out! This is a kernel bug
  54. # sounds like this caused that 5-6 second delay during loading KDE desktop
  55.  
  56. uname -r
  57. 6.7.9-arch1-1
  58. # Intel i7 x86_64 CPU
  59.  
  60. # issue:
  61. # after login system will freeze for 5-6 seconds, then all works
  62.  
  63. # after suspend desktop is garbage and needs relogin to fix
  64. # applied as suggested during nvidia driver installation but didn't help:
  65. sudo systemctl enable --now nvidia-resume.service
  66.  
  67. # available services:
  68. systemctl status nvidia-
  69. nvidia-hibernate.service     nvidia-powerd.service        nvidia-suspend.service
  70. nvidia-persistenced.service  nvidia-resume.service
  71.  
  72. # when enabled nvidia-suspend.service in addition to nvidia-resume.service, system freezed and later could disable that service on recovery console.
  73. # after enabling service and rebooted, status is so:
  74. systemctl status nvidia-resume.service
  75. ○ nvidia-resume.service - NVIDIA system resume actions
  76.      Loaded: loaded (/usr/lib/systemd/system/nvidia-resume.service; enabled; preset: disabled)
  77.      Active: inactive (dead)
  78.  
  79. # all services are inactive
  80.  
  81. echo $XDG_SESSION_TYPE
  82. wayland
  83.  
  84. grep 'ExecStart=' /etc/systemd/system/display-manager.service
  85. ExecStart=/usr/bin/sddm
  86.  
  87. systemctl status display-manager
  88. ● sddm.service - Simple Desktop Display Manager
  89.  
  90. systemctl --property=Id,Description show display-manager.service
  91. Id=sddm.service
  92. Description=Simple Desktop Display Manager
  93.  
  94. file /etc/systemd/system/display-manager.service
  95. /etc/systemd/system/display-manager.service: symbolic link to /usr/lib/systemd/system/sddm.service
  96.  
  97. # SOLUTION
  98. # ... is to use X11 instead of Wayland as Wayland is still not yet ready
  99.  
  100. /etc/sddm.conf.d/kde_settings.conf
  101. # could be also /etc/sddm.conf or /etc/sddm.conf.d/sddm.conf
  102. [Autologin]
  103. Session=plasmax11
  104. User=<user>
  105. # here is plasmax11 instead of plasma
  106.  
  107. # also found that this could be also an option to set x11:
  108. # /etc/sddm.conf.d/sddm.conf
  109. # DisplayServer=x11
  110. # (for wayland there could be wayland instead of x11)
  111.  
  112. # then reboot computer and check, what is running:
  113. echo $XDG_SESSION_TYPE
  114. x11
  115. # X11 works currently better than Wayland:
  116. # login faster, does not freeze on login for some seconds
  117. # after resuming from suspend there are no glitches
  118. # especially when you happen to have nVidia GPU
  119. #
  120. # hopefully will Wayland work fine in future
  121. # so we can stick with Wayland,
  122. # which promises to be way more flexible than X11
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement