Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Software] Weird screen flickering,tried everything (WIFI RELATED)

Graphical Environments, Managers, Multimedia & Desktop questions.
Message
Author
Maese
Posts: 18
Joined: 2023-01-28 22:42

[Software] Weird screen flickering,tried everything (WIFI RELATED)

#1 Post by Maese »

IMPORTANT UPDATE: SCREEN FLICKERING OR TEARING OR IMAGE DISTORTION IS ONLY HAPPPENING WHEN WIFI IS CONNECTED, IF NOT, IMAGE IS 100% CLEAR. ANY IDEAS?


Hello everyone, this is the first time i need to ask a question at a forum since i switched to debian a lots of years ago, i have being googling a solution for a few days and still nothing.

I got a new laptop with i5 10th UHD, and installed bulleye with gnome, everything is working fine except for this weird screen flickering or tearinng, its not happening all the time. Some times are just a few pixels with other colours almost always i watch netflix and some random moments doing nothing or just scrolling or switching windows. I tried the 20-intel.conf tricks but didn't help, also i tried apt removed the old intel gx drivers and a few more proposed solutions i found surfing the www.


Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye

Graphics:
Device-1: Intel CometLake-U GT2 [UHD Graphics] vendor: nCipher Security
driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:9b41
Device-2: Y Media USB Camera type: USB driver: uvcvideo bus ID: 1-4:2
chip ID: 0bdc:4691
Display: wayland server: X.Org 1.20.11 compositor: gnome-shell driver:
loaded: i915 note: n/a (using device driver) resolution: 1920x1080~60Hz
s-dpi: 96
OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 20.3.5
direct render: Yes


Thanks in advance!
Last edited by Maese on 2023-05-12 21:12, edited 5 times in total.

User avatar
kent_dorfman766
Posts: 529
Joined: 2022-12-16 06:34
Location: socialist states of america
Has thanked: 56 times
Been thanked: 69 times

Re: Weird screen flickering,tried everything and i need help!

#2 Post by kent_dorfman766 »

My old gateway laptop experiences this problem. I've attributed it to the old nvidia graphics driver that I must use. The second I see it tearing (usually shortly after startup), I reboot and then it's rock solid for as long as I keep the machine running.

User avatar
NorthEast
Posts: 348
Joined: 2018-11-18 04:35
Has thanked: 12 times
Been thanked: 30 times

Re: Weird screen flickering,tried everything and i need help!

#3 Post by NorthEast »

If there are any more recent firmware files than you have at:
https://git.kernel.org/pub/scm/linux/ke ... /tree/i915
then you could install them to see if they make a difference.
Could check out the latest at: https://tracker.debian.org/pkg/firmware-nonfree

Maese
Posts: 18
Joined: 2023-01-28 22:42

Re: Weird screen flickering,tried everything and i need help!

#4 Post by Maese »

NorthEast wrote: 2023-01-29 22:24 If there are any more recent firmware files than you have at:
https://git.kernel.org/pub/scm/linux/ke ... /tree/i915
then you could install them to see if they make a difference.
Could check out the latest at: https://tracker.debian.org/pkg/firmware-nonfree
Ok i will try that, thanks!

Maese
Posts: 18
Joined: 2023-01-28 22:42

Re: Weird screen flickering,tried everything and i need help!

#5 Post by Maese »

kent_dorfman766 wrote: 2023-01-29 13:57 My old gateway laptop experiences this problem. I've attributed it to the old nvidia graphics driver that I must use. The second I see it tearing (usually shortly after startup), I reboot and then it's rock solid for as long as I keep the machine running.
In my case it is all the time and it is quite annoying, if i can't fix that i will have to try another desktop environment or another dristo, but for now i really will like to stay with debian and gnome :cry:

Maese
Posts: 18
Joined: 2023-01-28 22:42

Re: Weird screen flickering,tried everything and i need help!

#6 Post by Maese »

I checked drivers and are all up to date (apt).. im out of clues here, any advice?

Aki
Global Moderator
Global Moderator
Posts: 2816
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 68 times
Been thanked: 382 times

Re: Weird screen flickering,tried everything and i need help!

#7 Post by Aki »

Hello,
Maese wrote: 2023-03-02 19:26 I checked drivers and are all up to date (apt).. im out of clues here, any advice?
You can try installing a newer kernel from bullseye-backports repository [1] with the required upgraded firmware.

