Open IncrediblePony opened 1 year ago
Also getting this issue on PopOS when I plug in an external monitor. I have the Legion Slim 7i 16APH8 also with a 4060. Happens with BOTH Thunderbolt and HDMI connections. Also random but do your speakers work?
Edit: I should mention that I also get those errors saying amdgpu
firmware is missing. But I read somewhere that it is not an issue.
Also random but do your speakers work?
I get some SERIOUS weird behaviour on the speakers as well. They sometimes stutter wildly or plainly just skips sounds. Sometimes they just cut out entirely.
systemctl --user restart wireplumber pipewire pipewire-pulse
This command seems to fix it
Mine don't work at all, but that's very strange. Can I ask what kernel version you are on, and your Nvidia driver? Updating the kernel and driver caused me way more issues than it fixed. I'm surprised you actually get audio out of your speakers though.
I'm on PopOS: 6.5.6-76060506-generic
Nvidia: 545.29.02
Also, downgrading my nvidia driver and kernel somewhat helped with my flickering issues/weird screen bugs. So far no flickering. I also found that disabling any thunderbolt security helped, and I can't remember how, but I was able to "remember" my monitor in this settings page:
I went and uninstalled Pop!_OS and installed Ubuntu 23.10 instead. Works like a charm.
My colleague had these issues but for some magic reason his kernel doesn't seem to bug out as much. The audio issue still persists
Ok I think I'm going to ditch Pop too, this is kind of ridiculous. There's way too many problems with this OS. We tried.
There's way too many problems with this OS.
Ya that's true. I mean it is a relatively new laptop (I think 2023 7i and 5i came out last January?).
Out of curiosity, did you do a clean install of Ubuntu? It's going to be a pain in the butt moving all my bash scripts and files over to Ubuntu again. I currently use systemd dual boot with Windows 11.
Out of curiosity, did you do a clean install of Ubuntu? It's going to be a pain in the butt moving all my bash scripts and files over to Ubuntu again. I currently use systemd dual boot with Windows 11.
I copied the bash files from my home folder and install a clean Ubuntu. Then I at the very least had all of my aliases and PATH variables.
This thread has a solution for the Legion 7 Pro (Intel). So I am going to follow up with that and see if their is an equivalent solution for AMD. Not worth my time reinstalling Ubuntu lol.
Also for screen flickering, I found that going to display settings -> disable fractional scaling -> enable fractional scaling -> set to 125% or whatever you want -> apply. Will resolve the flickering, and then you just repeat these steps when it happens every few hours.
Also for screen flickering, I found that going to display settings -> disable fractional scaling -> enable fractional scaling -> set to 125% or whatever you want -> apply. Will resolve the flickering, and then you just repeat these steps when it happens every few hours.
The fact that you have to do this workaround is just plain sad
Wait, this involved fractional scaling all along? Might be good to try Wayland then. Gnome 42 on X with fractional scaling is notoriously flaky. I believe Ubuntu 23.10 uses Wayland by default.
Just changed the laptop to a Lenovo Yoga Pro 7 14APH8 - Type 82Y8
, installed Pop!_OS 22.04 LTS (up to date at the time of this writing), and after 2-3 hours both screens (laptop's display and external monitor) started flickering as shown in the original message video.
Even after disconnecting the external monitor the issue continue to happen (on the built-in display).
In syslog (/var/log/syslog
file), the entries that were written while this happened are like this:
May 13 11:21:32 dxps kernel: [12544.467079] amd_iommu_report_page_fault: 101357 callbacks suppressed
May 13 11:21:32 dxps kernel: [12544.467089] amdgpu 0000:63:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff707000 flags=0x0000]
May 13 11:21:32 dxps kernel: [12544.467116] amdgpu 0000:63:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff708000 flags=0x0000]
May 13 11:21:32 dxps kernel: [12544.467127] amdgpu 0000:63:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff714000 flags=0x0000]
May 13 11:21:32 dxps kernel: [12544.467136] amdgpu 0000:63:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff726000 flags=0x0000]
May 13 11:21:32 dxps kernel: [12544.467144] amdgpu 0000:63:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff738000 flags=0x0000]
May 13 11:21:32 dxps kernel: [12544.467153] amdgpu 0000:63:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff740000 flags=0x0000]
May 13 11:21:32 dxps kernel: [12544.467162] amdgpu 0000:63:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff741000 flags=0x0000]
May 13 11:21:32 dxps kernel: [12544.467170] amdgpu 0000:63:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff742000 flags=0x0000]
May 13 11:21:32 dxps kernel: [12544.467179] amdgpu 0000:63:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff743000 flags=0x0000]
May 13 11:21:32 dxps kernel: [12544.467188] amdgpu 0000:63:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff744000 flags=0x0000]
I had to relogin, for now. I'll keep looking for potential solutions. I'm a long Pop!_OS user and I'm very happy with it, so I wanna stay with it.
I think I have found a more permanent solution.
Can also confirm I get this error in dmesg
(completely unhelpful)
amdgpu 0000:63:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff707000 flags=0x0000]
After some digging I found a post which mentioned this Framework laptop fix: https://knowledgebase.frame.work/en_us/allocate-additional-ram-to-igpu-framework-laptop-13-amd-ryzen-7040-series-BkpPUPQa
For Legion Laptops: Go into BIOS, select Configuration, go to AMD UMA Frame Buffer Size setting, I think default is 512, I maxed it out to 4gi or whatever. So far, I can unplug my monitor, plug it in, close the lid, watch videos fullscreen, etc... with no flickering or weird crashes.
Let me know if this helps anyone else.
@dxps the above fix is working for me on Pop!
@the-rich-piana Thanks, Giuliano! :pray:
Unfortunately, went to this Lenovo BIOS and found that in Configuration > UMA Frame Buffer Size is already set to its maximum value of 4G. So, I couldn't do anything about it.
I also install the driver from https://www.amd.com/en/support/linux-drivers., Ubuntu x86 64-Bit section. Reinstalled Radeon™ Software for Linux® version 23.40.2 for Ubuntu 22.04.4 HWE, just to make sure I didn't choose the first one (for 20.04.6) by mistake.
As per installation instructions, to use amdgpu-install
, I had to update /etc/os-release
to have ID=ubuntu
(instead of ID=pop
), as the tool gave up saying that pop
is not supported.
Unfortunately, that fails with:
Building initial module for 6.8.0-76060800daily20240311-generic
ERROR (dkms apport): kernel package linux-headers-6.8.0-76060800daily20240311-generic is not supported
Error! Bad return status for module build on kernel: 6.8.0-76060800daily20240311-generic (x86_64)
Consult /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
See the details below:
If it helps, here are some further details:
@dxps Does the issue only happen in MS Teams? For what it's worth, I have been screen sharing with zoom since I bought this thing and never had any flickering caused by it.
@the-rich-piana Yes, it happens only in Ms Teams and on the desktop version/version mentioned above, when myself or another attendee of a call does the screen sharing. It works for some time - I guess a couple of seconds, up to a minute - and then the flickering starts. For the last two days I was using both the browser based and the desktop client of Ms Teams, but attended the calls that may include screen sharing only in the browser based version. And thus, had no issues with it.
Currently, I'm not using Zoom at work, so I cannot tell if that issue happens with it.
@dxps Is the flickering happening when you plug in a monitor or only with Teams? Could be a purely MS Teams related problem.
@the-rich-piana It started happenning when having the external monitor plugged in. But while the flickering started, it continued even after disconnecting the external monitor.
Meanwhile, I did:
kernelstub -a amdgpu.sg_display=0
and rebooted the OS, just for sure.Yes, it started while using Ms Teams, both Web version and desktop one.
I'll see if today it will appear again (while continuing to run both versions of Ms Teams and watching the VRAM usage using amdgpu_top
).
@dxps Is the flickering happening when you plug in a monitor or only with Teams? Could be a purely MS Teams related problem.
It is not. I have experienced it with Android Studio, Chrome, Firefox, Slack and many more.
I ran Ubuntu 23.10 for about 6 months with not too many issues.
Last week I installed a clean Debian 12 and went to town. Some issues still occur with flickering if I'm too "aggressive" when starting the PC. If the external (daisy chained) monitors are plugged on boot, right after login there is about a 30% chance I get the flickering issue out of the box. If I have the monitors disconnected and wait about 10 seconds after login, and then plug it in I have about 2% chance of experiencing the flickering.
As far as my travels have taken me across the internet the issue seems to stem from two factors:
AMD Ryzen™ 5 7640HS w/ Radeon™ 760M Graphics × 12
and NVIDIA GeForce RTX™ 4060 Laptop GPU / AMD Radeon™ Graphics
setup that neither AMD or NVIDIA seems to want to do anything about.I have tried giving my machines BIOS options all the juice it can take and reduced the juice by 90% neither of those options seems to mitigate the issue.
At this point to VERY much looks like a software/driver issue. At this point in time I'm not even sure that my Debian machine is using the RTX 4060 GPU at all even though I have installed every driver known to man and tried to force discrete graphics or just use dynamic graphics. I am at a loss for now.
Hopefully this issue stays open and enough people find it that someone somewhere can do something.
https://youtube.com/shorts/ceflbk80oPc?si=-TuIhVwFaqhvU5DN
This is the latest behaviour on Debian 12 for me
@dxps what the hell. I'm not sure we have the same issue to be honest. That looks like some serious GPU artifacting. Imo that could be hardware related. I never experienced that, for me it was just a white blank screen.
Distribution (run
cat /etc/os-release
andhostnamectl
):video of problem
Related Application and/or Package Version (run
apt policy $PACKAGE NAME
): don't knowIssue/Bug Description: Extreme flickering on monitors when the PC has been on for a while. As shown in the linked video above. I have tried just about everything, from switching to discrete graphics in the bios, to installing the newest RC kernel, to installing different nvidia drivers. Nothing seems to mitigate the problem.
The monitors are connected through a thunderbolt port on the machine. The external monitors are daisychained with DP cables.
Reason for attempting an RC kernel link
Steps to reproduce (if you know): N/A
Expected behavior: Not having a possible epileptic seizure from flickering monitors.
Other Notes: When upgrading
apt
packages sometimes the terminal tells me that someamdgpu
firmware packages are missing. Will add them next time I see them. I havelinux-firmware
andamdgpu-install
installed on my machine. None of these fixes the error.