-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extreme flickering on RTX4060 Lenovo Legion 5 slim laptop #3162
Comments
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 |
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 |
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. |
|
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. |
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. |
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 Even after disconnecting the external monitor the issue continue to happen (on the built-in display). In syslog (
I had to relogin, for now. I'll keep looking for potential solutions. |
I think I have found a more permanent solution. 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: Let me know if this helps anyone else. |
@dxps the above fix is working for me on Pop! |
@the-rich-piana Thanks, Giuliano! 🙏 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. As per installation instructions, to use Unfortunately, that fails with:
See the details below: `sudo amdgpu-install --usecase=graphics,opencl` output…/drivers ❯ sudo amdgpu-install --usecase=graphics,opencl
Hit:1 https://repo.teamsforlinux.de/debian stable InRelease
Get:2 https://packages.microsoft.com/repos/code stable InRelease [3,590 B]
Hit:3 https://ppa.launchpadcontent.net/linuxuprising/guake/ubuntu jammy InRelease
Hit:4 https://repo.radeon.com/amdgpu/6.0.2/ubuntu jammy InRelease
Hit:5 https://repo.radeon.com/rocm/apt/6.0.2 jammy InRelease
Hit:6 http://apt.pop-os.org/proprietary jammy InRelease
Hit:7 http://apt.pop-os.org/release jammy InRelease
Hit:8 http://apt.pop-os.org/ubuntu jammy InRelease
Hit:9 http://apt.pop-os.org/ubuntu jammy-security InRelease
Hit:10 http://apt.pop-os.org/ubuntu jammy-updates InRelease
Hit:11 http://apt.pop-os.org/ubuntu jammy-backports InRelease
Fetched 3,590 B in 2s (1,952 B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
amdgpu-dkms is already the newest version (1:6.3.6.60002-1718217.22.04).
amdgpu-lib is already the newest version (1:6.0.60002-1718217.22.04).
amdgpu-lib32 is already the newest version (1:6.0.60002-1718217.22.04).
linux-headers-6.8.0-76060800daily20240311-generic is already the newest version (6.8.0-76060800daily20240311.202403110203~1714077665~22.04~4c8e9a0).
The following additional packages will be installed:
comgr hsa-rocr libelf-dev libncurses-dev libtinfo-dev openmp-extras-runtime rocm-core rocm-language-runtime rocm-ocl-icd rocm-opencl
Suggested packages:
ncurses-doc
The following NEW packages will be installed:
comgr hsa-rocr libelf-dev libncurses-dev libtinfo-dev openmp-extras-runtime rocm-core rocm-language-runtime rocm-ocl-icd rocm-opencl rocm-opencl-runtime
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 194 MB of archives.
After this operation, 443 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://apt.pop-os.org/ubuntu jammy-security/main amd64 libncurses-dev amd64 6.3-2ubuntu0.1 [381 kB]
Get:2 http://apt.pop-os.org/ubuntu jammy-security/main amd64 libtinfo-dev amd64 6.3-2ubuntu0.1 [780 B]
Get:3 https://repo.radeon.com/rocm/apt/6.0.2 jammy/main amd64 rocm-core amd64 6.0.2.60002-115~22.04 [9,034 B]
Get:4 http://apt.pop-os.org/ubuntu jammy/main amd64 libelf-dev amd64 0.186-1build1 [64.4 kB]
Get:5 https://repo.radeon.com/rocm/apt/6.0.2 jammy/main amd64 comgr amd64 2.6.0.60002-115~22.04 [51.7 MB]
Get:6 https://repo.radeon.com/rocm/apt/6.0.2 jammy/main amd64 hsa-rocr amd64 1.12.0.60002-115~22.04 [823 kB]
Get:7 https://repo.radeon.com/rocm/apt/6.0.2 jammy/main amd64 openmp-extras-runtime amd64 17.60.0.60002-115~22.04 [140 MB]
Get:8 https://repo.radeon.com/rocm/apt/6.0.2 jammy/main amd64 rocm-language-runtime amd64 6.0.2.60002-115~22.04 [834 B]
Get:9 https://repo.radeon.com/rocm/apt/6.0.2 jammy/main amd64 rocm-ocl-icd amd64 2.0.0.60002-115~22.04 [16.3 kB]
Get:10 https://repo.radeon.com/rocm/apt/6.0.2 jammy/main amd64 rocm-opencl amd64 2.0.0.60002-115~22.04 [595 kB]
Get:11 https://repo.radeon.com/rocm/apt/6.0.2 jammy/main amd64 rocm-opencl-runtime amd64 6.0.2.60002-115~22.04 [2,016 B]
Fetched 194 MB in 20s (9,686 kB/s)
Selecting previously unselected package libncurses-dev:amd64.
(Reading database ... 222648 files and directories currently installed.)
Preparing to unpack .../00-libncurses-dev_6.3-2ubuntu0.1_amd64.deb ...
Unpacking libncurses-dev:amd64 (6.3-2ubuntu0.1) ...
Selecting previously unselected package libtinfo-dev:amd64.
Preparing to unpack .../01-libtinfo-dev_6.3-2ubuntu0.1_amd64.deb ...
Unpacking libtinfo-dev:amd64 (6.3-2ubuntu0.1) ...
Selecting previously unselected package rocm-core.
Preparing to unpack .../02-rocm-core_6.0.2.60002-115~22.04_amd64.deb ...
Unpacking rocm-core (6.0.2.60002-115~22.04) ...
Selecting previously unselected package comgr.
Preparing to unpack .../03-comgr_2.6.0.60002-115~22.04_amd64.deb ...
Unpacking comgr (2.6.0.60002-115~22.04) ...
Selecting previously unselected package hsa-rocr.
Preparing to unpack .../04-hsa-rocr_1.12.0.60002-115~22.04_amd64.deb ...
Unpacking hsa-rocr (1.12.0.60002-115~22.04) ...
Selecting previously unselected package libelf-dev:amd64.
Preparing to unpack .../05-libelf-dev_0.186-1build1_amd64.deb ...
Unpacking libelf-dev:amd64 (0.186-1build1) ...
Selecting previously unselected package openmp-extras-runtime.
Preparing to unpack .../06-openmp-extras-runtime_17.60.0.60002-115~22.04_amd64.deb ...
Unpacking openmp-extras-runtime (17.60.0.60002-115~22.04) ...
Selecting previously unselected package rocm-language-runtime.
Preparing to unpack .../07-rocm-language-runtime_6.0.2.60002-115~22.04_amd64.deb ...
Unpacking rocm-language-runtime (6.0.2.60002-115~22.04) ...
Selecting previously unselected package rocm-ocl-icd.
Preparing to unpack .../08-rocm-ocl-icd_2.0.0.60002-115~22.04_amd64.deb ...
Unpacking rocm-ocl-icd (2.0.0.60002-115~22.04) ...
Selecting previously unselected package rocm-opencl.
Preparing to unpack .../09-rocm-opencl_2.0.0.60002-115~22.04_amd64.deb ...
Unpacking rocm-opencl (2.0.0.60002-115~22.04) ...
Selecting previously unselected package rocm-opencl-runtime.
Preparing to unpack .../10-rocm-opencl-runtime_6.0.2.60002-115~22.04_amd64.deb ...
Unpacking rocm-opencl-runtime (6.0.2.60002-115~22.04) ...
Setting up libncurses-dev:amd64 (6.3-2ubuntu0.1) ...
Setting up amdgpu-dkms (1:6.3.6.60002-1718217.22.04) ...
Removing old amdgpu-6.3.6-1718217.22.04 DKMS files...
Deleting module amdgpu-6.3.6-1718217.22.04 completely from the DKMS tree.
Loading new amdgpu-6.3.6-1718217.22.04 DKMS files...
Building for 6.8.0-76060800daily20240311-generic
Building for architecture x86_64
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
Setting up rocm-core (6.0.2.60002-115~22.04) ...
update-alternatives: using /opt/rocm-6.0.2 to provide /opt/rocm (rocm) in auto mode
Setting up rocm-ocl-icd (2.0.0.60002-115~22.04) ...
Setting up libelf-dev:amd64 (0.186-1build1) ...
Setting up libtinfo-dev:amd64 (6.3-2ubuntu0.1) ...
Setting up comgr (2.6.0.60002-115~22.04) ...
Setting up hsa-rocr (1.12.0.60002-115~22.04) ...
Setting up rocm-opencl (2.0.0.60002-115~22.04) ...
Setting up openmp-extras-runtime (17.60.0.60002-115~22.04) ...
Setting up rocm-language-runtime (6.0.2.60002-115~22.04) ...
Setting up rocm-opencl-runtime (6.0.2.60002-115~22.04) ...
update-alternatives: using /opt/rocm-6.0.2/bin/clinfo to provide /usr/bin/clinfo (clinfo) in auto mode
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.7) ...
Errors were encountered while processing:
amdgpu-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
…/drivers took 1m27s❯ |
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. 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. Meanwhile, I did:
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 |
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:
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 know
Issue/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.The text was updated successfully, but these errors were encountered: