Bug 482245

Summary: Sometimes cursor disappears on lock screen after waking system up from sleep
Product: [Plasma] kscreenlocker Reporter: Onur Ankut <onurmercury>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: bizyaev, duha.bugs, fanzhuyifan, iivanich, kdedev, krishna.ratakonda, nate, nicolas.fella, ston.jia, thisisagenericemailaddress, xaver.hugl
Priority: NOR Keywords: qt6
Version: 6.0.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=482432
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Onur Ankut 2024-03-02 19:12:48 UTC
SUMMARY
As the title says. Everythings works, just the cursor becomes invisible. I have a camera record of this at kde's matrix room.

https://matrix.to/#/!mefQhZzgTaxNCNzAeK:kde.org/$CT1K_QCExgP8tA07acW0Pikm0nFw6XnEVo1mN4z_3No?via=kde.org&via=matrix.org&via=im.kde.org

STEPS TO REPRODUCE
1. Make system sleep
2. Wake up system from sleep

OBSERVED RESULT
Visible cursor

EXPECTED RESULT
Invisible cursor


SOFTWARE/OS VERSIONS
OS: Arch Linux
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0 
Qt Version: 6.6.2

ADDITIONAL INFORMATION
I'm using latest default Mesa drivers with my R5 5600H APU.
Comment 1 Onur Ankut 2024-03-03 16:37:14 UTC
I discovered that this issue only occurs when putting the system to sleep using the power button triggered 'logout screen'. This issue does not occur when putting the system to sleep using the button in kickoff or by clicking shutdown button in kickoff and then selecting sleep.
Comment 3 fanzhuyifan 2024-03-03 17:04:48 UTC
Are you on X11 or wayland? I have been seeing this occasionally on arch git build, wayland.
Comment 4 Onur Ankut 2024-03-03 17:34:20 UTC
(In reply to fanzhuyifan from comment #3)
> Are you on X11 or wayland? I have been seeing this occasionally on arch git
> build, wayland.

Didn't happen on X11. I'm using Plasma 6's stable release from Arch's extra-testing repo.

I'm not sure but this issue might belong to logout screen rather than kscreenlocker.

I may try this also on Fedora in a few days.
Comment 5 fanzhuyifan 2024-03-04 02:41:12 UTC
For me the cursor disappears in the lockscreen, but appears again as soon as I unlock. I am on a prime system with intel igpu and nvidia dgpu. Cursor disappears on both the external display and the laptop display. However, I am not able to consistently reproduce this.
Comment 6 ml 2024-03-13 20:07:33 UTC
Have the same issue and it occurs every time I'm waking up laptop from sleep.
Comment 7 fanzhuyifan 2024-04-12 17:21:09 UTC
*** Bug 485411 has been marked as a duplicate of this bug. ***
Comment 8 TraceyC 2024-07-18 21:43:00 UTC
*** Bug 490142 has been marked as a duplicate of this bug. ***
Comment 9 TraceyC 2024-07-18 21:43:58 UTC
From https://bugs.kde.org/show_bug.cgi?id=490142

SUMMARY
After resuming from sleep on my laptop, the cursor on the login screen seems to be missing, but when moving the cursor around, the hover animation on the buttons lights up when the cursor is over the buttons and clicking does work. Also, when shaking the mouse around via the touchpad, it reappears momentarily before shrinking back out of existence. This is consistently reproducible even after updating and restarting my system. Furthermore, it does not happen when I manually lock the screen.

STEPS TO REPRODUCE
1. Sleep the computer
2. Wake the computer from sleep
3. Attempt to move the mouse cursor

OBSERVED RESULT
The graphical piece of the mouse cursor is missing however you can still interact with the ui. Shaking the mouse makes the cursor appear and then after a delay it shrinks back and disappears

EXPECTED RESULT
The cursor should function normally after waking from sleep

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: archlinux 6.9.8-arch1-1
(available in About System)
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Comment 10 Eris 2024-07-20 05:06:32 UTC
(In reply to TraceyC from comment #9)
> From https://bugs.kde.org/show_bug.cgi?id=490142
> 
> SUMMARY
> After resuming from sleep on my laptop, the cursor on the login screen seems
> to be missing, but when moving the cursor around, the hover animation on the
> buttons lights up when the cursor is over the buttons and clicking does
> work. Also, when shaking the mouse around via the touchpad, it reappears
> momentarily before shrinking back out of existence. This is consistently
> reproducible even after updating and restarting my system. Furthermore, it
> does not happen when I manually lock the screen.
> 
> STEPS TO REPRODUCE
> 1. Sleep the computer
> 2. Wake the computer from sleep
> 3. Attempt to move the mouse cursor
> 
> OBSERVED RESULT
> The graphical piece of the mouse cursor is missing however you can still
> interact with the ui. Shaking the mouse makes the cursor appear and then
> after a delay it shrinks back and disappears
> 
> EXPECTED RESULT
> The cursor should function normally after waking from sleep
> 
> SOFTWARE/OS VERSIONS
> Linux/KDE Plasma: archlinux 6.9.8-arch1-1
> (available in About System)
> KDE Plasma Version: 6.1.2
> KDE Frameworks Version: 6.3.0
> Qt Version: 6.7.2

Coming from my previous duplicate bug report, this happens on Wayland on my razer blade 2020 base model.
Comment 11 Nate Graham 2024-07-23 17:08:52 UTC
Eris, I think that may have been a temporary regression in the Shake Cursor effect. Can you still reproduce your issue in Plasma 6.1.3?

Also Onur, can you still reproduce the original issue in Plasma 6.1.3?
Comment 12 fanzhuyifan 2024-07-23 17:37:29 UTC
(In reply to fanzhuyifan from comment #5)
> For me the cursor disappears in the lockscreen, but appears again as soon as
> I unlock. I am on a prime system with intel igpu and nvidia dgpu. Cursor
> disappears on both the external display and the laptop display. However, I
> am not able to consistently reproduce this.

I figured out how to consistently reproduce on wayland, git build (last updated a week ago).

Plug in external monitor, suspend to ram, wake. Cursor disappears until it is moved to the other screen.

This happens when cursor is left on laptop screen, or when cursor is left on external display screen. 

Should I open a separate report or should I also continue here?
Comment 13 Nate Graham 2024-07-24 18:42:09 UTC
Would be good to know of Onur or Eric had two or more screens when they were able to reproduce the issue. If not, your issue is probably something else.

Regardless, I'm not able to reproduce that with an external screen and current git master by entering sleep using either the logout screen or Kickoff > Sleep, and waking it by pressing the power button (that's what wakes my laptop when it was put to sleep without closing the lid; wiggling the mouse or banging on the spacebar don't do it).
Comment 14 Eris 2024-07-25 01:04:02 UTC
For me the this is still happening on Plasma 6.1.3 & Linux 6.10.0-arch1-2 even though I'm only using the integrated display on my laptop.
Comment 15 fanzhuyifan 2024-07-25 05:11:49 UTC
(In reply to Eris from comment #14)
> For me the this is still happening on Plasma 6.1.3 & Linux 6.10.0-arch1-2
> even though I'm only using the integrated display on my laptop.

What gpu does your laptop have? My laptop has an intel igpu and a nvidia dgpu.
Comment 16 Nate Graham 2024-07-25 16:33:59 UTC
FWIW mine (where I can't reproduce the issue) has only an Intel HD620 iGPU.
Comment 17 Onur Ankut 2024-07-25 17:58:45 UTC
(In reply to Nate Graham from comment #16)
> FWIW mine (where I can't reproduce the issue) has only an Intel HD620 iGPU.

My laptop has an AMD APU (R5 5600H) and a RTX 3060 Mobile and I'm unsure if it's still reproducible.
Comment 18 Eris 2024-07-28 03:24:04 UTC
(In reply to fanzhuyifan from comment #15)
> (In reply to Eris from comment #14)
> > For me the this is still happening on Plasma 6.1.3 & Linux 6.10.0-arch1-2
> > even though I'm only using the integrated display on my laptop.
> 
> What gpu does your laptop have? My laptop has an intel igpu and a nvidia
> dgpu.

My laptop has an i7-10750H and a RTX 2070 Max-Q, but I primarily use the igpu.
Comment 19 Bug Janitor Service 2024-08-12 03:46:35 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 20 Eris 2024-08-21 01:33:43 UTC
Is there any new information? This bug is still affecting me. How can we proceed from here?
Comment 21 TraceyC 2024-08-21 18:54:57 UTC
Setting to confirmed since as far as I can tell, all the questions asked so far have been answered, and this affects multiple people
Comment 22 Krishna 2024-11-10 13:49:46 UTC
In my case, this only happened after the computer wakes up from sleep after I use the sleep button from the start menu. It did not happen when the computer wakes up from sleep after I use the sleep button on the lock screen.  I was able to resolve it by switching the cursor theme in the desktop settings to "Volantes light cursors". I tried variants of breeze and qozir which all had the same problem.