PDA

View Full Version : Dell XPS 13 9350 + Dell 4-1 adapter


ned83
05-18-2016, 08:29 AM
I bought this and it works on Windows.

http://accessories.ap.dell.com/sna/productdetail.aspx?c=au&l=en&s=dhs&cs=audhs1&sku=492-11742

But I can't get VGA/HDMI to work on Ubuntu 14.04 (that I've installed manually, originally this was a Windows machine).

I've tried to run the driver from here

http://www.displaylink.com/downloads/ubuntu


[18:27]ned:~/Downloads/DisplayLink_recent$ sudo ./displaylink-driver-1.1.62.run
Verifying archive integrity... All good.
Uncompressing DisplayLink Linux Driver 1.1.62 100%
DisplayLink Linux Software 1.1.62 install script called: install
Distribution discovered: Ubuntu 14.04.4 LTS
Installing
Configuring EVDI DKMS module
Registering EVDI kernel module with DKMS
Building EVDI kernel module with DKMS
ERROR (code 3): Failed to build evdi/1.1.62. Consult /var/lib/dkms/evdi/1.1.62/build/make.log for details..
[18:28]ned:~/Downloads/DisplayLink_recent$


make.log


DKMS make.log for evdi-1.1.62 for kernel 4.4.0-040400rc6-generic (x86_64)
Wed May 18 18:28:04 AEST 2016
make KBUILD_VERBOSE=1 SUBDIRS=/var/lib/dkms/evdi/1.1.62/build SRCROOT=/var/lib/dkms/evdi/1.1.62/build CONFIG_MODULE_SIG= -C /lib/modules/4.4.0-040400rc6-generic/build modules
make[1]: Entering directory `/usr/src/linux-headers-4.4.0-040400rc6-generic'
Makefile:660: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /var/lib/dkms/evdi/1.1.62/build/.tmp_versions ; rm -f /var/lib/dkms/evdi/1.1.62/build/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/var/lib/dkms/evdi/1.1.62/build
gcc -Wp,-MD,/var/lib/dkms/evdi/1.1.62/build/.evdi_drv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/include -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -DCC_HAVE_ASM_GOTO -Iinclude/drm -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(evdi_drv)" -D"KBUILD_MODNAME=KBUILD_STR(evdi)" -c -o /var/lib/dkms/evdi/1.1.62/build/.tmp_evdi_drv.o /var/lib/dkms/evdi/1.1.62/build/evdi_drv.c
gcc: error: unrecognized command line option ‘-fstack-protector-strong’
make[2]: *** [/var/lib/dkms/evdi/1.1.62/build/evdi_drv.o] Error 1
make[1]: *** [_module_/var/lib/dkms/evdi/1.1.62/build] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-4.4.0-040400rc6-generic'
make: *** [all] Error 2



can anyone help me to fix this, please?

samjam
05-18-2016, 11:57 AM
it looks like the build system you have is not the one used to build your kernel.

Find what kernel package you have, and then try running:

apt-get update
apt-get upgrade
apt-get build-dep linux-image-3.19.0-59-generic # <-- (fix for your kernel version)

and then try again.

ned83
05-18-2016, 10:50 PM
those instructions will downgrade my kernel version, right?

I can't do that because I need the one I have -> kernel 4.4.0-040400rc6-generic

otherwise the wifi won't work. I had to upgrade it from 4.3 (I think it was 4.3)

any other ideas?

ned83
05-19-2016, 04:45 AM
I've just installed the new linux kernel, 4.6, released three days ago.

Still the same error..

mlukaszek
05-19-2016, 06:46 AM
You don't have to downgrade. Install linux-headers package that matches the kernel you're using, so /lib/modules/$(uname -r)/build points to something which has headers :)

Cheers,
Michal

ned83
05-19-2016, 06:52 AM
so I only need to do this?

sudo apt-get install linux-headers-$(uname -r)

and then try again to install the driver?

mlukaszek
05-19-2016, 07:54 AM
OK, I read this more carefully. I think you have the right headers installed already, but your compiler is a bit outdated:

make[1]: Entering directory `/usr/src/linux-headers-4.4.0-040400rc6-generic'
Makefile:660: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler


You probably need a newer gcc.
See similar problem for VirtualBox kernel modules - they also use DKMS.
https://forums.virtualbox.org/viewtopic.php?f=7&t=74238

Cheers,
Michal

ned83
05-19-2016, 08:04 AM
I have the right headers, indeed (kernel 4.6.0-040600-generic )

I have also the most recent GCC -> 4.9

If I try

sudo apt-get install gcc-4.9

I get

gcc-4.9-base is already the newest version.

Looks like in the error log it's using gcc 4.8, I might need to update the alternatives, let me try that.

do I maybe need gcc 5?

ned83
05-19-2016, 08:22 AM
I've managed!

I'm running Ubuntu 14.04, kernel 4.6 (just released a few days ago).

You need to be using gcc4.9. Even if you have it, it's not used by default.

Follow these steps

http://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-on-ubuntu-14-04#581497

and then just execute

sudo ./displaylink-driver-1.1.62.run

driver downloaded from here -> http://www.displaylink.com/downloads/ubuntu

The DE100 dongle works now :D

ned83
05-19-2016, 08:58 AM
now, since I've done all these thing the system has became laggy, not responsive as it was before..

windows are dragging, gets to a point that I have to restart the machine.

Can it be something to do with the gcc ?

It also kicks me out of my session and makes me log in back in. Like if it's a reboot. Damn it!

mlukaszek
05-19-2016, 09:01 AM
Can you grab the support logs? I wonder if you can be seeing this (http://www.displaylink.org/forum/showthread.php?t=64523).

Cheers,
Michal

samjam
05-19-2016, 09:03 AM
those instructions will downgrade my kernel version, right?

I can't do that because I need the one I have -> kernel 4.4.0-040400rc6-generic

otherwise the wifi won't work. I had to upgrade it from 4.3 (I think it was 4.3)

any other ideas?

I wasn't telling you to downgrade your kernel or even install a kernel,

This is the command I gave:

apt-get build-dep linux-image-3.19.0-59-generic # <-- (fix for your kernel version)

"build-dep" is to install the build-dependencies for whatever kernel you had installed.

But I see you got it working

Vanadium
05-19-2016, 10:25 AM
Take a look at your kernel messages (dmesg). Perhaps you are also seeing

[10478.409066] [drm:drm_wait_vblank [drm]] *ERROR* Unsupported type value 0x40000bf, supported mask 0x7400003f


A thread has been opened on this here (http://displaylink.org/forum/showthread.php?t=64523).