Giter Club home page Giter Club logo

evdi's Introduction

Extensible Virtual Display Interface

Build Status

The Extensible Virtual Display Interface (EVDI) is a Linux® kernel module that enables management of multiple screens, allowing user-space programs to take control over what happens with the image. It is essentially a virtual display you can add, remove and receive screen updates for, in an application that uses the libevdi library.

The project is part of the DisplayLink Ubuntu development which enables support for DisplayLink USB 3.0 devices on Ubuntu. Please note that this is NOT a complete driver for DisplayLink devices. For more information and the full driver package, see DisplayLink Ubuntu driver.

This open-source project includes source code for both the evdi kernel module and a wrapper libevdi library that can be used by applications like DisplayLink's user mode driver to send and receive information from and to the kernel module.

How to use

See libevdi API documentation for details.

EVDI is a driver compatible with a standard Linux DRM subsystem. Due to this, displays can be controlled by standard tools, eg. xrandr or display settings applets in graphical environments eg. Unity, Gnome or KDE.

Minimum supported kernel version required is 4.15. DisplayLink have checked the module compiles and works with Ubuntu variants of kernels up to 5.5. Although other vanilla Linux kernel sources are used for Travis CI job, newer kernels, or kernel variants used by other distributions may require extra development. Please see below to see how you can help.

Future Development

This is a first release. DisplayLink are open to suggestions and feedback on improving the proposed architecture and will gladly review patches or proposals from the developer community. Please find a current list of areas we identify as requiring attention below.

  • Compatibility with distributions other than Ubuntu 18.04/20.04 LTS is not verified. Please let us know if you make it work on other distros - pull requests are welcome!
  • The communication between the EVDI kernel module and the wrapper libevdi library is not access-controlled or authenticated. This could be improved in future releases, making it harder to compromise the data EVDI is sending and receiving.
  • EVDI kernel module driver is currently a platform_driver, for multiple reasons; most importantly because virtual displays are not discoverable, i.e. cannot be enumerated at the hardware level. EVDI is also a generic device, not tied to any particular kind of device, transport layer or a bus.

Licensing

Elements of this project are licensed under various licenses. In particular, the module and library are licensed under GPL v2 and LGPL v2.1 respectively - consult separate LICENSE files in subfolders. Remaining files and subfolders (unless a separate LICENSE file states otherwise) are licensed under MIT license.

More information

For more information, see our support page. Visit displaylink.com to learn more about DisplayLink technology.

© Copyright 2015-2020 DisplayLink (UK) Ltd.

Linux is a registered trademark of Linus Torvalds in the U.S. and other countries.

evdi's People

Contributors

ajbogh avatar akmistry avatar bobbeckett avatar cdonatom avatar christianpasin avatar crashdummyy avatar daxtens avatar displaylink-dkurek avatar displaylink-emajewsk avatar displaylink-mlukaszek avatar dzfranklin avatar elguero avatar fmjal avatar hadess avatar jakub-prussak-synaptics avatar jkramarz avatar joren485 avatar marcushall42 avatar mateusduboli avatar mrtsjolder avatar pioto1225 avatar piso77 avatar r-d-t avatar raldone01 avatar refi64 avatar sbluhm avatar sickcodes avatar synaptics-lspintzyk avatar thedrow avatar tom-ton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

evdi's Issues

Evdi on debian jessie

Hi guys,
i have a aoc usb display with Bus 002 Device 004: ID 17e9:ff0d DisplayLink
I use the ubuntu driver from displaylink.com and not working
This is result of the kernel message

[drm] evdi: evdi_stats_init
Mar[drm] Initialized evdi 1.0.68 19700101 on minor 0
Mar[W] evdi_painter_disconnect (dev=0) An unknown connection to ffff8800a1e6a600 tries to close us - ignoring
Mar[W] evdi_painter_disconnect (dev=0) An unknown connection to ffff8800a1e6a600 tries to close us - ignoring
Mar[D] evdi_detect Painter is disconnected
Mar[D] evdi_detect Painter is disconnected
Mar[D] evdi_detect Painter is disconnected
Mar[D] evdi_detect Painter is disconnected
Mar[D] evdi_painter_crtc_state_notify (dev=0) Notifying crtc state: 0
Mar[D] evdi_painter_crtc_state_notify (dev=0) Notifying crtc state: 0
Mar[W] evdi_painter_disconnect (dev=0) An unknown connection to ffff8800b5e3a000 tries to close us - ignoring
Mar[D] evdi_painter_connect (dev=0) Connected with ffff8800b5e3a000
Mar[D] evdi_painter_connect (dev=0) Edid (3 bytes): 94 c4 00
Mar[D] evdi_detect (dev=0) Painter is connected
Mar[D] evdi_detect (dev=0) Painter is connected
Mar[D] evdi_painter_get_edid (dev=0) 94 c4 00
MarRaw EDID:
Mar 94 c4 00 ef dd 7f 00 00 94 c4 00 ef 00 00 00 00
Mar 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Mar 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Mar 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Mar 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Mar 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Mar 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Mar 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
evdevdi.0: DVI-I-1: EDID invalid.

Can you help me?

Best regards Alberto

compile error with kernel 4.4.0-31

Hello

This morning ubuntu 16.04 upgrade the kernel to 4.4.0.31 . Displaylink does not start
and evdi doesn't compile

`make

CFLAGS="-Werror -Wextra -Wall" make -C module
make[1] : on entre dans le répertoire « /home/defert/Dev/evdi/evdi/module »
make -C /lib/modules/4.4.0-31-generic/build M=$PWD
make[2] : on entre dans le répertoire « /usr/src/linux-headers-4.4.0-31-generic »
LD /home/defert/Dev/evdi/evdi/module/built-in.o
CC [M] /home/defert/Dev/evdi/evdi/module/evdi_drv.o
CC [M] /home/defert/Dev/evdi/evdi/module/evdi_modeset.o
/home/defert/Dev/evdi/evdi/module/evdi_modeset.c:345:15: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.fb_create = evdi_fb_user_fb_create,
^
/home/defert/Dev/evdi/evdi/module/evdi_modeset.c:345:15: note: (near initialization for ‘evdi_mode_funcs.fb_create’)
cc1: all warnings being treated as errors
scripts/Makefile.build:258 : la recette pour la cible « /home/defert/Dev/evdi/evdi/module/evdi_modeset.o » a échouée
make[3]: *** [/home/defert/Dev/evdi/evdi/module/evdi_modeset.o] Erreur 1
Makefile:1403 : la recette pour la cible « module/home/defert/Dev/evdi/evdi/module » a échouée
make[2]: *** [module/home/defert/Dev/evdi/evdi/module] Erreur 2
make[2] : on quitte le répertoire « /usr/src/linux-headers-4.4.0-31-generic »
Makefile:55 : la recette pour la cible « module » a échouée
make[1]: *** [module] Erreur 2
make[1] : on quitte le répertoire « /home/defert/Dev/evdi/evdi/module »
Makefile:8 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2
`

Fedora 24 - works after updating drm API calls

After updating Fedora 24, the kernel is 4.6.3-300.fc24.x86_64
Tried to install displaylink-1.0.335-1.x86_64.rpm but evdi kernel module would not load. Made a few source code mods to get it to build. Now installed and looks ok.

evdi_fb.c :
dma_buf_begin_cpu_access() and dma_buf_end_cpu_access() have only 2 args (*dma_buf and dir) instead of the 4 parameters used in evdi_fb.c. The API calls will succeed with only these two args so the 2nd and 3rd parameters in each call can be dropped.

Change parameter list:
static int
evdi_framebuffer_init(struct drm_device *dev,
struct evdi_framebuffer *ufb,
struct drm_mode_fb_cmd2 *mode_cmd,
struct evdi_gem_object *obj)
to

static int
evdi_framebuffer_init(struct drm_device *dev,
struct evdi_framebuffer *ufb,
const struct drm_mode_fb_cmd2 *mode_cmd,
struct evdi_gem_object *obj)

then install the driver using the drmk

(module may already be registered if you tried to install the RPM)
dkms add -m evdi -v 1.0.335
dkms build -m evdi -v 1.0.335
dkms install -m evdi -v 1.0.335

You should now be able to start the displaylink service. When it is enabled, it should autostart when you plug in the display. This works with the ASUS MB169 display.

Arm Ubuntu support

Hi, I am wondering if there will be release for ubuntu arm support in near future? I am planning to use Asus MB 169B+ with Nvidia Jetson TX1 development board, which will run Ubuntu 14.04 for arm.

Painter reconnection every 10 seconds, causing a 1 sec freeze

On my external connected monitor via
(a) - dockingstation D3100
(b) - pluggable thunderbolt3-to-hdmi-connector
I get a ca 1 second long freeze every 10 seconds.

In my journal, everytime the lag occurs, I get these Lines:

Nov 10 13:16:20 XPS kernel: evdi: [D] evdi_detect:69 (dev=1) Painter is connected
Nov 10 13:16:20 XPS kernel: evdi: [D] evdi_painter_get_edid_copy:192 (dev=1) 00 ff ff

What could cause these freezes?
How can I remove them?

Extreme lagging on DisplayLink screens

I managed to get the driver working on my Fedora 23 (KDE/Plasma 5) machine (granted an unsupported configuration). However the attached screens are basically unusable because of a repaint delay between 1 and 2 seconds. Interestingly the results vary depending on the application, i.e. Google Chrome is completely unusable while I can bear using Firefox on the displaylink screens. Additionally I experience a flickering cursor on my laptop screen (display link screen is fine). Any pointers?

displaylink-driver fails to understand kernel version correctly

I'm not sure whether this is the right forum to report this, but when I tried to install the displaylink-driver (as per this guide: http://support.displaylink.com/knowledgebase/articles/615714#ubuntu) I'm getting a script error saying that my kernel is too old (even though it's a rather new one). Script output:

Verifying archive integrity... All good.
Uncompressing DisplayLink Linux Driver 1.0.68 100%
DisplayLink Linux Software 1.0.68 install script called: install
Distribution discovered: Debian GNU/Linux unstable (sid)
Unsatisfied dependencies. Missing component: Kernel version 4.1.0-1-amd64 is too old. At least 3.14 is required.
This is a fatal error, cannot install DisplayLink Linux Software.

It's probably because the script only checks minor versions instead of checking both major and minor, and should be easy to fix.

Missing information in libevdi docs

I started playing around with libevdi but the docs seem incomplete. When I try to add a new device evid_add_device returns 2 whereas the docs state that

Return value: 1 when successful, 0 otherwise.

There is no new cardX within /dev/. Trying to create a new device as non-root leads to the correct zero return value.

As this is the first call libevdi I guess it's no programming error. Nevertheless, the return value 2 should be described in the docs.

USB Displays go black for two seconds

This appears in dmesg

[19298.610958] ------------[ cut here ]------------
[19298.611001] WARNING: CPU: 1 PID: 2859 at /build/linux-SKpZC9/linux-3.19.0/drivers/gpu/drm/i915/intel_display.c:1256 assert_plane.constprop.87+0x7b/0x90 [i915]()
[19298.611004] plane A assertion failure (expected on, current off)
[19298.611006] Modules linked in: ctr ccm evdi(OE) binfmt_misc rfcomm bnep nls_iso8859_1 arc4 hid_multitouch hid_generic iwlmvm mac80211 intel_rapl snd_hda_codec_hdmi iosf_mbi x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel snd_hda_codec_realtek snd_hda_codec_generic kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd snd_soc_rt5640 snd_soc_rl6231 snd_soc_core snd_compress joydev snd_pcm_dmaengine serio_raw snd_usb_audio snd_usbmidi_lib iwlwifi snd_hda_intel snd_hda_controller snd_hda_codec cfg80211 snd_hwdep lpc_ich rtsx_pci_ms memstick snd_pcm snd_seq_midi cdc_mbim qcserial snd_seq_midi_event usb_wwan cdc_wdm usbserial snd_rawmidi cdc_ncm usbnet mii uvcvideo snd_seq videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common
[19298.611051]  snd_seq_device videodev snd_timer media usbhid btusb bluetooth i915 snd drm_kms_helper mei_me drm mei shpchp i2c_algo_bit mac_hid 8250_fintek tpm_infineon soundcore i2c_hid hid dw_dmac dw_dmac_core snd_soc_sst_acpi video 8250_dw i2c_designware_platform i2c_designware_core spi_pxa2xx_platform fujitsu_laptop intel_smartconnect parport_pc ppdev lp parport autofs4 rtsx_pci_sdmmc psmouse ahci libahci e1000e rtsx_pci ptp pps_core sdhci_acpi sdhci
[19298.611088] CPU: 1 PID: 2859 Comm: Xorg Tainted: G        W  OE  3.19.0-26-generic #28-Ubuntu
[19298.611090] Hardware name: FUJITSU LIFEBOOK U904/FJNB27D, BIOS Version 1.08 01/29/2014
[19298.611092]  ffffffffc0674310 ffff88028e56b9c8 ffffffff817c45cf 0000000000000007
[19298.611096]  ffff88028e56ba18 ffff88028e56ba08 ffffffff81076a6a ffff88028e56bfd8
[19298.611100]  0000000000000000 ffff8800d957d000 ffff88028e8ef000 ffff88028e8ef000
[19298.611104] Call Trace:
[19298.611113]  [<ffffffff817c45cf>] dump_stack+0x45/0x57
[19298.611117]  [<ffffffff81076a6a>] warn_slowpath_common+0x8a/0xc0
[19298.611120]  [<ffffffff81076ae6>] warn_slowpath_fmt+0x46/0x50
[19298.611146]  [<ffffffffc060f57b>] assert_plane.constprop.87+0x7b/0x90 [i915]
[19298.611169]  [<ffffffffc06177f1>] hsw_disable_ips+0x41/0x190 [i915]
[19298.611189]  [<ffffffffc0617bb8>] intel_crtc_disable_planes+0x48/0x140 [i915]
[19298.611208]  [<ffffffffc061891f>] haswell_crtc_disable+0x4f/0x3c0 [i915]
[19298.611228]  [<ffffffffc06198b9>] __intel_set_mode+0xa59/0xc80 [i915]
[19298.611250]  [<ffffffffc062048b>] intel_crtc_set_config+0xbfb/0xf70 [i915]
[19298.611270]  [<ffffffffc04fdb36>] drm_mode_set_config_internal+0x66/0x100 [drm]
[19298.611286]  [<ffffffffc05021e3>] drm_mode_setcrtc+0x253/0x5a0 [drm]
[19298.611299]  [<ffffffffc04f2a6f>] drm_ioctl+0x1df/0x680 [drm]
[19298.611305]  [<ffffffff812095f0>] do_vfs_ioctl+0x2e0/0x4e0
[19298.611309]  [<ffffffff811f7545>] ? __sb_end_write+0x35/0x70
[19298.611314]  [<ffffffff811f4fb2>] ? vfs_write+0x1b2/0x1f0
[19298.611318]  [<ffffffff81209871>] SyS_ioctl+0x81/0xa0
[19298.611321]  [<ffffffff81018099>] ? SyS_iopl+0x59/0xb0
[19298.611325]  [<ffffffff817cb70d>] system_call_fastpath+0x16/0x1b
[19298.611328] ---[ end trace 78498b0f46b50a52 ]---

Cursor Glitches on Gnome 3.20 and KDE Plasma

Hi, I've been using evdi and the DisplayLink driver with my StarTech 4K USB 3.0 to HDMI adapter and I am very happy with how it works, except that have noticed that around borders for windows and widgets that the cursor will flicker and trail or will simply disappear. I did some testing as I have both Gnome and Plasma installed on Arch Linux and it happened in both. I also noticed that I was using an older version, so before commenting, I pulled down the current source and built it and installed it but the issue continued. If you would like a video, I can probably put one together.

Thank you

DisplayLinkMana doesn't start, gets terminated with signal SIGABRT

Everytime i try to start or restart the DisplayLink-Service a Core-Dump gets created and the service isn't starting. The errors i could extract out of the dump were:

gdb with thread apply all bt full (I installed the Debug-Files for DisplayLink)
Thread 1 (LWP 6299)
#0 0x00007f4916ed16f5 in ?? ()
No symbol table info available.
#1 0x00007f4916ed32fa in ?? ()
No symbol table info available.
#2 0x0000000000000020 in ?? ()
No symbol table info available.
#3 0x0000000000000000 in ?? ()
No symbol table info available.

I am running Fedora 24, with all required depencies installed.
I am grateful for any help.

Rotation property

Xrandr does not seem to recognize a rotation for displaylinked monitors. Is it possible to add this?

Displaylink on Gentoo causes system freeze unless booting to Windows first.

Hello,

I installed the latest Displaylink 1.2.65 and evdi 1.2.64 on Gentoo linux.
And when I boot with the Displaylink connected or connect it while in X I get a complete system freeze.
But, when I boot Windows 10 first, then reboot back to Gentoo it does work. So it seems to have a issue with the init of the device.
I have Dell Precision 7510 with a USB-C port connection.
I contacted Displaylink support, but they referred to the evdi lib for different Linux brands compatibility.

System info:

Portage 2.3.0 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.3, glibc-2.22-r4, 4.4.21-gentoo x86_64)

