I have a very strange problem. Up until now my Dell 7730 laptop with Intel graphics has been working fine with Kubuntu 18.04.1. Today I created /etc/rc.local and made it executable. The only command was "mount -a" followed by "exit 0" to mount an nfs share after boot. I had "#!/bin/sh -e" at the top as usual.
I then rebooted, the splash logo was seen on my laptop and two DisplayPort monitors (connected via docking station) as usual after which I entered my luks password to allow access to my encrypted disks. After that, normally a few dmesg messages show up briefly just before the login screen appears on all three displays (laptop and two monitors) after which I login and all is well (normally).
After adding /etc/rc.local and rebooting though, after the normal dmesg messages appeared on all three screens, two of them went blank and the messages were just sitting there on the remaining external monitor and the login screen did not appear. Note that the messages are related to unsigned virtualbox drivers, are "normal" i.e. always there and aren't relevant I believe.
If I then power cycle without the monitors connected, the boot process works fine, the login screen appears on the laptop display and I can login as normal.
If I then connect the external monitors then they are also detected fine and work normally! This is the workaround so far.
It seems that for some reason there is a graphics problem with the external monitors connected that leads to the boot hanging just before the login screen (which never appears)?
What I've tried so far without success:
1) Deleting /etc/rc.local which was the only change I made before this happened and rebooting/power cycling.
2) sudo apt update; sudo apt upgrade; (Reboot)
Note that the problem started only after creating and making /etc/rc.local executable. ** No other changes or updates/upgrades were made before this problem started. ** I was running 4.15.0-43-generic when the problem started and now 4.15.0-44-generic which I upgraded to seeing if the commands immediately above would solve the problem.
3) apt install --reinstall lightdm; apt install --reinstall kubuntu-desktop; apt install --reinstall sddm; (Reboot)
Any ideas how to fix this? Reconfiguring sddm? Reinstalling the intel packages below?
More info. below.
Many thanks for your help!
uname -a Linux myhost 4.15.0-44-generic #47-Ubuntu SMP Mon Jan 14 11:26:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux dpkg -l | grep intel ii intel-microcode 3.20180807a.0ubuntu0.18.04.1 amd64 Processor microcode firmware for Intel CPUs ii libdrm-intel1:amd64 2.4.91-2 amd64 Userspace interface to intel-specific kernel DRM services -- runtime ii xserver-xorg-video-intel 2:2.99.917+git20171229-1 amd64 X.Org X server -- Intel i8xx, i9xx display driver ii xserver-xorg-video-intel-hwe-16.04 3:14.1 amd64 Transitional package for xserver-xorg-video-intel-hwe-16.04 sudo lshw -class video *-display description: VGA compatible controller product: Intel Corporation vendor: Intel Corporation physical id: 2 bus info: pci@0000:00:02.0 version: 00 width: 64 bits clock: 33MHz capabilities: pciexpress msi pm vga_controller bus_master cap_list rom configuration: driver=i915 latency=0 resources: irq:178 memory:9f000000-9fffffff memory:60000000-6fffffff ioport:3000(size=64) memory:c0000-dffff