PDA

View Full Version : AOC E1659Fwu not working with Ubuntu 16.04.01 LTS


sblabs
10-26-2016, 07:36 AM
Hello,

I just bought an AOC E1659Fwu 15.6" monitor and am trying to get it to work with Ubuntu 16.04.01 LTS.

I am using a Lenovo G580 with a 2.4GHz Intel Processor and 3GB RAM. I have a 64bit Ubuntu 16.04.01 LTS installed on it. The computer has two USB 3.0 ports.

I installed DisplayLink Driver displaylink-driver-1.2.65 (later I un-installed this version, restarted and installed displaylink-driver-1.0.335. No success.)

When I plug the monitor in , the AOC logo comes up and then the monitor goes black. I have tried using both USB dongles connected to 2 USB 3.0 ports.

Is there anything I can do to make this work?

Also when I try this monitor in WIndows 10, the extended desktop shows up, however the auto-pivot function doesn't work. So the monitor works except for Ubuntu or and doesn't do auto-pivot in WIndows 10.

Is there anything I can do to fix these problems?

Thanks in Advance

AcT0
11-07-2016, 03:45 AM
I have the same monitor, exact same operating system (ubuntu 16.04.1)/displaylink driver, with a very similar issue. A frozen state of my main screen shows up on the monitor for 5 seconds, before the screen goes black again for another 5 seconds. This repeats around 10 times before the monitor goes black completely.

[ 534.926622] traps: SourceEngine_00[7012] general protection ip:4d57f4 sp:7f3a4fffe6b0 error:0 in DisplayLinkManager[400000+66d000]
[ 535.113135] evdi: [D] evdi_painter_disconnect:499 (dev=1) Disconnected from ffff88025279dc00
[ 535.113139] evdi: [D] evdi_detect:72 Painter is disconnected
[ 535.115275] evdi: [D] evdi_detect:72 Painter is disconnected
[ 535.116109] evdi: [D] evdi_detect:72 Painter is disconnected
[ 535.120070] evdi: [D] evdi_painter_crtc_state_notify:374 (dev=-1) Notifying crtc state: 3
[ 535.120074] evdi: [W] evdi_painter_send_crtc_state:266 Painter is not connected!
[ 535.151555] evdi: [D] evdi_detect:72 Painter is disconnected
[ 540.341549] evdi: [W] evdi_painter_disconnect:478 (dev=-1) An unknown connection to ffff88008eebde00 tries to close us
[ 540.341551] evdi: [W] evdi_painter_disconnect:479 - ignoring
[ 540.599844] evdi: [D] evdi_painter_connect:448 (dev=-1) Connected with (null)
[ 540.599848] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[ 540.599912] evdi: [D] evdi_painter_crtc_state_notify:374 (dev=1) Notifying crtc state: 3
[ 540.601162] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[ 540.601168] evdi: [D] evdi_painter_get_edid_copy:192 (dev=1) 00 ff ff
[ 540.602344] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[ 540.602348] evdi: [D] evdi_painter_get_edid_copy:192 (dev=1) 00 ff ff
[ 540.606063] evdi: [D] evdi_painter_mode_changed_notify:391 (dev=1) Notifying mode changed: 1366x768@60; bpp 32;
[ 540.606067] evdi: [D] evdi_painter_mode_changed_notify:392 pixel format 875713112
[ 540.606075] evdi: [D] evdi_painter_crtc_state_notify:374 (dev=1) Notifying crtc state: 0
[ 540.606079] evdi: [D] evdi_painter_dpms_notify:361 (dev=1) Notifying dpms mode: 0
[ 540.642616] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[ 540.642624] evdi: [D] evdi_painter_get_edid_copy:192 (dev=1) 00 ff ff
[ 540.659866] traps: SourceEngine_00[7068] general protection ip:4d57f4 sp:7f8347ffe6b0 error:0 in DisplayLinkManager[400000+66d000]
[ 540.860088] evdi: [D] evdi_painter_disconnect:499 (dev=1) Disconnected from ffff880239019a00
[ 540.860092] evdi: [D] evdi_detect:72 Painter is disconnected
[ 540.862366] evdi: [D] evdi_detect:72 Painter is disconnected
[ 540.863745] evdi: [D] evdi_detect:72 Painter is disconnected
[ 540.868431] evdi: [D] evdi_painter_crtc_state_notify:374 (dev=-1) Notifying crtc state: 3
[ 540.868435] evdi: [W] evdi_painter_send_crtc_state:266 Painter is not connected!
[ 540.894202] evdi: [D] evdi_detect:72 Painter is disconnected
[ 546.089688] evdi: [W] evdi_painter_disconnect:478 (dev=-1) An unknown connection to ffff880234a39c00 tries to close us
[ 546.089690] evdi: [W] evdi_painter_disconnect:479 - ignoring
[ 884.486283] perf interrupt took too long (2511 > 2500), lowering kernel.perf_event_max_sample_rate to 50000


