Screen flickering issue with NVIDIA graphics card

My screen flickers.

It happens when the screen is turned on after being off for a while and also after boot/startup. I have a nvidia GTX 1650 and my kernal is linux58(i just updated).

EDIT: I have night color on.

Hello,

Is this a Laptop or Desktop PC? Please provide:
inxi -Fxza --no-host
mhwd -li
and if is a desktop pc also provide:
cat /etc/X11/mhwd.d/nvidia.conf

1 Like

Hey , I have the same issue and same gpu .
Mine is a laptop ( asus tuf fx505dt) .
Here is the output :

System:
   Kernel: 5.8.11-1-MANJARO x86_64 bits: 64 compiler: N/A 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.8-x86_64 
  root=UUID=662bbf43-65eb-4a90-b1d3-e4c377c258d0 rw quiet apparmor=1 
  security=apparmor resume=UUID=71f15591-4215-4ccf-9cb3-8c8169941782 
  udev.log_priority=3 
  Desktop: GNOME 3.36.6 tk: GTK 3.24.23 wm: gnome-shell dm: GDM 3.36.3 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: ASUSTeK product: TUF Gaming FX505DT_FX505DT v: 1.0 
  serial: <filter> 
  Mobo: ASUSTeK model: FX505DT v: 1.0 serial: <filter> 
  UEFI: American Megatrends v: FX505DT.310 date: 12/24/2019 
Battery:
  ID-1: BAT0 charge: 7.3 Wh condition: 37.3/48.2 Wh (77%) volts: 10.9/11.9 
  model: FX50442 type: Li-ion serial: N/A status: Discharging 
CPU:
  Topology: Quad Core model: AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx 
  bits: 64 type: MT MCP arch: Zen+ family: 17 (23) model-id: 18 (24) 
  stepping: 1 microcode: 8108102 L2 cache: 2048 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 33551 
  Speed: 1301 MHz min/max: 1400/2100 MHz boost: enabled Core speeds (MHz): 
  1: 1350 2: 1323 3: 1292 4: 1228 5: 1261 6: 1209 7: 1225 8: 1282 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: 
  disabled, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: ASUSTeK 
  driver: nvidia v: 450.66 alternate: nouveau,nvidia_drm bus ID: 01:00.0 
  chip ID: 10de:1f91 
  Device-2: AMD Picasso vendor: ASUSTeK driver: amdgpu v: kernel 
  bus ID: 05:00.0 chip ID: 1002:15d8 
  Device-3: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo 
  bus ID: 3-1:2 chip ID: 13d3:56a2 serial: <filter> 
  Display: x11 server: X.org 1.20.9 compositor: gnome-shell 
  driver: amdgpu,ati,nvidia unloaded: modesetting,nouveau,radeon 
  alternate: fbdev,nv,vesa resolution: <xdpyinfo missing> 
  OpenGL: renderer: AMD RAVEN (DRM 3.38.0 5.8.11-1-MANJARO LLVM 10.0.1) 
  v: 4.6 Mesa 20.1.8 direct render: Yes 
