https://bugs.kde.org/show_bug.cgi?id=525836

            Bug ID: 525836
           Summary: Thinkpad E14 G6 AMD Screen flicker, cannot change
                    brightness, trying so spikes lag
    Classification: Plasma
           Product: plasmashell
      Version First master
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Power management & brightness
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: 1.0

Created attachment 196237
  --> https://bugs.kde.org/attachment.cgi?id=196237&action=edit
Combined as described in text.

DESCRIPTION
On ThinkPad E14 Gen 6, with Ryzen 7 7735U, screen started flickering on the
edges ~1 cm from edge. Started after updating from Fedora 43 KDE Plasma to
Fedora 44 KDE Plasma.

Comment from 2nd day of troubleshooting: It seems that flicker subsides slowly
in ~15 minutes to a point that it is not mostly disruptive. (Propably things 
below I tested first did nothing, flicker just subsided nevertheless.)

Before updating Fedora, I updated system (maybe 2-4 weeks worth of updates),
did not observe changes at that point. IIRC flicker did not start right away,
not before I ran "sudo dnf update", or not immediately after. That last update
did not add anything, only removed some kernel related packages, IIRC.

In an hour, when I continued to use this machine, I saw the flicker first time.
Reboots, updates etc. did nothing. I tried possible fixes from online:
- editing /etc/default/grub with: GRUB_CMDLINE_LINUX="rhgb quiet
amdgpu.dcdebugmask=0x10",
- changing power settings, power save / balanced / performance,
- changing adaptive sync setting: Never / Automatic / Always,
- changing resolution, 
- changing refresh rate (impossible, only 60,03 Hz available).
None removed flicker. Latter may have some effect on it, but does not resolve
issue by itself.
I ran Thinkpad's system diagnosis via BIOS (quick, attended). Flicker was
visible in menus, but not visible or difficult to see during test images. All
tests passed.

However, after this, flicker seemed to stabilise, and I though that something I
did fixed it.
Then, I realised that It was not possible to change screen brightness. I tried
to change with:
- Fn-keys, nope. Brighness change pop-up mid screen comes as expected.
- Brightness & color widget, nope. Possible to change values.
- Display configuration - system settings, nope. Same here.
- Light (sudo dnf install light), nope. I was not able to change screen
brightness. However I was able to change others, (mic-mute, keyboard
backlight). Trying to change screen brightness with "light" does nothing. It
won't even change values in UI.

Also, whenever system tries to change screen brightness, there is serious lag,
up to several seconds. This happens when using any normal interface for
changing it. There is also a lag spike when system tries to change brightness
automatically (dimming in certain scenarios, I don't remember how I did it
yesterday. At least when screen is set to turn off, that comes with lag.

Below some output from gdb:
Copying output to gdb.txt.
Copying debug output to gdb.txt.
(gdb) set logging file shellbrightness-3.txt
(gdb) run org.kde.plasma.brightness
Starting program: /usr/bin/plasmawindowed org.kde.plasma.brightness
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffdfbff6c0 (LWP 25687)]
[New Thread 0x7fffdefff6c0 (LWP 25688)]
[New Thread 0x7fffde7fe6c0 (LWP 25689)]
[New Thread 0x7fffddbe16c0 (LWP 25699)]
[New Thread 0x7fffdcfff6c0 (LWP 25700)]
[New Thread 0x7fffc3bff6c0 (LWP 25701)]
[New Thread 0x7fffc33fe6c0 (LWP 25702)]
[New Thread 0x7fffc27fd6c0 (LWP 25703)]
kf.package: Could not find required file "metadata" for package
"/usr/share/plasma/plasmoids/org.kde.plasma.brightness/" should be
QList("metadata.json", "metadata.desktop")
[New Thread 0x7fffc13be6c0 (LWP 25704)]
[New Thread 0x7fffabfff6c0 (LWP 25705)]


Attached are:
- (NOPE, too large, ask if needed in some format): gdb-all.txt, includes 1 or
more runs with and without debuggind download enabled,

I combined these, as only one attachement possible:
- journalctl.txt, includes possibly relevant items from journal
- plasmashell-log.txt, copy paste from konsole after journalctl
/usr/bin/plasmashell -f 2> plasmashell.log, because ->
- plasmashell.log, seems to empty
- light -help, output from that command (Should I try some other command with
this utility?)

--
It seems I am not the first one with flicker problems. However, I did not find
clear duplicates for this or these. I wonder if this is a regression caused by
fixing other AMD flickers, if this has anything to with AMD's automatic
brightness controls, or if I have a proper mix of hardware that would require
it's own quirks. (Laptop ordered by lenovo.com, but customised combination of
options: CPU, screen etc.)

This might be something that would be fixed already by plasma 6.8, but at the
moment I was not really ready to test the beta on this machine, as I don't want
introduce  possible further problems for the main user.


STEPS TO REPRODUCE
1. Get 21M3CTO1WW (or similar Thinkpad with AMD Ryzen 7 7735U with Radeon
Graphics)
2. Install Fedora 44 KDE Plasma
3. Boot machine into log-in screen
(That's best I can guess)

OBSERVED RESULT
Screen flickers from edges, effects subsides in around 15 minutes.
Cannot change screen brightness.
Attempts to change brightness manually or by system cause lag spikes.

EXPECTED RESULT
Normal vision.
Possible to change brightness etc.


SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window): Fedora Linux 44 - KDE Plasma Desktop Edition
KDE Plasma Version: 6.7.5
KDE Frameworks Version: 6.30.0
Qt Version: 6.11.2

ADDITIONAL INFORMATION
Kernel Version: 7.2.5-200.fc44.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7735U with Radeon Graphics
Memory: 16 GiB of RAM (14.4 GiB usable)
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 21M3CTO1WW
System Version: ThinkPad E14 Gen 6

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to