System uname: Linux-4.4.21-gentoo-x86_64-Intel-R-_Core-TM-i7-6820HQ_CPU@_2.70GHz-with-gentoo-2.2
KiB Mem: 16312912 total, 4658696 free
KiB Swap: 523260 total, 488924 free
Timestamp of repository gentoo: Fri, 14 Oct 2016 11:30:01 +0000
sh bash 4.3_p48
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash: 4.3_p48::gentoo
dev-java/java-config: 2.2.0-r3::gentoo
dev-lang/perl: 5.22.2::gentoo
dev-lang/python: 2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake: 3.5.2-r1::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.2::gentoo
sys-apps/openrc: 0.21.7::gentoo
sys-apps/sandbox: 2.10-r1::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo
sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils: 2.25.1-r1::gentoo
sys-devel/gcc: 4.9.3::gentoo
sys-devel/gcc-config: 1.7.3::gentoo
sys-devel/libtool: 2.4.6::gentoo
sys-devel/make: 4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc: 2.22-r4::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000

x-portage
location: /usr/local/portage
masters: gentoo
priority: 0

steam-overlay
location: /var/lib/layman/steam-overlay
masters: gentoo
priority: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=broadwell -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=broadwell -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 berkdb bluetooth bluray branding bzip2 cairo cdda cddb cdr cli client colord cracklib crypt cups curl cxx dbus doc dri dts dv dvd dvdr eds emboss emerald encode evo exif fam ffmpeg firefox flac fortran fuse gconf gd gdbm gdm gif gimp git glamor gnome gnome-keyring gnome-online-accounts google gpm gstreamer gtk iconv icu introspection ipv6 jack java javascript joystick jpeg jpeg2k json kerberos latex lcms ldap libnotify libsecret mad mmap mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer multilib nautilus ncurses networkmanager nls nptl nsplugin offensive ogg opengl openmp openssl pam pango pcre pdf png policykit postgres ppds projectm pulseaudio python qt3support qt4 readline samba sdl seccomp session sftp smp spell sse sse2 ssh ssl startup-notification svg systemd tcpd theora tiff toolame tracker truetype twolame udev udisks unicode upnp upnp-av upower usb v4l v4l2 vdpau vim-syntax vimeo visualizer vorbis vte wifi wxwidgets x264 xattr xcb xinerama xml xv xvid yuv4mpeg zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="sse sse2 sse3 sse4_1 sse4_2 ssse3 avx avx2 fma3 mmxext mmx aes popcnt" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev keyboard mouse joystick synaptics wacom void" KERNEL="linux" L10N="en-GB uk en nl de fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en_US nl_NL de_DE fr_FR uk en nl de fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi intel fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Regards,
Harrie

Current Version does not work on Dell D3100

Hi,

the current master does not work with the Dell D3100.

The inital version (first commit) works fine, the current master does not work and spits out the following kernel messages:

