Nvidia driver installed but not running

I have dell xps15 running ubuntu 18.04 with nvidia geforce 1050Ti
I have installed nvidia driver (390 first and than 430) from the installation it looks like everything went well. When I run nvidia-setting it states I am running GPU also when I run nvidia-prime query it return nvidia But when I do nvidia-smi, I get an output which says

No running processes found

Also if I look at the “about” I see that it runs the intel card.

Any ideas ? Thanks a lot
nvidia-bug-report.log.gz (1.08 MB)

Please run nvidia-bug-report.sh as root and attach the resulting .gz file to your post. Hovering the mouse over an existing post of yours will reveal a paperclip icon.
[url]https://devtalk.nvidia.com/default/topic/1043347/announcements/attaching-files-to-forum-topics-posts/[/url]

Done

Looks like you ran into a known GDM bug and are running a Wayland session. Please install and use lightdm:
sudo apt install lightdm
and check if works then.

I tried purging nvidia and than installing lightdm
Still not working and the same error about nouveu

Any other suggestions?

Please create a new nvidia-bug-report.log while using lightdm.

Here it is,
I think its the same

nvidia-bug-report.log (2.09 MB)

Ok, now it includes the xorg logs and config files.
It’s an Optimus system and yoou created an xorg.conf, which breaks it. Please delete
/etc/X11/xorg.conf

We are advancing. but still not working
I got nvidia nsight on my computer which was not there before
It still seems to complain about nouevo
you can find attach the bug report

Thanks a lot for the help

nvidia-bug-report (1).log (2.47 MB)

There’s no xorg log included, did you switch back to gdm?

not intentionally
at least, how can I check that?

please run
sudo journalctl -b0 --no-pager >journal.txt
and attach the output file.

Here it is
again thanks a lot

journal.txt (1.47 MB)

It’s switched back to gdm which is starting a Wayland session so nothing works. Please switch back to lightdm using
sudo dpkg-reconfigure lightdm
choose lightdm on the prompt, reboot and create a new nvidia-bug-report.log afterwards.

Here it is

nvidia-bug-report.log (2.56 MB)

Logs look good now but somehow the needed xrandr commands to use the nvidia gpu are not issued so you’ll have to do some modifications by hand. Please change the lightdm config like here:
[url]NVIDIA Optimus - ArchWiki

I tried this , the resullt was that I couldn’t log into my computer. So I had o delete the /etc/lightdm/lightdm.conf file so I can start again.
By the way, both files were not existing before

I’m really puzzled by what’s going on on your system.
Please post the output of
xrandr --listproviders
and
xrandr --verbose
when called from desktop.

xrandr --listproviders

Providers: number : 0

xrandr --verbose

xrandr: Output XWAYLAND6 is not disconnected but has no modes
xrandr: Output XWAYLAND7 is not disconnected but has no modes
Screen 0: minimum 320 x 200, current 5760 x 2160, maximum 8192 x 8192
XWAYLAND3 connected 3840x2160+0+0 (0x25) normal (normal left inverted right x axis y axis) 340mm x 190mm
	Identifier: 0x2c8
	Timestamp:  16850
	Subpixel:   unknown
	Gamma:      1.0:1.0:1.0
	Brightness: 0.0
	Clones:    
	CRTC:       0
	CRTCs:      0
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
  3840x2160 (0x25) 712.750MHz -HSync +VSync *current +preferred
        h: width  3840 start 4160 end 4576 total 5312 skew    0 clock 134.18KHz
        v: height 2160 start 2163 end 2168 total 2237           clock  59.98Hz
XWAYLAND4 connected 1920x1080+3840+0 (0x24) normal (normal left inverted right x axis y axis) 530mm x 300mm
	Identifier: 0x2d1
	Timestamp:  16850
	Subpixel:   unknown
	Gamma:      1.0:1.0:1.0
	Brightness: 0.0
	Clones:    
	CRTC:       1
	CRTCs:      1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
  1920x1080 (0x24) 173.000MHz -HSync +VSync *current +preferred
        h: width  1920 start 2048 end 2248 total 2576 skew    0 clock  67.16KHz
        v: height 1080 start 1083 end 1088 total 1120           clock  59.96Hz
XWAYLAND6 connected (normal left inverted right x axis y axis)
	Identifier: 0x2d5
	Timestamp:  16850
	Subpixel:   unknown
	Clones:    
	CRTCs:      2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
XWAYLAND7 connected (normal left inverted right x axis y axis)
	Identifier: 0x2d7
	Timestamp:  16850
	Subpixel:   unknown
	Clones:    
	CRTCs:      3
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
xrandr: Output XWAYLAND6 is not disconnected but has no modes
xrandr: Output XWAYLAND7 is not disconnected but has no modes