[amdgpu] Mouse cursor theme is grey instead of black

Bug #2048827 reported by Chase Clark
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux
Fix Released
Unknown
linux-hwe-6.2 (Ubuntu)
Triaged
Low
Unassigned

Bug Description

- this is a fresh install of the latest Ubuntu 24.04

- I have fully updated the debs and snaps

- my mouse cursor is grey when it should be black

- the strange thing is the cursor looks normal when I boot off the USB and then looks grey on first boot

- even more strange is when I went to screenshot the cursor for this bug report, it looked normal in the screenshot

- For graphics I have AMD 6600XT

- I will try in X11 as well to see if this is a Wayland-only issue

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: yaru-theme-gtk 22.04.5
ProcVersionSignature: Ubuntu 6.2.0-39.40~22.04.1-generic 6.2.16
Uname: Linux 6.2.0-39-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Tue Jan 9 21:57:08 2024
InstallationDate: Installed on 2024-01-10 (0 days ago)
InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: yaru-theme
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Chase Clark (chaseclark) wrote :
Revision history for this message
Chase Clark (chaseclark) wrote :

On x11 it is more normal looking, so this may be Wayland related.

Has the Yaru cursor theme been updated recently to add more grey in it or am I misremembering how it looked in the past?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sounds like this might be an amdgpu kernel issue. Does it help if you add this to /etc/environment;

  MUTTER_DEBUG_FORCE_KMS_MODE=simple

and reboot?

Changed in yaru-theme (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Also, while the problem is visible on screen please run:

  sudo apt install drm-info
  drm_info > drminfo.txt

and attach the resulting text file here.

Revision history for this message
Chase Clark (chaseclark) wrote :

Here is drminfo.txt output with the broken cursor before I made the Mutter changes.

Revision history for this message
Chase Clark (chaseclark) wrote :

setting MUTTER_DEBUG_FORCE_KMS_MODE=simple did not seem to change anything.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks. Can you provide a photo of the problem? Also it might be worth testing the DMZ-Black cursor theme in GNOME Tweaks.

Revision history for this message
Chase Clark (chaseclark) wrote :

This is the best photo I could get.

The cursor on the right is my actual cursor, while the one on the left is a screenshot of the cursor.

Revision history for this message
Chase Clark (chaseclark) wrote :

The DMZ-Black cursor is also grey but only on its' right side.

I will attach a horrendous photo but its the best I could do with my iPhone and a computer screen.

The cursor on the left is my actual cursor and the right is a screenshot of the DMZ-Black cursor next to a black box.

If you mess with the zoom on the image you can see that the left one appears to have more grey pixels.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Zooming in on the cursor images in GIMP I find they do contain gradients - both Yaru and DMZ-Black. Therefore some greyness is correct.

I think the remaining bug here is that either the kernel (amdgpu) or mutter is under-saturating the cursor plane with an alpha component below 1.0. That's why I asked for drm_info because the blending is controllable on some drivers, but seemingly not on amdgpu.

summary: - yaru mouse cursor theme is grey instead of black
+ [amdgpu] Mouse cursor theme is grey instead of black
affects: yaru-theme (Ubuntu) → linux-hwe-6.2 (Ubuntu)
Changed in linux-hwe-6.2 (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
tags: added: amdgpu
no longer affects: mutter (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sounds like it was fixed in kernels 6.6 and 6.5.4

Revision history for this message
Chase Clark (chaseclark) wrote :

Alright, thanks for looking into this!

Revision history for this message
Chase Clark (chaseclark) wrote :

Can confirm the issue is fixed when running 6.6.11

Changed in linux-hwe-6.2 (Ubuntu):
importance: Undecided → Low
status: New → Triaged
tags: added: fixed-upstream
Changed in linux:
status: Unknown → Fix Released
Revision history for this message
Ernst Persson (ernstp) wrote :

Oh, the Ubuntu 6.5 kernel is still based on 6.5.3 ?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Seems like it, at least for jammy:

grep -H '6\.5\.' /boot/config-6.5.*

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.