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

Second monitor only detected after dock plugged into USB #192

Closed
matthewhegarty opened this issue Dec 30, 2018 · 12 comments
Closed

Second monitor only detected after dock plugged into USB #192

matthewhegarty opened this issue Dec 30, 2018 · 12 comments

Comments

@matthewhegarty
Copy link

matthewhegarty commented Dec 30, 2018

Hi

Thanks for writing this software.

I had the installation working no problem but this weekend I re-installed from scratch so that I could use Ubuntu full disk encryption. All the hardware and OS remains the same from when it was working prior to re-install.

I have a second monitor connected directly to HDMI which works fine.

I have a third monitor which connects via DVI to a Lenovo ThinkPad Pro USB 3.0 Dock (keyboard, ethernet and mouse also go through the dock). The monitor is not enabled following boot (doesn't show up in xrandr). The only way to have the monitor show up is to disconnect the dock USB, and then reboot, and then connect the dock USB. After about 5 seconds, then the monitor appears correctly.

If the laptop is booted whilst the dock is connected via USB, it is seemingly not possible to have the monitor detected (have tried xrandr --auto, disconnecting / reconnecting the USB etc). It seems the only solution is to shutdown, disconnect, reboot and then plug in again.

Any ideas as to how I can have the monitor display without having to plug the dock USB in after boot?

Spec

  • Lenovo ThinkPad T470
  • Lenovo Pro Dock USB 3.0
  • Ubuntu 18.04.1
  • Linux 4.15.0-43-generic
  • 1 Samsung SyncMaster 2233 22" monitor (connected to Dock)
  • 1 Samsung S22C300 (connected to laptop via HDMI)

Logs

@AdnanHodzic
Copy link
Owner

Most welcome.

What's the output of sudo ./displaylink-debian.sh --debug?

@matthewhegarty
Copy link
Author

matthewhegarty commented Dec 30, 2018

Hi Adnan
Thanks for swift response. I tried to uninstall / reinstall using displaylink-debian.sh and got the following:
(note it will install ok if I skip the --debug flag)

$ sudo ./displaylink-debian.sh 

--------------------------- displaylink-debian -------------------------------

DisplayLink driver installer for Debian and Ubuntu based Linux distributions:

* Debian, Ubuntu, Elementary OS, Mint, Kali, Deepin and many more!
* Full list of all supported platforms: http://bit.ly/2zrwz2u

Options:

[I]nstall
[U]ninstall
[R]e-install
[Q]uit

Select a key: [i/u/r/q]: u

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

Checking dependencies

unzip is installed
linux-headers-4.15.0-43-generic is installed
dkms is installed
lsb-release is installed
linux-source is installed

Platform requirements satisfied, proceeding ...

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

Uninstalling ...

Removing evdi module
rmmod: ERROR: Module evdi is in use
Removing disabled PageFlip for modesetting

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

Performing clean-up

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

Uninstall complete

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

$ sudo ./displaylink-debian.sh --debug

Wrong key, aborting ...

@AdnanHodzic
Copy link
Owner

AdnanHodzic commented Dec 31, 2018

Ok, so I just implemented feature which will resolve your uninstall problem, this was originally mentioned in: issue 178

Regarding debug option not working, it's because you're running old code, I had this feature implemented just a couple of days ago. Reason I know this is because under options you listed there's no mention of [D]ebug and in latest version it's there, i.e:

[I]nstall
[D]ebug
[R]e-install
[U]ninstall
[Q]uit

Regardless, with all this said do the following:

  • In displaylink-debian dir, run git pull to get latest code
  • Run uninstall: sudo ./displaylink-debian.sh --uninstall
  • Reboot
  • Install again sudo ./displaylink-debian.sh --install
  • Reboot
  • If problem still exists, paste the output of sudo ./displaylink-debian.sh --debug command

@matthewhegarty
Copy link
Author

Thanks for the response. I followed the steps above but unfortunately I still get the same problem. I guess I will update the kernel to the latest 4.15 release to see if that helps.

@AdnanHodzic
Copy link
Owner

AdnanHodzic commented Dec 31, 2018

It's not your kernel version, I think it's your Xorg config, what if you replaced this:

Section "Device"
    Identifier  "Intel"
    Driver      "intel"
EndSection

with this:

Section "Device"
    Identifier  "DisplayLink"
    Driver      "modesetting"
    Option      "PageFlip" "false"
EndSection

in your /etc/X11/xorg.conf.d/20-displaylink.conf and logout/login or just reboot to apply the changes?

@matthewhegarty
Copy link
Author

Yes - that has fixed it!
Many thanks for your input.
(closing issue)

@AdnanHodzic
Copy link
Owner

Most welcome, I've just pushed changes so from now on this change will be automatically made when your type of graphic cards is detected.

@matthewhegarty matthewhegarty reopened this Jan 4, 2019
@matthewhegarty
Copy link
Author

matthewhegarty commented Jan 4, 2019

One thing I notice is that the DVI connected monitor has an annoying 'mouse flicker' issue, where the mouse pointer flickers very rapidly when using the monitor. I didn't notice it before my system upgrade so I think it is since I re-installed.

I notice there are similar issues reported. I can open a separate issue if you like?

$ cat /etc/X11/xorg.conf.d/20-displaylink.conf
Section "Device"
    Identifier  "DisplayLink"
    Driver      "modesetting"
    Option      "PageFlip" "false"
EndSection
$ lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
$ lspci -nnk | grep -i vga -A3 | grep 'in use'|cut -d":" -f2|sed 's/ //g'
i915
$ lspci -nnk | grep -i vga -A3|grep Subsystem|cut -d" " -f5
620

@AdnanHodzic
Copy link
Owner

Let's move this issue to: #126

Just re-open it, feel free to copy paste problem you described here and include output of sudo ./displaylink-debian.sh --debug command.

@matthewhegarty
Copy link
Author

matthewhegarty commented Jan 8, 2019

I was able to solve the 'mouse flicker issue' by following the instructions described here. See also this thread.

@AdnanHodzic
Copy link
Owner

@matthewhegarty great thanks I've added this to Troubleshooting most common issues

@dkebler
Copy link

dkebler commented Apr 2, 2019

I too was having mouse trails and other refresh problems and had to manually make this change. If you install @AdnanHodzic's driver without any displaylink hardware attached and then like me later get some displaylink hardware this conf file has already been created with your onboard device. So I suppose per @AdnanHodzic if you do have the hardware (and connected) and then build/load this driver it should make this change for you. Either way seems necessary for stable refresh.

It's not your kernel version, I think it's your Xorg config, what if you replaced this:

Section "Device"
    Identifier  "Intel"
    Driver      "intel"
EndSection

with this:

Section "Device"
    Identifier  "DisplayLink"
    Driver      "modesetting"
    Option      "PageFlip" "false"
EndSection

in your /etc/X11/xorg.conf.d/20-displaylink.conf and logout/login or just reboot to apply the changes?

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

3 participants