[   19.627713] evdi: [D] add_store:193 Increasing device count to 1
[   19.627873] evdi: [D] evdi_crtc_init:305 drm_crtc_init: 0
[   19.628110] evdi: [W] evdi_painter_crtc_state_notify:360 Painter does not exist!
[   19.628113] evdi: [D] evdi_detect:70 Painter is disconnected
[   19.628118] evdi evdi.0: No connectors reported connected with modes
[   19.628121] [drm] Cannot find any crtc or sizes - going 1024x768
[   19.628880] evdi evdi.0: fb2: evdidrmfb frame buffer device
[   19.628883] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   19.628884] [drm] No driver support for vblank timestamp query.
[   19.628886] [drm] evdi: evdi_stats_init
[   19.628889] [drm] Initialized evdi 1.0.463 20160301 on minor 1
[   19.636716] evdi: [W] evdi_painter_disconnect:460 (dev=0) An unknown connection to ffff88046ddcec00 tries to close us
[   19.636718] evdi: [W] evdi_painter_disconnect:461  - ignoring
[   19.636903] evdi: [W] evdi_painter_disconnect:460 (dev=0) An unknown connection to ffff88046ddcec00 tries to close us
[   19.636904] evdi: [W] evdi_painter_disconnect:461  - ignoring
[   19.636929] ------------[ cut here ]------------
[   19.636933] WARNING: CPU: 1 PID: 2395 at include/drm/drm_gem.h:217 evdi_dumb_create+0xc1/0xd0 [evdi]()
[   19.636934] Modules linked in: evdi(O) iwlmvm iwlwifi
[   19.636938] CPU: 1 PID: 2395 Comm: X Tainted: G           O    4.5.0-gentoo #1
[   19.636939] Hardware name: Dell Inc. Inspiron 7559/0H0CC0, BIOS 1.0.3 09/23/2015
[   19.636941]  0000000000000000 ffff88046db87d10 ffffffff816ed678 0000000000000000
[   19.636943]  ffffffffa00694cd ffff88046db87d48 ffffffff81132991 0000000000000000
[   19.636945]  ffff88046db87df0 ffff88046b705800 ffff88046ddcec00 00000000000000b2
[   19.636946] Call Trace:
[   19.636951]  [<ffffffff816ed678>] dump_stack+0x4d/0x65
[   19.636953]  [<ffffffff81132991>] warn_slowpath_common+0x81/0xc0
[   19.636955]  [<ffffffff81132a85>] warn_slowpath_null+0x15/0x20
[   19.636957]  [<ffffffffa0066751>] evdi_dumb_create+0xc1/0xd0 [evdi]
[   19.636960]  [<ffffffff81807911>] drm_mode_create_dumb_ioctl+0xa1/0xb0
[   19.636962]  [<ffffffff817f834d>] drm_ioctl+0x13d/0x560
[   19.636964]  [<ffffffff81807870>] ? drm_mode_page_flip_ioctl+0x370/0x370
[   19.636967]  [<ffffffff8166a2c6>] ? selinux_file_ioctl+0x116/0x1f0
[   19.636970]  [<ffffffff8127ea59>] do_vfs_ioctl+0x89/0x580
[   19.636972]  [<ffffffff816605fe>] ? security_file_ioctl+0x3e/0x60
[   19.636974]  [<ffffffff8127efc4>] SyS_ioctl+0x74/0x80
[   19.636977]  [<ffffffff81f536d7>] entry_SYSCALL_64_fastpath+0x12/0x6a
[   19.636979] ---[ end trace 5b97c553177dd600 ]---
[   19.637029] evdi: [D] evdi_detect:70 Painter is disconnected
[   19.637057] evdi: [D] evdi_detect:70 Painter is disconnected
[   19.638977] ------------[ cut here ]------------
[   19.638982] WARNING: CPU: 3 PID: 2395 at include/drm/drm_gem.h:217 evdi_dumb_create+0xc1/0xd0 [evdi]()
[   19.638983] Modules linked in: evdi(O) iwlmvm iwlwifi
[   19.638987] CPU: 3 PID: 2395 Comm: X Tainted: G        W  O    4.5.0-gentoo #1
[   19.638988] Hardware name: Dell Inc. Inspiron 7559/0H0CC0, BIOS 1.0.3 09/23/2015
[   19.638989]  0000000000000000 ffff88046db87d10 ffffffff816ed678 0000000000000000
[   19.638991]  ffffffffa00694cd ffff88046db87d48 ffffffff81132991 0000000000000000
[   19.638993]  ffff88046db87df0 ffff88046b46e400 ffff88046ddcec00 00000000000000b2
[   19.638995] Call Trace:
[   19.638998]  [<ffffffff816ed678>] dump_stack+0x4d/0x65
[   19.639001]  [<ffffffff81132991>] warn_slowpath_common+0x81/0xc0
[   19.639002]  [<ffffffff81132a85>] warn_slowpath_null+0x15/0x20
[   19.639004]  [<ffffffffa0066751>] evdi_dumb_create+0xc1/0xd0 [evdi]
[   19.639007]  [<ffffffff81807911>] drm_mode_create_dumb_ioctl+0xa1/0xb0
[   19.639008]  [<ffffffff817f834d>] drm_ioctl+0x13d/0x560
[   19.639010]  [<ffffffff81807870>] ? drm_mode_page_flip_ioctl+0x370/0x370
[   19.639013]  [<ffffffff816686d9>] ? __inode_security_revalidate+0x39/0x50
[   19.639015]  [<ffffffff8166a2c6>] ? selinux_file_ioctl+0x116/0x1f0
[   19.639017]  [<ffffffff8127ea59>] do_vfs_ioctl+0x89/0x580
[   19.639020]  [<ffffffff816605fe>] ? security_file_ioctl+0x3e/0x60
[   19.639021]  [<ffffffff8127efc4>] SyS_ioctl+0x74/0x80
[   19.639024]  [<ffffffff81f536d7>] entry_SYSCALL_64_fastpath+0x12/0x6a
[   19.639025] ---[ end trace 5b97c553177dd601 ]---
[   19.639028] ------------[ cut here ]------------
[   19.639031] WARNING: CPU: 3 PID: 2395 at include/drm/drm_gem.h:217 evdi_dumb_create+0xc1/0xd0 [evdi]()
[   19.639031] Modules linked in: evdi(O) iwlmvm iwlwifi
[   19.639034] CPU: 3 PID: 2395 Comm: X Tainted: G        W  O    4.5.0-gentoo #1
[   19.639035] Hardware name: Dell Inc. Inspiron 7559/0H0CC0, BIOS 1.0.3 09/23/2015
[   19.639036]  0000000000000000 ffff88046db87d10 ffffffff816ed678 0000000000000000
[   19.639037]  ffffffffa00694cd ffff88046db87d48 ffffffff81132991 0000000000000000
[   19.639039]  ffff88046db87df0 ffff88046b46f200 ffff88046ddcec00 00000000000000b2
[   19.639041] Call Trace:
[   19.639043]  [<ffffffff816ed678>] dump_stack+0x4d/0x65
[   19.639045]  [<ffffffff81132991>] warn_slowpath_common+0x81/0xc0
[   19.639046]  [<ffffffff81132a85>] warn_slowpath_null+0x15/0x20
[   19.639048]  [<ffffffffa0066751>] evdi_dumb_create+0xc1/0xd0 [evdi]
[   19.639050]  [<ffffffff81807911>] drm_mode_create_dumb_ioctl+0xa1/0xb0
[   19.639051]  [<ffffffff817f834d>] drm_ioctl+0x13d/0x560
[   19.639053]  [<ffffffff81807870>] ? drm_mode_page_flip_ioctl+0x370/0x370
[   19.639055]  [<ffffffff816686d9>] ? __inode_security_revalidate+0x39/0x50
[   19.639057]  [<ffffffff8166a2c6>] ? selinux_file_ioctl+0x116/0x1f0
[   19.639059]  [<ffffffff8127ea59>] do_vfs_ioctl+0x89/0x580
[   19.639061]  [<ffffffff816605fe>] ? security_file_ioctl+0x3e/0x60
[   19.639063]  [<ffffffff8127efc4>] SyS_ioctl+0x74/0x80
[   19.639065]  [<ffffffff81f536d7>] entry_SYSCALL_64_fastpath+0x12/0x6a
[   19.639066] ---[ end trace 5b97c553177dd602 ]---
[   19.639200] evdi: [D] evdi_painter_crtc_state_notify:357 (dev=0) Notifying crtc state: 3
[   19.639202] evdi: [W] evdi_painter_send_crtc_state:253 Painter is not connected!
[   19.639207] evdi: [D] evdi_painter_crtc_state_notify:357 (dev=0) Notifying crtc state: 3
[   19.639208] evdi: [W] evdi_painter_send_crtc_state:253 Painter is not connected!
[   19.641023] evdi: [W] evdi_painter_disconnect:460 (dev=0) An unknown connection to ffff8800371f2400 tries to close us
[   19.641026] evdi: [W] evdi_painter_disconnect:461  - ignoring
[   19.646494] evdi: [E] evdi_painter_connect:403 Edid length too large
[   19.647048] evdi: [D] add_store:193 Increasing device count to 2
[   19.647202] evdi: [D] evdi_crtc_init:305 drm_crtc_init: 0
[   19.647261] evdi: [W] evdi_painter_crtc_state_notify:360 Painter does not exist!
[   19.647263] evdi: [D] evdi_detect:70 Painter is disconnected
[   19.647265] evdi evdi.1: No connectors reported connected with modes
[   19.647267] [drm] Cannot find any crtc or sizes - going 1024x768
[   19.647815] evdi evdi.1: fb3: evdidrmfb frame buffer device
[   19.647817] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   19.647818] [drm] No driver support for vblank timestamp query.
[   19.647820] [drm] evdi: evdi_stats_init
[   19.647822] [drm] Initialized evdi 1.0.463 20160301 on minor 2
[   19.656174] evdi: [W] evdi_painter_disconnect:460 (dev=0) An unknown connection to ffff88046bcf5a00 tries to close us
[   19.656176] evdi: [W] evdi_painter_disconnect:461  - ignoring
[   19.728727] evdi: [D] evdi_detect:70 Painter is disconnected
[   19.729022] evdi: [W] evdi_painter_disconnect:460 (dev=0) An unknown connection to ffff88046b8a3c00 tries to close us
[   19.729025] evdi: [W] evdi_painter_disconnect:461  - ignoring
[   19.729343] evdi: [W] evdi_painter_disconnect:460 (dev=0) An unknown connection to ffff88046b8a3c00 tries to close us
[   19.729346] evdi: [W] evdi_painter_disconnect:461  - ignoring
[   19.729384] ------------[ cut here ]------------
[   19.729392] WARNING: CPU: 0 PID: 2395 at include/drm/drm_gem.h:217 evdi_dumb_create+0xc1/0xd0 [evdi]()
[   19.729394] Modules linked in: evdi(O) iwlmvm iwlwifi
[   19.729408] CPU: 0 PID: 2395 Comm: X Tainted: G        W  O    4.5.0-gentoo #1
[   19.729410] Hardware name: Dell Inc. Inspiron 7559/0H0CC0, BIOS 1.0.3 09/23/2015
[   19.729413]  0000000000000000 ffff88046db87d10 ffffffff816ed678 0000000000000000
[   19.729417]  ffffffffa00694cd ffff88046db87d48 ffffffff81132991 0000000000000000
[   19.729421]  ffff88046db87df0 ffff88046dd98f00 ffff88046b8a3c00 00000000000000b2
[   19.729425] Call Trace:
[   19.729433]  [<ffffffff816ed678>] dump_stack+0x4d/0x65
[   19.729438]  [<ffffffff81132991>] warn_slowpath_common+0x81/0xc0
[   19.729442]  [<ffffffff81132a85>] warn_slowpath_null+0x15/0x20
[   19.729446]  [<ffffffffa0066751>] evdi_dumb_create+0xc1/0xd0 [evdi]
[   19.729451]  [<ffffffff81807911>] drm_mode_create_dumb_ioctl+0xa1/0xb0
[   19.729455]  [<ffffffff817f834d>] drm_ioctl+0x13d/0x560
[   19.729459]  [<ffffffff81807870>] ? drm_mode_page_flip_ioctl+0x370/0x370
[   19.729465]  [<ffffffff8166a2c6>] ? selinux_file_ioctl+0x116/0x1f0
[   19.729469]  [<ffffffff8127ea59>] do_vfs_ioctl+0x89/0x580
[   19.729475]  [<ffffffff816605fe>] ? security_file_ioctl+0x3e/0x60
[   19.729478]  [<ffffffff8127efc4>] SyS_ioctl+0x74/0x80
[   19.729485]  [<ffffffff81f536d7>] entry_SYSCALL_64_fastpath+0x12/0x6a
[   19.729507] ---[ end trace 5b97c553177dd603 ]---
[   19.729591] evdi: [D] evdi_detect:70 Painter is disconnected
[   19.729636] evdi: [D] evdi_detect:70 Painter is disconnected
[   19.729849] ------------[ cut here ]------------
[   19.729856] WARNING: CPU: 0 PID: 2395 at include/drm/drm_gem.h:217 evdi_dumb_create+0xc1/0xd0 [evdi]()
[   19.729859] Modules linked in: evdi(O) iwlmvm iwlwifi
[   19.729866] CPU: 0 PID: 2395 Comm: X Tainted: G        W  O    4.5.0-gentoo #1
[   19.729868] Hardware name: Dell Inc. Inspiron 7559/0H0CC0, BIOS 1.0.3 09/23/2015
[   19.729869]  0000000000000000 ffff88046db87d10 ffffffff816ed678 0000000000000000
[   19.729873]  ffffffffa00694cd ffff88046db87d48 ffffffff81132991 0000000000000000
[   19.729877]  ffff88046db87df0 ffff88046dd98500 ffff88046b8a3c00 00000000000000b2
[   19.729881] Call Trace:
[   19.729885]  [<ffffffff816ed678>] dump_stack+0x4d/0x65
[   19.729890]  [<ffffffff81132991>] warn_slowpath_common+0x81/0xc0
[   19.729893]  [<ffffffff81132a85>] warn_slowpath_null+0x15/0x20
[   19.729897]  [<ffffffffa0066751>] evdi_dumb_create+0xc1/0xd0 [evdi]
[   19.729900]  [<ffffffff81807911>] drm_mode_create_dumb_ioctl+0xa1/0xb0
[   19.729905]  [<ffffffff817f834d>] drm_ioctl+0x13d/0x560
[   19.729909]  [<ffffffff81807870>] ? drm_mode_page_flip_ioctl+0x370/0x370
[   19.729915]  [<ffffffff816686d9>] ? __inode_security_revalidate+0x39/0x50
[   19.729919]  [<ffffffff8166a2c6>] ? selinux_file_ioctl+0x116/0x1f0
[   19.729923]  [<ffffffff8127ea59>] do_vfs_ioctl+0x89/0x580
[   19.729928]  [<ffffffff816605fe>] ? security_file_ioctl+0x3e/0x60
[   19.729931]  [<ffffffff8127efc4>] SyS_ioctl+0x74/0x80
[   19.729937]  [<ffffffff81f536d7>] entry_SYSCALL_64_fastpath+0x12/0x6a
[   19.729939] ---[ end trace 5b97c553177dd604 ]---
[   19.729943] ------------[ cut here ]------------
[   19.729947] WARNING: CPU: 0 PID: 2395 at include/drm/drm_gem.h:217 evdi_dumb_create+0xc1/0xd0 [evdi]()
[   19.729949] Modules linked in: evdi(O) iwlmvm iwlwifi
[   19.729951] CPU: 0 PID: 2395 Comm: X Tainted: G        W  O    4.5.0-gentoo #1
[   19.729952] Hardware name: Dell Inc. Inspiron 7559/0H0CC0, BIOS 1.0.3 09/23/2015
[   19.729954]  0000000000000000 ffff88046db87d10 ffffffff816ed678 0000000000000000
[   19.729956]  ffffffffa00694cd ffff88046db87d48 ffffffff81132991 0000000000000000
[   19.729959]  ffff88046db87df0 ffff88046dd98700 ffff88046b8a3c00 00000000000000b2
[   19.729959] Call Trace:
[   19.729962]  [<ffffffff816ed678>] dump_stack+0x4d/0x65
[   19.729966]  [<ffffffff81132991>] warn_slowpath_common+0x81/0xc0
[   19.729970]  [<ffffffff81132a85>] warn_slowpath_null+0x15/0x20
[   19.729975]  [<ffffffffa0066751>] evdi_dumb_create+0xc1/0xd0 [evdi]
[   19.729978]  [<ffffffff81807911>] drm_mode_create_dumb_ioctl+0xa1/0xb0
[   19.729981]  [<ffffffff817f834d>] drm_ioctl+0x13d/0x560
[   19.729985]  [<ffffffff81807870>] ? drm_mode_page_flip_ioctl+0x370/0x370
[   19.729990]  [<ffffffff816686d9>] ? __inode_security_revalidate+0x39/0x50
[   19.729995]  [<ffffffff8166a2c6>] ? selinux_file_ioctl+0x116/0x1f0
[   19.729998]  [<ffffffff8127ea59>] do_vfs_ioctl+0x89/0x580
[   19.730002]  [<ffffffff816605fe>] ? security_file_ioctl+0x3e/0x60
[   19.730009]  [<ffffffff8127efc4>] SyS_ioctl+0x74/0x80
[   19.730014]  [<ffffffff81f536d7>] entry_SYSCALL_64_fastpath+0x12/0x6a
[   19.730016] ---[ end trace 5b97c553177dd605 ]---
[   19.730191] evdi: [D] evdi_painter_crtc_state_notify:357 (dev=0) Notifying crtc state: 3
[   19.730197] evdi: [W] evdi_painter_send_crtc_state:253 Painter is not connected!
[   19.730198] evdi: [D] evdi_painter_crtc_state_notify:357 (dev=0) Notifying crtc state: 3
[   19.730202] evdi: [W] evdi_painter_send_crtc_state:253 Painter is not connected!
[   19.731474] evdi: [D] evdi_detect:70 Painter is disconnected
[   19.731582] evdi: [D] evdi_detect:70 Painter is disconnected
[   19.766695] evdi: [W] evdi_painter_disconnect:460 (dev=0) An unknown connection to ffff88046b8a2e00 tries to close us
[   19.766697] evdi: [W] evdi_painter_disconnect:461  - ignoring
[   19.771213] evdi: [E] evdi_painter_connect:403 Edid length too large
[  149.504709] evdi: [D] evdi_detect:70 Painter is disconnected
[  149.684288] evdi: [D] evdi_detect:70 Painter is disconnected
[  149.867252] evdi: [D] evdi_detect:70 Painter is disconnected
[  150.145206] evdi: [D] evdi_detect:70 Painter is disconnected
[  150.145226] evdi: [D] evdi_detect:70 Painter is disconnected
[  150.323161] evdi: [D] evdi_detect:70 Painter is disconnected
[  150.323181] evdi: [D] evdi_detect:70 Painter is disconnected
[  150.505128] evdi: [D] evdi_detect:70 Painter is disconnected
[  150.505162] evdi: [D] evdi_detect:70 Painter is disconnected
[  151.192079] evdi: [D] evdi_detect:70 Painter is disconnected
[  151.192103] evdi: [D] evdi_detect:70 Painter is disconnected
[  152.877951] evdi: [D] evdi_detect:70 Painter is disconnected
[  152.877979] evdi: [D] evdi_detect:70 Painter is disconnected
[  180.582379] evdi: [W] evdi_painter_disconnect:460 (dev=0) An unknown connection to ffff8800371f2400 tries to close us
[  180.582381] evdi: [W] evdi_painter_disconnect:461  - ignoring
[  180.582387] evdi: [W] evdi_painter_disconnect:460 (dev=0) An unknown connection to ffff8800371f2400 tries to close us
[  180.582388] evdi: [W] evdi_painter_disconnect:461  - ignoring
[  180.582875] evdi: [W] evdi_painter_disconnect:460 (dev=0) An unknown connection to ffff88046b8a2e00 tries to close us
[  180.582877] evdi: [W] evdi_painter_disconnect:461  - ignoring
[  180.582882] evdi: [W] evdi_painter_disconnect:460 (dev=0) An unknown connection to ffff88046b8a2e00 tries to close us
[  180.582883] evdi: [W] evdi_painter_disconnect:461  - ignoring
[  182.152482] evdi: [W] evdi_painter_disconnect:460 (dev=0) An unknown connection to ffff88046b5a0c00 tries to close us
[  182.152483] evdi: [W] evdi_painter_disconnect:461  - ignoring
[  182.155675] evdi: [W] evdi_painter_disconnect:460 (dev=0) An unknown connection to ffff88046b5a0c00 tries to close us
[  182.155676] evdi: [W] evdi_painter_disconnect:461  - ignoring
[  183.887508] evdi: [E] evdi_painter_connect:403 Edid length too large
[  183.893261] evdi: [E] evdi_painter_connect:403 Edid length too large
[  186.880309] evdi: [D] evdi_detect:70 Painter is disconnected
[  186.880333] evdi: [D] evdi_detect:70 Painter is disconnected
[  187.064206] evdi: [D] evdi_detect:70 Painter is disconnected
[  187.064227] evdi: [D] evdi_detect:70 Painter is disconnected
[  187.337283] evdi: [D] evdi_detect:70 Painter is disconnected
[  187.337311] evdi: [D] evdi_detect:70 Painter is disconnected
[  187.606038] evdi: [D] evdi_detect:70 Painter is disconnected
[  187.606068] evdi: [D] evdi_detect:70 Painter is disconnected
[  187.785079] evdi: [D] evdi_detect:70 Painter is disconnected
[  187.785107] evdi: [D] evdi_detect:70 Painter is disconnected
[  187.966837] evdi: [D] evdi_detect:70 Painter is disconnected
[  187.966867] evdi: [D] evdi_detect:70 Painter is disconnected
[  188.235773] evdi: [D] evdi_detect:70 Painter is disconnected
[  188.235791] evdi: [D] evdi_detect:70 Painter is disconnected
[  188.413832] evdi: [D] evdi_detect:70 Painter is disconnected
[  188.413843] evdi: [D] evdi_detect:70 Painter is disconnected
[  188.594014] evdi: [D] evdi_detect:70 Painter is disconnected
[  188.594039] evdi: [D] evdi_detect:70 Painter is disconnected
[  189.281999] evdi: [D] evdi_detect:70 Painter is disconnected
[  189.282023] evdi: [D] evdi_detect:70 Painter is disconnected
[  190.964768] evdi: [D] evdi_detect:70 Painter is disconnected
[  190.964797] evdi: [D] evdi_detect:70 Painter is disconnected

I don't know about the "Edid too large", but as I said, previous versions worked fine.

Using kernel 4.4 (those messages are from 4.5) with the current master on gentoo with my ebuild from my overlay

Plasma 5.8 compositor issues

Running Latest kernel 4.8 with latest KDE Plasma 5.8 there are some major issues with the compositor and libevdi. The issue is the compositor no longer does proper partial screen paints even without DisplaylinkManager running or displaylink device plugged in. the only way to "fix" this is to enable full screen refreshes but that causes major performance issues. The issue is only present when libevdi is loaded, if i boot without the module everything is normal.

spectre-gentoo carbinefreak # uname -r
4.8.0
spectre-gentoo carbinefreak # equery list evdi
 * Searching for evdi ...
[I-O] [  ] x11-drivers/evdi-1.2.64:0
spectre-gentoo carbinefreak # equery list x11-drivers/displaylink-driver
 * Searching for displaylink-driver in x11-drivers ...
[I-O] [  ] x11-drivers/displaylink-driver-1.2.58:0
spectre-gentoo carbinefreak # equery list plasma
 * Searching for plasma ...
[IP-] [  ] kde-frameworks/plasma-5.26.0:5/5.26
spectre-gentoo carbinefreak # equery list plasma-desktop
 * Searching for plasma-desktop ...
[I-O] [  ] kde-plasma/plasma-desktop-5.8.0:5
spectre-gentoo carbinefreak # 

Add support for gamma ramp

When using a tool like RedShift the gamma ramp via randr is modified.
It would be nice if this feature could be added. Is this even possible?

Ubuntu 16.10: kernel BUG at mm/usercopy.c:75!

Hello,

Thank you for providing this driver (generally). With this and the DL software, I was able to (generally) run two external monitors off Ubuntu 16.04. I have recently upgraded to 16.10 (about to hit beta) and had disabled evdi/DisplayLink as the older release did not yet support the newer 4.8 kernel in 16.10. I saw the release of 1.2, though, and updated. It leads to a kernel BUG and hard freeze of my system consistently, unfortunately, and I'm fairly sure it's in the evdi driver itself (or interaction with some other subsystem).

I am happy to debug, provide more logs, etc!

