You are not logged in.

#1 2023-12-27 13:24:34

alllexx88
Member
Registered: 2023-12-22
Posts: 52

[Solved] Sway doesn't properly work (nvidia)

Hi,

I can't get Sway to work with nvidia-dkms driver (currently 545.29.06-1). According to the wiki, I have:
* Installed sway, swaylock, swayidle and swaybg packages
* Set nvidia DRM options according to https://wiki.archlinux.org/title/NVIDIA … de_setting
* Installed wlroots-nvidia
* Installed polkit, but after having issues, I also added my user to the seat usergroup and enabled seatd.service
* Installed wmenu, dmenu and foot

I then tried launching both manually from terminal, and with SDDM (had to edit /usr/share/wayland-sessions/sway.desktop to add --unsupported-gpu flag), and it boot up, with both internal and external monitors recognized, but all keyboard activity was ignored, and I didn't see the mouse cursor (but display numbers were being lit up accordingly, while moving computer mouse from the left to the right displays).

I then switched to the systemd via SDDM launching method, now the sway logs are available via journalctl: https://github.com/swaywm/sway/wiki/Systemd-integration. For some reason this line in /etc/systemd/user/sway.service:

ExecStartPre=systemctl --user unset-environment WAYLAND_DISPLAY DISPLAY # This line make you able to logout to dm and login into sway again

was causing this startup error:

Dec 27 12:25:19 AlexArch systemd[1029]: Starting sway - SirCmpwn's Wayland window manager...
Dec 27 12:25:19 AlexArch systemctl[1085]: Failed to set environment: Invalid environment variable names or assignments
Dec 27 12:25:19 AlexArch systemd[1029]: sway.service: Control process exited, code=exited, status=1/FAILURE
Dec 27 12:25:19 AlexArch systemd[1029]: sway.service: Failed with result 'exit-code'.
Dec 27 12:25:19 AlexArch systemd[1029]: Failed to start sway - SirCmpwn's Wayland window manager.

After commenting this line out, I can log in to sway with the same behaviour as before, but with logs:

-- Boot 7622f20da54345f29cae9b3aa003e989 --
Dec 27 13:55:41 AlexArch sway[1105]: 00:00:00.002 [ERROR] [sway/main.c:62] !!! Proprietary Nvidia drivers are in use !!!
Dec 27 13:55:42 AlexArch sway[1105]: 00:00:00.026 [ERROR] [wlr] [EGL] command: eglQueryDmaBufModifiersEXT, error: EGL_BAD_PARAMETER (0x300c), message: "EGL_BAD_PARAMETER error: In eglQueryDmaBufModifiersEXT: Invalid format
Dec 27 13:55:42 AlexArch sway[1105]: "
Dec 27 13:55:42 AlexArch sway[1105]: 00:00:00.026 [ERROR] [wlr] [render/egl.c:841] Failed to query dmabuf number of modifiers
Dec 27 13:55:42 AlexArch sway[1105]: 00:00:00.026 [ERROR] [wlr] [EGL] command: eglQueryDmaBufModifiersEXT, error: EGL_BAD_PARAMETER (0x300c), message: "EGL_BAD_PARAMETER error: In eglQueryDmaBufModifiersEXT: Invalid format
Dec 27 13:55:42 AlexArch sway[1105]: "
Dec 27 13:55:42 AlexArch sway[1105]: 00:00:00.026 [ERROR] [wlr] [render/egl.c:841] Failed to query dmabuf number of modifiers
Dec 27 13:55:42 AlexArch sway[1105]: 00:00:00.081 [ERROR] [wlr] [xwayland/sockets.c:63] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
Dec 27 13:55:43 AlexArch sway[1114]: 2023-12-27 13:55:43 - [swaybg-1.2.0/main.c:293] Found config * for output eDP-1 (LG Display 0x065B)
Dec 27 13:55:43 AlexArch sway[1114]: 2023-12-27 13:55:43 - [swaybg-1.2.0/main.c:293] Found config * for output HDMI-A-1 (HKC OVERSEAS LIMITED 27E1QA 0000000000001)
Dec 27 13:55:43 AlexArch sway[1128]: 00:00:00.002 [ERROR] [sway/main.c:65] Proprietary Nvidia drivers are NOT supported. Use Nouveau. To launch sway anyway, launch with --unsupported-gpu and DO NOT report issues.
Dec 27 13:56:01 AlexArch sway[1105]: 00:00:19.505 [ERROR] [wlr] [libseat] [libseat/backend/seatd.c:122] Could not flush connection: Broken pipe
Dec 27 13:56:01 AlexArch sway[1105]: 00:00:19.505 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 27: Broken pipe
Dec 27 13:56:01 AlexArch sway[1105]: 00:00:19.531 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 26: Transport endpoint is not connected
Dec 27 13:56:01 AlexArch sway[1105]: 00:00:19.611 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 25: Transport endpoint is not connected
Dec 27 13:56:01 AlexArch sway[1105]: 00:00:19.661 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 24: Transport endpoint is not connected
Dec 27 13:56:01 AlexArch sway[1105]: 00:00:19.687 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 23: Transport endpoint is not connected
Dec 27 13:56:01 AlexArch sway[1105]: 00:00:19.717 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 22: Transport endpoint is not connected
Dec 27 13:56:01 AlexArch sway[1105]: 00:00:19.747 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 21: Transport endpoint is not connected
Dec 27 13:56:01 AlexArch sway[1105]: 00:00:19.791 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 20: Transport endpoint is not connected
Dec 27 13:56:01 AlexArch sway[1121]: 00:00:18.361 [ERROR] [swaybar/tray/tray.c:99] Failed to process bus: Connection reset by peer
Dec 27 13:56:01 AlexArch sway[1105]: 00:00:19.834 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 19: Transport endpoint is not connected
Dec 27 13:56:01 AlexArch sway[1105]: 00:00:19.871 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 18: Transport endpoint is not connected
Dec 27 13:56:01 AlexArch sway[1105]: 00:00:19.954 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 17: Transport endpoint is not connected
Dec 27 13:56:01 AlexArch sway[1105]: 00:00:20.012 [ERROR] [wlr] [backend/session/session.c:41] Failed to dispatch libseat: Transport endpoint is not connected
Dec 27 13:56:01 AlexArch sway[1105]: 00:00:20.014 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 2: Transport endpoint is not connected
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.034 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 3: Transport endpoint is not connected
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.074 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 4: Transport endpoint is not connected
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.114 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 5: Transport endpoint is not connected
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.131 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 6: Transport endpoint is not connected
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.147 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 7: Transport endpoint is not connected
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.174 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 8: Transport endpoint is not connected
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.201 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 9: Transport endpoint is not connected
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.218 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 10: Transport endpoint is not connected
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.234 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 11: Transport endpoint is not connected
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.277 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 12: Transport endpoint is not connected
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.311 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 13: Transport endpoint is not connected
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.327 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 14: Transport endpoint is not connected
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.361 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 15: Transport endpoint is not connected
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.377 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 16: Transport endpoint is not connected
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.549 [ERROR] [wlr] [backend/drm/atomic.c:72] connector eDP-1: Atomic commit failed: Permission denied
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.549 [ERROR] [wlr] [backend/drm/drm.c:991] connector eDP-1: Failed to disable CRTC 81
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.551 [ERROR] [wlr] [backend/drm/atomic.c:72] connector HDMI-A-1: Atomic commit failed: Permission denied
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.551 [ERROR] [wlr] [backend/drm/drm.c:991] connector HDMI-A-1: Failed to disable CRTC 68
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.552 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 1: Transport endpoint is not connected
Dec 27 13:56:02 AlexArch sway[1105]: 00:00:20.561 [ERROR] [wlr] [libseat] [libseat/backend/seatd.c:122] Could not flush connection: Bad file descriptor

Switching to Nouveau isn't an option, since I use CUDA, and also my external display doesn't get recognized by Nouveau.

I tried googling for the error messages, but found nothing relevant.