Very annoying after spending countless hours trying to debug this. Luckily I ordered on Amazon prime, and I'm likely going to return this and get my money back.

mlukaszek
11-07-2016, 01:37 PM
Would you be able to check if this still reproduces if you use a powered USB hub?
Issues like this might be caused by not enough power available from the USB port.

Cheers,
Michal

sblabs
01-04-2017, 02:34 AM
Hello,

I plugged in the AOC monitor into the USB 3.0, then the 2nd USB into a powered USB giving 5V at 2A.

The screen briefly flashes AOC - then goes to black.

Any suggestions? PLEASE HELP!

Thanks!

mlukaszek
01-04-2017, 11:22 AM
Hi,

I believe there are two issues here, stacked onto each other.

First is a problem with latest Linux release and 1366x768 resolution - mentioned here: http://displaylink.org/forum/showthread.php?t=65022 - you could try an earlier 1.1.x release, which should still work on 16.04 kernels (if not - compile the latest evdi sources from github manually, and use the rest of components from 1.1.x release as-is).
The other could still be, not enough power delivered.

I have tried this internally - took a build without the 1366x768 problem, and connected the screen through a powered hub with a short good quality cable and it works - see attached photo.

Regards,
Michal

pev
01-30-2017, 12:33 PM
Hi Michal,

I wanted to follow up this thread as I also have an HP ZBook 17 G3 thats running Ubuntu 16.04 with kernel 4.4.0-59 and an AOC E1659Fwu which has this same problem with driver 1.2.65 (using a built-in USB3 port directly).

As per your suggestion I've rolled back the driver to v1.1.62 and it seems to be working now.

However, in the background, there is a fair amount of evdi not being happy in the background. Not sure if you're bothered to debug this being an old driver but happy to assist in debugging from my end if you like as I'm a driver developer (although no experience of the displaylink modules directly) :

