[focal] Screen flickering in Xorg on i7-1165G7

Bug #2023927 reported by salvatore campeggio
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-hwe-5.13 (Ubuntu)
New
Undecided
Unassigned
xorg-server (Ubuntu)
New
Undecided
Unassigned

Bug Description

Often, when there are small changes in image displayed, an horizontal flickering is observed. This happen for example on a mouse right button menu, or when a hyperlink description appears on the screen bottom when mouse pointer cross some field on a webpage, also when favorites menu appear.
The flickering usually disappear in a few moments, sometimes (usually when a few pixels are updating) it can last for seconds.
This flickering is caused by a late updating of some horizontal lines, so for awhile a few lines of previous image coexist with a majority of new ones

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xorg 1:7.7+19ubuntu14
ProcVersionSignature: Ubuntu 5.13.0-41.46~20.04.1-generic 5.13.19
Uname: Linux 5.13.0-41-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.23
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: skip
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Wed Jun 14 22:44:12 2023
DistUpgraded: Fresh install
DistroCodename: focal
DistroVariant: ubuntu
DkmsStatus:
 virtualbox, 6.1.32, 5.13.0-40-generic, x86_64: installed
 virtualbox, 6.1.32, 5.13.0-41-generic, x86_64: installed
 virtualbox, 6.1.32, 5.4.0-126-generic, x86_64: installed
ExtraDebuggingInterest: Yes, including running git bisection searches
GraphicsCard:
 Intel Corporation Device [8086:9a49] (rev 01) (prog-if 00 [VGA controller])
   Subsystem: Device [1e39:a025]
InstallationDate: Installed on 2022-01-01 (529 days ago)
InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819)
Lsusb: Error: command ['lsusb'] failed with exit code 127: lsusb: symbol lookup error: lsusb: undefined symbol: libusb_error_name
Lsusb-t: Error: command ['lsusb', '-t'] failed with exit code 127: lsusb: symbol lookup error: lsusb: undefined symbol: libusb_error_name
Lsusb-v: Error: command ['lsusb', '-v'] failed with exit code 127: lsusb: symbol lookup error: lsusb: undefined symbol: libusb_error_name
MachineType: MEDION S15449
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.13.0-41-generic root=UUID=cbfc0023-baf3-4a11-b0aa-6dadbd0f60f7 ro quiet splash pci=noaer vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/09/2021
dmi.bios.release: 5.19
dmi.bios.vendor: American Megatrends International, LLC.
dmi.bios.version: 212
dmi.board.asset.tag: Default string
dmi.board.name: M15T
dmi.board.vendor: MEDION
dmi.board.version: Default string
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 10
dmi.chassis.vendor: MEDION
dmi.chassis.version: Default string
dmi.modalias: dmi:bvnAmericanMegatrendsInternational,LLC.:bvr212:bd04/09/2021:br5.19:svnMEDION:pnS15449:pvrDefaultstring:rvnMEDION:rnM15T:rvrDefaultstring:cvnMEDION:ct10:cvrDefaultstring:skuML-23000830031014:
dmi.product.family: Akoya
dmi.product.name: S15449
dmi.product.sku: ML-230008 30031014
dmi.product.version: Default string
dmi.sys.vendor: MEDION
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.107-8ubuntu1~20.04.2
version.libgl1-mesa-dri: libgl1-mesa-dri 21.2.6-0ubuntu0.1~20.04.2
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.20.13-1ubuntu1~20.04.2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel N/A
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1

Revision history for this message
salvatore campeggio (scampeggio) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report. Please try adding the following kernel parameter:

  i915.enable_psr=0

to /etc/default/grub under GRUB_CMDLINE_LINUX_DEFAULT, then run:

  sudo update-grub

and reboot. Finally check to see that it's being used:

  cat /proc/cmdline

affects: xorg (Ubuntu) → linux-hwe-5.13 (Ubuntu)
Changed in linux-hwe-5.13 (Ubuntu):
status: New → Incomplete
Revision history for this message
salvatore campeggio (scampeggio) wrote : Re: [Bug 2023927] Re: Screen flickering whe update images
Download full text (4.9 KiB)

I already did it some time ago, with no result.
I did it again now, but cat /proc/cmdline report the same result as before:

camp@camp-medion:~$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.13.0-41-generic
root=UUID=cbfc0023-baf3-4a11-b0aa-6dadbd0f60f7 ro quiet splash
pci=noaer vt.handoff=7

On 16/06/2023, Daniel van Vugt <email address hidden> wrote:
> Thanks for the bug report. Please try adding the following kernel
> parameter:
>
> i915.enable_psr=0
>
> to /etc/default/grub under GRUB_CMDLINE_LINUX_DEFAULT, then run:
>
> sudo update-grub
>
> and reboot. Finally check to see that it's being used:
>
> cat /proc/cmdline
>
> ** Package changed: xorg (Ubuntu) => linux-hwe-5.13 (Ubuntu)
>
> ** Changed in: linux-hwe-5.13 (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2023927
>
> Title:
> Screen flickering whe update images
>
> Status in linux-hwe-5.13 package in Ubuntu:
> Incomplete
>
> Bug description:
> Often, when there are small changes in image displayed, an horizontal
> flickering is observed. This happen for example on a mouse right button
> menu, or when a hyperlink description appears on the screen bottom when
> mouse pointer cross some field on a webpage, also when favorites menu
> appear.
> The flickering usually disappear in a few moments, sometimes (usually when
> a few pixels are updating) it can last for seconds.
> This flickering is caused by a late updating of some horizontal lines, so
> for awhile a few lines of previous image coexist with a majority of new
> ones
>
> ProblemType: Bug
> DistroRelease: Ubuntu 20.04
> Package: xorg 1:7.7+19ubuntu14
> ProcVersionSignature: Ubuntu 5.13.0-41.46~20.04.1-generic 5.13.19
> Uname: Linux 5.13.0-41-generic x86_64
> ApportVersion: 2.20.11-0ubuntu27.23
> Architecture: amd64
> BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
> CasperMD5CheckResult: skip
> CompositorRunning: None
> CurrentDesktop: ubuntu:GNOME
> Date: Wed Jun 14 22:44:12 2023
> DistUpgraded: Fresh install
> DistroCodename: focal
> DistroVariant: ubuntu
> DkmsStatus:
> virtualbox, 6.1.32, 5.13.0-40-generic, x86_64: installed
> virtualbox, 6.1.32, 5.13.0-41-generic, x86_64: installed
> virtualbox, 6.1.32, 5.4.0-126-generic, x86_64: installed
> ExtraDebuggingInterest: Yes, including running git bisection searches
> GraphicsCard:
> Intel Corporation Device [8086:9a49] (rev 01) (prog-if 00 [VGA
> controller])
> Subsystem: Device [1e39:a025]
> InstallationDate: Installed on 2022-01-01 (529 days ago)
> InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64
> (20210819)
> Lsusb: Error: command ['lsusb'] failed with exit code 127: lsusb: symbol
> lookup error: lsusb: undefined symbol: libusb_error_name
> Lsusb-t: Error: command ['lsusb', '-t'] failed with exit code 127: lsusb:
> symbol lookup error: lsusb: undefined symbol: libusb_error_name
> Lsusb-v: Error: command ['lsusb', '-v'] failed with exit code 127: lsusb:
> symbol lookup error: lsusb: undefined symbol: libusb_error_name
> MachineType: MED...

Read more...

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Screen flickering whe update images

Indeed i915.enable_psr=0 is not currently applied. Please follow all the instructions in comment #2.

Revision history for this message
salvatore campeggio (scampeggio) wrote : Re: [Bug 2023927] Re: Screen flickering whe update images
Download full text (4.5 KiB)

I did it again, now the result is different, but the bug didn't change

camp@camp-medion:~$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.13.0-41-generic
root=UUID=cbfc0023-baf3-4a11-b0aa-6dadbd0f60f7 ro i915.enable_psr=0

On 16/06/2023, Daniel van Vugt <email address hidden> wrote:
> Indeed i915.enable_psr=0 is not currently applied. Please follow all the
> instructions in comment #2.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2023927
>
> Title:
> Screen flickering whe update images
>
> Status in linux-hwe-5.13 package in Ubuntu:
> Incomplete
>
> Bug description:
> Often, when there are small changes in image displayed, an horizontal
> flickering is observed. This happen for example on a mouse right button
> menu, or when a hyperlink description appears on the screen bottom when
> mouse pointer cross some field on a webpage, also when favorites menu
> appear.
> The flickering usually disappear in a few moments, sometimes (usually when
> a few pixels are updating) it can last for seconds.
> This flickering is caused by a late updating of some horizontal lines, so
> for awhile a few lines of previous image coexist with a majority of new
> ones
>
> ProblemType: Bug
> DistroRelease: Ubuntu 20.04
> Package: xorg 1:7.7+19ubuntu14
> ProcVersionSignature: Ubuntu 5.13.0-41.46~20.04.1-generic 5.13.19
> Uname: Linux 5.13.0-41-generic x86_64
> ApportVersion: 2.20.11-0ubuntu27.23
> Architecture: amd64
> BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
> CasperMD5CheckResult: skip
> CompositorRunning: None
> CurrentDesktop: ubuntu:GNOME
> Date: Wed Jun 14 22:44:12 2023
> DistUpgraded: Fresh install
> DistroCodename: focal
> DistroVariant: ubuntu
> DkmsStatus:
> virtualbox, 6.1.32, 5.13.0-40-generic, x86_64: installed
> virtualbox, 6.1.32, 5.13.0-41-generic, x86_64: installed
> virtualbox, 6.1.32, 5.4.0-126-generic, x86_64: installed
> ExtraDebuggingInterest: Yes, including running git bisection searches
> GraphicsCard:
> Intel Corporation Device [8086:9a49] (rev 01) (prog-if 00 [VGA
> controller])
> Subsystem: Device [1e39:a025]
> InstallationDate: Installed on 2022-01-01 (529 days ago)
> InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64
> (20210819)
> Lsusb: Error: command ['lsusb'] failed with exit code 127: lsusb: symbol
> lookup error: lsusb: undefined symbol: libusb_error_name
> Lsusb-t: Error: command ['lsusb', '-t'] failed with exit code 127: lsusb:
> symbol lookup error: lsusb: undefined symbol: libusb_error_name
> Lsusb-v: Error: command ['lsusb', '-v'] failed with exit code 127: lsusb:
> symbol lookup error: lsusb: undefined symbol: libusb_error_name
> MachineType: MEDION S15449
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.13.0-41-generic
> root=UUID=cbfc0023-baf3-4a11-b0aa-6dadbd0f60f7 ro quiet splash pci=noaer
> vt.handoff=7
> SourcePackage: xorg
> Symptom: display
> UpgradeStatus: No upgrade log present (probably fresh install)
> dmi.bios.date: 04/09/2021
> dmi.bios.release: 5.19
> dmi.bios.vendor: American Megatrends Internationa...

Read more...

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Screen flickering whe update images

In that case it sounds like a driver bug.

Firstly please check you're not using the deprecated 'intel' Xorg driver. It should be the 'modesetting' driver, although the attached logs suggest you're already using that.

Secondly try live booting a newer Ubuntu release and tell us if it has the same problem: https://ubuntu.com/download/desktop

Revision history for this message
salvatore campeggio (scampeggio) wrote : Re: [Bug 2023927] Re: Screen flickering whe update images
Download full text (5.6 KiB)

This is the result of driver check:

camp@camp-medion:~$ glxinfo -B
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa/X.org (0xffffffff)
    Device: llvmpipe (LLVM 12.0.0, 256 bits) (0xffffffff)
    Version: 21.2.6
    Accelerated: no
    Video memory: 15746MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 3.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 12.0.0, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 21.2.6
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.1 Mesa 21.2.6
OpenGL shading language version string: 1.40
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.2.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

On 16/06/2023, Daniel van Vugt <email address hidden> wrote:
> In that case it sounds like a driver bug.
>
> Firstly please check you're not using the deprecated 'intel' Xorg
> driver. It should be the 'modesetting' driver, although the attached
> logs suggest you're already using that.
>
> Secondly try live booting a newer Ubuntu release and tell us if it has
> the same problem: https://ubuntu.com/download/desktop
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2023927
>
> Title:
> Screen flickering whe update images
>
> Status in linux-hwe-5.13 package in Ubuntu:
> Incomplete
>
> Bug description:
> Often, when there are small changes in image displayed, an horizontal
> flickering is observed. This happen for example on a mouse right button
> menu, or when a hyperlink description appears on the screen bottom when
> mouse pointer cross some field on a webpage, also when favorites menu
> appear.
> The flickering usually disappear in a few moments, sometimes (usually when
> a few pixels are updating) it can last for seconds.
> This flickering is caused by a late updating of some horizontal lines, so
> for awhile a few lines of previous image coexist with a majority of new
> ones
>
> ProblemType: Bug
> DistroRelease: Ubuntu 20.04
> Package: xorg 1:7.7+19ubuntu14
> ProcVersionSignature: Ubuntu 5.13.0-41.46~20.04.1-generic 5.13.19
> Uname: Linux 5.13.0-41-generic x86_64
> ApportVersion: 2.20.11-0ubuntu27.23
> Architecture: amd64
> BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
> CasperMD5CheckResult: skip
> CompositorRunning: None
> CurrentDesktop: ubuntu:GNOME
> Date: Wed Jun 14 22:44:12 2023
> DistUpgraded: Fresh install
> DistroCodename: focal
> DistroVariant: ubuntu
> DkmsStatus:
> virtualbox, 6.1.32, 5.13.0-40-generic, x86_64: installed
> virtualbox, 6.1.32, 5.13.0-41-generic, x86_64: installed
> virtualbox, 6.1.32, 5.4.0-126-generic, x86_64: installed
> ExtraDebuggingInterest: Yes, including running git bisectio...

Read more...

Revision history for this message
salvatore campeggio (scampeggio) wrote :
Download full text (5.9 KiB)

I switched to Wayland and the problem solved, but others arise! i.e.
the favourite menu starts not working

On 16/06/2023, Salvatore Campeggio <email address hidden> wrote:
> This is the result of driver check:
>
> camp@camp-medion:~$ glxinfo -B
> name of display: :0
> display: :0 screen: 0
> direct rendering: Yes
> Extended renderer info (GLX_MESA_query_renderer):
> Vendor: Mesa/X.org (0xffffffff)
> Device: llvmpipe (LLVM 12.0.0, 256 bits) (0xffffffff)
> Version: 21.2.6
> Accelerated: no
> Video memory: 15746MB
> Unified memory: no
> Preferred profile: core (0x1)
> Max core profile version: 4.5
> Max compat profile version: 3.1
> Max GLES1 profile version: 1.1
> Max GLES[23] profile version: 3.2
> OpenGL vendor string: Mesa/X.org
> OpenGL renderer string: llvmpipe (LLVM 12.0.0, 256 bits)
> OpenGL core profile version string: 4.5 (Core Profile) Mesa 21.2.6
> OpenGL core profile shading language version string: 4.50
> OpenGL core profile context flags: (none)
> OpenGL core profile profile mask: core profile
>
> OpenGL version string: 3.1 Mesa 21.2.6
> OpenGL shading language version string: 1.40
> OpenGL context flags: (none)
>
> OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.2.6
> OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
>
>
> On 16/06/2023, Daniel van Vugt <email address hidden> wrote:
>> In that case it sounds like a driver bug.
>>
>> Firstly please check you're not using the deprecated 'intel' Xorg
>> driver. It should be the 'modesetting' driver, although the attached
>> logs suggest you're already using that.
>>
>> Secondly try live booting a newer Ubuntu release and tell us if it has
>> the same problem: https://ubuntu.com/download/desktop
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/2023927
>>
>> Title:
>> Screen flickering whe update images
>>
>> Status in linux-hwe-5.13 package in Ubuntu:
>> Incomplete
>>
>> Bug description:
>> Often, when there are small changes in image displayed, an horizontal
>> flickering is observed. This happen for example on a mouse right button
>> menu, or when a hyperlink description appears on the screen bottom when
>> mouse pointer cross some field on a webpage, also when favorites menu
>> appear.
>> The flickering usually disappear in a few moments, sometimes (usually
>> when
>> a few pixels are updating) it can last for seconds.
>> This flickering is caused by a late updating of some horizontal lines,
>> so
>> for awhile a few lines of previous image coexist with a majority of new
>> ones
>>
>> ProblemType: Bug
>> DistroRelease: Ubuntu 20.04
>> Package: xorg 1:7.7+19ubuntu14
>> ProcVersionSignature: Ubuntu 5.13.0-41.46~20.04.1-generic 5.13.19
>> Uname: Linux 5.13.0-41-generic x86_64
>> ApportVersion: 2.20.11-0ubuntu27.23
>> Architecture: amd64
>> BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
>> CasperMD5CheckResult: skip
>> CompositorRunning: None
>> CurrentDesktop: ubuntu:GNOME
>> Date: Wed Jun 14 22:44:12 2023
>> DistUpgraded: Fresh install
>> DistroCodename: ...

Read more...

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Screen flickering whe update images

Comment #7 shows the wrong driver in use - it's using software rendering on the CPU instead of using the GPU. I cannot figure out why yet, but generally recommend you use long term support release 22.04 instead:

https://ubuntu.com/download/desktop

Changed in linux-hwe-5.13 (Ubuntu):
status: Incomplete → New
summary: - Screen flickering whe update images
+ [focal] Screen flickering in Xorg on i7-1165G7
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.