If it matters, I'm coming from KDE Plasma, since Plasma Wayland session works very unreliably for me, and I wanted to see if I could get my eGPU to work in Internal+External-eGPU monitors mode with Wayland (couldn't get it to work with X11).

Thanks in advance!

Last edited by alllexx88 (2023-12-28 09:08:14)

Offline

#2 2023-12-27 15:48:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: [Solved] Sway doesn't properly work (nvidia)

Have you confirmed that nvidia is actually relevant to the symptoms?  It really shouldn't be.  You describe a successful startup and graphics rendering, just lacking any keyboard input, right?  The GPU driver really shouldn't be able to have any effect at all on keyboard handling.  (note, I glossed over the SDDM-specific information and am only addressing the attempt to start sway directly as I really don't even expect DMs to work).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-12-27 16:26:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,582

Re: [Solved] Sway doesn't properly work (nvidia)

* Installed polkit, but after having issues, I also added my user to the seat usergroup and enabled seatd.service

Disable deatd again, what issues?

Offline

#4 2023-12-27 19:09:44

alllexx88
Member
Registered: 2023-12-22
Posts: 52

Re: [Solved] Sway doesn't properly work (nvidia)

Thank you for your replies Trilby and seth!

Trilby wrote:

Have you confirmed that nvidia is actually relevant to the symptoms?  It really shouldn't be.  You describe a successful startup and graphics rendering, just lacking any keyboard input, right?  The GPU driver really shouldn't be able to have any effect at all on keyboard handling.  (note, I glossed over the SDDM-specific information and am only addressing the attempt to start sway directly as I really don't even expect DMs to work).

I'm always experiencing the same symptoms, either starting Sway with SDDM, or directly from tty1 after having the DM disabled. With nvidia driver I get both display (internal + HDMI) looking like this:
PXL-20231227-184255705.jpg
PXL-20231227-184251621.jpg
*notice that monitor number in the top left corner gets a more intense blue color on the display when I move the invisible mouse cursor there: that's the only indication I get that input devices (kind of) get processed, apart from the power button that powers off the laptop nicely.

I tried removing nvidi-dkms drivers and enabling Nouveau back, and I get this strange looking desktop:
PXL-20231227-182349179-MP.jpg
* and again no key strokes or cursor, power button shuts the laptop down.

If I start it as a systemd service with logs (the log is pretty long, hence pastebin): https://pastebin.com/KRhkB2YS

seth wrote:

Disable deatd again, what issues?

I disabled seatd.service and also removed my user from the seat group just in case:
(visually it's the same)

-- Boot 641c31b24d064a8fa3b987b7f96b3cef --
Dec 27 19:42:11 AlexArch sway[1106]: 00:00:00.002 [ERROR] [sway/main.c:62] !!! Proprietary Nvidia drivers are in use !!!
Dec 27 19:42:11 AlexArch sway[1106]: 00:00:00.030 [ERROR] [wlr] [EGL] command: eglQueryDmaBufModifiersEXT, error: EGL_BAD_PARAMETER (0x300c), message: "EGL_BAD_PARAMETER error: In eglQueryDmaBufModifiersEXT: Invalid format
Dec 27 19:42:11 AlexArch sway[1106]: "
Dec 27 19:42:11 AlexArch sway[1106]: 00:00:00.030 [ERROR] [wlr] [render/egl.c:841] Failed to query dmabuf number of modifiers
Dec 27 19:42:11 AlexArch sway[1106]: 00:00:00.030 [ERROR] [wlr] [EGL] command: eglQueryDmaBufModifiersEXT, error: EGL_BAD_PARAMETER (0x300c), message: "EGL_BAD_PARAMETER error: In eglQueryDmaBufModifiersEXT: Invalid format
Dec 27 19:42:11 AlexArch sway[1106]: "
Dec 27 19:42:11 AlexArch sway[1106]: 00:00:00.030 [ERROR] [wlr] [render/egl.c:841] Failed to query dmabuf number of modifiers
Dec 27 19:42:11 AlexArch sway[1106]: 00:00:00.087 [ERROR] [wlr] [xwayland/sockets.c:63] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
Dec 27 19:42:12 AlexArch sway[1112]: 2023-12-27 19:42:12 - [swaybg-1.2.0/main.c:293] Found config * for output eDP-1 (LG Display 0x065B)
Dec 27 19:42:12 AlexArch sway[1112]: 2023-12-27 19:42:12 - [swaybg-1.2.0/main.c:293] Found config * for output HDMI-A-1 (HKC OVERSEAS LIMITED 27E1QA 0000000000001)
Dec 27 19:42:12 AlexArch sway[1140]: 00:00:00.002 [ERROR] [sway/main.c:65] Proprietary Nvidia drivers are NOT supported. Use Nouveau. To launch sway anyway, launch with --unsupported-gpu and DO NOT report issues.
Dec 27 19:43:06 AlexArch sway[1133]: 00:00:53.920 [ERROR] [swaybar/tray/tray.c:99] Failed to process bus: Connection reset by peer
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:55.971 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Message recipient disconnected from message bus without replying
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:55.971 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 57: Resource temporarily unavailable
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.003 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.003 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 58: Resource temporarily unavailable
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.078 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.078 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 59: Resource temporarily unavailable
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.130 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.130 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 60: Resource temporarily unavailable
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.160 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.160 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 61: Resource temporarily unavailable
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.203 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.203 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 62: Resource temporarily unavailable
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.236 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.236 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 63: Resource temporarily unavailable
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.270 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.270 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 64: Resource temporarily unavailable
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.303 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.303 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 65: Resource temporarily unavailable
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.346 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.346 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 66: Resource temporarily unavailable
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.390 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:07 AlexArch sway[1106]: 00:00:56.390 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 67: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.447 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.447 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 68: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.480 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.480 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 69: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.523 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.523 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 70: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.567 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.567 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 71: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.620 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.620 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 72: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.646 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.646 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 73: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.680 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.680 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 74: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.723 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.723 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 75: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.783 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.783 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 76: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.830 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.830 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 77: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.883 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.883 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 78: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.917 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.917 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 79: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.950 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.950 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 80: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.993 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:56.993 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 81: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:57.030 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:57.030 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 82: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:57.065 [ERROR] [wlr] [backend/drm/atomic.c:72] connector eDP-1: Atomic commit failed: Permission denied
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:57.065 [ERROR] [wlr] [backend/drm/drm.c:991] connector eDP-1: Failed to disable CRTC 81
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:57.066 [ERROR] [wlr] [backend/drm/atomic.c:72] connector HDMI-A-1: Atomic commit failed: Permission denied
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:57.066 [ERROR] [wlr] [backend/drm/drm.c:991] connector HDMI-A-1: Failed to disable CRTC 68
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:57.067 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:199] Could not close device: Refusing activation, D-Bus is shutting down.
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:57.067 [ERROR] [wlr] [backend/session/session.c:356] Failed to close device 11: Resource temporarily unavailable
Dec 27 19:43:08 AlexArch sway[1106]: 00:00:57.067 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:365] Could not release control of session: Refusing activation, D-Bus is shutting down.

Offline

#5 2023-12-27 21:20:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,582

Re: [Solved] Sway doesn't properly work (nvidia)

You didn't reboot after disabling seatd, did you?

So the issue is the invisible cursor?
https://wiki.archlinux.org/title/Sway#No_visible_cursor
https://wiki.archlinux.org/title/Sway#C … e_and_size

Offline

#6 2023-12-28 09:07:23

alllexx88
Member
Registered: 2023-12-22
Posts: 52

Re: [Solved] Sway doesn't properly work (nvidia)

Thank you seth! I missed that part of the wiki, since I was first looking for solution with keyboard shortcuts not working. I disabled seatd, rebooted a couple of times, but, e.g., mod(win)+enter was being ignored, along with the other sway shortcuts. I booted plasma today, installed wofi, booted sway again, and keyboards shortcuts started working! Then I added WLR_NO_HARDWARE_CURSORS=1 env variable, and cursor appeared. I had some flickering problems, both with the wlroots, and wlroots-nvidia installed, got it fixed with installing sway-git (and respective wlroots-git).

Offline

Board footer

Powered by FluxBB