Go Back   DisplayLink Forum > DisplayLink Graphics Technology > Linux and Open Source

Reply
 
Thread Tools Search this Thread Display Modes
Old 01-11-2018, 02:29 PM   #1
edclement
Junior Member
 
Join Date: Jan 2018
Posts: 11
Default working solution

After a few days of struggling, I managed to find a solution on Ubuntu 17.10. Hope this works for everyone having problems with the D6000 dock. Below format is markdown (to lazy to convert it)

## Instructions for fixing the blanking monitor on dock issue within Ubuntu.
**Make sure to reboot after making the changes!**

#### Disable USB AutoSuspend
* `sudo gedit /etc/default/tlp` and change the below value from `1` to `0`

```
USB_AUTOSUSPEND=0
```

* `sudo gedit /etc/udev/rules.d/01-usb-dock.rules`. This will create a new file.

```
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1bcf", ATTR{idProduct}=="2b95", TEST=="power/control", ATTR{power/control}="on"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1bcf", ATTR{idProduct}=="0005", TEST=="power/control", ATTR{power/control}="on"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1d6b", ATTR{idProduct}=="0002", TEST=="power/control", ATTR{power/control}="on"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1d6b", ATTR{idProduct}=="0003", TEST=="power/control", ATTR{power/control}="on"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="04d9", ATTR{idProduct}=="0143", TEST=="power/control", ATTR{power/control}="on"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="04f3", ATTR{idProduct}=="24a1", TEST=="power/control", ATTR{power/control}="on"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05e3", ATTR{idProduct}=="0608", TEST=="power/control", ATTR{power/control}="on"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05e3", ATTR{idProduct}=="0610", TEST=="power/control", ATTR{power/control}="on"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05e3", ATTR{idProduct}=="0620", TEST=="power/control", ATTR{power/control}="on"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="06c4", ATTR{idProduct}=="c411", TEST=="power/control", ATTR{power/control}="on"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="17e9", ATTR{idProduct}=="6006", TEST=="power/control", ATTR{power/control}="on"
```

#### Disable Display Power Management
* `sudo gedit /etc/X11/xorg.conf` Append the below options to the file.

```
Section "Monitor"
Identifier "DVI-I-3-2"
Option "DPMS" "false"
EndSection

Section "Monitor"
Identifier "DVI-I-2-1"
Option "DPMS" "false"
EndSection
```

#### Disable audio suspend
* `sudo gedit /etc/pulse/default.pa`. Comment out the line indicated below.

```
### Automatically suspend sinks/sources that become idle for too long
# load-module module-suspend-on-idle
```

#### Disale USB wake in BIOS
Boot into the BIOS by pressing the F12 key as the machine turns on. Under `Power Management` >> `USB Wake Support` uncheck both boxes.
edclement is offline   Reply With Quote
Old 01-26-2018, 06:43 PM   #2
aplund
Junior Member
 
Join Date: Jan 2018
Posts: 4
Default

I have only just recently come across this hardware.

I too have been experiencing the resetting. At first I thought it was my specific unit as the USB-C power appears to be cut as well and the LED goes from white to red which might indicate that there is some physical link problem. But after reading this forum, I'm starting to doubt that.

The "working solution" posted seem to change vastly too many things to narrow down the problem. It cannot possibly be that _all_ of them are required to fix things.

I'm on ArchLinux so the Ubuntu based instructions need to be converted to my settings. I've tried fiddling with each of these things and none of them individually seem to help.

Can you try removing one fix at a time and see when the issue of disconnections reappears?
aplund is offline   Reply With Quote
Old 01-27-2018, 07:33 PM   #3
edclement
Junior Member
 
Join Date: Jan 2018
Posts: 11
Default

Trust me, I tried each of these individually and as soon as I reverted any one of them the problem started again. It seems to me that any power management that Linux attempts to apply to this unit causes either the unit itself or three connection to cycle.
edclement is offline   Reply With Quote
Old 01-27-2018, 09:41 PM   #4
aplund
Junior Member
 
