Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

evdi doesnt compile on arch kernel 5.6.7 #199

Closed
Zetabite opened this issue Apr 28, 2020 · 20 comments
Closed

evdi doesnt compile on arch kernel 5.6.7 #199

Zetabite opened this issue Apr 28, 2020 · 20 comments

Comments

@Zetabite
Copy link

  • Distro: Arch Linux x86_64
  • Kernel: 5.6.7-arch1-1
  • Xorg: X.Org X Server 1.20.8
  • KDE Plasma

Logs:
Make.log: https://paste.ee/p/XBcHM

Since the make.log errors out at drmP.h, this might be related to #185 .

@Zetabite Zetabite changed the title Evdi doesnt compile on arch kernel 5.6.7 evdi doesnt compile on arch kernel 5.6.7 Apr 28, 2020
@displaylink-dkurek
Copy link
Contributor

Are you using latest devel branch from this repository?

@Zetabite
Copy link
Author

Apparently I had swapped to the stable branch, since I had confused myself with the version number. Using the devel branch compiles evdi, but now my displaylink connected monitor wont show up.

@Zetabite
Copy link
Author

Zetabite commented Apr 29, 2020

If tried reinstalling xorg-server and graphic drivers, since displaylink was recognized as service, but the monitor doesnt show up. In the list of providers the first time it showed "Intel" as provider, after I restarted its "modesetting" now, but the monitor still doesnt show up. Additionaly xrandr settings seem to be a mess, since they change whenever I observe it with the gui tool. I hope this helped you understanding my problem further. If you need more info or so, just tell me.
Btw, should the dkms 5.4.35-1-lts build be created alongside the dkms evdi build for 5.6.7? Since that whats happening whenever I install it via yay.

@Zetabite
Copy link
Author

Ok i fixed the modesetting stuff, apparently the bios update didnt set a flag properly and made the laptop boot in a weird state, where it wouldnt boot with the docking station. Trying to downgrade bios was prevented by the installer, but fixed the boot seguence and the provider. Now its back setting Intel as provider, still cant do evdi tho

@elguero
Copy link
Contributor

elguero commented Apr 30, 2020

@Zetabite Try using the devel branch up to commit 01e246f, don't go past that commit. See if you can get it to work.

I was able to get evdi devel to work with Displaylink 5.2.14 up to that commit. After that, the version of evdi changes to 1.7.0 along with some additional changes.

@Zetabite
Copy link
Author

I will try that, thank you

@Zetabite
Copy link
Author

@elguero perfect, this works! If we are at it, do you might happen to know why my laptop boots flawlessy connected to docking station after running windows, but running linux once will make the laptop not boot at all as long as the docking station is connected?

@elguero
Copy link
Contributor

elguero commented Apr 30, 2020

@Zetabite Great! Glad to help.

I wouldn't really know the answer to your other question. Are you sure it is not trying to boot off of a USB drive connected to the dock?

@Zetabite
Copy link
Author

Wouldnt make sense, since its no problem booting after using windows. Only expiriencing this problem after the bios update yesterday. But I dont know if i should downgrade to the previous bios

@Mikhail-Kotov
Copy link

@Zetabite May be disabling Windows 10's Fast Startup will help you.

@Zetabite
Copy link
Author

Zetabite commented May 4, 2020

@Mikhail-Kotov thx, havent thought about that.
Edit: Was already disabled

@bnavigator
Copy link

Archlinux kernel 5.6.11 and latest commit from devel branch dc595db compile and work for me. See also my comment for the evdi-git AUR package and #201

@Luc45
Copy link

Luc45 commented May 12, 2020

@bnavigator I get this on Manjaro: ==> Unable to install module evdi/1.7.0 for kernel 5.6.11-1-MANJARO: Missing kernel headers. - Anything I can do?

@bnavigator
Copy link

bnavigator commented May 12, 2020

Install linux-headers

