Slow boot when 4k tv connected

The task bar is really slow to show when my 4k tv is connected.
I think the desktop comes up in the same amount of time.
It is fast when the hdmi to the tv is unplugged.

I did systemd-analyze blame before and after and it seems to be alsa-restore.service
no_tv: 77ms alsa-restore.service
with_tv: 13.110s alsa-restore.service
with_tv (2nd run): 14.269s alsa-restore.service

The full systemd-analyze output is here:
http://lockie.ca/test/systemd-analyze-blame_no_tv.txt
http://lockie.ca/test/systemd-analyze-blame_with_tv.txt
http://lockie.ca/test/systemd-analyze-blame_with_tv2.txt

Very weird, I turned on fast boot and it is fast for the desktop to come up.
Loading the taskmanager panel is really slow (only with the 4k tv connected so maybe is has to do with the large desktop resolution).

What do the log files themselves say? Time elapsed doesn’t really help with tracking down causation.

Where are the log files?

Look in /var/log. Of particular value will be:

  • syslog
  • dmesg
  • Xorg.0.log

Interesting, I switched from nouveau to the proprietary nvidia driver and it boots fast.

Tiny fonts and the colours are not the same so it’s not an easy switch back and forth.

The proprietary driver should have a configuration tool. I would expect the open source driver to lag behind the proprietary driver in features, especially on newer hardware. No big surprise.