The problem occurs on a fresh install of Ubuntu with Nvidia 396 drivers installed from graphics-drivers PPA and an X session (no Wayland). A couple of seconds after desktop shows up (autologin enabled) everything freezes, mouse/touchpad are unresponsive, so is keyboard. Once (and that’s captured in the attached logs) I’ve managed to get to the state that keyboard actually responded to SysRq events and for some reason remounting in ro unfroze X for another couple of seconds. Any other boot ended with a completely unresponsive system and I had to hold power button to turn the laptop off.
Now that’s a sh…load of problems. A minor one, see if you can disable the sdcard reader in bios, that one doesn’t work anyway in linux and just produces pci bus errors, flooding logs. Otherwise you may try setting kernel parammeter pci=noaer to at least suppress those.
Then the whole thunderbolt subsystem crashes and the tb devices going awol, not showing up in lspci anymore though being some standard, well supported intel JHL6540 Thunderbolt 3 Bridge. Maybe try a 4.17 kernel and see if that improves the situation.
Finally the nvidia gpu hangs with an XID 31, what kind of DE are you using, standard ubuntu gnome?
Made another try with 4.17, 396 drivers, with disabled sdcard reader (I think so at least). Same results. Logs in nvidia-bug-report-nosdcard.log.gz
I’ve tried with “noapic noacpi nosplash irqpoll” which booted properly and doesn’t hang the OS. There are two issues though. One that there are multiple pixels randomly flickering on the screen. Two after a couple of minutes input devices stop working, then the DE restarts, flickering stops for a few seconds and it is like this for another couple of minutes. Laptop fans are blowing like crazy. This time inxi shows that it is using nvidia driver:
Where all the previous attempts had fbdev as a graphics driver (I’ve disabled nouveau to make it work). The logs are in nvidia-bug-report-noapic.log.gz
Disabling the sdcard reader worked, one log spam less.
Regarding the thunderbolt oopses, try to disable fwupd, run
sudo systemctl disable fwupd
Of course, that doesn’t help with the main problem. Remove the noacpi… kernel parameters, instead try
acpi_osi=! acpi_osi=“Windows 2009”
Revert back to kernel 4.15 and try driver version 384.130
Thunderbolt errors seem to disappear after disabling fwupd.
I couldn’t avoid errors while manually (PPAs didn’t work) installing 384.130 drivers so I’m not entirely sure if they got installed properly but it booted just fine on Wayland. No glitches, no crashes, inxi reported that the driver is being used, but I can’t run nvidia-settings due to an error:
ERROR: Unable to load info from any available system
Logs in nvidia-bug-report-384.130.log.gz
Then I’ve disabled Wayland which resulted in X “bootloop”. When X started it was alternating black screen and boot splash screen (didn’t go to desktop at all).
The .run installer doesn’t really fit on ubuntu especially on optimus it might break your system, so it is not advised to use it. I suspect the GL/GLX libs/links now are broken.
OTOH though, the available drivers aren’t working anyway. So maybe do some tests with the driver that’s installed now.
Disable gdm first so it doesn’try to start it on boot so yould have to wait 90sec for systemd to give up:
sudo systemctl disable display-manager
create a file in your home dir
~/.xinitrc
I’m not very attached to Ubuntu as I just thought it will have the best hardware detection and will work ootb but oh well. May as well go with Arch if it would be less painful.
xrandr --setprovideroutputsource modesetting NVIDIA-0 results with
GLX loads fine but it doesn’t find the DDX, should be easy to fix. Run
find /usr -name “nvidia_drv.so”
to find it, note down the path and create an xorg.conf containing
The only path was /usr/lib/xorg/modules/drivers/nvidia_drv.so and Xorg picked it up but I can’t see that anything changed. :/ Xorg-2.0.log.gz (7.74 KB)
modprobe: ERROR: ../libkmod/libkmod-module.c:832 kmod_module_insert_module() could not find module by name='off'
modprobe: ERROR: could not insert 'off': Unknown symbol in module, or unknown parameter (see dmesg)
and using the xorg.conf yields “No screens found” error. Dmesg is silent.
Probably the modules compilation failed during manual install? I’ve managed to install 384.130 on Mint LiveUSB (unlike on Ubuntu) but I didn’t want to wipe Ubuntu to try it out before you give up here.
No, ubuntu just seems have an alias set to turn off the nvidia driver.
run
grep nvidia /etc/modprobe.d
and look for something like
alias nvidia-drm off
and
alias nvidia-modprobe off
and remove that file.
That’s embarrassing. Those modules were indeed blacklisted and aliased.
So the driver is running fine. I’m having those random pixels flickering here and there. They don’t end up on a screenshot so here’s a vid: ASUS ZenBook Pro UX550VE glitches on Linux - YouTube . Can this be the most I’ll get from the setup or do you have anything else up your sleeves?
TBH, this looks more like a hardware issue, maybe defective vmem which would also explain the driver crashing before. You could use this to check:
[url]https://github.com/ihaque/memtestG80[/url]
requires installing cuda, though.
I have a similar issue but with my desktop using a GTX 970.
Could you try booting into 18.04 using the “nomodeset” parameters?
Also… Try installing 16.04, I know it’s an older version but this version works fine for me you’ll need to use the “nomodeset” parameter again for 16.04 until you can get to the desktop to install graphics drivers.
I don’t know what it is in 18.04 but it may be just a case of waiting out until whatever is wrong is fixed, if it’s fixed.