Join Date: Jan 2018
Posts: 4
Default

I cannot see how bios support for wake on USB could cause these disconnections. That just seems totally orthogonal to the working theory here.

I think concentrating on the power management is a reasonable theory.

If the power management is the issue, then the dropouts should occur with no devices connected. Can anyone confirm that it still happens with no monitor, or other devices attached (you can't do much about the audio drivers).

I need to sort this out, but I only have access to the hardware during the week.
aplund is offline   Reply With Quote
Old 01-29-2018, 04:50 AM   #5
aplund
Junior Member
 
Join Date: Jan 2018
Posts: 4
Default

I have confirmed that this is the bit that makes things work:

Quote:
#### Disable audio suspend
* `sudo gedit /etc/pulse/default.pa`. Comment out the line indicated below.

```
### Automatically suspend sinks/sources that become idle for too long
# load-module module-suspend-on-idle
```
Interestingly it is only _one_ device that detaches from the bus (the 17e9:6006 device) which can be confirmed by watching "udevadm monitor".

I couldn't figure out why it was disconnecting. I tried all sorts of other approaches using the power/control interface as suggested, but nothing worked.
I think the runtime PM of the audio output was a crucial part. I have a feeling that the CDC ethernet device might have something to do with it as well in as much as determining exactly _when_ a disconnect will occur.

The way this probably should be dealt with is via the DisplayLinkManager process as there is no kernel module for the display link device. The way this is done seems to just access USB data via the usbdevfs interface. I'm not sure if there is a way to stop the runtime PM stuff through that interface, but the DisplayLinkManager binary blob people should work on getting this fixed as nobody else can work on it (by design). Having audio output constantly on is a _hack_ and shouldn't be the way to rely on keeping the USB link up. Perhaps there is a less power intensive hack to achieve the same result.
aplund is offline   Reply With Quote
Old 03-20-2018, 10:14 AM   #6
andreiiar
Junior Member
 
Join Date: Mar 2018
Posts: 1
Default

Quote:
Originally Posted by edclement View Post
#### Disable audio suspend
* `sudo gedit /etc/pulse/default.pa`. Comment out the line indicated below.

```
### Automatically suspend sinks/sources that become idle for too long
# load-module module-suspend-on-idle
```
Indeed this workaround works solely.

Not sure if this is DL bug or PA bug and where to submit it.
andreiiar is offline   Reply With Quote
Old 03-23-2018, 04:23 AM   #7
aplund
Junior Member
 
Join Date: Jan 2018
Posts: 4
Default

Quote:
Originally Posted by andreiiar View Post
Not sure if this is DL bug or PA bug and where to submit it.
Definitely a displaylink bug. Runtime power management should suspend things when they aren't in use, which includes the entire tree of USB devices, so the kernel is working exactly as intended. The way the displaylink part uses a userspace driver works is a bit odd and issues like this are more likely to occur. Forcing the audio driver to never suspend is just a workaround (and a waste of power).
aplund is offline   Reply With Quote
Old 04-13-2018, 08:07 PM   #8
scottgeiger
Junior Member
 
Join Date: Apr 2018
Posts: 1
Thumbs up Worked For Linux Mint 18.3

I am running Linux Mint 18.3 (Ubuntu 16.04). I was also having the same problem with the D6000 "crashing" periodically. I can confirm that the modification to the pulse default settings fixed this issue for me. Thanks for finding that and sharing it.
scottgeiger is offline   Reply With Quote
Old 03-14-2019, 02:06 PM   #9
kthhrv
Junior Member
 
Join Date: Mar 2019
Posts: 1
Default Turning wifi off appears to fix the issue

I'm using a Dell XPS 13 9370 with a D6000 dock on Ubuntu 18.04.2 LTS and was suffering from the dock resetting every few hours. turning off the wifi seams to have stopped this happening.

this is the thread that lead me to try that
https://plugable.com/2016/06/30/inve...ision-laptops/

good luck!
kthhrv is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:54 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2026, vBulletin Solutions, Inc.