Xorg using no drivers and video and screen issues. Dell XPS 13 9380

Hi! This is my first post, so sorry in advance if I make any mistakes, also I searched in the forums before creating this topic.

I have a Dell XPS 13 9380 and lately i have been having issues with the screen and the intel graphics in general. I had Ubuntu 19.04 installed since i got my new XPS 13 from dell the first day with no problem but the 19.10 released and I updated to it, first boot and my display was unusable, I had heavy visual glitches were after 20 secs of it my screen freeze and it dimmed little by little distorting the colors until you couldn't see anything at all.
I isolated the issue to be kernel related and i switched to Manjaro, because i have it on my workstation and I feel enough confident to use it as my daily driver. Also i like how easy is to switch kernels to try and find a suitable kernel for me.
I have the issues described before only on 5.2 kernel versions and up as in Ubuntu I had the 5.0 and no problems.
In Manjaro I can't use any kernel after 4.19 because they refuse to boot, well, i can boot but the xorg server always fail or i as in the 4.4 i get problems related to the swap (?).

Anyway i was trying to fix the xorg problems first because the visual problems seems like more generalized as people have reported similar issues.
I tried to use the recommended drivers bur as i ran inxi -Fxzc i got this:

Graphics:
  Device-1: Intel UHD Graphics 620 vendor: Dell driver: i915 v: kernel 
  bus ID: 00:02.0 
  Display: x11 server: X.org 1.20.5 driver: none 
  resolution: <xdpyinfo missing> 
  OpenGL: renderer: Mesa DRI Intel UHD Graphics (Whiskey Lake 3x8 GT2) 
  v: 4.5 Mesa 19.2.2 direct render: Yes