Jan 30 12:24:57 zed kernel: [ 9.262569] evdi: [D] add_store:195 Increasing device count to 1
Jan 30 12:24:57 zed kernel: [ 9.262861] evdi: [D] evdi_crtc_init:304 drm_crtc_init: 0
Jan 30 12:24:57 zed kernel: [ 9.263358] evdi: [W] evdi_painter_crtc_state_notify:362 Painter does not exist!
Jan 30 12:24:57 zed kernel: [ 9.263360] evdi: [D] evdi_detect:72 Painter is disconnected
Jan 30 12:24:57 zed kernel: [ 9.263363] evdi evdi.0: No connectors reported connected with modes
Jan 30 12:24:57 zed kernel: [ 9.263365] [drm] Cannot find any crtc or sizes - going 1024x768
Jan 30 12:24:57 zed kernel: [ 9.264413] evdi evdi.0: fb1: evdidrmfb frame buffer device
Jan 30 12:24:57 zed kernel: [ 9.264415] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
Jan 30 12:24:57 zed kernel: [ 9.264416] [drm] No driver support for vblank timestamp query.
Jan 30 12:24:57 zed kernel: [ 9.264418] [drm] evdi: evdi_stats_init
Jan 30 12:24:57 zed kernel: [ 9.264421] [drm] Initialized evdi 1.1.61 20160510 on minor 1
Jan 30 12:24:57 zed kernel: [ 9.264596] evdi: [W] evdi_painter_disconnect:462 (dev=0) An unknown connection to ffff8804a52f6600 tries to close us
Jan 30 12:24:57 zed kernel: [ 9.264597] evdi: [W] evdi_painter_disconnect:463 - ignoring
Jan 30 12:24:57 zed kernel: [ 9.264784] evdi: [W] evdi_painter_disconnect:462 (dev=0) An unknown connection to ffff8804a52f6600 tries to close us
Jan 30 12:24:57 zed kernel: [ 9.264785] evdi: [W] evdi_painter_disconnect:463 - ignoring
Jan 30 12:24:57 zed kernel: [ 9.264813] ------------[ cut here ]------------
Jan 30 12:24:57 zed kernel: [ 9.264819] WARNING: CPU: 3 PID: 1359 at include/drm/drm_gem.h:146 evdi_dumb_create+0xdd/0xf0 [evdi]()
Jan 30 12:24:57 zed kernel: [ 9.264820] Modules linked in: xt_multiport iptable_filter ip_tables x_tables evdi(OE) bnep snd_hda_codec_conexant snd_hda_codec_generic pl2303 usbserial binfmt_misc arc4 hp_wmi sparse_keymap nls_iso8859_1 uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 peak_usb videobuf2_core can_dev v4l2_common videodev media btusb btrtl btbcm btintel bluetooth intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm iwlmvm irqbypass mac80211 snd_hda_intel crct10dif_pclmul crc32_pclmul snd_hda_codec ghash_clmulni_intel snd_hda_core snd_hwdep aesni_intel snd_pcm aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd snd_seq_midi snd_seq_midi_event snd_rawmidi iwlwifi snd_seq joydev input_leds snd_seq_device serio_raw snd_timer cfg80211 snd rtsx_pci_ms memstick soundcore mei_me mei shpchp hp_accel lis3lv02d input_polldev acpi_pad hp_wireless tpm_infineon mac_hid hid_generic usbhid hid nfsd auth_rpcgss nfs_acl lockd cuse grace parport_pc sunrpc ppdev lp parport autofs4 rtsx_pci_sdmmc nouveau i915_bpo mxm_wmi intel_ips ttm e1000e i2c_algo_bit psmouse drm_kms_helper ptp syscopyarea pps_core sysfillrect sysimgblt fb_sys_fops rtsx_pci ahci drm nvme libahci wmi video fjes
Jan 30 12:24:57 zed kernel: [ 9.264874] CPU: 3 PID: 1359 Comm: Xorg Tainted: G OE 4.4.0-59-generic #80-Ubuntu
Jan 30 12:24:57 zed kernel: [ 9.264875] Hardware name: HP HP ZBook 17 G3/80D6, BIOS N81 Ver. 01.12 11/01/2016
Jan 30 12:24:57 zed kernel: [ 9.264877] 0000000000000286 00000000bb32cce5 ffff8804a7f3bd10 ffffffff813f7583
Jan 30 12:24:57 zed kernel: [ 9.264879] 0000000000000000 ffffffffc08cabf1 ffff8804a7f3bd48 ffffffff810812d2
Jan 30 12:24:57 zed kernel: [ 9.264881] 0000000000000000 ffff8804a7f3bde8 ffff8804a52e1d00 0000000000000072
Jan 30 12:24:57 zed kernel: [ 9.264883] Call Trace:
Jan 30 12:24:57 zed kernel: [ 9.264887] [<ffffffff813f7583>] dump_stack+0x63/0x90
Jan 30 12:24:57 zed kernel: [ 9.264890] [<ffffffff810812d2>] warn_slowpath_common+0x82/0xc0
Jan 30 12:24:57 zed kernel: [ 9.264892] [<ffffffff8108141a>] warn_slowpath_null+0x1a/0x20
Jan 30 12:24:57 zed kernel: [ 9.264895] [<ffffffffc08c78bd>] evdi_dumb_create+0xdd/0xf0 [evdi]
Jan 30 12:24:57 zed kernel: [ 9.264910] [<ffffffffc0061c38>] drm_mode_create_dumb_ioctl+0xa8/0xc0 [drm]
Jan 30 12:24:57 zed kernel: [ 9.264918] [<ffffffffc0051752>] drm_ioctl+0x152/0x540 [drm]
Jan 30 12:24:57 zed kernel: [ 9.264928] [<ffffffffc0061b90>] ? drm_mode_page_flip_ioctl+0x380/0x380 [drm]
Jan 30 12:24:57 zed kernel: [ 9.264931] [<ffffffff8122cf93>] ? __fd_install+0x33/0xe0
Jan 30 12:24:57 zed kernel: [ 9.264933] [<ffffffff8122272f>] do_vfs_ioctl+0x29f/0x490
Jan 30 12:24:57 zed kernel: [ 9.264936] [<ffffffff8121e464>] ? putname+0x54/0x60
Jan 30 12:24:57 zed kernel: [ 9.264938] [<ffffffff8120da9f>] ? do_sys_open+0x1bf/0x2a0
Jan 30 12:24:57 zed kernel: [ 9.264940] [<ffffffff81222999>] SyS_ioctl+0x79/0x90
Jan 30 12:24:57 zed kernel: [ 9.264943] [<ffffffff818384f2>] entry_SYSCALL_64_fastpath+0x16/0x71
Jan 30 12:24:57 zed kernel: [ 9.264944] ---[ end trace ce9740cb756478fb ]---
Jan 30 12:24:57 zed wpa_supplicant[1482]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (none) none
Jan 30 12:24:57 zed wpa_supplicant[1482]: dbus: Failed to construct signal
Jan 30 12:24:57 zed wpa_supplicant[1482]: Could not read interface p2p-dev-wlp3s0 flags: No such device
Jan 30 12:24:57 zed NetworkManager[1080]: <info> [1485779097.4748] device (wlp3s0): supplicant interface state: starting -> ready
Jan 30 12:24:57 zed NetworkManager[1080]: <info> [1485779097.4749] device (wlp3s0): state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42]
Jan 30 12:24:57 zed kernel: [ 9.337110] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
Jan 30 12:24:57 zed kernel: [ 9.412687] evdi: [D] evdi_detect:72 Painter is disconnected
Jan 30 12:24:57 zed kernel: [ 9.412720] evdi: [D] evdi_detect:72 Painter is disconnected
Jan 30 12:24:57 zed kernel: [ 9.415506] ------------[ cut here ]------------
Jan 30 12:24:57 zed kernel: [ 9.415512] WARNING: CPU: 1 PID: 1359 at include/drm/drm_gem.h:146 evdi_dumb_create+0xdd/0xf0 [evdi]()
Jan 30 12:24:57 zed kernel: [ 9.415513] Modules linked in: xt_multiport iptable_filter ip_tables x_tables evdi(OE) bnep snd_hda_codec_conexant snd_hda_codec_generic pl2303 usbserial binfmt_misc arc4 hp_wmi sparse_keymap nls_iso8859_1 uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 peak_usb videobuf2_core can_dev v4l2_common videodev media btusb btrtl btbcm btintel bluetooth intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm iwlmvm irqbypass mac80211 snd_hda_intel crct10dif_pclmul crc32_pclmul snd_hda_codec ghash_clmulni_intel snd_hda_core snd_hwdep aesni_intel snd_pcm aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd snd_seq_midi snd_seq_midi_event snd_rawmidi iwlwifi snd_seq joydev input_leds snd_seq_device serio_raw snd_timer cfg80211 snd rtsx_pci_ms memstick soundcore mei_me mei shpchp hp_accel lis3lv02d input_polldev acpi_pad hp_wireless tpm_infineon mac_hid hid_generic usbhid hid nfsd auth_rpcgss nfs_acl lockd cuse grace parport_pc sunrpc ppdev lp parport autofs4 rtsx_pci_sdmmc nouveau i915_bpo mxm_wmi intel_ips ttm e1000e i2c_algo_bit psmouse drm_kms_helper ptp syscopyarea pps_core sysfillrect sysimgblt fb_sys_fops rtsx_pci ahci drm nvme libahci wmi video fjes
Jan 30 12:24:57 zed kernel: [ 9.415553] CPU: 1 PID: 1359 Comm: Xorg Tainted: G W OE 4.4.0-59-generic #80-Ubuntu
Jan 30 12:24:57 zed kernel: [ 9.415554] Hardware name: HP HP ZBook 17 G3/80D6, BIOS N81 Ver. 01.12 11/01/2016
Jan 30 12:24:57 zed kernel: [ 9.415555] 0000000000000286 00000000bb32cce5 ffff8804a7f3bd10 ffffffff813f7583
Jan 30 12:24:57 zed kernel: [ 9.415557] 0000000000000000 ffffffffc08cabf1 ffff8804a7f3bd48 ffffffff810812d2
Jan 30 12:24:57 zed kernel: [ 9.415558] 0000000000000000 ffff8804a7f3bde8 ffff8804ab7fd200 0000000000000072
Jan 30 12:24:57 zed kernel: [ 9.415559] Call Trace:
Jan 30 12:24:57 zed kernel: [ 9.415562] [<ffffffff813f7583>] dump_stack+0x63/0x90
Jan 30 12:24:57 zed kernel: [ 9.415565] [<ffffffff810812d2>] warn_slowpath_common+0x82/0xc0
Jan 30 12:24:57 zed kernel: [ 9.415566] [<ffffffff8108141a>] warn_slowpath_null+0x1a/0x20
Jan 30 12:24:57 zed kernel: [ 9.415568] [<ffffffffc08c78bd>] evdi_dumb_create+0xdd/0xf0 [evdi]
Jan 30 12:24:57 zed kernel: [ 9.415579] [<ffffffffc0061c38>] drm_mode_create_dumb_ioctl+0xa8/0xc0 [drm]
Jan 30 12:24:57 zed kernel: [ 9.415584] [<ffffffffc0051752>] drm_ioctl+0x152/0x540 [drm]
Jan 30 12:24:57 zed kernel: [ 9.415592] [<ffffffffc0061b90>] ? drm_mode_page_flip_ioctl+0x380/0x380 [drm]
Jan 30 12:24:57 zed kernel: [ 9.415594] [<ffffffff8122272f>] do_vfs_ioctl+0x29f/0x490
Jan 30 12:24:57 zed kernel: [ 9.415595] [<ffffffff81210fb1>] ? __sb_end_write+0x21/0x30
Jan 30 12:24:57 zed kernel: [ 9.415597] [<ffffffff8120ebbd>] ? vfs_write+0x15d/0x1a0
Jan 30 12:24:57 zed kernel: [ 9.415598] [<ffffffff81222999>] SyS_ioctl+0x79/0x90
Jan 30 12:24:57 zed kernel: [ 9.415601] [<ffffffff818384f2>] entry_SYSCALL_64_fastpath+0x16/0x71
Jan 30 12:24:57 zed kernel: [ 9.415601] ---[ end trace ce9740cb756478fc ]---
Jan 30 12:24:57 zed kernel: [ 9.415603] ------------[ cut here ]------------

