So I have an HP Spectre 15, dual-booting Xubuntu 19.10/Windows 10, and the HP USB-C Universal Dock. The dock works perfectly, all the ports work, network and USB, and the display connected to it works, it's even hot-pluggable so when I disconnect and reconnect to the dock everything works as it should.
My only problem is that if the dock is plugged in during boot it will hang at the boot loader. Peripherals connected to the dock do not work, and nor do the inbuilt keyboard and touchpad. I've tried booting with grub and ReFind as the bootloader but both experience the same problem. My preference is ReFind but at the moment I just want it working.
I couldn't find anything remotely similar to this problem when searching and I'm not sure what to do, so I've resorted to posting here. If log information would be helpful I can post that, but I'm not sure what logs to look at to be honest.
Any help would be appreciated.