---
[1] https://backports.debian.org/
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1387
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 64 times

Re: Weird screen flickering,tried everything and i need help!

#8 Post by None1975 »

kent_dorfman766 wrote: 2023-01-29 13:57 My old gateway laptop experiences this problem. I've attributed it to the old nvidia graphics driver that I must use. The second I see it tearing (usually shortly after startup), I reboot and then it's rock solid for as long as I keep the machine running.
Just add these two lines to your startup script (i added this tu my .xsessionrc)

Code: Select all

nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
nvidia-settings -a 'AllowFlipping=0'
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
kent_dorfman766
Posts: 529
Joined: 2022-12-16 06:34
Location: socialist states of america
Has thanked: 56 times
Been thanked: 69 times

Re: Weird screen flickering,tried everything and i need help!

#9 Post by kent_dorfman766 »

interesting . I added it to my startup...will see if it makes a difference.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1387
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 64 times

Re: Weird screen flickering,tried everything and i need help!

#10 Post by None1975 »

kent_dorfman766 wrote: 2023-03-04 19:58 interesting . I added it to my startup...will see if it makes a difference.
I use this along with picom. To the start up file i added

Code: Select all

picom --backend glx --xrender-sync-fence &
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

Maese
Posts: 18
Joined: 2023-01-28 22:42

Re: Weird screen flickering,tried everything and i need help!

#11 Post by Maese »

I'M GOING CRAZY WITH THIS :oops:

Just for updating (because nothing worked) i have tried a few "ubuntu" things from their forums, wich had some good feedback, editing:

/etc/X11/xorg.conf.d/20-intel.conf <- file not found here, i created as sugested in some post here.
/usr/share/X11/xorg.conf.d/20-intel.conf <- i think this is the route i have to edit? file was already there... tried both just in case.


Here replacing XXXX by modesetting, i915 and Intel:

Section "Device"
Identifier "Intel Graphics"
Driver "XXXX"
Option "TearFree" "true"
Option "TripleBuffer" "true"
Option "AccelMod" "uxa"
Option "DRI" "3"
EndSection


and also:


Section "Module"
Load "dri3"
EndSection

Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "DRI" "3"
Option "AccelMethod" "sna"
Option "TearFree" "true"
EndSection

None1975 wrote: 2023-03-03 14:08
kent_dorfman766 wrote: 2023-01-29 13:57 My old gateway laptop experiences this problem. I've attributed it to the old nvidia graphics driver that I must use. The second I see it tearing (usually shortly after startup), I reboot and then it's rock solid for as long as I keep the machine running.
Just add these two lines to your startup script (i added this tu my .xsessionrc)

Code: Select all

nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
nvidia-settings -a 'AllowFlipping=0'

sounds great but i am using intel gx, posted on ot, btw thanks.
Last edited by Maese on 2023-03-07 16:35, edited 1 time in total.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1387
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 64 times

Re: Weird screen flickering,tried everything and i need help!

#12 Post by None1975 »

Maese wrote: 2023-03-07 15:59 sounds great but i am using intel gx, posted on ot, btw thanks.
Sorry, I was in a hurry and didn't notice you were using Intel graphics. Sorry for the noise :)
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

Maese
Posts: 18
Joined: 2023-01-28 22:42

Re: Weird screen flickering,tried everything and i need help!

#13 Post by Maese »

None1975 wrote: 2023-03-07 17:05
Maese wrote: 2023-03-07 15:59 sounds great but i am using intel gx, posted on ot, btw thanks.
Sorry, I was in a hurry and didn't notice you were using Intel graphics. Sorry for the noise :)
don't worry it's better some noise than nothing :roll: :x :oops: :cry:

User avatar
NorthEast
Posts: 348
Joined: 2018-11-18 04:35
Has thanked: 12 times
Been thanked: 30 times

Re: Weird screen flickering,tried everything and i need help!

#14 Post by NorthEast »

You could try the xorg.conf option: Option "SwapbuffersWait" "boolean". Make it true.

Maese
Posts: 18
Joined: 2023-01-28 22:42

Re: Weird screen flickering,tried everything and i need help!

#15 Post by Maese »

NorthEast wrote: 2023-03-08 02:45 You could try the xorg.conf option: Option "SwapbuffersWait" "boolean". Make it true.
i think you mean at 20-Intel.conf in xorg.conf.d/ ?? like this?

