Screen after some time get shifted and starts to overlap

Bug #1986583 reported by Ivan Krasicenko
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xserver-xorg-video-intel (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

problem resembles a lot this one:
https://askubuntu.com/questions/333307/ubuntu-desktop-shifted-to-right

"I am encountering a strange problem, my whole desktop has shifted to right."

But different in a way, that when pc is started it shows everything just fine.
But when computer is powered on a few days straight, display gets shifted.
Some times just cca 1/4 of screen, sometimes it shifts over half of the screen.
Computer should be used to run 8hours straight (it is intended for customer)
When i switch from graphic display to tty (ctrl+alt+num) and back, display gets "restarted" and
problem is fixed. But it is just temporary. Restart fixes it also.

Last time i encountered this behavior today between 17-18hour. But have no idea what or where to look for.

yes, and when one connects to display over X11 or teamviewer screen appears to be okay, so one will notice this problem if using pc remotely

1)
lsb_release -rd
Description: Ubuntu 22.04.1 LTS
Release: 22.04
2)
xorg:
  Installed: 1:7.7+23ubuntu2
  Candidate: 1:7.7+23ubuntu2
  Version table:
 *** 1:7.7+23ubuntu2 500
        500 http://cz.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
3) expect that display will stay where it is on the start of computer

4) display gets shifted to some distance from unknown reason (Maybe x11vnc or teamviewer usage or something).

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xorg 1:7.7+23ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-46.49-generic 5.15.39
Uname: Linux 5.15.0-46-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: unknown
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Mon Aug 15 22:27:55 2022
DistUpgraded: 2022-08-02 14:36:41,704 DEBUG Running PostInstallScript: '/usr/lib/ubuntu-advantage/upgrade_lts_contract.py'
DistroCodename: jammy
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes
GraphicsCard:
 Intel Corporation Skylake GT2 [HD Graphics 520] [8086:1916] (rev 07) (prog-if 00 [VGA controller])
   Subsystem: Intel Corporation Skylake GT2 [HD Graphics 520] [8086:2015]
InstallationDate: Installed on 2022-02-17 (179 days ago)
InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 003: ID 222a:0001 ILI Technology Corp. Multi-Touch Screen
 Bus 001 Device 002: ID 1a2c:2d23 China Resource Semico Co., Ltd Keyboard
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Default string Default string
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-46-generic root=UUID=582fb3cc-8ef6-460b-b9ae-a16f81c604a7 ro quiet splash vt.handoff=7
SourcePackage: xorg
UpgradeStatus: Upgraded to jammy on 2022-08-02 (13 days ago)
dmi.bios.date: 10/07/2021
dmi.bios.release: 5.12
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: GSKU0504.V54
dmi.board.asset.tag: Default string
dmi.board.name: SKYBAY
dmi.board.vendor: Default string
dmi.board.version: Default string
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.version: Default string
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrGSKU0504.V54:bd10/07/2021:br5.12:svnDefaultstring:pnDefaultstring:pvrDefaultstring:rvnDefaultstring:rnSKYBAY:rvrDefaultstring:cvnDefaultstring:ct3:cvrDefaultstring:skuDefaultstring:
dmi.product.family: Default string
dmi.product.name: Default string
dmi.product.sku: Default string
dmi.product.version: Default string
dmi.sys.vendor: Default string
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.110-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 22.0.5-0ubuntu0.1
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.3-2ubuntu2.1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-2ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
Ivan Krasicenko (teofil321) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report.

It appears you're using the old unsupported (and buggy) 'intel' graphics driver. Please remove any config files you have loading that and even consider removing the entire driver:

  sudo apt remove xserver-xorg-video-intel

Alternatively, please just log into 'Ubuntu' to get a Wayland session instead of logging into 'Ubuntu on Xorg'.

affects: xorg (Ubuntu) → xserver-xorg-video-intel (Ubuntu)
Changed in xserver-xorg-video-intel (Ubuntu):
status: New → Incomplete
Revision history for this message
Ivan Krasicenko (teofil321) wrote (last edit ):

yeah, I added config to xorg.conf which contains this:
Section "Device"
Identifier "Card0"
Driver "intel"
BusID "PCI:0:2:0"
Option "DRI" "3"
Option "TearFree" "true"
EndSection

I have no deep understanding about how to switch drivers or how to use another one(which one?),
but without this config, I had following problems:
a) Option "DRI" "3" when this is not present it causes that strip of screen from time to time flicker - i would describe it like subset of pixels in some rectangle area are swapped to another color for a period of half second, and then it turns back to normal. It does not happen often but occasionally.

b) "TearFree" "True" - without this when window is moved from up to bottom it is clearly seen that left part of screen is updated earlier than the right one.

Is there a way to switch to another driver without losing this configuration?

also in Wayland does not work x11vnc, and I did not found suitable replacement.

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

That config section you mention needs to be removed entirely because the "intel" driver is buggy, unsupported and was only designed to handle much older Intel GPUs.

Sadly that does mean you lose the "TearFree" option. It has been requested in the new driver for some time (https://gitlab.freedesktop.org/xorg/xserver/-/issues/244) but there aren't many Xorg developers left these days... Wayland sessions are always tear-free already.

I would suggest trying a Wayland session with desktop sharing enabled in settings, which would use RDP instead of VNC.

Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → Won't Fix
Revision history for this message
Ivan Krasicenko (teofil321) wrote :

Just, one more question,
I removed config, and removed xserver-xorg-video-intel driver
but I do not know if it took any effect.
How do I find out what driver was used before, and what is used now?
lshw -c video shows:
driver=i915

is it that obsolete driver?

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

On Linux you have two or three graphics drivers all working at the same time at different levels:

 * Kernel: i915
 * Mesa: iris
 * Xorg: modeset (replaces the old "intel" driver)

To confirm which Xorg driver is in use you can find it in the Xorg system log messages:

  journalctl -b0 /usr/bin/Xorg

There should be "modeset(0)" messages instead of "intel(0)".

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.