(etc.)

mlukaszek
01-30-2017, 02:51 PM
This looks like something we've already fixed.
https://github.com/DisplayLink/evdi/issues/28

Thanks,
Michal

pev
02-13-2017, 09:04 PM
This looks like something we've already fixed.
https://github.com/DisplayLink/evdi/issues/28


Thanks for that ; should I be then using the older version of the released driver with a newer evdi module via github? Is there a formal process for installing both so they play nicely together?

Thanks.

mlukaszek
02-14-2017, 09:19 AM
We're releasing a version of the driver which will have this fix in, so please be patient. Expected this week!

Regards,
Michal

pev
02-14-2017, 09:43 AM
We're releasing a version of the driver which will have this fix in, so please be patient. Expected this week!


OK, thanks!

Any chance you're going to set up a PPA too? ;-)

mlukaszek
02-14-2017, 01:57 PM
No, we're do not package releases to .deb/.rpm/other - I think distro maintainers know specifics of their distros better than us...

Cheers,
Michal

pev
02-20-2017, 11:14 AM
Hi Michal,

So, I just installed the new driver (displaylink-driver-1.3.52) to test but this doesn't work at all with this monitor :-/

Looking at syslog I can see it getting detected as a USB device but doesn't appear to do anything after that.

mlukaszek
02-20-2017, 02:29 PM
Please post logs. Also, make sure that you allow the screen to be connected for about a minute before you give up and unplug - there is a different firmware used with the device when you switch driver versions.

