Regular screen flickering on the MSI laptop

I have a brand new laptop MSI Prestige 15 with NVIDIA® GeForce® GTX 1650. I installed the latest release of elementary OS (Odin) which is based on the Ubuntu 20.04 LTS. After installation, I’ve noticed that my screen is regularly flickering (let’s say once in 5 seconds but I would say it’s kinda random). Also, VLC player shows a green banner in the top part of the video while the video itself has weird colors and it’s certainly not something pleasant to watch.

I have tried to make changes in the /etc/default/group by setting GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_psr=0". Also I have installed the driver (version 470.86). However, none of these actions have affected the system in any way.

Here is outcome of the sudo nvidia-smi

Tue Dec 21 17:48:03 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.86       Driver Version: 470.86       CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:5A:00.0 Off |                  N/A |
| N/A   48C    P0     8W /  N/A |      4MiB /  3914MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1173      G   /usr/lib/xorg/Xorg                  4MiB |
+-----------------------------------------------------------------------------+

And of the uname -a

Linux msielementary 5.11.0-43-generic #47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Thanks a lot any help or advice! And let me know if I should provide more details about this problem.
nvidia-bug-report.log.gz (269.1 KB)

Latest release appears to be 6.1 Jólnir?

Sounds like a hardware acceleration setting issue, e.g. have you installed the necessary packages for vdpau?

Are you running with PRIME or with the NVIDIA dGPU as the primary?

Somewhere else to check will be Support ⋅ elementary - as ElementaryOS is a paid-for product you can expect some level of support from the maintainers. Oh, wait… they offload support to “the community”. :disappointed:

1 Like

Seems the nvidia gpu is in on-demand mode, so things are rendered by the intel igpu.
Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.

haha, true, it came out just today :-) I have updated to 6.1 now

vdpau-driver-all was already installed on the system, I am not sure if I need to take some other actions

I have NVIDIA on-demand selected in the settings

Well, what can I say… I already tried to ask on the elementaryos.stackexchange.com so that’s how I got here

Uploaded, thanks for having a look. Yes, card is in the on-demand mode now

oh, it came out just today :) I have already updated so now I do have 6.1

vdpau-driver-all was already installed in the system, do I need anything else?

nvidia-settings shows I am in the on-demand mode now

Well, I have already tried my luck on the elementaryos.stackexchange.com - and without any help of course :) Thanks for your help!

Looking at the logs, it seems there’s something always switching to VT and back.

[ 11683.001] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 11686.161] (II) AIGLX: Resuming AIGLX clients after VT switch

or did you switch so often on purpose?

Not sure what is VT switch but I don’t switch anything manually so it has to be something else.

VT switch = switching to text console (e.g. ctrl+alt+f4) and back.
There’s also discord spamming the kernel log every 5s, like
https://github.com/snapcrafters/discord/issues/43
Does the flicker also occur if you exit discord?

Yes, it occurs without the Discord as well. Although it’s maybe less frequent but this kinda hard to judge.

I guess the vt switch is also a red herring, the system was just suspending/resuming a lot.
Since discord’s dmesg flood hides any boot-up messages, please attach a dmesg output of a fresh boot after some flickers.