Audio:
  Device-1: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel 
  v: kernel bus ID: 05:00.6 chip ID: 1022:15e3 
  Sound Server: ALSA v: k5.8.11-1-MANJARO 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK driver: r8169 v: kernel port: e000 bus ID: 02:00.0 
  chip ID: 10ec:8168 
  IF: enp2s0 state: down mac: <filter> 
  Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter 
  vendor: AzureWave driver: rtw_8822ce v: N/A modules: rtw88_8822ce 
  port: c000 bus ID: 04:00.0 chip ID: 10ec:c822 
  IF: wlp4s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 1.14 TiB used: 18.53 GiB (1.6%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 vendor: Kingston model: RBUSNS8154P3256GJ3 
  size: 238.47 GiB block size: physical: 512 B logical: 512 B 
  speed: 15.8 Gb/s lanes: 2 serial: <filter> rev: E8FK11.T scheme: GPT 
  ID-2: /dev/sda vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB 
  block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 5400 rpm serial: <filter> rev: SDM4 scheme: GPT 
Partition:
  ID-1: / raw size: 229.37 GiB size: 224.77 GiB (97.99%) 
  used: 15.62 GiB (6.9%) fs: ext4 dev: /dev/nvme0n1p2 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8.80 GiB used: 2.91 GiB (33.0%) 
  priority: -2 dev: /dev/nvme0n1p3 
Sensors:
  System Temperatures: cpu: 45.6 C mobo: N/A gpu: amdgpu temp: 45 C 
  Fan Speeds (RPM): cpu: 2400 
Info:
  Processes: 379 Uptime: 4h 18m Memory: 5.80 GiB used: 4.18 GiB (72.0%) 
  Init: systemd v: 246 Compilers: gcc: 10.2.0 Packages: pacman: 1277 
  lib: 340 flatpak: 0 Shell: Zsh v: 5.8 running in: gnome-terminal 
  inxi: 3.1.05

Hi!
I have the same laptop and had the same problem in kde and i3. I was able to fix it follow this thread
Tearing nvidia

  1. In the future, when providing code/output, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text so that the output looks like this:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
    Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    

    instead of like this:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    (as that makes our life much easier so you get helped more quickly and efficiently)

  2. No need to do anything right now as I’m an editor here on this site and have fixed it for you already. However, in the future I might not see your post so review my edits by pushing the orange pencil above the post I just fixed. :wink:

2 Likes

Thanks . I will surely remember that :smiley:

No worries! We live and we learn… :+1:

Did @visone 's advice work out for you?

Hi @Fabby, I have same laptop (Asus fx505dt) with same configuration.
I also got the same issue. After trying bunch of different methods. I just removed non-free drivers video-hybrid-amd-nvidia-450xx-prime and started using free drivers video-linux .
Everything works fine now.

Also, method mentioned by @visone did not work for me, It gives error ‘cannot start SDDM’ at start.

Thank you for the feed-back, but @TheEpicProgrammer is the person that should confirm your answer works for him/her too…

:man_shrugging:

@Fabby that’s alright. I just wanted to confirm if solution works with everyone.
Also, The solution I gave above does not work in all conditions. I apologize for that.
I just found the solution here on forums that works and I have thoroughly tested it.

Please check point 4.0 Suspend Issues.

If someone is having same problem, please let me know.

2 Likes

Hey first of all apologies for late replies ,
No it is not workinng I am getting the same issues again & again .

@ashu

:point_up_2: :pray: :bowing_man:

also for an update : the issue gets resolved if I switch to nvidia 440.x.x.x. but the system automatically upgrades itself to 450+.x.x. and that causes the issue again and again

I’m on the 440 series (have a look at my profile why) and that’s rock stable and does not upgrade itself to the 450 series automatically.

What’s the output of:

mhwd --listinstalled

:thinking:

--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-440xx-prime            2020.10.04               false            PCI
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!

Hrmpf. That’s good!

How did you install those?

mhwd --install pci video-hybrid-amd-nvidia-440xx-prime 

:question: :thinking:

Note: I’m on

mhwd --listinstalled
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
    video-nvidia-440xx            2020.10.04               false            PCI

And that one doesn’t upgrade to 450… :upside_down_face:

I install those from harware configuration settings
also I am on manjaro gnome .
I think it upgrades whenever I upgrade my machine via pamac manager or install a new package …
in that case what can I do ?

  • Stop using the GUI to install nVidia drivers (it does things “automatically”)

  • Print this page so you have it as a reference while in TTY2

  • Log off

  • Switch to TTY2 by pressing Ctrl+Alt+F2

  • Log in there

  • remove everything (and why you’re in a TTY) with:

    sudo mhwd --remove pci video-hybrid-amd-nvidia-440xx-prime 
    sudo mhwd --remove pci video-linux
    
  • Install everything again:

    sudo mhwd --install pci video-hybrid-amd-nvidia-440xx-prime 
    sudo mhwd --install pci video-linux
    sudo reboot
    

Now it shouldn’t auto-update any more

:man_shrugging:

1 Like

Hey , sad to say but After trying the method u suggested , broke the screen and starten flickering again… I then deleted uninstalled the driver then again installed … now its working

Huh? that’s exactly what I told you above… What did you do differently?

:open_mouth: