nouveau/i915: cursor sometimes glitches out when all screens got turned off
When the screensaver kicks in and then turns off again, the curser on the lockscreen turns into glitches.
STEPS TO REPRODUCE
- Screen configuration is to turn off the internal screen and have only the external screen (connected to the NVidia card) enabled.
- Leave the system sitting doing nothing until the screen is locked and turned off. I have "screen locking" configured to lock after 10min, and "energy saving" set to switch off the screen after 10min.
- Come back to the machine and move the cursor.
OBSERVED RESULT
The cursor is a big glitchy mess, see screenshot -- it's the white square thing on the right. It stays like that even when moving the mouse. Once I enter my password and unlock, it goes back to normal.
EXPECTED RESULT
There should be a normal cursor.
SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux KDE Plasma Version: 5.26.0 KDE Frameworks Version: 5.98.0 Qt Version: 5.15.6 Kernel Version: 6.0.0-2-amd64 (64-bit) Graphics Platform: Wayland Processors: 8 × Intel® Xeon® CPU E3-1505M v5 @ 2.80GHz Memory: 31,2 GiB of RAM Graphics Processors: Mesa Intel® HD Graphics P530, NVIDIA Corporation GM107GLM [Quadro M2000M] Manufacturer: LENOVO Product Name: 20ENCTO1WW System Version: ThinkPad P50
ADDITIONAL INFORMATION
This laptop system has an Intel GPU and an NVidia GPU. The external screen that this happens on is attached to the NVidia GPU. The internal display is turned off. I am using the open-source nouveau drivers.
I first reported this against kwin but the kwin devs told me to report it upstream against nouveau.