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.23k stars 228 forks source link

Notebook won't boot anymore after executing ./displaylink-debian.sh #908

Closed ReneNyffenegger closed 2 months ago

ReneNyffenegger commented 3 months ago

When using wget to download displaylink-debian.sh and executing this script, I get an error message about a missing patch file (see https://github.com/AdnanHodzic/displaylink-debian/issues/907). I don't encounter this error when cloning the github repository and executing the script in the repository. However, with this approach, the notebook won't boot anymore. So, is there a possibility to revert the changes of the script?

ReneNyffenegger commented 3 months ago

After removing /etc/X11/xorg.conf.d/20-displaylink.conf in recovery mode, the notebook does boot again. Of course, I am not sure if the install script messed up other parts of the OS as well.

leonp5 commented 2 months ago

So, is there a possibility to revert the changes of the script?

If you run the script it asks you, if you want to install or uninstall the driver. This way you can revert the changes.

648trindade commented 2 months ago

I'm having the exact same problem. After installing and rebooting, the computer get a black screen.

My laptop has hybrid graphics, with a integrated Radeon GPU and a dedicated NVIDIA GTX 1650, not sure if this is the problem.

It looks like it is working, although I haven't tested yet. I'm getting this message DisplayLink service status: up and running

Here is the output of my --debug command:

--------------- Linux system info ----------------

Distro: Debian
Release: trixie
Kernel: 6.6.15-amd64

---------------- DisplayLink info ----------------

Driver version: 1.14.1
1.14.2
1.14.2+dfsg
DisplayLink service status: up and running
EVDI service version: 1.14.2

------------------ Graphics card -----------------

Vendor: amdgpu
Subsystem: Vega
VGA: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev c5)
VGA (3D): NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] (rev a1)
X11 version: 21.1.11-2

-------------- DisplayLink xorg.conf -------------

File: /etc/X11/xorg.conf.d/20-displaylink.conf
cat: /etc/X11/xorg.conf.d/20-displaylink.conf: No such file or directory
Contents:

-------------------- Monitors --------------------

Providers: number : 6
Provider 0: id: 0x54 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 2 associated providers: 4 name:AMD Radeon Graphics @ pci:0000:05:00.0
Provider 1: id: 0x27c cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting
Provider 2: id: 0x25b cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting
Provider 3: id: 0x23a cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting
Provider 4: id: 0x219 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting
Provider 5: id: 0x1f8 cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:NVIDIA-G0

-------------------------------------------------------------------

output of /etc/X11/xorg.conf.d/20-displaylink.conf:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    Option "AccelMethod" "None"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
EndSection
648trindade commented 2 months ago

Okay, I've managed to make it boot (kudos to chat GPT). I've changed the conf file to

  1. List my radeon device instead of an intel one
  2. Select the radeon as the device for screen 0
Section "ServerLayout"
    Identifier "layout"
    Screen 0 "radeon"
    Inactive "nvidia"
EndSection

Section "Device"
    Identifier "radeon"
    Driver "amdgpu"
    Option "AccelMethod" "glamor"
EndSection

Section "Screen"
    Identifier "radeon"
    Device "radeon"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
EndSection

What I don't understand is what difference this conf file is supposed to make. Looks like it is pretty much the same configuration as the system default. No evdi errors are being shown on dmesg anymore, though.

Tomorrow I'll test it against a DELL UD22 dock and a WAVLINK ‎WL-UG3501HPDX adapter.

648trindade commented 2 months ago

Okay, I've tested the adapters that I've mentioned earlier

The funny part is that if I connect the WAVLINK into the dock, it works

Barabazs commented 2 months ago

It's a known displaylink bug, but unrelated to this project. You'll have to take it up with them.