That was for Archlinux. On Manjaro, you apparently need the correct version, so either linux56-headers or linux-latest-headers. Do a pacman -Ss headers to find the correct one. Or find out how mhwd deals with it.

@Luc45
Copy link

Luc45 commented May 12, 2020

@bnavigator there's a sudo pacman -S linux56-headers. Bah, I'm afraid of running it. I honestly don't know what I'm doing.

@bnavigator
Copy link

If you are too afraid of installing a distribution package, you should not tinker with AUR packages at all.

@Luc45
Copy link

Luc45 commented May 12, 2020

If you are too afraid of installing a distribution package, you should not tinker with AUR packages at all.

image

I did it, for your information. I ran sudo pacman -S linux56-headers. Who's laughing now?! Mwahaha.

Thanks man. It worked.

@Luc45
Copy link

Luc45 commented May 13, 2020

After a reboot the monitor connected through DisplayLink isn't working anymore. I've been trying to fix it for the past 6 hours.

➜  ~ lsusb -d 17e9:
Bus 001 Device 004: ID 17e9:037a DisplayLink Plugable UGA-165

➜  ~ sudo systemctl status displaylink.service
[sudo] password for lucas: 
● displaylink.service - DisplayLink Manager Service
     Loaded: loaded (/usr/lib/systemd/system/displaylink.service; enabled; vendor preset: disabled)
     Active: active (running) since Tue 2020-05-12 23:18:13 -03; 4min 34s ago
    Process: 963 ExecStartPre=/sbin/modprobe evdi (code=exited, status=0/SUCCESS)
   Main PID: 964 (DisplayLinkMana)
      Tasks: 7 (limit: 19117)
     Memory: 7.0M
     CGroup: /system.slice/displaylink.service
             └─964 /usr/lib/displaylink/DisplayLinkManager

mai 12 23:18:13 lucas-gl502vs systemd[1]: Starting DisplayLink Manager Service...
mai 12 23:18:13 lucas-gl502vs systemd[1]: Started DisplayLink Manager Service.

I've tried:

  • Installing evdi 1.7
  • Installing evdi-git 1.7
  • Installing evdi 1.6.4-2 (which I had before) and rolling back from Kernel 5.6 (which I had before), to 5.4 (because it's the latest compatible with 1.6.4-2, I don't know how I was using 5.6 with it before)
  • Installing displaylink 5.2.14-1
  • Removing everything above and trying different combinations of each
  • Removing everything and upgrading to Kernerl 5.7, hoping that the default udl DRM would kick-in, as it did in a clean Manjaro installation
  • Set Pageflip false because I'm running a Nvidia proprietary driver
  • Blacklist udlfb module and trying to make sure udl is loaded
  • Debugged dkms and xrandr

This is my pacman history from yesterday to today. It doens't include the pamac builds and makepkgs I did for running downgraded versions of the packages, etc:

