I had pretty much exactly the issue that OP described (key exchange failures, "Can't read AACS VID", "LibreDrive compatible drive is required", regular Blu-Rays worked, worked on Windows). Happened to me on versions 1.17.7 / 1.18.4 / 2.0.0.
I'm using BU40N on 1.03 patched firmware, in an Archgon MD-810x USB enclosure, Ubuntu 26.04.
Code: Select all
Drive Information
OS device name: /dev/sr0
Current profile: BD-ROM
Manufacturer: HL-DT-ST
Product: BD-RE BU40N
Revision: 1.03
Firmware date: 2118-10-24 19:34
Bus encryption flags: 17
Highest AACS version: 77
LibreDrive Information
Status: Enabled
Drive platform: MT1959
Firmware type: Patched (microcode access re-enabled)
Firmware version: 1.03
DVD all regions: Yes
BD raw data read: Yes
BD raw metadata read: Yes
Unrestricted read speed: Yes
Long story short, seems like it was the USB-SATA chip in the enclosure causing MakeMKV to not turn LibreDrive on. When LibreDrive is really in use there seems to be a "Using LibreDrive mode" log line near the top but mine wasn't showing it.
To check if this might be happening to you, unplug and replug the drive and run this (change /dev/sr0 if your drive is something else).
Code: Select all
strace -f -v -e trace=ioctl -o trace.txt makemkvcon info dev:/dev/sr0
grep SG_DXFER_TO_DEV trace.txt | grep -o -E 'dxfer_len=[0-9]+|resid=[0-9]+' | head -2
Mine printed
If both numbers match like that, you might have the same problem.
The fix is to use the IGNORE_RESIDUE (r) quirk flag, which needs the USB ID of your enclosure (e.g. from lsusb). Mine is 13fd:3910, so swap in yours below for <YOUR ID>
Code: Select all
# Quick Test (replaces any existing quirks value, resets on reboot)
# E.g. sudo sh -c 'echo 13fd:3910:r > /sys/module/usb_storage/parameters/quirks'
sudo sh -c 'echo <YOUR ID>:r > /sys/module/usb_storage/parameters/quirks'
# Then close makemkv, unplug / replug the drive, and restart makemkv
If that fixes it you can make it permanent with
Code: Select all
# E.g. echo 'options usb-storage quirks=13fd:3910:r' | sudo tee /etc/modprobe.d/bu40n-enclosure.conf
echo 'options usb-storage quirks=<YOUR ID>:r' | sudo tee /etc/modprobe.d/bu40n-enclosure.conf
sudo update-initramfs -u # If Debian/Ubuntu/Mint