Cheers,
Michal

pev
02-20-2017, 03:27 PM
Hi Michal,


Ok, so there seems like several different things going on on my machine - Id been previously using the nvidia X server + intel X server (I need the nvidia one for USBC monitor support) but using the intel server, changed via nvidia-settings, for use with the external monitor on the road as that worked OK with driver 1.1.62.

Now, it seems that if I try to install or uninstall with the intel server in use, the machine locks up completely with no associated information in syslog.

So off the back of that I've rolled everything back to use nouveau temporarily. Now it seems I can reinstall 1.3.52 which I've plugged in and left for a few minutes. It still doesn't work but syslog looks as follows which is a step closer but repeats ad-nauseum :

Feb 20 15:22:16 zed systemd[1]: Started Session c3 of user pev.
Feb 20 15:22:19 zed kernel: [ 40.769570] usb 1-1: new high-speed USB device number 7 using xhci_hcd
Feb 20 15:22:19 zed kernel: [ 40.949372] usb 1-1: New USB device found, idVendor=17e9, idProduct=ff05
Feb 20 15:22:19 zed kernel: [ 40.949374] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb 20 15:22:19 zed kernel: [ 40.949375] usb 1-1: Product: E1659Fwu
Feb 20 15:22:19 zed kernel: [ 40.949376] usb 1-1: Manufacturer: DisplayLink
Feb 20 15:22:19 zed kernel: [ 40.949377] usb 1-1: SerialNumber: GFKE1JA000408
Feb 20 15:22:19 zed mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
Feb 20 15:22:19 zed mtp-probe: bus: 1, device: 7 was not an MTP device
Feb 20 15:22:19 zed gnome-session[2734]: (gnome-software:2893): Gs-WARNING **: failed to call gs_plugin_add_updates_historical on fwupd: failed to start fwupd: Error calling StartServiceByName for org.freedesktop.fwupd: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.freedesktop.fwupd': timed out
Feb 20 15:22:19 zed gnome-session[2734]: (gnome-software:2893): Gs-WARNING **: failed to call gs_plugin_refine on appstream: cannot process file of type text/plain
Feb 20 15:22:20 zed systemd[1]: Starting DisplayLink Manager Service...
Feb 20 15:22:20 zed sh[3454]: modprobe: ERROR: could not insert 'evdi': Invalid argument
Feb 20 15:22:20 zed sh[3454]: Module evdi/1.3.52 already installed on kernel 4.4.0-59-generic/x86_64
Feb 20 15:22:20 zed sh[3454]: modprobe: ERROR: could not insert 'evdi': Invalid argument
Feb 20 15:22:20 zed systemd[1]: dlm.service: Control process exited, code=exited status=1
Feb 20 15:22:20 zed systemd[1]: Failed to start DisplayLink Manager Service.
Feb 20 15:22:20 zed systemd[1]: dlm.service: Unit entered failed state.
Feb 20 15:22:20 zed systemd[1]: dlm.service: Failed with result 'exit-code'.
Feb 20 15:22:20 zed systemd-udevd[3429]: Process '/opt/displaylink/udev.sh /dev usb-001-007-DisplayLink_E1659Fwu_GFKE1JA000408 /dev/bus/usb/001/007' failed with exit code 1.

