Score:9

Horizontal colored lines appearing on display (Ubuntu 22.04)

ye flag
FdA

While working with my DELL XPS 13 laptop (shipped with Ubuntu), sometimes colored horizontal lines appear (I cannot recreate the beahvior, it seems random). I tried attaching an external monitor to see if the behavior pesists on the other monitor: nevertheless, it seems these lines don't appear anymore even on my laptop when an external monitor is attached.

Any hint? See photo.

EDIT: my info PC model: Dell XPS 13 9320 OS: Ubuntu 22.04 Processor: 12th Gen Intel Core i7 1260Px16 RAM: 32 GB Graphic: MESA Intel Graphics (ADL GT2)

EDIT: don't put attention on the info you see in the photo: they concern another post I was looking at, not my computer. I could take the photo in that moment as the issue suddenly appeared.

EDIT: I formatted the laptop downgrading to Ubuntu 20 and it worked fine for one day, until updating it. Then, the problem came back. Lowering the resolution helps a bit but does not solve the issue. All built-in DELL diagnostic tests give no problems.

enter image description here

Pilot6 avatar
cn flag
It looks like Ubuntu 18.04, but why the title says "Ubuntu 22"?
FdA avatar
ye flag
FdA
because my OS is Ubtuntu 22. That one is only a page from firefox (I was searching for info on the issue).
Pilot6 avatar
cn flag
It is a hardware problem. The monitor internal cable is probably bad. BTW there is no "Ubuntu 22" desktop release.
FdA avatar
ye flag
FdA
How come the behavior is not present when connected to an external monitor? (Not even on my laptop!). More info: the PC was shipped with Ubuntu 20 but an update was already suggested when booting.
Pilot6 avatar
cn flag
The contact can be unstable. You moved your laptop and the contact became better.
FdA avatar
ye flag
FdA
any suggestion on how to solve the issue?
Pilot6 avatar
cn flag
Take the laptop to a repair place.
FdA avatar
ye flag
FdA
In the bios menu the issue is not present. DELL diagnostic test finds nothing. The moment the OS is loaded, if I move the mouse I can see the issue. I am still not convinced it's the hardware
Ivan Korotkin avatar
bv flag
I have exactly the same issue after the latest update. Dell XPS 13 with Ubuntu 22.04 preinstalled. The lines appear in the exact same spots as in the OP's photo if I move the mouse cursor slowly. Sorry could not write this as a comment - not enough rep. But I think it's important to confirm that the OP is not alone. It looks like a software/driver issue to me.
FdA avatar
ye flag
FdA
@guiverc is this related to my problem?
Max Ballard avatar
id flag
This seems like a cable/hardware issue. I would try first ensuring the cable is tightly connected and screwed in if there are screws, if that doesn't work then I would try a different cable.
rado avatar
cn flag
i have the exact same problem, doesn't happen on bios screen, doesn't happen on ubuntu instalation screen. actually brazilian dell support brought me here asking for downgrade
Hilbrand Bouwkamp avatar
co flag
Here another one. I have the same problem. Did some updates yesterday and now have the same problem (same dell hardware, Ubuntu 22). I very much doubt this is a hardware problem (or coincidentally this many people have the same hardware issues at the approximate same time) . Reducing the resolution reduces the problem. But on 1260P resolution the lines appear at the top and below/middle when the mouse is hovered over that specific area below/middle.
tcquinn avatar
gw flag
I have exactly the same issue (same machine, same OS, same horizontal lines) after recent updates: https://askubuntu.com/questions/1456219/problems-after-updates-on-dell-xps-plus-9320 https://www.dell.com/community/XPS/Problems-after-Ubuntu-updates-on-Dell-XPS-Plus-9320-Developer/m-p/8354773#M107228
guiverc avatar
cn flag
Quick workaround: If problems have only occurred in the last few days; it's likely related to the HWE kernel stack update that rolled out last week... just reboot & try the last GA (5.15) kernel you have installed & check if the problem occurs there; an easy fix maybe to switch to the GA kernel stack if you're using a **22.04** system (not 22) & desktop (and installed with an ISO that defaults to HWE stack). Both stacks can co-exist on an install (*though some closed-source kernel modules [nvidia etc] can prevent both stacks co-existing*)
Pedro Rafael avatar
hu flag
Does your monitor have a slightly yellowish white cast? I found it strange when I compared it with another notebook from another brand that I have. I have the same problem with the colored horizontal lines.
Anthony Wong avatar
cn flag
Hi all, we have identified this issue to be related to PSR2 being enabled in the 5.19 linux kernel by default, which introduces the issue for this laptop mentioned in this question. We are tracking this issue in bugs.launchpad.net/ubuntu/+source/linux/+bug/2007516. For anyone who have this issue on your XPS 9320 and have the ability to test kernels, please try the test kernels posted at people.canonical.com/~khfeng/lp2007516, and leave your test results in bugs.launchpad.net/ubuntu/+source/linux/+bug/2007516. If you'd like to help but not sure how to, please reach out to me, thanks!
Dmitry Pashkevich avatar
es flag
FYI I had the exact same issue on a brand new Lenovo X1 Carbon Gen 10. Turning off PSR as described in the accepted answer did the trick.
Score:9
gw flag

