You are not logged in.

#1 2023-02-04 05:29:01

aditya12398
Member
From: India
Registered: 2020-02-25
Posts: 13

Box around the cursor that follows and distorts the screen [WAYLAND]

I recently decided to try wayland on my KDE + Arch linux machine so I installed the `plasma-wayland-session` and `egl-wayland` package as suggested in the wiki. I use application dashboard and I see this weird box around my cursor that follows it around and vanishes everytime I press a button or focus on an icon.

Something else I am concerned about is, I tried to check which buffer API it uses and it outputs

slimshady@slimshady-desktop: ~$ journalctl -b 0 --grep "renderer for"
 -- No entries --

I also tried

qdbus org.kde.KWin /KWin org.kde.KWin.supportInformation #Needs qt5-tools

and I get this output

I forced `GBM_BACKEND=nvidia-drm` and `__GLX_VENDOR_LIBRARY_NAME=nvidia` in `/etc/profile` like it says in the wiki but I get the same output. My system also shuts down after a long time when I log into the wayland session.

System Information: Kernel: 6.1.9-arch1-1
CPU: AMD Ryzen 5 3600 (12) @ 3.600GHz
GPU: NVIDIA GeForce GTX 1650
Nvidia Driver Version: 525.85.05

Please let me know if I need to provide any more information.

Offline

#2 2023-02-04 15:46:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,402

Re: Box around the cursor that follows and distorts the screen [WAYLAND]

The long shutdown is due to a bug in sddm that's fixed in -git you can install sddm-git for that.

For your actual issue I doubt one can do much here and the answer will be the same as on the reddit thread, the KWin output shows your card is properly used. The only thing you could "immediately" test is whether it's a driver regression and e.g. downgrading to 525.75 though you'd have to install linux-headers and then relevantly downgrade the set of nvidia-dkms,{lib32-}nvidia-utils

FWIW something you could try that I'm just thinking of now, is disabling the HW cursor if that's the only real annoyance by exporting the environment variable KWIN_FORCE_SW_CURSOR=1 somewhere, e.g in ~/.config/plasma-workspace/env/forceSWcursor.sh and the content

!#/bin/sh
export KWIN_FORCE_SW_CURSOR=1

and doing a

chmod +x ~/.config/plasma-workspace/env/forceSWcursor.sh

Last edited by V1del (2023-02-04 15:52:10)

Offline

#3 2023-02-05 05:34:51

aditya12398
Member
From: India
Registered: 2020-02-25
Posts: 13

Re: Box around the cursor that follows and distorts the screen [WAYLAND]

The reddit post is my own, haha.

In an attempt to fix I had reinstalled most of the graphical packages and now when I join the wayland session, the discord app goes not work as intended. It gives a blank window with only the titlebar. It is really annoying to try and address these issues.

I will attempt the HW cursor fix you have suggested and get back to you. Thanks a lot!

Offline

#4 2023-02-08 11:30:57

gulafaran
Member
Registered: 2011-02-09
Posts: 22

Re: Box around the cursor that follows and distorts the screen [WAYLAND]

there is this https://bugs.kde.org/show_bug.cgi?id=455526 , and ive personally had issues if i set output scaling to anything but 100% looking somewhat like yours.

Offline

#5 2023-08-19 19:36:24

Rob_H
Member
Registered: 2012-06-19
Posts: 72

Re: Box around the cursor that follows and distorts the screen [WAYLAND]

@aditya12398 did you find a solution to this?

I'm having exactly the same symptom. NVIDIA GeForce RTX 4080 with the proprietary driver. It seems like KWwin is using the EGL interface:

$ qdbus org.kde.KWin /KWin org.kde.KWin.supportInformation | grep -i egl
OpenGL platform interface: EGL

I tried setting the environment variables as described in the wiki, but it didn't help.

Offline

#6 2023-08-19 20:15:15

seth
Member
Registered: 2012-09-03
Posts: 63,655

Re: Box around the cursor that follows and distorts the screen [WAYLAND]

Make sure it got picked up:

tr '\0' '\n' < /proc/$(pidof kwin_wayland)/environ | grep -i curs

Do you scale the output like gulafaran?
Does it go away if you disable the blur effect?

Online

Board footer

Powered by FluxBB