Feb 20 15:22:25 zed systemd[1]: dlm.service: Service hold-off time over, scheduling restart.
Feb 20 15:22:25 zed systemd[1]: Stopped DisplayLink Manager Service.
Feb 20 15:22:25 zed systemd[1]: Starting DisplayLink Manager Service...
Feb 20 15:22:25 zed sh[3578]: modprobe: ERROR: could not insert 'evdi': Invalid argument
Feb 20 15:22:25 zed sh[3578]: Module evdi/1.3.52 already installed on kernel 4.4.0-59-generic/x86_64
Feb 20 15:22:25 zed sh[3578]: modprobe: ERROR: could not insert 'evdi': Invalid argument
Feb 20 15:22:25 zed systemd[1]: dlm.service: Control process exited, code=exited status=1
Feb 20 15:22:25 zed systemd[1]: Failed to start DisplayLink Manager Service.
Feb 20 15:22:25 zed systemd[1]: dlm.service: Unit entered failed state.
Feb 20 15:22:25 zed systemd[1]: dlm.service: Failed with result 'exit-code'.

mlukaszek
02-20-2017, 03:34 PM
There's a problem with loading evdi module. Might it be out of date in your dkms tree for any reason?
Can you try to rebuild it?

# dkms autoinstall

Cheers,
Michal

pev
02-20-2017, 04:12 PM
I don't think so :

root@zed:~# dkms --verbose autoinstall
root@zed:~# dkms --verbose status
bbswitch, 0.8, 4.4.0-21-generic, x86_64: installed
bbswitch, 0.8, 4.4.0-59-generic, x86_64: installed
evdi, 1.3.52, 4.4.0-21-generic, x86_64: installed
evdi, 1.3.52, 4.4.0-59-generic, x86_64: installed
root@zed:~# uname -r
4.4.0-59-generic

pev
02-20-2017, 04:19 PM
This would indicate a problem however :

root@zed:~# file /lib/modules/4.4.0-59-generic/updates/dkms/evdi.ko
/lib/modules/4.4.0-59-generic/updates/dkms/evdi.ko: empty
root@zed:~# ls -l /lib/modules/4.4.0-59-generic/updates/dkms/evdi.ko
-rw-r--r-- 1 root root 0 Feb 20 15:08 /lib/modules/4.4.0-59-generic/updates/dkms/evdi.ko