Section "Device"
Identifier "Intel Graphics"
Driver "Intel"
Option "SwapbuffersWait" "boolean" "True"
EndSection


If it is this way... it didn't work

Maese
Posts: 18
Joined: 2023-01-28 22:42

Re: Weird screen flickering,tried everything and i need help!

#16 Post by Maese »

NorthEast wrote: 2023-03-08 02:45 You could try the xorg.conf option: Option "SwapbuffersWait" "boolean". Make it true.

Code: Select all

Section "Module"
    Load "dri3"
EndSection

Section "Device"
    Identifier  "Intel Graphics"
    Driver      "Intel"
    Option      "DRI"   "3"    
    Option "AccelMethod" "sna"
    Option "TearFree" "true"
    Option "TripleBuffer" "true"
    Option "SwapbuffersWait" "boolean" "True"
EndSection

I was trying a lot of things but i think this was what fixed the issue, now it is working really great! <3 Debian <3
Thanks all!!

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: Weird screen flickering,tried everything and i need help!

#17 Post by sunrat »

Maese wrote: 2023-03-22 01:42
I was trying a lot of things but i think this was what fixed the issue, now it is working really great! <3 Debian <3
Thanks all!!
Great work! Please edit the title of your first post to add prefix [Solved] so it may help others.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
NorthEast
Posts: 348
Joined: 2018-11-18 04:35
Has thanked: 12 times
Been thanked: 30 times

Re: [Solved] Weird screen flickering,tried everything and i need help!

#18 Post by NorthEast »

Glad it works maese. Just a note on the xorg.conf config option:

Code: Select all

Option "SwapbuffersWait" "boolean" "True"
the "boolean" is unnecessary, since the "True" is the boolean option.

Maese
Posts: 18
Joined: 2023-01-28 22:42

Re: [Solved] Weird screen flickering,tried everything and i need help!

#19 Post by Maese »

i guess i hurry too much, problem is back as allways... i still need help :roll:

NorthEast wrote: 2023-03-23 03:01 Glad it works maese. Just a note on the xorg.conf config option:

Code: Select all

Option "SwapbuffersWait" "boolean" "True"
the "boolean" is unnecessary, since the "True" is the boolean option.
omg thats true! thanks, but the problem persists even after installing kernel 6.1 ... and also the same after installing xserver-xorg-video-intel 2:2.99.917+git20210115-1 both from unstable repos...


I can't believe that i am the only person in the whole debian community using i3 10th having this issue???????????????????????????



EDIT: tried adding to grub until i915.enable_psr=0, i915.enable_dc=0, and until i915.enable_dc=0 intel_idle.max_cstate=2 in all possible combinations lol

EDIT x2: tried forcing x11, disabling wayland.. same result.

EDIT x3: tried turning off night-light on config/screen as suggested somewhere, didn't work...

EDIT x4: MORE INFO JUST IN CASE IT HELPS

Flickering is less frequent than tearing...

This issue happens after login, never before, actually in the login screen i never saw a single tear or flickering.

IT happens more often when changing windows or when watching videos...

After almost 2 months of flickering/tearing everyday, i had 3 days using the laptop full day without flickering at all, then it suddenly started again (that's why i was thinking it was fixed)

Some time after booting flickering/tearing calms down, but suddenly it starts again..

Laptop is usable, i mean when i am working it is quite ok... but when watching videos it is quite annoying and it is not a desire thing to tolerate.



:S

MORE THAN TWO MONTH TRYING TO SOLVE THIS ISSUE, i am really close to install other distro for the first time in more than a decade :(

I read somewhere that kernel 5.13-14 was working ok, and then they mess it up, but i don't want to believe that problem was not corrected until 6.1??? Also 5.14 is not being updated anymore so not a really safe option... should i try it?

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1387
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 64 times

Re: [Solved] Weird screen flickering,tried everything and i need help!

#20 Post by None1975 »

Maese wrote: 2023-03-24 03:44
Laptop is usable, i mean when i am working it is quite ok... but when watching videos it is quite annoying and it is not a desire thing to tolerate.
Hello. You can always try using wayland. With sway (Sway is a tiling Wayland compositor and a drop-in replacement for the i3 window manager for X11. It works with your existing i3 configuration and supports most of i3's features, plus a few extras) i completely forgot about screen tearing.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

Post Reply