I'm running Ubuntu 17.04 on an ASUS UX303 notebook. This laptop has two GPUs: an integrated Intel one, and a discrete NVIDIA 940M. I recently decided to install the non-nouveau NVIDIA drivers (specifically, nvidia-381), but after doing so, I encountered a problem: whenever I open the lid after closing it, I get a completely black screen. If I leave the laptop on the black screen for long enough, I hear the fan begin to go crazy.
When my screen goes completely black, I can't Control-Alt-FX my way over to any consoles. The only thing that I can do is hold down the power button. This issue isn't only happening with the nvidia-381 driver -- I've tried the nvidia-375 and nvidia-378 drivers, and yet the problem still persists. I've also tried to uninstall these drivers and install Nouveau, but I've had my own problems with that (when I install the Nouveau drivers from software-properties-gtk, I get weird screen tearing and lshw tells me that the 3D controller is unclaimed). At this point, my Ubuntu system is more borked than it was before I installed any drivers, Nouveau, NVIDIA, or otherwise. Could anyone please tell me how I can remedy this issue?
For reference, here's my
lshw -C video output:
*-display description: VGA compatible controller product: HD Graphics 520 vendor: Intel Corporation physical id: 2 bus info: pci@0000:00:02.0 version: 07 width: 64 bits clock: 33MHz capabilities: vga_controller bus_master cap_list rom configuration: driver=i915 latency=0 resources: irq:124 memory:dd000000-ddffffff memory:b0000000-bfffffff ioport:f000(size=64) memory:c0000-dffff *-display description: 3D controller product: GM108M [GeForce 940M] vendor: NVIDIA Corporation physical id: 0 bus info: pci@0000:01:00.0 version: a2 width: 64 bits clock: 33MHz capabilities: bus_master cap_list rom configuration: driver=nvidia latency=0 resources: irq:128 memory:de000000-deffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(size=128) memory:df000000-df07ffff
And here is my
Section "ServerLayout" Identifier "layout" Screen 0 "nvidia" Inactive "intel" EndSection Section "Device" Identifier "intel" Driver "modesetting" BusID "PCI:0@0:2:0" Option "AccelMethod" "None" EndSection Section "Screen" Identifier "intel" Device "intel" EndSection Section "Device" Identifier "nvidia" Driver "nvidia" BusID "PCI:1@0:0:0" Option "ConstrainCursor" "off" EndSection Section "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" "on" Option "IgnoreDisplayDevices" "CRT" EndSection
Once again, I would be extremely grateful if someone could help me.