root@zed:~# mv /lib/modules/4.4.0-59-generic/updates/dkms/evdi.ko /lib/modules/4.4.0-59-generic/updates/dkms/evdi.ko.empty
root@zed:~# ~pev/Downloads/displaylink-driver-1.3.52.run
Verifying archive integrity... All good.
Uncompressing DisplayLink Linux Driver 1.3.52 100%
DisplayLink Linux Software 1.3.52 install script called: install
Distribution discovered: Ubuntu 16.04.2 LTS
Installing
Configuring EVDI DKMS module
Registering EVDI kernel module with DKMS
Building EVDI kernel module with DKMS
Installing EVDI kernel module to kernel tree
EVDI kernel module built successfully
Installing x64-ubuntu-1604/DisplayLinkManager
Installing libraries
Installing firmware packages
Installing license file
Adding udev rule for DisplayLink DL-3xxx/5xxx devices
root@zed:~# find /lib/modules/$(uname -r) | grep evdi
/lib/modules/4.4.0-59-generic/updates/dkms/evdi.ko.empty

pev
02-20-2017, 04:25 PM
Trying manually :

root@zed:~/displaylink-1.3.52# dkms build evdi/1.3.52

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....(bad exit status: 2)
make KERNELRELEASE=4.4.0-59-generic all INCLUDEDIR=/lib/modules/4.4.0-59-generic/build/include KVERSION=4.4.0-59-generic DKMS_BUILD=1.....
cleaning build area....(bad exit status: 2)

DKMS: build completed.
root@zed:~/displaylink-1.3.52# echo $?
0

pev
02-20-2017, 04:47 PM
Finally - it looks like dkms doesnt set KERNELRELEASE for make and for whatever reason this doesn't get picked up on by displaylink-installer.sh.

root@zed:/usr/src# dkms remove evdi/1.3.52 --all

-------- Uninstall Beginning --------
Module: evdi
Version: 1.3.52
Kernel: 4.4.0-59-generic (x86_64)
-------------------------------------

Status: This module version was INACTIVE for this kernel.
depmod....

DKMS: uninstall completed.

------------------------------
Deleting module version: 1.3.52
completely from the DKMS tree.
------------------------------
Done.
root@zed:/usr/src# dkms --verbose build evdi/1.3.52

Creating symlink /var/lib/dkms/evdi/1.3.52/source ->
/usr/src/evdi-1.3.52

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
make clean DKMS_BUILD=1
/lib/modules//build
make KBUILD_VERBOSE=1 SUBDIRS=/var/lib/dkms/evdi/1.3.52/build SRCROOT=/var/lib/dkms/evdi/1.3.52/build -C /lib/modules//build clean
make[1]: *** /lib/modules//build: No such file or directory. Stop.
Makefile:25: recipe for target 'clean' failed
make: *** [clean] Error 2
(bad exit status: 2)
{ make KERNELRELEASE=4.4.0-59-generic all INCLUDEDIR=/lib/modules/4.4.0-59-generic/build/include KVERSION=4.4.0-59-generic DKMS_BUILD=1; } >> /var/lib/dkms/evdi/1.3.52/build/make.log 2>&1

make clean DKMS_BUILD=1
/lib/modules//build
make KBUILD_VERBOSE=1 SUBDIRS=/var/lib/dkms/evdi/1.3.52/build SRCROOT=/var/lib/dkms/evdi/1.3.52/build -C /lib/modules//build clean
make[1]: *** /lib/modules//build: No such file or directory. Stop.
Makefile:25: recipe for target 'clean' failed
make: *** [clean] Error 2
(bad exit status: 2)

DKMS: build completed.
root@zed:/usr/src# echo $?
0

pev
02-20-2017, 05:02 PM
Changing the head of /usr/src/evdi-1.3.52/Makefile to the following fixes the dmks build :

ifneq ($(DKMS_BUILD),)

# DKMS

ifeq ($(KERNELRELEASE),)
KERNELRELEASE := $(shell uname -r)
endif



After that I can load up the module and the monitor starts working. Anecdotally it feels a lot less laggy than 1.1.65. However If I move the monitor arrangement from default I get the same old problem where it's not re-drawing the screen properly...