Ok, here is what I have done since my last post:
1. Copied the initrd.img (4.19.0-6) from the working MX19 USB install to /boot, keeping the original as a backup.
2. Reboot.
3. Edited the grub bootloader to remove the i915.modset=1 parameter.
4. Everything is working fine.
5. Edited the /etc/default/grub to remove the addition of i915.modset as it's no longer needed.
6. Reboot.
7. Automatically boots into 4.19.0-6
That was a bit of a hack, so I checked that installing new kernels works.... it did not.
Installing 5.4 and 4.4 linux resulted in no graphics when booting into either of them.
Also, update-initramfs broke the working (copied from the USB install of MX19) initramfs.
Doing a diff of /usr/lib, I found this file on my original HDD MX19 install, but not on the USB install:
Code: Select all
$ cat /usr/lib/modprobe.d/no-mode-set.conf
#-----------------------------------------------------------------------------
# file: /lib/modprobe.d/no-mode-set.conf
# disble modesetting in the following modules
#-----------------------------------------------------------------------------
options i915 modeset=0
The smoking gun.
So every kernel image I install is doomed to not work, and update-initramfs is always going to add i915.modset=0 to the kernel params.
My conclusion is that the no-mode-set.conf file was installed to the system due to booting the live USB in failsafe graphics mode.
This may or may not be a bug, depending how you look at it.
I commented the line in the file to look like this:
Code: Select all
$ cat /usr/lib/modprobe.d/no-mode-set.conf
#-----------------------------------------------------------------------------
# file: /lib/modprobe.d/no-mode-set.conf
# disble modesetting in the following modules
#-----------------------------------------------------------------------------
#options i915 modeset=0
Rebooting into 4.4.19.0-6 worked fine - no modifications to kernel params.
Installed 5.4 linux kernel and that works too.
Sorry for the wild goose chase.
Thanks to all of you for helping. I never would have solved the problem if I hadn't tried installing MX19 to USB.
In conclusion, it looks like these things caused the issues:
1) mucking with BIOS settings (caused the install to freeze after a few minutes - didn't hit this on MX 18.3 install though)
2) doing install from failsafe boot of live USB to work around issue encountered due to 1) leaves /lib/modprobe.d/no-mode-set.conf file which sets i915.modeset=0 for all kernel images.
IMHO:
- It's interesting that MX18.3 didn't seem to be affected by my BIOS changes.
- It's an open question in my mind as to whether /lib/modprobe.d/no-mode-set.conf should be included in the initramfs as there is a valid use case for completing a normal install from failsafe mode. For example, in the past I've found that sometimes live USBs don't work on graphics cards from ATI/nVidia, but a full install has all the things needed (or one can install them via apt or from proprietary driver install scripts supplied by the vendors) to work without needing failsafe graphics. Not sure it always makes sense to bake the failsafe graphics options into the initramfs (and all future created initramfs), but then again, on a system that does need these options permanently, I guess that is the desired behaviour...
Again thanks to you all for helping. It's greatly appreciated.