Update: I managed to get my ticket escalated with Dell technical support and the next tier has been quite helpful. They say Dell engineering has opened a ticket with Canonical and they are working on a fix. In the meantime, they suggested adding the parameter i915.enable_psr=0 to the GRUB_CMDLINE_LINUX_DEFAULT string in /etc/default/grub, so (at least on my machine), the relevant line becomes

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_psr=0"

I made this change, ran sudo update-grub, rebooted into the 5.19 kernel, and I don't have the video artifacts anymore.

Pedro Rafael avatar
hu flag
Does your monitor have a slightly yellowish white cast? I found it strange when I compared it with another notebook from another brand that I have. I have the same problem with the colored horizontal lines.
Score:3
dz flag

I have the exact same problem. The horizontal line appear when I move my cursor slowly at the height where the lines appear. I haven't tried it with an external mouse and/or on a external monitor. I found an article that suggest to check the resolution and refresh rate. The technical specification mention a resolution of 1920 x 1200 and a refresh rate of 60 Hz. I have no idea how the change the refresh rate, but when I changed the resolution I found out that for a resolution of 1680 x 1050, the lines did not show up at the same spot and not as often. They do still appear, but it is less obnoxious.

I know it is not a good solution, but you can try to change the resolution.

EDIT: I followed the advice from @guiverc and downgrade to 5.15.0-60-generic using the instructions given in here. This gets rid of the lines

FdA avatar
ye flag
FdA
Reducing the resolution indeed improve the situation even if it does not solve it.
FdA avatar
ye flag
FdA
Did this issue appear since last weekend, or did you have it before?
Pieter Vermeulen avatar
dz flag
I have the pc only since last week, but I can't remember if it occurred after I did `sudo apt update`
tcquinn avatar
gw flag
I can also confirm that booting with kernel 5.15.0 prevents the problem. The GRUB boot screen doesn't appear on my machine by default (Dell XPS Plus 9320), but it's there if you hit `ESC` at the right moment in the boot cycle.
tcquinn avatar
gw flag
Any ideas on a longer-term solution? Holding back all future kernel updates seems untenable, and I worry that we could wait a long time for an upstream fix because these particular Dell machines are such a small part of the Ubuntu community and Ubuntu is such a small part of the Dell user base.
nvk avatar
cn flag
nvk
I can confirm I have the exact same issue with Ubuntu 22.04 on Dell XPS 13 9315. Booting with an older version of the kernel solves the problem. The problem started around Feb 2023 for many users , its likely introduced by a kernel update and is not a hardware issue.
Score:-2
us flag

This is most likely a hardware issue. Since the laptop is still very new, I would recommend seeking a warranty repair through Dell.

FdA avatar
ye flag
FdA
It isn't. I formatted the laptop and the problem disappeared. Also, all the other answers pointing out the same problem hint that this is not a hardware issue.
FdA avatar
ye flag
FdA
The problem appeared again after updating Ubuntu 20 with a normal `sudo apt update` command
tcquinn avatar
gw flag
It's not a hardware issue. It started happening for all of us at almost exactly the same time, after recent `apt` updates
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.