uname -a = Linux pitfall 4.8.0-14-generic #15-Ubuntu SMP Tue Sep 20 22:02:02 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Couple of independent questions from this bug:

  1. Would you have any interest in perhaps getting this driver integrated into the Ubuntu kernel? It's not impossible to get out-of-tree, but open-source, drivers built with the Ubuntu kernel -- you'd get more test & integration exposure, etc.

  2. If 1) were true, you might be able to get the other parts of DisplayLink packaged or maybe snapped (http://snapcraft.io/) up, so that it would be instantly accessible to end-users?

[caveat, I'm a Canonical employee and Ubuntu developer]

Sep 22 09:43:59 pitfall kernel: [  139.192812] usercopy: kernel memory exposure attempt detected from ffff906d3ec790c8 (kmalloc-96) (88 bytes)
Sep 22 09:43:59 pitfall kernel: [  139.192886] kernel BUG at /build/linux-S8e33G/linux-4.8.0/mm/usercopy.c:75!
Sep 22 09:43:59 pitfall kernel: [  139.192908] invalid opcode: 0000 [#1] SMP
Sep 22 09:43:59 pitfall kernel: [  139.192922] Modules linked in: evdi(OE) rfcomm xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack xt_tcpudp bridge stp llc iptable_filter ctr ccm bnep fuse binfmt_misc nls_utf8 nls_cp437 vfat fat arc4 hid_sensor_als hid_sensor_incl_3d hid_sensor_rotation hid_sensor_accel_3d hid_sensor_gyro_3d hid_sensor_magn_3d hid_sensor_trigger hid_sensor_iio_common intel_rapl industrialio_triggered_buffer kfifo_buf industrialio x86_pkg_temp_thermal intel_powerclamp coretemp iwlmvm mac80211 joydev hid_sensor_hub hid_multitouch hid_rmi usblp i2c_designware_platform i2c_designware_core snd_soc_skl snd_soc_skl_ipc snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_ext_core snd_soc_sst_match efi_pstore snd_soc_core kvm_intel kvm iwlwifi snd_compress
Sep 22 09:43:59 pitfall kernel: [  139.193206] evdi: [D] add_store:195 Increasing device count to 2
Sep 22 09:43:59 pitfall kernel: [  139.193226]  snd_hda_codec_hdmi irqbypass snd_pcm_dmaengine snd_hda_codec_realtek snd_hda_codec_generic intel_cstate intel_rapl_perf cfg80211 cdc_mbim snd_hda_intel snd_usb_audio snd_hda_codec cdc_wdm serio_raw snd_usbmidi_lib snd_seq_midi efivars snd_seq_midi_event snd_hda_core snd_hwdep snd_rawmidi snd_pcm snd_seq shpchp sg snd_seq_device snd_timer cdc_ncm uvcvideo usbnet videobuf2_vmalloc mii videobuf2_memops snd videobuf2_v4l2 videobuf2_core hci_uart soundcore videodev btusb idma64 virt_dma btrtl btbcm btqca btintel media bluetooth mei_me mei intel_lpss_pci ideapad_laptop processor_thermal_device intel_pch_thermal ucsi soc_button_array intel_lpss_acpi intel_vbtn intel_lpss battery sparse_keymap int340x_thermal_zone int3400_thermal rfkill mfd_core intel_soc_dts_iosf tpm_crb acpi_thermal_rel ac acpi_pad tpm_tis tpm_tis_core tpm evdev squashfs loop parport_pc ppdev lp parport efivarfs ip_tables x_tables autofs4 ext4 crc16 jbd2 fscrypto mbcache btrfs algif_skcipher af_alg uas usb_storage hid_generic usbhid dm_crypt dm_mod raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c crc32c_generic raid1 raid0 multipath linear md_mod sd_mod crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel i915 aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd xhci_pci i2c_algo_bit xhci_hcd sdhci_pci ahci sdhci libahci mmc_core drm_kms_helper usbcore libata syscopyarea sysfillrect sysimgblt usb_common scsi_mod fb_sys_fops drm fan thermal wmi i2c_hid hid video fjes button
Sep 22 09:43:59 pitfall kernel: [  139.193821] CPU: 3 PID: 5439 Comm: ThreadedDrmDevi Tainted: G           OE   4.8.0-14-generic #15-Ubuntu
Sep 22 09:43:59 pitfall kernel: [  139.193850] Hardware name: LENOVO 80MK/VIUU4, BIOS C6CN34WW 10/29/2015
Sep 22 09:43:59 pitfall kernel: [  139.193871] task: ffff906cf0a64280 task.stack: ffff906d195cc000
Sep 22 09:43:59 pitfall kernel: [  139.193895] RIP: 0010:[<ffffffffbd80d861>]  [<ffffffffbd80d861>] __check_object_size+0x101/0x3b5
Sep 22 09:43:59 pitfall kernel: [  139.193926] RSP: 0018:ffff906d195cfe08  EFLAGS: 00010286
Sep 22 09:43:59 pitfall kernel: [  139.193943] RAX: 000000000000005f RBX: ffff906d3ec790c8 RCX: 0000000000000006
Sep 22 09:43:59 pitfall kernel: [  139.193965] RDX: 0000000000000000 RSI: 0000000000000246 RDI: ffff906d734cdb60
Sep 22 09:43:59 pitfall kernel: [  139.193991] RBP: 0000000000000058 R08: 000000000002f12c R09: 0000000000000005
Sep 22 09:43:59 pitfall kernel: [  139.194013] R10: ffff906d0c86d938 R11: 0000000000000426 R12: 0000000000000001
Sep 22 09:43:59 pitfall kernel: [  139.194035] R13: ffff906d3ec79120 R14: ffff906d3ec79098 R15: ffff906d3ec79080
Sep 22 09:43:59 pitfall kernel: [  139.194057] FS:  00007f50f0ff9700(0000) GS:ffff906d734c0000(0000) knlGS:0000000000000000
Sep 22 09:43:59 pitfall kernel: [  139.194081] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 22 09:43:59 pitfall kernel: [  139.194102] CR2: 00007f5148747ae8 CR3: 00000003f09ad000 CR4: 00000000003406e0
Sep 22 09:43:59 pitfall kernel: [  139.194125] Stack:
Sep 22 09:43:59 pitfall kernel: [  139.194133]  0000000000000000 ffff906d5942ac00 0000000000000058 0000000000000058
Sep 22 09:43:59 pitfall kernel: [  139.194160]  ffffffffc01ab04d ffff906d04d379d8 00007f50f0ff86a0 ffff906d3ec790c8
Sep 22 09:43:59 pitfall kernel: [  139.194188]  ffff906d5942acf0 0000000000000400 00007f50f0ff86a0 ffff906d5942ad08
Sep 22 09:43:59 pitfall kernel: [  139.194228] Call Trace:
Sep 22 09:43:59 pitfall kernel: [  139.194231] evdi: [D] evdi_crtc_init:312 drm_crtc_init: 0
Sep 22 09:43:59 pitfall kernel: [  139.194265]  [<ffffffffc01ab04d>] ? drm_read+0x13d/0x300 [drm]
Sep 22 09:43:59 pitfall kernel: [  139.194292]  [<ffffffffbd811c11>] ? vfs_read+0x91/0x130
Sep 22 09:43:59 pitfall kernel: [  139.194310]  [<ffffffffbd813072>] ? SyS_read+0x52/0xc0
Sep 22 09:43:59 pitfall kernel: [  139.194328]  [<ffffffffbdc39276>] ? entry_SYSCALL_64_fastpath+0x1e/0xa8
Sep 22 09:43:59 pitfall kernel: [  139.194352] Code: 54 02 00 00 49 c7 c0 90 82 01 be 48 c7 c2 af a7 ff bd 48 c7 c6 c4 e4 00 be 49 89 e9 48 89 d9 48 c7 c7 40 52 01 be e8 74 a0 f7 ff <0f> 0b 48 89 ee 48 89 df e8 02 52 fe ff 48 85 c0 49 89 c0 0f 85 
Sep 22 09:43:59 pitfall kernel: [  139.194488] RIP  [<ffffffffbd80d861>] __check_object_size+0x101/0x3b5
Sep 22 09:43:59 pitfall kernel: [  139.194517]  RSP <ffff906d195cfe08>
Sep 22 09:43:59 pitfall kernel: [  139.194661] evdi: [W] evdi_painter_crtc_state_notify:377 Painter does not exist!
Sep 22 09:43:59 pitfall kernel: [  139.194702] evdi: [D] evdi_detect:72 Painter is disconnected
Sep 22 09:43:59 pitfall kernel: [  139.194760] evdi evdi.1: No connectors reported connected with modes
Sep 22 09:43:59 pitfall kernel: [  139.194797] [drm] Cannot find any crtc or sizes - going 1024x768
Sep 22 09:43:59 pitfall kernel: [  139.196259] evdi evdi.1: fb2: evdidrmfb frame buffer device
Sep 22 09:43:59 pitfall kernel: [  139.196281] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
Sep 22 09:43:59 pitfall kernel: [  139.196302] [drm] No driver support for vblank timestamp query.
Sep 22 09:43:59 pitfall kernel: [  139.196321] [drm] evdi: evdi_stats_init
Sep 22 09:43:59 pitfall kernel: [  139.196338] [drm] Initialized evdi 1.2.55 20160912 on minor 2
Sep 22 09:43:59 pitfall kernel: [  139.214897] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
Sep 22 09:43:59 pitfall kernel: [  139.214923] evdi: [D] evdi_painter_get_edid_copy:192 (dev=1) 00 ff ff
Sep 22 09:43:59 pitfall kernel: [  139.215144] ---[ end trace 65abd9366c92588f ]---

Cursor visibly slow when primary (laptop) screen closed, without glitches when open (Ubuntu 16.04, Ubuntu 16.10)

Laptop + DisplayLink adapter + external monitor
Unified display (e.g. screen mirroring) 1920x1080

Cursor movement is visibly slow (tearing) when primary screen (laptop) is closed/turned off (.e.g with lid closed). When laptop screen is on (lid open) cursor is behaving normally (fast, no tearing) as it is by default on laptop screen only.

CPU usage of DisplayManager does not seem to vary between these two.

Kernel traces on 4.4 with Fedora

On Fedora 23 with kernel 4.4.7-300.fc23.x86_64, I'm getting a lot of kernel traces but everything seems to work fine.
This is on a MacBook Pro with Intel Iris 6100 gpu connected to a Dell D3100 hub.

An example of such a trace (they are all the same).

[26434.567965] ------------[ cut here ]------------
[26434.567975] WARNING: CPU: 0 PID: 1715 at include/drm/drm_gem.h:146 evdi_fb_user_fb_create+0x190/0x1a0 [evdi]()
[26434.567977] Modules linked in: lp parport cdc_mbim cdc_wdm snd_usb_audio cdc_ncm snd_usbmidi_lib usbnet snd_rawmidi mii rfcomm fuse nf_conntrack_netbios_ns nf_conntrack_broadcast evdi(OE) ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_filter ebtable_nat ebtable_broute bridge stp llc ebtables ip6table_raw ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_security ip6table_mangle ip6table_filter ip6_tables iptable_raw iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_security iptable_mangle bnep intel_rapl iosf_mbi x86_pkg_temp_thermal kvm_intel joydev iTCO_wdt iTCO_vendor_support kvm snd_hda_codec_cirrus snd_hda_codec_generic snd_hda_codec_hdmi btusb nls_utf8 btrtl btbcm btintel snd_hda_intel hfsplus bluetooth irqbypass
[26434.568014]  crct10dif_pclmul snd_hda_codec crc32_pclmul crc32c_intel brcmfmac snd_hda_core brcmutil snd_hwdep cfg80211 snd_seq snd_seq_device snd_pcm mmc_core bcm5974 thunderbolt snd_timer rfkill snd i2c_i801 intel_pch_thermal lpc_ich mei_me soundcore mei shpchp acpi_als sbs tpm_tis kfifo_buf sbshc industrialio spi_pxa2xx_platform tpm apple_bl nfsd auth_rpcgss nfs_acl lockd grace sunrpc i915 hid_apple i2c_algo_bit drm_kms_helper drm video fjes coretemp applesmc input_polldev
[26434.568036] CPU: 0 PID: 1715 Comm: Xorg Tainted: G        W  OE   4.4.7-300.fc23.x86_64 #1
[26434.568037] Hardware name: Apple Inc. MacBookPro12,1/Mac-E43C1C25D4880AD6, BIOS MBP121.88Z.0167.B12.1508182325 08/18/2015
[26434.568039]  0000000000000286 00000000d3af2335 ffff880241fa3bf8 ffffffff813b5f8e
[26434.568041]  0000000000000000 ffffffffa07a1a0c ffff880241fa3c30 ffffffff810a4122
[26434.568042]  ffff8801caeb7400 ffff88006d0a9000 ffff880241fa3d18 ffff88013e0e0b40
[26434.568044] Call Trace:
[26434.568049]  [<ffffffff813b5f8e>] dump_stack+0x63/0x85
[26434.568052]  [<ffffffff810a4122>] warn_slowpath_common+0x82/0xc0
[26434.568053]  [<ffffffff810a426a>] warn_slowpath_null+0x1a/0x20
[26434.568056]  [<ffffffffa079eca0>] evdi_fb_user_fb_create+0x190/0x1a0 [evdi]
[26434.568066]  [<ffffffffa0046220>] internal_framebuffer_create+0x830/0x960 [drm]
[26434.568074]  [<ffffffffa004b0ad>] drm_mode_addfb2+0x2d/0xa0 [drm]
[26434.568081]  [<ffffffffa004b19c>] drm_mode_addfb+0x7c/0xb0 [drm]
[26434.568087]  [<ffffffffa003c602>] drm_ioctl+0x152/0x540 [drm]
[26434.568094]  [<ffffffffa004b120>] ? drm_mode_addfb2+0xa0/0xa0 [drm]
[26434.568097]  [<ffffffff813407fc>] ? selinux_file_ioctl+0x10c/0x1c0
[26434.568100]  [<ffffffff81241428>] do_vfs_ioctl+0x298/0x480
[26434.568102]  [<ffffffff813380b3>] ? security_file_ioctl+0x43/0x60
[26434.568104]  [<ffffffff81241689>] SyS_ioctl+0x79/0x90
[26434.568107]  [<ffffffff817a10ee>] entry_SYSCALL_64_fastpath+0x12/0x71
[26434.568108] ---[ end trace 02c5e33a8eb8360e ]---

Nitpick: Add proper git tags

Hi, minor nitpick here but if i run git describe --tags returns:

v1.2.55

but git describe returns

`v1.0.68-47-g6fe15f50fb``

I would expect to see v1.2.55 or similar to sync up with releases

build error with 4.9.0rc2

the dkms build of the evdi module with kernel 4.9.0rc2 fails with this error message:

/var/lib/dkms/evdi/1.2.65/build/evdi_modeset.c: In function ‘evdi_modeset_init’:
/var/lib/dkms/evdi/1.2.65/build/evdi_modeset.c:375:2: error: implicit declaration of function ‘drm_mode_create_dirty_info_property’ [-Werror=implicit-function-declaration]
  drm_mode_create_dirty_info_property(dev);
  ^
cc1: some warnings being treated as errors
scripts/Makefile.build:290: receptet för målet ”/var/lib/dkms/evdi/1.2.65/build/evdi_modeset.o” misslyckades

Issue connecting USB screen Lenovo LT1421 with Displaylink 1.2.64 on Kernel 4.7 and 4.8

Hello,
I have had a quick look through the open an closed issues, please advice if already familiar or solved.
As soon as I connect the USB screen, it shows an image, freezes, turns black and keeps re-connecting.

I'm running on a Dell XPS 13 with kernel 4.8.4-200.fc24.x86_64

dmesg | grep "usb 1-1" returns

[18493.675392] evdi: [D] evdi_detect:72 Painter is disconnected
[18493.675403] evdi: [D] evdi_detect:72 Painter is disconnected
[18494.019604] usb 1-2: USB disconnect, device number 11
[18494.310695] usb 1-2: new high-speed USB device number 12 using xhci_hcd
[18494.466722] usb 1-2: Device not responding to setup address.
[18494.672663] usb 1-2: Device not responding to setup address.
[18494.880645] usb 1-2: device not accepting address 12, error -71
[18532.614273] usb 1-2: new high-speed USB device number 14 using xhci_hcd
[18532.770295] usb 1-2: device descriptor read/64, error -32
[18533.045073] usb 1-2: New USB device found, idVendor=17e9, idProduct=03e0
[18533.045075] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[18533.045077] usb 1-2: Product: Lenovo LT1421 wide
[18533.045078] usb 1-2: Manufacturer: DisplayLink
[18533.045078] usb 1-2: SerialNumber: 6V9CATN2
[18533.126862] evdi: [W] evdi_painter_disconnect:478 (dev=-1) An unknown connection to ffff8a9116073000 tries to close us
[18533.126863] evdi: [W] evdi_painter_disconnect:479  - ignoring
[18533.150553] evdi: [W] evdi_painter_disconnect:478 (dev=0) An unknown connection to ffff8a9116073000 tries to close us
[18533.150555] evdi: [W] evdi_painter_disconnect:479  - ignoring
[18533.418368] evdi: [D] evdi_painter_connect:448 (dev=-1) Connected with           (null)
[18533.418370] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[18533.418399] evdi: [D] evdi_painter_crtc_state_notify:374 (dev=1) Notifying crtc state: 3
[18533.420757] evdi: [D] evdi_detect:72 Painter is disconnected
[18533.420805] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[18533.420808] evdi: [D] evdi_painter_get_edid_copy:192 (dev=1) 00 ff ff
[18533.525273] evdi: [D] evdi_painter_mode_changed_notify:391 (dev=1) Notifying mode changed: 1366x768@60; bpp 32; 
[18533.525274] evdi: [D] evdi_painter_mode_changed_notify:392 pixel format 875713112
[18533.525281] evdi: [D] evdi_painter_crtc_state_notify:374 (dev=1) Notifying crtc state: 0
[18533.525283] evdi: [D] evdi_painter_dpms_notify:361 (dev=1) Notifying dpms mode: 0
[18533.726488] evdi: [D] evdi_detect:72 Painter is disconnected
[18533.726501] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[18533.726503] evdi: [D] evdi_painter_get_edid_copy:192 (dev=1) 00 ff ff
[18534.103659] traps: SourceEngine_00[26798] general protection ip:4d57f4 sp:7f15c57fa5b0 error:0 in DisplayLinkManager[400000+66d000]
[18534.302793] evdi: [D] evdi_painter_disconnect:499 (dev=1) Disconnected from ffff8a9172f92200
[18534.302795] evdi: [D] evdi_detect:72 Painter is disconnected
[18534.305741] evdi: [D] evdi_detect:72 Painter is disconnected
[18534.305798] evdi: [D] evdi_detect:72 Painter is disconnected
[18534.329847] evdi: [D] evdi_painter_crtc_state_notify:374 (dev=-1) Notifying crtc state: 3
[18534.329849] evdi: [W] evdi_painter_send_crtc_state:266 Painter is not connected!
[18534.424560] evdi: [D] evdi_detect:72 Painter is disconnected
[18534.424574] evdi: [D] evdi_detect:72 Painter is disconnected

After upgrade Ubuntu Gnome from 16.04 to 16.10 dock station reconnect is required to get evdi working

After upgrade Ubuntu Gnome from 16.04 to 16.10 dock station reconnect is required to get evdi working, both after reboot and after cold boot.

Lenovo ThinkPad Helix 1gen
Lenovo ThinkPad USB 3.0 Dock (model DU9019D1)
Driver version: 1.2.65
Ubuntu Gnome 16.10 x86_64
Linux 4.8.0-22 (generic build)
intel DDX instead of modesetting DDX

evdi messages in dmesg at boot:

[ 10.389803] evdi: [I] Initialising logging on level 5
[ 11.345813] evdi: [D] add_store:195 Increasing device count to 1
[ 11.350148] evdi: [D] evdi_crtc_init:312 drm_crtc_init: 0
[ 11.353880] evdi: [W] evdi_painter_crtc_state_notify:377 Painter does not exist!
[ 11.353884] evdi: [D] evdi_detect:72 Painter is disconnected
[ 11.353889] evdi evdi.0: No connectors reported connected with modes
[ 11.354764] evdi evdi.0: fb1: evdidrmfb frame buffer device
[ 11.354768] [drm] evdi: evdi_stats_init
[ 11.354773] [drm] Initialized evdi 1.2.64 20161003 on minor 1
[ 17.337795] evdi: [W] evdi_painter_disconnect:478 (dev=0) An unknown connection to ffff91558d6bde00 tries to close us
[ 17.337797] evdi: [W] evdi_painter_disconnect:479 - ignoring

I assume that between 11 and 17 seconds user enter password in gdm and perform login.

After dock station reconnect external screen get enabled.
Booting with Linux 4.4.0-43 left from Ubuntu 16.04 does not workaround this issue - I still get same error message with Linux 4.4.0-43.

Stage & Mainline the driver

Hi,

This is a really annoying way to get hw going in 2016+. Can DisplayLink please possibly get this module into staging of the mainline kernel tree so the various distro's such as RHEL (used here) will automatically pick it up.

Kind Regards,
Edward.

Linux Drivers do not work with Ubuntu 15.10 / Kernel 4.2

I have a Lenovo Thinkvision LT1421

I'm running Ubuntu 15.10 / Kernel 4.2.0-34-generic

I downloaded the linux driver at http://www.displaylink.com/downloads/ubuntu

and ran the bash script, but it failed:

Verifying archive integrity... All good.
Uncompressing DisplayLink Linux Driver 1.0.335  100%  
DisplayLink Linux Software 1.0.335 install script called: install
Distribution discovered: Ubuntu 15.10
WARNING: Kernel version 4.2.0-34-generic is not supported. Highest supported version is 3.19.
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/DisplayLinkManager
Installing libraries
Installing firmware packages
Installing license file
Adding udev rule for DisplayLink DL-3xxx/5xxx devices
Starting DLM systemd service
Created symlink from /etc/systemd/system/graphical.target.wants/displaylink.service to /lib/systemd/system/displaylink.service.
Job for displaylink.service failed because the control process exited with error code. See "systemctl status displaylink.service" and "journalctl -xe" for details.

result of systemctl status displaylink.service -l:

displaylink.service - DisplayLink Manager Service
   Loaded: loaded (/lib/systemd/system/displaylink.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-03-31 10:44:44 CEST; 43ms ago
  Process: 8316 ExecStartPre=/sbin/modprobe evdi (code=exited, status=1/FAILURE)

Mar 31 10:44:44 moshimoshi systemd[1]: Failed to start DisplayLink Manager Service.
Mar 31 10:44:44 moshimoshi systemd[1]: displaylink.service: Unit entered failed state.
Mar 31 10:44:44 moshimoshi systemd[1]: displaylink.service: Failed with result 'exit-code'.

result of journalctl -xe:

Mar 31 10:45:47 moshimoshi kernel: evdi: disagrees about version of symbol drm_fb_helper_initial_config
Mar 31 10:45:47 moshimoshi kernel: evdi: Unknown symbol drm_fb_helper_initial_config (err -22)
Mar 31 10:45:47 moshimoshi kernel: evdi: disagrees about version of symbol drm_framebuffer_reference
Mar 31 10:45:47 moshimoshi kernel: evdi: Unknown symbol drm_framebuffer_reference (err -22)
Mar 31 10:45:47 moshimoshi kernel: evdi: disagrees about version of symbol drm_gem_put_pages
Mar 31 10:45:47 moshimoshi kernel: evdi: Unknown symbol drm_gem_put_pages (err -22)
Mar 31 10:45:47 moshimoshi kernel: evdi: disagrees about version of symbol drm_connector_unplug_all
Mar 31 10:45:47 moshimoshi kernel: evdi: Unknown symbol drm_connector_unplug_all (err -22)
Mar 31 10:45:47 moshimoshi kernel: evdi: disagrees about version of symbol drm_crtc_helper_set_config
Mar 31 10:45:47 moshimoshi kernel: evdi: Unknown symbol drm_crtc_helper_set_config (err -22)
Mar 31 10:45:47 moshimoshi kernel: evdi: disagrees about version of symbol drm_prime_gem_destroy
Mar 31 10:45:47 moshimoshi kernel: evdi: Unknown symbol drm_prime_gem_destroy (err -22)
Mar 31 10:45:47 moshimoshi modprobe[8411]: modprobe: ERROR: could not insert 'evdi': Invalid argument
Mar 31 10:45:47 moshimoshi systemd[1]: displaylink.service: Control process exited, code=exited status=1
Mar 31 10:45:47 moshimoshi systemd[1]: Failed to start DisplayLink Manager Service.
-- Subject: Unit displaylink.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit displaylink.service has failed.
-- 
-- The result is failed.
Mar 31 10:45:47 moshimoshi systemd[1]: displaylink.service: Unit entered failed state.
Mar 31 10:45:47 moshimoshi systemd[1]: displaylink.service: Failed with result 'exit-code'.

Is there anything I can do or try? Anybody got this to work with Ubuntu 15.10?

I understood that support for kernel 4.x is absent, but soon 16.04 LTS is out of beta next month and current 15.x and 16.x will be probably the most used distros with kernel 4.x - is there plan to support it anytime soon?

Thanks

Strange power/refresh/paint issues with Ubuntu 15.10

Hey there, I managed to make a Lenovo ThinkVision LT1421 to work with the Displaylink driver on Ubuntu 15.10 on a Lenovo Thinkpad T450s, however I'm still running in issues that make the usage of the display very unreliable. I thought of sharing these findings with you in the hopes you can improve the driver.

I've originally posted some here
http://askubuntu.com/questions/753164/ubuntu-doesnt-look-like-sending-power-to-an-usb-port-used-by-a-device-that-uses

but I will summarize below:

  1. The Displaylink driver will work only if the Intel Linux Graphics Driver is completely removed. Apparently this is due a modified libdrm package which evdi doesn't like. However, I wish this issue could be addressed, as the Intel drivers do in fact improve power management and resolve other issues I had with other programs and hardware acceleration (mainly Chrome).
  2. Once intel drivers are uninstalled, the screen will work, but not properly, as detailed below.
  3. if I start ubuntu, then connect the display with either 1 or 2 usb, it will work (i can see the refresh rate is better with 2) -- note this display comes with a usb Y cable (the kind that splits into 2-male USB plugs to draw more power if necessary, I tried in my tests to work with either one or 2 plugs connected, it doesn't make a difference)
  4. if I disconnect the display, and reconnect it, it won't work. It may turn on and all, but it will refresh very slowly, to the point of being unusable.
  5. if anything related to screen displays refreshes/restarts, such as the displaylink service or for example if I update my software for display calibration (DisplayCal), the screen will flash and will enter in this state where it doesn't paint properly
  6. if I start my laptop with my display connected already (either to 1 or 2 usb) it won't work, it will only function in this bad state - sometimes it will even keep the same appearance as I left it since last reboot (same partially painted areas)
  7. disconnecting and reconnecting again after the screen has entered in this state, no matter what, it will always bring it back in the same unusable mode. I have to restart ubuntu with the screen disconnected, then connect the screen and hope it won't hang
  8. very interestingly, whenever the screen is in this failed state, it will show 2 extra displays in my "Screen" settings - one correctly labelled like Lenovo Thinkvision 14" and the other labeled as FNM 0"

fnm0

Displaylink drivers not working for Debian 8.5 (issues with providers)

As reported here (drivers compiled for Debian) I apparently have some issues with setting up the 2nd external screen.

For your convenience I quote the part of the issue which I couldn't yet solve (according to the creator of the compiled version for Debian it seems a general driver related issue, rather than the version specifically compiled for Debian):

xrandr --listproviders

prints

Provider 0: id: 0x45 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 3 outputs: 3 associated providers: 0 name:Intel
Provider 1: id: 0xfe cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 0 name:modesetting

However when I try to attach the displaylink adapter to my (1st) external screen I can move the mouse to the other screen.. but the screen remains black.

I tried to play a bit with arandr by trying different resolutions and positions (this actually seems to work to change position or resolution but doesn't solve the issue)
I also tried xrandr --output HDMI1 --auto --right-of eDP1.

Same result.
I didn't try with 2 2nd external screen but the display doesn't show up even for the 1st one, unless I use directly my computer's HDMI port.

Any clue? Am I doing something wrong here?

I also noticed in arandr in "Outputs" there is DP1 (besides eDP1) but it's gray and I can't interact with it

Fix compilation for 4.8

some changes were made to the drm subsystem.
mainly drm_connector_(un)register_all are no longer exported as they are called on drm_dev_(un)register automatically

I might or might not cook up a patch during the course of the day (dependant on how busy I am.)

Friendly wish to Update Driver for Kernel 4.6.0-rc2

I am trying to get the Driver work on the newest Linux Kernel (4.6.0-rc2) and get the following errors on executing make.
I know the official support is limited but can some smart developer have a look into this? I have a feeling these are some minor Problems which can be solved easy.

make -C module make[1]: Verzeichnis „/home/user/evdi/module“ wird betreten make -C /lib/modules/4.6.0-rc2/build M=$PWD make[2]: Verzeichnis „/root/linux-4.6-rc2“ wird betreten LD /home/user/evdi/module/built-in.o CC [M] /home/user/evdi/module/evdi_drv.o CC [M] /home/user/evdi/module/evdi_modeset.o /home/user/evdi/module/evdi_modeset.c:286:18: Fehler: Initialisierung von inkompatiblem Zeigertyp [-Werror=incompatible-pointer-types] .set_property = drm_atomic_crtc_set_property, ^ /home/user/evdi/module/evdi_modeset.c:286:18: Anmerkung: (nahe der Initialisierung für »evdi_crtc_funcs.set_property«) /home/user/evdi/module/evdi_modeset.c:346:15: Fehler: Initialisierung von inkompatiblem Zeigertyp [-Werror=incompatible-pointer-types] .fb_create = evdi_fb_user_fb_create, ^ /home/user/evdi/module/evdi_modeset.c:346:15: Anmerkung: (nahe der Initialisierung für »evdi_mode_funcs.fb_create«) cc1: Einige Warnungen werden als Fehler behandelt scripts/Makefile.build:291: die Regel für Ziel „/home/user/evdi/module/evdi_modeset.o“ scheiterte make[3]: *** [/home/user/evdi/module/evdi_modeset.o] Fehler 1 Makefile:1427: die Regel für Ziel „_module_/home/user/evdi/module“ scheiterte make[2]: *** [_module_/home/user/evdi/module] Fehler 2 make[2]: Verzeichnis „/root/linux-4.6-rc2“ wird verlassen Makefile:56: die Regel für Ziel „module“ scheiterte make[1]: *** [module] Fehler 2 make[1]: Verzeichnis „/home/user/evdi/module“ wird verlassen Makefile:6: die Regel für Ziel „all“ scheiterte make: *** [all] Fehler 2

How to update driver

I I would like update the driver from 1.1.61 to 1.2.58 but get this warning:

Verifying archive integrity... All good.
Uncompressing DisplayLink Linux Driver 1.2.58  100%  
DisplayLink Linux Software 1.2.58 install script called: install
Distribution discovered: Ubuntu 16.04.1 LTS
WARNING: Version 1.1.61 of EVDI kernel module is already running.
Please reboot before attempting to re-install DisplayLink Linux Software.
Installation terminated.

After reboot I run the setup again and get the same warning, do I neet to uninstall the driver before by self?

evdi framebuffer problem

System:
archlinux
kernel 4.8.4-1

Problem:
I have a displaylink device, so I have evdi also installed.
I have a problem on my dell xps 13 9360. I have a little screen freeze every ~10 secs, on hdmi display via D3100 docking station, via usb-c-to-hdmi and on the laptop screen. Everytime it lags, I get an message in my journal what could raise this error? how could i fix it? (btw, maybe it is useful to know, that when the docking station is connected, my laptop screen is getting dark/disabled after some little time, the brightness get zero'ed)

Error in journal:

Nov 19 09:22:07 XPS kernel: evdi: [V] painter_unlock:165 
Nov 19 09:22:07 XPS kernel: evdi: [V] evdi_painter_grabpix_ioctl:556 
Nov 19 09:22:07 XPS kernel: evdi: [V] painter_lock:159 
Nov 19 09:22:07 XPS kernel: evdi: [V] copy_pixels:121 
Nov 19 09:22:07 XPS kernel: evdi: [V] copy_pixels:139 copy rect 0,0-1920,1080
Nov 19 09:22:07 XPS kernel: evdi: [V] painter_unlock:165 
Nov 19 09:22:07 XPS kernel: evdi: [V] painter_lock:159 
Nov 19 09:22:07 XPS kernel: evdi: [V] painter_unlock:165 
Nov 19 09:22:07 XPS kernel: evdi: [V] evdi_user_framebuffer_dirty:232 
Nov 19 09:22:07 XPS kernel: evdi: [V] evdi_handle_damage:87 
Nov 19 09:22:07 XPS kernel: evdi: [V] painter_lock:159 
Nov 19 09:22:07 XPS kernel: evdi: [V] painter_unlock:165 
Nov 19 09:22:07 XPS kernel: evdi: [V] painter_lock:159 
Nov 19 09:22:07 XPS kernel: evdi: [V] evdi_painter_mark_dirty:333 (dev=1) 0,0-1920,1080

Still kernel traces on 1.1.61

I'm trying the new displaylink driver and the 1.1.61 evdi version here from github.

Although everything seems to work so far, it still throws kernel traces:

[   18.104849] evdi: [D] add_store:195 Increasing device count to 1
[   18.105054] evdi: [D] evdi_crtc_init:304 drm_crtc_init: 0
[   18.105139] evdi: [W] evdi_painter_crtc_state_notify:362 Painter does not exist!
[   18.105143] evdi: [D] evdi_detect:72 Painter is disconnected
[   18.105148] evdi evdi.0: No connectors reported connected with modes
[   18.105151] [drm] Cannot find any crtc or sizes - going 1024x768
[   18.105999] evdi evdi.0: fb2: evdidrmfb frame buffer device
[   18.106002] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   18.106003] [drm] No driver support for vblank timestamp query.
[   18.106004] [drm] evdi: evdi_stats_init
[   18.106010] [drm] Initialized evdi 1.1.61 20160510 on minor 1
[   18.114078] evdi: [W] evdi_painter_disconnect:462 (dev=0) An unknown connection to ffff88046b5b6c00 tries to close us
[   18.114081] evdi: [W] evdi_painter_disconnect:463  - ignoring
[   18.114355] evdi: [W] evdi_painter_disconnect:462 (dev=0) An unknown connection to ffff88046b5b6c00 tries to close us
[   18.114357] evdi: [W] evdi_painter_disconnect:463  - ignoring
[   18.114394] ------------[ cut here ]------------
[   18.114400] WARNING: CPU: 1 PID: 2513 at include/drm/drm_gem.h:217 evdi_dumb_create+0xc1/0xd0 [evdi]()
[   18.114401] Modules linked in: vboxnetadp(O) vboxpci(O) vboxnetflt(O) vboxdrv(O) evdi(O) iwlmvm kvm_intel kvm iwlwifi
[   18.114411] CPU: 1 PID: 2513 Comm: X Tainted: G           O    4.5.3-gentoo #1
[   18.114413] Hardware name: Dell Inc. Inspiron 7559/0H0CC0, BIOS 1.0.3 09/23/2015
[   18.114415]  0000000000000000 ffff8800720d3d10 ffffffff816a2c58 0000000000000000
[   18.114418]  ffffffffa056d4cd ffff8800720d3d48 ffffffff810e3411 0000000000000000
[   18.114421]  ffff8800720d3df0 ffff880461d96c00 ffff88046b5b6c00 00000000000000b2
[   18.114423] Call Trace:
[   18.114429]  [<ffffffff816a2c58>] dump_stack+0x4d/0x65
[   18.114433]  [<ffffffff810e3411>] warn_slowpath_common+0x81/0xc0
[   18.114435]  [<ffffffff810e3505>] warn_slowpath_null+0x15/0x20
[   18.114438]  [<ffffffffa056a751>] evdi_dumb_create+0xc1/0xd0 [evdi]
[   18.114442]  [<ffffffff817bd651>] drm_mode_create_dumb_ioctl+0xa1/0xb0
[   18.114445]  [<ffffffff817ae08d>] drm_ioctl+0x13d/0x560
[   18.114448]  [<ffffffff817bd5b0>] ? drm_mode_page_flip_ioctl+0x370/0x370
[   18.114451]  [<ffffffff8161f866>] ? selinux_file_ioctl+0x116/0x1f0
[   18.114454]  [<ffffffff8122fbd9>] do_vfs_ioctl+0x89/0x580
[   18.114458]  [<ffffffff81615b9e>] ? security_file_ioctl+0x3e/0x60
[   18.114461]  [<ffffffff81230144>] SyS_ioctl+0x74/0x80
[   18.114464]  [<ffffffff81f41417>] entry_SYSCALL_64_fastpath+0x12/0x6a
[   18.114476] ---[ end trace 96f9191c17a9bf15 ]---
[   18.114556] evdi: [D] evdi_detect:72 Painter is disconnected
[   18.114612] evdi: [D] evdi_detect:72 Painter is disconnected
[   18.116143] ------------[ cut here ]------------
[   18.116148] WARNING: CPU: 1 PID: 2513 at include/drm/drm_gem.h:217 evdi_dumb_create+0xc1/0xd0 [evdi]()
[   18.116149] Modules linked in: vboxnetadp(O) vboxpci(O) vboxnetflt(O) vboxdrv(O) evdi(O) iwlmvm kvm_intel kvm iwlwifi
[   18.116155] CPU: 1 PID: 2513 Comm: X Tainted: G        W  O    4.5.3-gentoo #1
[   18.116156] Hardware name: Dell Inc. Inspiron 7559/0H0CC0, BIOS 1.0.3 09/23/2015
[   18.116157]  0000000000000000 ffff8800720d3d10 ffffffff816a2c58 0000000000000000
[   18.116160]  ffffffffa056d4cd ffff8800720d3d48 ffffffff810e3411 0000000000000000
[   18.116162]  ffff8800720d3df0 ffff880461d97500 ffff88046b5b6c00 00000000000000b2
[   18.116163] Call Trace:
[   18.116167]  [<ffffffff816a2c58>] dump_stack+0x4d/0x65
[   18.116169]  [<ffffffff810e3411>] warn_slowpath_common+0x81/0xc0
[   18.116171]  [<ffffffff810e3505>] warn_slowpath_null+0x15/0x20
[   18.116173]  [<ffffffffa056a751>] evdi_dumb_create+0xc1/0xd0 [evdi]
[   18.116176]  [<ffffffff817bd651>] drm_mode_create_dumb_ioctl+0xa1/0xb0
[   18.116178]  [<ffffffff817ae08d>] drm_ioctl+0x13d/0x560
[   18.116180]  [<ffffffff817bd5b0>] ? drm_mode_page_flip_ioctl+0x370/0x370
[   18.116183]  [<ffffffff8161dc79>] ? __inode_security_revalidate+0x39/0x50
[   18.116185]  [<ffffffff8161f866>] ? selinux_file_ioctl+0x116/0x1f0
[   18.116187]  [<ffffffff8122fbd9>] do_vfs_ioctl+0x89/0x580
[   18.116190]  [<ffffffff81615b9e>] ? security_file_ioctl+0x3e/0x60
[   18.116191]  [<ffffffff81230144>] SyS_ioctl+0x74/0x80
[   18.116193]  [<ffffffff81f41417>] entry_SYSCALL_64_fastpath+0x12/0x6a
[   18.116195] ---[ end trace 96f9191c17a9bf16 ]---
[   18.116198] ------------[ cut here ]------------
[   18.116200] WARNING: CPU: 1 PID: 2513 at include/drm/drm_gem.h:217 evdi_dumb_create+0xc1/0xd0 [evdi]()
[   18.116201] Modules linked in: vboxnetadp(O) vboxpci(O) vboxnetflt(O) vboxdrv(O) evdi(O) iwlmvm kvm_intel kvm iwlwifi
[   18.116206] CPU: 1 PID: 2513 Comm: X Tainted: G        W  O    4.5.3-gentoo #1
[   18.116207] Hardware name: Dell Inc. Inspiron 7559/0H0CC0, BIOS 1.0.3 09/23/2015
[   18.116207]  0000000000000000 ffff8800720d3d10 ffffffff816a2c58 0000000000000000
[   18.116209]  ffffffffa056d4cd ffff8800720d3d48 ffffffff810e3411 0000000000000000
[   18.116211]  ffff8800720d3df0 ffff880461d97700 ffff88046b5b6c00 00000000000000b2
[   18.116213] Call Trace:
[   18.116215]  [<ffffffff816a2c58>] dump_stack+0x4d/0x65
[   18.116217]  [<ffffffff810e3411>] warn_slowpath_common+0x81/0xc0
[   18.116218]  [<ffffffff810e3505>] warn_slowpath_null+0x15/0x20
[   18.116220]  [<ffffffffa056a751>] evdi_dumb_create+0xc1/0xd0 [evdi]
[   18.116222]  [<ffffffff817bd651>] drm_mode_create_dumb_ioctl+0xa1/0xb0
[   18.116224]  [<ffffffff817ae08d>] drm_ioctl+0x13d/0x560
[   18.116225]  [<ffffffff817bd5b0>] ? drm_mode_page_flip_ioctl+0x370/0x370
[   18.116228]  [<ffffffff8161dc79>] ? __inode_security_revalidate+0x39/0x50
[   18.116230]  [<ffffffff8161f866>] ? selinux_file_ioctl+0x116/0x1f0
[   18.116231]  [<ffffffff8122fbd9>] do_vfs_ioctl+0x89/0x580
[   18.116233]  [<ffffffff81615b9e>] ? security_file_ioctl+0x3e/0x60
[   18.116235]  [<ffffffff81230144>] SyS_ioctl+0x74/0x80
[   18.116236]  [<ffffffff81f41417>] entry_SYSCALL_64_fastpath+0x12/0x6a
[   18.116237] ---[ end trace 96f9191c17a9bf17 ]---
[   18.116385] evdi: [D] evdi_painter_crtc_state_notify:359 (dev=0) Notifying crtc state: 3
[   18.116386] evdi: [W] evdi_painter_send_crtc_state:253 Painter is not connected!
[   18.116392] evdi: [D] evdi_painter_crtc_state_notify:359 (dev=0) Notifying crtc state: 3
[   18.116393] evdi: [W] evdi_painter_send_crtc_state:253 Painter is not connected!
[   18.194318] IPv6: ADDRCONF(NETDEV_UP): docker0: link is not ready
[   18.217742] evdi: [W] evdi_painter_disconnect:462 (dev=0) An unknown connection to ffff88046bb77200 tries to close us
[   18.217745] evdi: [W] evdi_painter_disconnect:463  - ignoring
[   18.221751] evdi: [D] evdi_painter_connect:433 (dev=0) Connected with           (null)
[   18.221755] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   18.222156] evdi: [D] add_store:195 Increasing device count to 2
[   18.222314] evdi: [D] evdi_crtc_init:304 drm_crtc_init: 0
[   18.222498] evdi: [W] evdi_painter_crtc_state_notify:362 Painter does not exist!
[   18.222501] evdi: [D] evdi_detect:72 Painter is disconnected
[   18.222506] evdi evdi.1: No connectors reported connected with modes
[   18.222508] [drm] Cannot find any crtc or sizes - going 1024x768
[   18.222852] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   18.222856] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   18.223285] evdi evdi.1: fb3: evdidrmfb frame buffer device
[   18.223287] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   18.223289] [drm] No driver support for vblank timestamp query.
[   18.223291] [drm] evdi: evdi_stats_init
[   18.223295] [drm] Initialized evdi 1.1.61 20160510 on minor 2
[   18.223465] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   18.223469] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   18.223927] evdi: [W] evdi_painter_disconnect:462 (dev=0) An unknown connection to ffff88046e648c00 tries to close us
[   18.223928] evdi: [W] evdi_painter_disconnect:463  - ignoring
[   18.224111] evdi: [W] evdi_painter_disconnect:462 (dev=0) An unknown connection to ffff88046e648c00 tries to close us
[   18.224113] evdi: [W] evdi_painter_disconnect:463  - ignoring
[   18.224134] ------------[ cut here ]------------
[   18.224139] WARNING: CPU: 3 PID: 2513 at include/drm/drm_gem.h:217 evdi_dumb_create+0xc1/0xd0 [evdi]()
[   18.224140] Modules linked in: vboxnetadp(O) vboxpci(O) vboxnetflt(O) vboxdrv(O) evdi(O) iwlmvm kvm_intel kvm iwlwifi
[   18.224147] CPU: 3 PID: 2513 Comm: X Tainted: G        W  O    4.5.3-gentoo #1
[   18.224148] Hardware name: Dell Inc. Inspiron 7559/0H0CC0, BIOS 1.0.3 09/23/2015
[   18.224150]  0000000000000000 ffff8800720d3d10 ffffffff816a2c58 0000000000000000
[   18.224152]  ffffffffa056d4cd ffff8800720d3d48 ffffffff810e3411 0000000000000000
[   18.224154]  ffff8800720d3df0 ffff88046d6d0f00 ffff88046e648c00 00000000000000b2
[   18.224156] Call Trace:
[   18.224160]  [<ffffffff816a2c58>] dump_stack+0x4d/0x65
[   18.224163]  [<ffffffff810e3411>] warn_slowpath_common+0x81/0xc0
[   18.224165]  [<ffffffff810e3505>] warn_slowpath_null+0x15/0x20
[   18.224167]  [<ffffffffa056a751>] evdi_dumb_create+0xc1/0xd0 [evdi]
[   18.224170]  [<ffffffff817bd651>] drm_mode_create_dumb_ioctl+0xa1/0xb0
[   18.224172]  [<ffffffff817ae08d>] drm_ioctl+0x13d/0x560
[   18.224174]  [<ffffffff817bd5b0>] ? drm_mode_page_flip_ioctl+0x370/0x370
[   18.224176]  [<ffffffff8161f866>] ? selinux_file_ioctl+0x116/0x1f0
[   18.224179]  [<ffffffff8122fbd9>] do_vfs_ioctl+0x89/0x580
[   18.224181]  [<ffffffff81615b9e>] ? security_file_ioctl+0x3e/0x60
[   18.224183]  [<ffffffff81230144>] SyS_ioctl+0x74/0x80
[   18.224186]  [<ffffffff81f41417>] entry_SYSCALL_64_fastpath+0x12/0x6a
[   18.224187] ---[ end trace 96f9191c17a9bf18 ]---
[   18.224232] evdi: [D] evdi_detect:72 Painter is disconnected
[   18.224255] evdi: [D] evdi_detect:72 Painter is disconnected
[   18.224370] ------------[ cut here ]------------
[   18.224374] WARNING: CPU: 3 PID: 2513 at include/drm/drm_gem.h:217 evdi_dumb_create+0xc1/0xd0 [evdi]()
[   18.224375] Modules linked in: vboxnetadp(O) vboxpci(O) vboxnetflt(O) vboxdrv(O) evdi(O) iwlmvm kvm_intel kvm iwlwifi
[   18.224380] CPU: 3 PID: 2513 Comm: X Tainted: G        W  O    4.5.3-gentoo #1
[   18.224381] Hardware name: Dell Inc. Inspiron 7559/0H0CC0, BIOS 1.0.3 09/23/2015
[   18.224382]  0000000000000000 ffff8800720d3d10 ffffffff816a2c58 0000000000000000
[   18.224384]  ffffffffa056d4cd ffff8800720d3d48 ffffffff810e3411 0000000000000000
[   18.224386]  ffff8800720d3df0 ffff88046d6d1e00 ffff88046e648c00 00000000000000b2
[   18.224388] Call Trace:
[   18.224390]  [<ffffffff816a2c58>] dump_stack+0x4d/0x65
[   18.224392]  [<ffffffff810e3411>] warn_slowpath_common+0x81/0xc0
[   18.224394]  [<ffffffff810e3505>] warn_slowpath_null+0x15/0x20
[   18.224396]  [<ffffffffa056a751>] evdi_dumb_create+0xc1/0xd0 [evdi]
[   18.224398]  [<ffffffff817bd651>] drm_mode_create_dumb_ioctl+0xa1/0xb0
[   18.224400]  [<ffffffff817ae08d>] drm_ioctl+0x13d/0x560
[   18.224402]  [<ffffffff817bd5b0>] ? drm_mode_page_flip_ioctl+0x370/0x370
[   18.224406]  [<ffffffff8161dc79>] ? __inode_security_revalidate+0x39/0x50
[   18.224409]  [<ffffffff8161f866>] ? selinux_file_ioctl+0x116/0x1f0
[   18.224411]  [<ffffffff8122fbd9>] do_vfs_ioctl+0x89/0x580
[   18.224414]  [<ffffffff81615b9e>] ? security_file_ioctl+0x3e/0x60
[   18.224416]  [<ffffffff81230144>] SyS_ioctl+0x74/0x80
[   18.224418]  [<ffffffff81f41417>] entry_SYSCALL_64_fastpath+0x12/0x6a
[   18.224434] ---[ end trace 96f9191c17a9bf19 ]---
[   18.224437] ------------[ cut here ]------------
[   18.224439] WARNING: CPU: 3 PID: 2513 at include/drm/drm_gem.h:217 evdi_dumb_create+0xc1/0xd0 [evdi]()
[   18.224440] Modules linked in: vboxnetadp(O) vboxpci(O) vboxnetflt(O) vboxdrv(O) evdi(O) iwlmvm kvm_intel kvm iwlwifi
[   18.224444] CPU: 3 PID: 2513 Comm: X Tainted: G        W  O    4.5.3-gentoo #1
[   18.224445] Hardware name: Dell Inc. Inspiron 7559/0H0CC0, BIOS 1.0.3 09/23/2015
[   18.224446]  0000000000000000 ffff8800720d3d10 ffffffff816a2c58 0000000000000000
[   18.224448]  ffffffffa056d4cd ffff8800720d3d48 ffffffff810e3411 0000000000000000
[   18.224449]  ffff8800720d3df0 ffff88046d6d0100 ffff88046e648c00 00000000000000b2
[   18.224451] Call Trace:
[   18.224453]  [<ffffffff816a2c58>] dump_stack+0x4d/0x65
[   18.224455]  [<ffffffff810e3411>] warn_slowpath_common+0x81/0xc0
[   18.224456]  [<ffffffff810e3505>] warn_slowpath_null+0x15/0x20
[   18.224458]  [<ffffffffa056a751>] evdi_dumb_create+0xc1/0xd0 [evdi]
[   18.224460]  [<ffffffff817bd651>] drm_mode_create_dumb_ioctl+0xa1/0xb0
[   18.224462]  [<ffffffff817ae08d>] drm_ioctl+0x13d/0x560
[   18.224464]  [<ffffffff817bd5b0>] ? drm_mode_page_flip_ioctl+0x370/0x370
[   18.224466]  [<ffffffff8161dc79>] ? __inode_security_revalidate+0x39/0x50
[   18.224468]  [<ffffffff8161f866>] ? selinux_file_ioctl+0x116/0x1f0
[   18.224469]  [<ffffffff8122fbd9>] do_vfs_ioctl+0x89/0x580
[   18.224472]  [<ffffffff81615b9e>] ? security_file_ioctl+0x3e/0x60
[   18.224473]  [<ffffffff81230144>] SyS_ioctl+0x74/0x80
[   18.224475]  [<ffffffff81f41417>] entry_SYSCALL_64_fastpath+0x12/0x6a
[   18.224476] ---[ end trace 96f9191c17a9bf1a ]---
[   18.224584] evdi: [D] evdi_painter_crtc_state_notify:359 (dev=0) Notifying crtc state: 3
[   18.224586] evdi: [W] evdi_painter_send_crtc_state:253 Painter is not connected!
[   18.224589] evdi: [D] evdi_painter_crtc_state_notify:359 (dev=0) Notifying crtc state: 3
[   18.224590] evdi: [W] evdi_painter_send_crtc_state:253 Painter is not connected!
[   18.225218] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   18.225221] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   18.225655] evdi: [D] evdi_detect:72 Painter is disconnected
[   18.225675] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   18.225677] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   18.229036] evdi: [W] evdi_painter_disconnect:462 (dev=1) An unknown connection to ffff88046bf1a600 tries to close us
[   18.229038] evdi: [W] evdi_painter_disconnect:463  - ignoring
[   18.231642] evdi: [W] evdi_painter_disconnect:462 (dev=0) An unknown connection to ffff88046bf1a600 tries to close us
[   18.231644] evdi: [W] evdi_painter_disconnect:463  - ignoring
[   18.234463] evdi: [D] evdi_painter_connect:433 (dev=0) Connected with           (null)
[   18.234466] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   18.235475] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   18.235477] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   18.235698] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   18.235700] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   70.227372] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   70.227381] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   70.407506] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   70.407515] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   70.591234] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   70.591243] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   70.874319] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   70.874325] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   70.874985] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   70.874991] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   71.053172] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   71.053179] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   71.053816] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   71.053820] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   71.234126] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   71.234132] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   71.234757] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   71.234760] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   71.418365] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   71.418375] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   71.419533] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   71.419540] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   71.426621] evdi: [D] evdi_painter_mode_changed_notify:376 (dev=1) Notifying mode changed: 1920x1080@60; bpp 32; 
[   71.426627] evdi: [D] evdi_painter_mode_changed_notify:377 pixel format 875713112
[   71.426641] evdi: [D] evdi_painter_crtc_state_notify:359 (dev=1) Notifying crtc state: 0
[   71.607291] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   71.607299] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   71.608142] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   71.608148] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   71.788981] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   71.788985] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   71.789440] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   71.789442] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   72.111289] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   72.111296] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   72.112147] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   72.112153] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   72.117640] evdi: [D] evdi_painter_mode_changed_notify:376 (dev=2) Notifying mode changed: 1920x1080@60; bpp 32; 
[   72.117644] evdi: [D] evdi_painter_mode_changed_notify:377 pixel format 875713112
[   72.117653] evdi: [D] evdi_painter_crtc_state_notify:359 (dev=2) Notifying crtc state: 0
[   72.299938] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   72.299944] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   72.300618] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   72.300622] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   72.480192] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   72.480198] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   72.480936] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   72.480940] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   73.307268] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   73.307275] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   73.308114] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   73.308120] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   73.329354] evdi: [W] evdi_painter_mode_changed_notify:384 (dev=1) Change mode duplicated - ignoring
[   73.329361] evdi: [D] evdi_painter_crtc_state_notify:359 (dev=1) Notifying crtc state: 0
[   73.520824] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   73.520828] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   73.521246] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   73.521248] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   73.716754] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   73.716758] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   73.717118] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   73.717121] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   73.896876] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   73.896883] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   73.897602] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   73.897607] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   74.075904] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   74.075911] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   74.076624] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   74.076629] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   74.255740] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   74.255749] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   74.256745] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   74.256751] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   74.435903] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   74.435913] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   74.437060] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   74.437068] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   75.012780] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   75.012790] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   75.013940] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   75.013949] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   75.240609] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   75.240613] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   75.241060] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   75.241063] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   75.439726] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   75.439733] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   75.440455] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   75.440459] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   75.624528] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   75.624533] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   75.625092] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   75.625095] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff
[   75.803623] evdi: [D] evdi_detect:69 (dev=1) Painter is connected
[   75.803631] evdi: [D] evdi_painter_get_edid_copy:186 (dev=1) 00 ff ff
[   75.804475] evdi: [D] evdi_detect:69 (dev=2) Painter is connected
[   75.804481] evdi: [D] evdi_painter_get_edid_copy:186 (dev=2) 00 ff ff

Software used:
Gentoo, Kernel 4.5.3
evdi 1.1.61 (1.1.61 tag from github)
Displaylink 1.1.68 from displaylink.com
xorg-server 1.17.4

Hardware:
Dell Inspiron 7559
Dell D3100

Fedora 24 AMD64: evdi_painter_crtc_state_notify:362 Painter does not exist!

As it says on the title.

OS: Fedora 24 AMD64
Kernel: 4.6.4-301.fc24.x86_64
DisplayLink software: 1.1.65 (Installed from https://github.com/ssaavedra/displaylink-rpm/releases/download/v1.1.65-5/displaylink-1.1.65-5.x86_64.rpm)
Displays: ASUS MB169B+ x2

The ASUS logo is displayed then the screen turns back off when plugged in. No additional screens appear in any RandR tools.

Displays are known good: they work on this machine in Windows 10.
The RPM is known good: the driver works on another machine with Fedora 24 AMD64 and kernel 4.6.4-301.fc24.x86_64.

It doesn't seem to matter if I do one at a time or both of them at once.

The relevant portion of dmesg output:

[  119.773307] evdi: [D] add_store:195 Increasing device count to 1
[  119.775968] evdi: [D] evdi_crtc_init:304 drm_crtc_init: 0
[  119.776347] evdi: [W] evdi_painter_crtc_state_notify:362 Painter does not exist!
[  119.776359] evdi: [D] evdi_detect:72 Painter is disconnected
[  119.776373] evdi evdi.0: No connectors reported connected with modes
[  119.776381] [drm] Cannot find any crtc or sizes - going 1024x768
[  119.782981] evdi evdi.0: fb1: evdidrmfb frame buffer device
[  119.782996] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[  119.783003] [drm] No driver support for vblank timestamp query.
[  119.783009] [drm] evdi: evdi_stats_init
[  119.783034] [drm] Initialized evdi 1.1.65 20160512 on minor 1
[  119.878077] evdi: [W] evdi_painter_disconnect:462 (dev=0) An unknown connection to ffff88036f437a00 tries to close us
[  119.878086] evdi: [W] evdi_painter_disconnect:463  - ignoring

Output from the support tool:
SoraLaptop_2016-08-01T11:17:03.558863.zip

kernel drm:drm_wait_vblank *ERROR* Unsupported type value 0x15b, supported mask 0x7400003f

Hello
Dell XPS13 9360, Dell MKS14 USB3 docking station, last version of driver(1.2.65), Ubuntu 16.04 (Unity, kernel 4.4.0-45-generic). All works but a lot of errors in syslog

Oct 28 12:43:47 adept-XPS-13-9360 kernel: [ 3530.667627] [drm:drm_wait_vblank [drm]] ERROR Unsupported type value 0x15b, supported mask 0x7400003f
Oct 28 12:43:47 adept-XPS-13-9360 kernel: [ 3530.672453] [drm:drm_wait_vblank [drm]] ERROR Unsupported type value 0x15b, supported mask 0x7400003f

Closed-source NVIDIA driver support

Hi,

thanks so much for releasing DisplayLink driver for linux, it is a great commitment for all powerusers who need more screens to work ;)

A question, as mentioned in support, displaylink on linux doesn't work when primary GPU is managed by closed source driver from Nvidia or AMD.

As I saw in dmesg, both evdi and DisplayLinkManager work and they correctly detect attached monitor, so I guess the problem is somewhere in X subsystems like xrandr, right?

Is there any workaround or fix for that?

thanks

Freeze with Kernel 4.3

Hi, with ubuntu-15.10, kernel 4.3 I have this kernel panic:

Nov 27 18:08:11 xps kernel: [    2.810172] [ ] evdi_init Initialising logging on level 5
Nov 27 18:08:11 xps kernel: [    2.822094] brcmf_add_if: ERROR: netdev:wlp2s0 already exists
Nov 27 18:08:11 xps kernel: [    2.822098] brcmf_add_if: ignore IF event
Nov 27 18:08:11 xps kernel: [    2.916729] clocksource: Switched to clocksource tsc
Nov 27 18:08:11 xps kernel: [    3.303497] input: HDA Intel PCH Headphone Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input15
Nov 27 18:08:11 xps kernel: [    3.303669] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input16
Nov 27 18:08:11 xps kernel: [    3.303859] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input17
Nov 27 18:08:11 xps kernel: [    3.304085] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input18
Nov 27 18:08:12 xps kernel: [    3.631854] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Nov 27 18:08:12 xps kernel: [    3.631860] Bluetooth: BNEP filters: protocol multicast
Nov 27 18:08:12 xps kernel: [    3.631867] Bluetooth: BNEP socket layer initialized
Nov 27 18:08:13 xps kernel: [    4.615526] [D] add_store  increasing device count to 1
Nov 27 18:08:13 xps kernel: [    4.615881] [D] evdi_crtc_init drm_crtc_init: 0
Nov 27 18:08:13 xps kernel: [    4.615888] [D] evdi_encoder_init drm_encoder_init: 0
Nov 27 18:08:13 xps kernel: [    4.615989] [D] evdi_detect Painter is disconnected
Nov 27 18:08:13 xps kernel: [    4.615996] evdi evdi.0: No connectors reported connected with modes
Nov 27 18:08:13 xps kernel: [    4.616001] [drm] Cannot find any crtc or sizes - going 1024x768
Nov 27 18:08:13 xps kernel: [    4.617604] evdi evdi.0: fb1: evdidrmfb frame buffer device
Nov 27 18:08:13 xps kernel: [    4.617609] [drm] evdi: evdi_stats_init
Nov 27 18:08:13 xps kernel: [    4.617616] [drm] Initialized evdi 1.0.68 19700101 on minor 1
Nov 27 18:08:13 xps kernel: [    4.619576] [W] evdi_painter_disconnect (dev=0) An unknown connection to ffff8804a9f72000 tries to close us - ignoring
Nov 27 18:08:13 xps kernel: [    4.620290] [W] evdi_painter_disconnect (dev=0) An unknown connection to ffff8804a9f72000 tries to close us - ignoring
Nov 27 18:08:13 xps kernel: [    4.620354] ------------[ cut here ]------------
Nov 27 18:08:13 xps kernel: [    4.620368] WARNING: CPU: 0 PID: 825 at include/drm/drm_gem.h:217 evdi_dumb_create+0xc4/0xd0 [evdi]()
Nov 27 18:08:13 xps kernel: [    4.620371] Modules linked in: bnep snd_hda_codec_hdmi evdi(OE) bbswitch(OE) uvcvideo cdc_mbim cdc_wdm videobuf2_vmalloc videobuf2_memops videobuf2_core cdc_ncm v4l2_common videodev media btusb btrtl snd_usb_audio usbnet mii snd_usbmidi_lib usbhid hid_multitouch joydev i2c_designware_platform i2c_designware_core dell_led snd_hda_codec_realtek dell_wmi dell_laptop snd_hda_codec_generic sparse_keymap dcdbas intel_rapl x86_pkg_temp_thermal snd_hda_intel intel_powerclamp snd_hda_codec coretemp kvm_intel snd_hda_core snd_hwdep kvm snd_pcm crct10dif_pclmul crc32_pclmul snd_seq_midi snd_seq_midi_event nls_iso8859_1 aesni_intel idma64 virt_dma aes_x86_64 lrw snd_rawmidi gf128mul glue_helper ablk_helper cryptd snd_seq input_leds snd_seq_device snd_timer serio_raw snd brcmfmac soundcore brcmutil cfg80211 rtsx_pci_ms memstick mei_me mei intel_lpss_pci processor_thermal_device intel_soc_dts_iosf shpchp iosf_mbi hci_uart btbcm btqca btintel bluetooth int3403_thermal dell_smo8800 intel_lpss_acpi intel_lpss int3402_thermal int3400_thermal int340x_thermal_zone acpi_thermal_rel acpi_pad acpi_als kfifo_buf mac_hid industrialio parport_pc ppdev lp parport autofs4 rtsx_pci_sdmmc i915 nouveau mxm_wmi ttm i2c_algo_bit drm_kms_helper psmouse syscopyarea sysfillrect sysimgblt fb_sys_fops drm rtsx_pci nvme ahci libahci i2c_hid hid wmi pinctrl_sunrisepoint video pinctrl_intel fjes
Nov 27 18:08:13 xps kernel: [    4.620521] CPU: 0 PID: 825 Comm: Xorg Tainted: G           OE   4.3.0-994-generic #201511122102
Nov 27 18:08:13 xps kernel: [    4.620524] Hardware name: Dell Inc. XPS 15 9550/0N7TVV, BIOS 01.00.05 10/14/2015
Nov 27 18:08:13 xps kernel: [    4.620527]  ffffffffc09a1a36 ffff8804ab043d20 ffffffff813a4c94 0000000000000000
Nov 27 18:08:13 xps kernel: [    4.620533]  ffff8804ab043d58 ffffffff81078052 0000000000000000 ffff8804ab043df0
Nov 27 18:08:13 xps kernel: [    4.620537]  ffff8804a8ea9300 0000000000000072 ffff8804a9f72000 ffff8804ab043d68
Nov 27 18:08:13 xps kernel: [    4.620542] Call Trace:
Nov 27 18:08:13 xps kernel: [    4.620553]  [<ffffffff813a4c94>] dump_stack+0x44/0x60
Nov 27 18:08:13 xps kernel: [    4.620559]  [<ffffffff81078052>] warn_slowpath_common+0x82/0xc0
Nov 27 18:08:13 xps kernel: [    4.620563]  [<ffffffff8107814a>] warn_slowpath_null+0x1a/0x20
Nov 27 18:08:13 xps kernel: [    4.620570]  [<ffffffffc099ed44>] evdi_dumb_create+0xc4/0xd0 [evdi]
Nov 27 18:08:13 xps kernel: [    4.620598]  [<ffffffffc00cf048>] drm_mode_create_dumb_ioctl+0xa8/0xc0 [drm]
Nov 27 18:08:13 xps kernel: [    4.620613]  [<ffffffffc00bf562>] drm_ioctl+0x152/0x540 [drm]
Nov 27 18:08:13 xps kernel: [    4.620637]  [<ffffffffc00cefa0>] ? drm_mode_page_flip_ioctl+0x370/0x370 [drm]
Nov 27 18:08:13 xps kernel: [    4.620667]  [<ffffffffc02064b2>] ? nvbios_cstepXe+0x32/0x70 [nouveau]
Nov 27 18:08:13 xps kernel: [    4.620674]  [<ffffffff811d27a7>] ? kmem_cache_alloc+0x187/0x200
Nov 27 18:08:13 xps kernel: [    4.620679]  [<ffffffff812003c6>] ? getname_flags+0x56/0x1f0
Nov 27 18:08:13 xps kernel: [    4.620684]  [<ffffffff81204205>] do_vfs_ioctl+0x285/0x470
Nov 27 18:08:13 xps kernel: [    4.620688]  [<ffffffff81200364>] ? putname+0x54/0x60
Nov 27 18:08:13 xps kernel: [    4.620692]  [<ffffffff81204469>] SyS_ioctl+0x79/0x90
Nov 27 18:08:13 xps kernel: [    4.620700]  [<ffffffff817b3336>] entry_SYSCALL_64_fastpath+0x16/0x75
Nov 27 18:08:13 xps kernel: [    4.620704] ---[ end trace 862da73ccd83af1d ]---

any idea how to fix this ?

My monitor (Samsung SyncMaster S27B550) is connected via HDMI and has audio device

Debian 4.5.x kernel issues

It seems that at lest with Debian this code is not working in evdi_fb.c

#if KERNEL_VERSION(4, 5, 0) >= LINUX_VERSION_CODE
                                       0, ufb->obj->base.size,
#endif

here is the top of the dams log

DKMS make.log for evdi-1.0.453 for kernel 4.5.0-1-armmp (armv7l)
Wed May  4 18:28:39 UTC 2016
make KBUILD_VERBOSE=1 SUBDIRS=/var/lib/dkms/evdi/1.0.453/build SRCROOT=/var/lib/
dkms/evdi/1.0.453/build CONFIG_MODULE_SIG= -C /lib/modules/4.5.0-1-armmp/build m
modules

and here is the error from the log

/var/lib/dkms/evdi/1.0.453/build/evdi_fb.c: In function ‘evdi_user_framebuffer_d
irty’:
/var/lib/dkms/evdi/1.0.453/build/evdi_fb.c:240:4: error: too few arguments to fu
nction ‘dma_buf_begin_cpu_access’
    dma_buf_begin_cpu_access(
    ^
In file included from /var/lib/dkms/evdi/1.0.453/build/evdi_fb.c:15:0:
/usr/src/linux-headers-4.5.0-1-common/include/linux/dma-buf.h:227:5: note: decla
red here
 int dma_buf_begin_cpu_access(struct dma_buf *dma_buf, size_t start, size_t len,
     ^
/var/lib/dkms/evdi/1.0.453/build/evdi_fb.c:259:3: error: too few arguments to fu
nction ‘dma_buf_end_cpu_access’
   dma_buf_end_cpu_access(ufb->obj->base.import_attach->dmabuf,
   ^
In file included from /var/lib/dkms/evdi/1.0.453/build/evdi_fb.c:15:0:
/usr/src/linux-headers-4.5.0-1-common/include/linux/dma-buf.h:229:6: note: decla
red here
 void dma_buf_end_cpu_access(struct dma_buf *dma_buf, size_t start, size_t len,
      ^
/usr/src/linux-headers-4.5.0-1-common/scripts/Makefile.build:263: recipe for tar
get '/var/lib/dkms/evdi/1.0.453/build/evdi_fb.o' failed

does not work on Kensington SD4000 / Ubuntu 16.04 (linux 4.4 kernel)

when I installed the vendor binary it said my kernel version was not supported.
but it seemed to install the firmware and load the module OK anyways.

blacklab% lsusb
Bus 002 Device 003: ID 17e9:4344 DisplayLink
...
everything accessible throught the usb is working, but no second monitor shows up in the ubuntu prefs.

I git cloned, and built the kernel driver from source, it gave no errors, installed that .ko, and that worked fine, but no better result. just does not show up in the display settings dialog.

Firmware?

The package available Ubuntu for the DisplayLink docks contains 2 firmware files:

  • ella-dock-release.spkg
  • firefly-monitor-release.spkg

Those firmware are supposed to be uploaded if necessary to the docks, but there's no code in evdi, library or module, to support it. And no mention as to whether they are freely redistributable.

DisplayLink on D3100 is incredibly slow

Just tried the new release. I've a Dell D3100 dock connected to a Fedora system, compiled the kernel module and installed the DisplayLinkManager and companions. I've disabled selinux because of tons of complaints I didn't want to investigate for testing.

Now - for the first time, I can see something on the secondary monitor. BUT it is so incredibly slow, that it can't be used at all. I'm not sure how I can debug that. Any ideas?

Ubuntu 16.10 running slow

Seems this is happening to a few of us:

http://www.displaylink.org/forum/showthread.php?p=81728&posted=1#post81728

I have a Precision 5510, and connected it to a Dell monitor with both a Dell USB 3 dongle, and a Dell D3100 dock (which is "linux compatible". Even with the latest Displaylink drivers, I'm seeing terrible performance on the second monitor. However, if I connect the monitor directly to the laptop's HDMI port, everything runs fine. I've noticed the following:

  1. Using bumblebee, running glxspheres on second monitor using Displaylink I get 1 fps when on intel graphics (both with Displayport, and HDMI connected to dock).
  2. Using bumblebee optirun, I get 200fps.
  3. Using bumblebee on the laptop monitor, I get 60 fps when on intel grpahics.
  4. Using bumblebee on the laptop monitor, I get 200 fps when using optirun.
  5. If I switch to Prime graphics using the dock, I get 2000 fps on the second monitor, but the internal monitor shuts off.

I've also run it using the open source drivers, and I get 60fps on the internal screen, but only 1 fps on the external one. Optirun doesn't work with the open source driver.

I'm currently running it with a seperate HDMI cable, which gives ok performance, but means the expensive D3100 dock is essentially a USB + ethernet hub; functionality which can be got from a £15 component. The same laptop runs when connected to an external 4K monitor using a Plugable thunderbolt 3 adapter, so I have to come to the conclusion that Displaylink just doesn't work.

Wayland support

Hi all,
do you have any plan to support wayland?

It looks to be the new standard for Linux (in Arch Linux already it is) and it is a little frustrating I can't use my dell dock at work.

Thanks and have a nice day :)

Fix for displaylink-installer.sh

Here's an improved version of detect_distro which makes it work not only on Ubuntu, but also on forks of Ubuntu such as Linux Mint, Elementary OS, etc. I'm sending this patch using my external monitor powered by DisplayLink on Linux Mint :-)

detect_distro()
{
  if which lsb_release >/dev/null; then
    lsb_release -u > /dev/null 2>&1
    lsb_release_exit_code=$?
    if [ "$lsb_release_exit_code" = "0" ]; then
      # if this is a fork then use -u to find upstream version
      local R=$(lsb_release -d -s -u)
    else
      local R=$(lsb_release -d -s)
    fi
    echo "Distribution discovered: $R"
    if [ -z "${R##Ubuntu 14.*}" ]; then
      SYSTEMINITDAEMON=upstart
    elif [ -z "${R##Ubuntu 15.*}" ]; then
      SYSTEMINITDAEMON=systemd
    else
      echo "none"
    fi
  else
    echo "WARNING: Unknown distribution, assuming defaults - this may fail." >&2
  fi
}

Kernel 4.2 Support

WARNING: Kernel version 4.2.0-17-generic is not supported. Highest supported version is 3.19.

When will 4.2 be supported?

Can't build drm/drm.h: No such file or directory

Hi,

Build problem:

make -C module 
make[1]: Entering directory '/home/nuclear/evdi/module'
make -C /lib/modules/4.2.1/build M=$PWD
make[2]: Entering directory '/usr/src/linux-4.2.1'
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/nuclear/evdi/module/evdi.mod.o
  LD [M]  /home/nuclear/evdi/module/evdi.ko
make[2]: Leaving directory '/usr/src/linux-4.2.1'
make[1]: Leaving directory '/home/nuclear/evdi/module'
make -C library 
make[1]: Entering directory '/home/nuclear/evdi/library'
cc -std=gnu99 -fPIC -I../module   -c -o evdi_lib.o evdi_lib.c
In file included from evdi_lib.c:4:0:
../module/evdi_ioctl.h:10:21: fatal error: drm/drm.h: No such file or directory
 #include <drm/drm.h>
                     ^
compilation terminated.
<builtin>: recipe for target 'evdi_lib.o' failed
make[1]: *** [evdi_lib.o] Error 1
make[1]: Leaving directory '/home/nuclear/evdi/library'
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 2

But drm package is installed.

*  x11-libs/libdrm
      Latest version available: 2.4.65
      Latest version installed: 2.4.65
      Size of files: 631 KiB
      Homepage:      http://dri.freedesktop.org/
      Description:   X.Org libdrm library
      License:       MIT
 gcc -v    
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.9.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.9.3/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.9.3 p1.2, pie-0.6.3' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --enable-lto --without-cloog --enable-libsanitizer
Thread model: posix
gcc version 4.9.3 (Gentoo 4.9.3 p1.2, pie-0.6.3) 

Same topic is here maggu2810/maggu2810-overlay#9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.