The Issue
A few months ago I installed Ubuntu on an unused Mac Book Pro (13" late 2016 model). The install works fine for the most part except when the computer sleeps. Upon waking, I cannot open any applications, getting the error:
Failed to launch <application_name>
Failed to execute the child process "/bin/sh" (Input/output error)
This is then followed by application icons disappearing and eventually a system crash, requiring a hard reset. Before the reset the kernel spams messages similar to:
EXT4-fs error (device nvme0n1p2): __ext4_find_entry:1663: inode #12583047: comm gmain: reading directory lblock 0
What I have tried to fix the issue
Given the output above I suspected two causes: a broken file system or a faulty drive.
After booting a live usb I ran fsck
on the root file system and found no issues. I also ran smartctl
which indicated the drive was healthy. I also performed the check outlined in this post, which passed.
After the above did not work I stumbled upon this post, which seemed to be similar to what I was experiencing. The cause of the issue was an APST issue, which could be overcome by modifying some settings in the grub file. After attempting the two solutions outlined in the post, the issue persisted.
System Info
Laptop Model: Late 2016 13" MacBook Pro
Ubuntu Version:
Kernel Version:
Logs
Relevant log files are difficult to obtain as the system goes into Read Only mode once the computer has woken from sleep i.e. the error messages aren't available to me once I reboot the system (if there is a workaround to this I am happy to try it and update the post).
What I have been able to do is run dmesg -w
to see the results displayed to the terminal in the short time the computer is running after waking from sleep. I was able to snap the below pictures from that output.






Let me know if there is any more output that I can supply.
Any help would be greatly appreciated as I am relatively new to Linux. I have learned a lot from this so far but am a little unsure as to how to proceed next.