I can see that I'm not using any drivers so maybe is because of that i couldn't use some kernels but I tried to load the i915 driver but can figure out how.
(I read the wiki page but probably I' doing something wrong because i cant get i working.)

Can anyone help me in any way?

Thnks

The kernel driver is loaded, your issue is the xorg driver that says none.
What DE did you choose?
Did you kept your home and/or any other partitions, or directories from Ubuntu?
inxi -Fxzc is a bit overkill, you only really needed inxi -G

Graphics: Device-1: Intel HD Graphics 620 driver: i915 v: kernel
Display: x11 server: X.Org 1.20.5 driver: intel unloaded: modesetting tty: N/A
OpenGL: renderer: Mesa DRI Intel HD Graphics 620 (Kaby Lake GT2) v: 4.5 Mesa 19.2.2

As you see on my system I'm using the I915 kernel driver, the Intel xorg driver with the modesetting driver unloaded, and the 19.2.2 mesa driver for opengl.

It looks like you have the whisky lake chip, these do have issues.
These may be a bit useful:
https://wiki.archlinux.org/index.php/Laptop/Dell
https://bbs.archlinux.org/viewtopic.php?id=248412

https://www.google.com/search?q=arch+linux+whisky+lake+site:bbs.archlinux.org&client=falkon&sxsrf=ACYBGNSqgaqs5BxnnOCmQJb1daW4wbzptA:1572440195102&sa=X&ved=2ahUKEwjdsImahMTlAhUOnq0KHb1qCIcQrQIoBDABegQIBhAN&biw=1920&bih=856

Thanks for replay!
Here you have the inxi -G

Graphics:  Device-1: Intel UHD Graphics 620 driver: i915 v: kernel 
           Display: x11 server: X.org 1.20.5 driver: none resolution: <xdpyinfo missing> 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics (Whiskey Lake 3x8 GT2) v: 4.5 Mesa 19.2.2 

I don't really know what you mean by DE.
I wiped my entire SSD from Ubuntu to Manjaro.

I'm aware of the display flickering problems as i had those before but not anymore.
I will add some screenshots of the problems in a couple of hours after lunch, in the meanwhile ill go trough your useful links!

Thanks, will talk to you in a bit.

DE= Desktop Environment

DE = Desktop Environment
aka gnome, xfce. lxqt, Plasma (KDE), etc.

The DM (Desktop Manager) is also different between each edition.
aka sddm, lightdm, gdm, etc.

Hi again I'm using Gnome 3.34.1 and i took some pictures:
This is the first boot of the 5.3.7-2 kernel:


The screen freeze at this state and I had to close and reopen the lid to make it pas this.
This one from a 2nd boot:

As you can see my laptop display is having problems but my external display that i connected by display port does not.
And finally those ones are like 10 mints in using the pc watching youtube.

Didn't have this problem on windows or in older kernels so i don't think they are hardware related.

Kernel: 4.19.80-1-MANJARO x86_64 bits: 64 compiler: gcc 
  v: 9.2.0 Desktop: Gnome 3.34.1 Distro: Manjaro Linux 

Since this is Gnome, are you sure your not launching on Wayland?
Check the dropdown in GDM.
If your launching from the cli, then gnome defaults to wayland.
Hard to see those pictures on my display (1920x1080 24" all-in-one), too small.

since it seems your able to get to a desktop, post these outputs as text, not images please, and use the </> button or 3 backtics ```above and below the outputs so they are formatted properly.

cat /proc/cmdline
mhwd -li
ls -laR /etc/X11 ; cat /etc/X11/xorg.conf.d/*.conf

I only can select 2 options: GNOME or GNOME classic so no Wayland option, at least at first glance.
I Ubuntu i had the option to select Wayland as you said but not here.
I you want I can upload the pictures to Imgur or some web like that, you can choose. :stuck_out_tongue:

Here you have:

cat /proc/cmdline

BOOT_IMAGE=/boot/vmlinuz-5.3-x86_64 root=UUID=4e1274b8-424c-426b-bd22-5893a9a53d09 rw quiet apparmor=1 security=apparmor udev.log_priority=3

mhwd -li

> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!

ls -laR /etc/X11 ; cat /etc/X11/xorg.conf.d/*.conf

/etc/X11:
total 32
drwxr-xr-x   5 root root 4096 oct 15 13:00 .
drwxr-xr-x 106 root root 4096 oct 30 18:09 ..
drwxr-xr-x   2 root root 4096 oct 24 11:47 mhwd.d
drwxr-xr-x   3 root root 4096 oct 15 13:00 xinit
drwxr-xr-x   2 root root 4096 oct 24 11:47 xorg.conf.d

/etc/X11/mhwd.d:
total 12
drwxr-xr-x 2 root root 4096 oct 24 11:47 .
drwxr-xr-x 5 root root 4096 oct 15 13:00 ..

/etc/X11/xinit:
total 28
drwxr-xr-x 3 root root 4096 oct 15 13:00 .
drwxr-xr-x 5 root root 4096 oct 15 13:00 ..
-rw-r--r-- 1 root root  739 mar  4  2019 xinitrc
drwxr-xr-x 2 root root 4096 oct 28 15:17 xinitrc.d
-rw-r--r-- 1 root root   45 mar  4  2019 xserverrc

/etc/X11/xinit/xinitrc.d:
total 20
drwxr-xr-x 2 root root 4096 oct 28 15:17 .
drwxr-xr-x 3 root root 4096 oct 15 13:00 ..
-rwxr-xr-x 1 root root  318 nov  9  2018 40-libcanberra-gtk-module.sh
-rwxr-xr-x 1 root root  203 oct 21 11:27 50-systemd-user.sh

/etc/X11/xorg.conf.d:
total 16
drwxr-xr-x 2 root root 4096 oct 24 11:47 .
drwxr-xr-x 5 root root 4096 oct 15 13:00 ..
-rw-r--r-- 1 root root  266 oct 22 21:35 00-keyboard.conf
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "es"
        Option "XkbModel" "pc105"
EndSection

ok, that looks fine. lets try the modesetting driver.

sudo nano /etc/X11/xorg.conf.d/20-modesetting.conf

copy/paste these contents

#/etc/X11/xorg.conf.d/20-modesetting.conf

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0:2:0"
EndSection

save/exit/reboot

if that doesnt work there's the intel driver and a couple options to try there too

edit: you might want to try that with the external display not connected first

The inxi command stills shows this:

Graphics:
  Device-1: Intel UHD Graphics 620 vendor: Dell driver: i915 v: kernel 
  bus ID: 00:02.0 
  Display: x11 server: X.org 1.20.5 driver: none 
  resolution: <xdpyinfo missing> 
  OpenGL: renderer: Mesa DRI Intel UHD Graphics (Whiskey Lake 3x8 GT2) 
  v: 4.5 Mesa 19.2.2 direct render: Yes

And I'm having the same problems.
Took some close up pictures @AJSlye

The screens freezes as same as before

try this

echo "options i915 enable_psr=0" | sudo tee /etc/modprobe.d/i915.conf

and reboot again

Can you post the followings outputs while logged into gnome?

env | grep -i wayland
echo $DESKTOP_SESSION

I get no data from env | grep -i wayland and i get only gnome in the echo command

i get options i915 enable_psr=0in the terminal, let me reboot.

Edit: same problems as before.

Also @AJSlye @dglt

What output do you get from the following command?
sudo lsof +D /usr/lib/xorg/modules/drivers

This will tell us which xorg driver is loading.
Also make sure that the xf86-video-intel package is installed.
This is starting to seem like a broken install.

Here you have:

lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
COMMAND  PID  USER  FD   TYPE DEVICE SIZE/OFF   NODE NAME
Xorg    1214 sands mem    REG  259,2  1736064 277179 /usr/lib/xorg/modules/drivers/intel_drv.so

I don't think that is due to a broken install because i had the same problems in the live USB (installing majaro), Ubuntu and now as I'm witting this, running 4.19 all works fine and i don't see any problems.
Also i have the xf86-video-intel package and just reinstalled just for this.

I think that all of this is because xorg doesn't have any drivers in use, when the kernel didn't boot like in 4.4 i tried to run startx from the terminal and one of the errors that i had was that no display was found. Tomorrow after some traveling that i have to do i will spend the evening trying to install the drivers properly.
Going to sleep rn will talk tomorrow.

Forum kindly sponsored by