Hardware: 2014 macbook, nuked macos, clean xubuntu 24.04 installation
I never experienced this with my other notebook, a 2016 model from a Taiwanese vendor, forgot the name.
On the macbook: I plug in the external HDD, xubuntu recognizes and opens the volume, I can use vlc to play video files (mostly mkv, x265) but then, 2 to 5 minutes later, xubuntu reconnects to the HDD, meaning the connection stopped and vlc stops playing the file. Not big files, 250 to 500 MiB, 1080p
It’s impossible to watch a 30 minute show.
This never happened with the 2016 notebook and on this notebook I also installed xubuntu 24.04, so I’m assuming this is a hardware issue.
Is it so? Any way to avoid this?
the macbook is an Intel Core i5-4278U CPU @ 2.60GHz, the other notebook an Intel Core i7-7500U CPU @ 2.70GHz
any chance the usb connector is a bit dodgy? Does it happen the same on all USB ports?
Play video in background, watch output of
dmesg --follow
orjournalctl --follow
, look for anything related when it breakmaybe it is hdd sleep issue? it dumps file into ram, hdd idles, sleeps, laptop disconnects (due to some arcane parameter), it queries it, then it takes time to spin? does same thing happens if you actively do other stuff on hdd (opening/closing file every 2 min for example)?
I’m also betting on this. Trying to find energy-save settings for discs and also for USB might bring something.
pretty easily to test without getting bogged down in the weeds if you’re comfortable in terminal:
cd <drive path> while true; do date > test_file.txt sleep 10 done
this will loop infinitely and write the the disk every 10s until you cancel, so should keep the disk awake… of course, if that works you can spend time figuring out how to keep the disk awake, or how to make VLC load less into RAM
Sounds like a power or sleep issue. Try doing a file copy while monitoring the logs