# Curing screen flicker

I just got hold of a brand new Lenovo p14s gen5 Ryzen 7 pro 8840HS with integrated 780 graphics.

At first I thought .. I don’t know what I thought really… anyways, the screen flickered at random intervals and rather infrequently too.

A quick search found a solution that works for me with my current configuration

```bash
$ uname -a 
Linux toblakai 6.11.8-300.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 14 20:37:39 UTC 2024 x86_64 GNU/Linux
```

```bash
$ lspci -n -n -k | grep -A 2 -e VGA -e 3
.
.
c4:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix3 [1002:1900] (rev d2)                                    
        Subsystem: Lenovo Device [17aa:50ef]                                                                                                      
        Kernel driver in use: amdgpu  
```

The flickering might or might not have started after I ran `fwupdmgr update` which updated the Phoenix firmware..

.. in either case, it seems to have been solved by editing `/etc/default/grub` adding `amdgpu.dcdebugmask=0x10` to the end of the `GRUB_CMDLINE_LINUX` line and then

```bash
$ grub2-mkconfig -o /boot/grub2/grub.cfg
$ reboot
```

As mentioned, this works for me. Supposedly it will hurt the battery life of the machine, but not by much.. and there are several reports of people that wasn’t helped by this *fix* .. so your mileage may vary.

‘till next time.