[2020-05-13T00:27:58-0300] [ALPM] installed displaylink (5.2.14-1)
[2020-05-13T00:24:43-0300] [ALPM] installed evdi (1.6.4-2)
[2020-05-13T00:15:30-0300] [ALPM] installed linux57-headers (5.7rc4.d0503.g0e698df-1)
[2020-05-13T00:15:20-0300] [ALPM] installed linux57-nvidia-440xx (440.82-0.7)
[2020-05-13T00:15:20-0300] [ALPM] installed linux57 (5.7rc4.d0503.g0e698df-1)
[2020-05-13T00:07:24-0300] [ALPM] removed evdi-git (1.7.0.r0.gdc595db-1)
[2020-05-13T00:06:19-0300] [ALPM] reinstalled evdi-git (1.7.0.r0.gdc595db-1)
[2020-05-13T00:06:02-0300] [ALPM-SCRIPTLET]     are supported and installed on your system.
[2020-05-13T00:05:22-0300] [ALPM] removed displaylink (5.2.14-1)
[2020-05-12T23:11:52-0300] [ALPM] installed displaylink (5.2.14-1)
[2020-05-12T23:08:47-0300] [ALPM] installed evdi-git (1.7.0.r0.gdc595db-1)
[2020-05-12T22:55:58-0300] [ALPM] installed dkms (2.8.1-2)
[2020-05-12T22:46:15-0300] [ALPM] installed downgrade (7.0.0-1)
[2020-05-12T22:36:22-0300] [ALPM] removed dkms (2.8.1-2)
[2020-05-12T22:36:22-0300] [ALPM] removed linux-lts (1:5.4-1)
[2020-05-12T22:36:22-0300] [ALPM] removed evdi-4.19 (1.6.4-2)
[2020-05-12T22:36:21-0300] [ALPM-SCRIPTLET]     are supported and installed on your system.
[2020-05-12T22:36:01-0300] [ALPM] installed evdi-4.19 (1.6.4-2)
[2020-05-12T22:34:42-0300] [ALPM] installed linux-lts-headers (1:5.4-1)
[2020-05-12T22:34:35-0300] [ALPM] installed linux54-nvidia-440xx (440.82-12)
[2020-05-12T22:34:35-0300] [ALPM] installed linux54-headers (5.4.39-1)
[2020-05-12T22:34:33-0300] [ALPM] installed linux-lts (1:5.4-1)
[2020-05-12T22:34:33-0300] [ALPM] installed linux54 (5.4.39-1)
[2020-05-12T22:25:18-0300] [ALPM] removed evdi-git (1.7.0.r0.gdc595db-1)
[2020-05-12T22:24:55-0300] [ALPM] reinstalled evdi-git (1.7.0.r0.gdc595db-1)
[2020-05-12T22:24:45-0300] [ALPM-SCRIPTLET]     are supported and installed on your system.
[2020-05-12T22:20:48-0300] [ALPM] reinstalled evdi-git (1.7.0.r0.gdc595db-1)
[2020-05-12T22:20:39-0300] [ALPM-SCRIPTLET]     are supported and installed on your system.
[2020-05-12T22:16:09-0300] [ALPM] reinstalled evdi-git (1.7.0.r0.gdc595db-1)
[2020-05-12T22:16:01-0300] [ALPM-SCRIPTLET]     are supported and installed on your system.
[2020-05-12T22:15:52-0300] [ALPM] downgraded nvm (0.35.3-1 -> 0.35.2-1)
[2020-05-12T22:09:28-0300] [ALPM] installed evdi-git (1.7.0.r0.gdc595db-1)
[2020-05-12T22:09:18-0300] [ALPM] installed dkms (2.8.1-2)
[2020-05-12T22:09:03-0300] [ALPM] removed dkms (2.8.1-2)
[2020-05-12T22:09:03-0300] [ALPM] removed evdi (1.7.0-1)
[2020-05-12T22:09:03-0300] [ALPM] removed displaylink (5.2.14-1)
[2020-05-12T22:08:54-0300] [ALPM-SCRIPTLET]     are supported and installed on your system.
[2020-05-12T20:02:34-0300] [ALPM] installed displaylink (5.2.14-1)
[2020-05-12T10:40:03-0300] [ALPM] installed linux56-headers (5.6.11-1)
[2020-05-12T10:15:10-0300] [ALPM] upgraded evdi (1.6.4-2 -> 1.7.0-1)

It's exactly the same pain I had when trying to set this on Ubuntu last year. I was so glad that it worked out of the box on Manjaro when I switched to it. Damn...

@Luc45
Copy link

Luc45 commented May 13, 2020

I've opened a new issue to follow up on the issues I mentioned above, in case anyone is facing similar problems: #204

@elguero
Copy link
Contributor

elguero commented May 13, 2020

@Luc45 Just something I noticed in your combinations of tries, DisplayLink 5.2.14 does not work with evdi 1.7.0. You need the latest DisplayLink drivers which is 5.3.1 if you are installing evdi 1.7.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants