You are not logged in.

#1 2021-11-17 15:13:47

Morta
Member
Registered: 2019-07-07
Posts: 655

[SOLVED]Newest Kernel 5.15.12 breaks Displaylink and evdi-git

Hi,
Have someone the same problem that the newest Kernel 5.12 breaks Displaylink and evdi-git?

I can't install evdi-git as dkms module on the new Kernel....

With the LTS Kernel it's working flawless!

Any suggestion?

Last edited by Morta (2021-11-17 16:08:40)

Offline

#2 2021-11-17 15:33:15

progandy
Member
Registered: 2012-05-17
Posts: 5,196

Re: [SOLVED]Newest Kernel 5.15.12 breaks Displaylink and evdi-git

Really 5.12 and not 5.15? In the second case see https://github.com/DisplayLink/evdi/issues/308

You can modify the PKGBUILD to use this fork and branch I think: https://github.com/infinytum/evdi/commits/devel

Last edited by progandy (2021-11-17 15:34:19)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2021-11-17 15:56:38

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: [SOLVED]Newest Kernel 5.15.12 breaks Displaylink and evdi-git

progandy wrote:

Really 5.12 and not 5.15? In the second case see https://github.com/DisplayLink/evdi/issues/308

You can modify the PKGBUILD to use this fork and branch I think: https://github.com/infinytum/evdi/commits/devel

Can be 5.15…

How can I look the version of both kernel lts and mainline?

uname -a display only the active kernel.


I will give a look at this fork thanks for input

Offline

#4 2021-11-17 16:07:02

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: [SOLVED]Newest Kernel 5.15.12 breaks Displaylink and evdi-git

# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: ajs124

# Tested with Kernel 4.16, Dell D3000 SuperSpeed USB 3.0 Docking Station, 17e9:4318 DisplayLink

pkgname='evdi-git'
pkgver=1.9.1.r4.gb0b3d13
_pkgver="${pkgver%%.r*}"
pkgrel=1
pkgdesc='kernel module that enables management of multiple screens, primarily for DisplayLink USB VGA DVI HDMI DisplayPort video'
arch=('i686' 'x86_64')
url='https://github.com/DisplayLink/evdi'
license=('GPL')
depends=('dkms')
makedepends=('git' 'libdrm')
makedepends+=('linux-headers')
provides=("evdi=${_pkgver}")
conflicts=('evdi')
_srcdir="${pkgname%-git}"
source=(
  'git+https://github.com/infinytum/evdi'
)
source[0]+='#branch=devel'
md5sums=('SKIP')
sha256sums=('SKIP')

pkgver() {
  cd "${_srcdir}"
  local _modver _rev
  #_modver="$(awk -F '=' '/MODVER=/ {print $2}' module/Makefile)"
  _rev="$(git describe --long --tags | sed -e 's/^v//' -e 's/\([^-]*-g\)/r\1/' -e 's/-/./g')"
  if [ -z "${_modver:-}" ]; then
    printf '%s\n' "${_rev}"
  else
    printf '%s.r%s\n' "${_modver}" "${_rev##*.r}"
  fi
}

prepare() {
  cd "${_srcdir}"
  local _src
  for _src in "${source[@]%%::*}"; do
    _src="${_src##*/}"
    if [[ "${_src}" = *.patch ]]; then
      msg2 "Patch ${_src}"
      patch -Np1 -i "../${_src}"
    fi
  done

  # Fix build for kernel 5.4
  #sed -E -e 's:SUBDIRS=([^ ]+) :M=\1 &:g' -i 'module/Makefile'

  sed -e 's:-Werror::g' -i 'Makefile'
}

build() {
  cd "${_srcdir}"
  # DKMS builds are hard to debug. We can build it here to debug the errors.
  if :; then
    # We only need to build the library in this step, dmks will build the module
    cd 'library'
  fi
  CFLAGS="${CFLAGS/-fno-plt/}"
  make
}

package() {
  cd "${_srcdir}"
  install -Dpm755 "library/lib${pkgname%-git}.so"* -t "${pkgdir}/usr/lib/"

  pushd "${pkgdir}/usr/lib/" > /dev/null
  local _libs=(*.so.*)
  if [ "${#_libs[@]}" -ne 1 ]; then
    echo "Too many libs"
    false
  fi
  _libs="${_libs[0]}"
  local _libase="${_libs%.so*}.so"
  ln -sf "${_libs}" "${_libase}"
  ln -sf "${_libs}" "${_libase}.0" # bad soname
  popd > /dev/null

  local _DKMS="${pkgdir}/usr/src/${pkgname%-git}-${_pkgver}"
  install -Dpm644 module/* -t "${_DKMS}/"
  make -j1 -C "${_DKMS}" clean
  rm -f "${_DKMS}/evdi.mod"
}

Works for me with Kernel 5.15.12.

Praise the Lord ;-)

Offline

#5 2021-12-27 16:28:53

I_Use_Arch_BTW45
Member
Registered: 2021-12-05
Posts: 42

Re: [SOLVED]Newest Kernel 5.15.12 breaks Displaylink and evdi-git

used that (evdi-git) on 5.15.11 and it does not work, did I do something wrong or is this a kernel bug?
evdi and udl are fully loaded so I am not sure.

Last edited by I_Use_Arch_BTW45 (2021-12-27 16:29:15)

Offline

Board footer

Powered by FluxBB