AdnanHodzic / displaylink-debian

DisplayLink driver installer for Debian and Ubuntu based Linux distributions.
https://foolcontrol.org/?p=1777
GNU General Public License v3.0
1.28k stars 230 forks source link

evdi 1.14.4 won't compile on kernel 6.10 #955

Open cilynx opened 1 month ago

cilynx commented 1 month ago

It's a known issue that has been fixed in 1.14.5, but 1.14.4 ships with the Ubuntu DisplayLink driver. To work around the issue, I added a few lines right before the patch is applied in https://github.com/AdnanHodzic/displaylink-debian/blob/b763e8fec501243b6750094f4fb3fc452668b7f9/displaylink-debian.sh#L370 to replace evdi.tar.gz that ships with the driver with a stripped version of https://github.com/DisplayLink/evdi/archive/refs/tags/v1.14.6.tar.gz.

# Replace evdi with newer version
echo 'Replacing evdi...'
mkdir evdi
tar -xzf evdi-1.14.6.tar.gz --strip-components=1 -C evdi
tar -czf $driver_dir/displaylink-driver-${version}/evdi.tar.gz -C evdi .
rm -rf evdi

Not sending a PR as this is a lame hack, but I can confirm it works on Trixie's 6.10.9

cilynx commented 1 month ago

Slightly more robust:


# Replace evdi with newer version
evdi_ver=1.14.6
echo 'Replacing evdi...'
mkdir evdi
wget https://github.com/DisplayLink/evdi/archive/refs/tags/v${evdi_ver}.tar.gz
tar -xzf v${evdi_ver}.tar.gz --strip-components=1 -C evdi
tar -czf $driver_dir/displaylink-driver-${version}/evdi.tar.gz -C evdi .
rm -rf evdi v${evdi_ver}.tar.gz