Greetings all.
I have an oldish Acer laptop which I use as a backup when my other machines fail me. It started life with Windows Vista and has had a number of Mint versions dropped in. The Windows dual boot was broken during an earlier Mint update but Mint continued to run OK. As I was starting to get out of space warnings, I eventually decided to upgrade to Mint 19 (Mate, because of the machine´s age) as the sole operating system, with everything else wiped. It seemed to go alright, but it now takes an age to boot up. Having read several other posts on similar subjects, I´ve uploaded the following files and hope some kind person will be able to help me improve things (the ´mg´ at the beginning of these files is simply my initials). I´m pretty much a Linux novice, as you may have guessed.
systemd-analyze critical-chain:
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.
graphical.target @23.815s
??multi-user.target @23.815s
??getty.target @23.815s
??getty@tty1.service @23.814s
??system-getty.slice @23.813s
??setvtrgb.service @23.524s +288ms
??systemd-user-sessions.service @22.034s +13ms
??network.target @22.026s
??NetworkManager.service @17.302s +4.723s
??dbus.service @17.068s
??basic.target @17.067s
??sockets.target @17.067s
??cups.socket @17.067s
??sysinit.target @17.044s
??systemd-timesyncd.service @16.865s +179ms
??systemd-tmpfiles-setup.service @16.078s +771ms
??systemd-journal-flush.service @4.067s +12.008s
??systemd-remount-fs.service @3.436s +628ms
??systemd-journald.socket @3.357s
??system.slice @3.355s
??-.slice @3.340s
fstab:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/mint--vg-root / ext4 errors=remount-ro 0 1
/dev/mapper/mint--vg-swap_1 none swap sw 0 0
Well, I reinstalled as per yours, from a new download, just in case. If anything, boot seems even slower. I also note that shut down is slow, preceded by a display of code.
Your dmesg output contains a lot of instances of:-
[ ] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:41:pipe B] flip_done timed out
followed by a call trace listing
This appears to be a regression in the 4.15 kernel series (intel video drivers), the workaround is to disable the SVIDEO-1 port (which you’re unlikely to be using anyway) at the kernel level at boot time.
Try this…
Open a terminal and run:
sudo pluma /etc/default/grub
Look for the line that contains “quiet splash” and add the kernel boot parameter video=SVIDEO-1:d (after splash, but still inside the quotation marks).
After ‘pluma’ was not recognised, I found out that the new text editor is ‘xed’ and used that to add the code you suggested. Previously the elapsed time was 379.830069 (excluding the last line resetting USB 1). Now the total time is 45.528331, which would be much shorter but for a series of events at the end involving Bluetooth and IPv6. If you’d care to look at this, the link to the new dmesg file is http://s000.tinyupload.com/?file_id=00522869324592571317
You could disable IPv6 in network manager (and bluetooth in the BIOS if you don’t use it) … but I doubt either of those are actually slowing the desktop from coming up, so I doubt you’d notice any difference.
Oddly when I first typed the instructions I originally used “xed” in that command (which is the default Cinnamon text editor) … then I noticed you’re using MATE who’s default text editor is usually pluma, so I changed it … Mint must use the non-default “xed” even in their MATE DE version (as do we at Peppermint)
Time to leave it alone, I think. It’s already a massive improvement, for which I thank you. I’ve now committed 2 out of three laptops in our house completely to Mint - the other is on 64 bit Cinnamon - and hope to learn a little more about the innards of the system.