#StackBounty: #ubuntu #usb #display #touchpad #displaylink Asus USB Display via Displaylink Screen Artifacts and Touchpad Delay

Bounty: 50

System Information

Manufacturer: Micro-Star International Co., Ltd.
Product Name: GS63VR 7RF
Version: REV:1.0

Display Model

MB169B+

DisplayLink Version

1.4.210

When the display is plugged in to a USB port two things happen:

  1. The touchpad on the laptop has an induced lag in response
  2. When you click the mouse, a small artifact appears on the screen showing old pixels (see screenshot below)

enter image description here

/var/log/syslog after plug in, screen active, unplug (identifiable info removed):

Dec 17 16:54:58 tom-GS63VR-7RF DisplayLinkManager[6074]: [libevdi] ioctl: drop_master error=-1
Dec 17 16:54:58 tom-GS63VR-7RF DisplayLinkManager[6074]: message repeated 2 times: [ [libevdi] ioctl: drop_master error=-1]
Dec 17 16:54:58 tom-GS63VR-7RF systemd[1]: Stopped DisplayLink Manager Service.
Dec 17 16:55:07 tom-GS63VR-7RF kernel: [ 1461.403436] usb 2-2: new SuperSpeed USB device number 9 using xhci_hcd
Dec 17 16:55:07 tom-GS63VR-7RF mtp-probe: checking bus 2, device 9: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2"
Dec 17 16:55:07 tom-GS63VR-7RF mtp-probe: bus: 2, device: 9 was not an MTP device
Dec 17 16:55:07 tom-GS63VR-7RF kernel: [ 1461.424021] usb 2-2: New USB device found, idVendor=17e9, idProduct=ff0b
Dec 17 16:55:07 tom-GS63VR-7RF kernel: [ 1461.424022] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec 17 16:55:07 tom-GS63VR-7RF kernel: [ 1461.424023] usb 2-2: Product: ASUSTEK MB169B+
Dec 17 16:55:07 tom-GS63VR-7RF kernel: [ 1461.424023] usb 2-2: Manufacturer: DisplayLink
Dec 17 16:55:07 tom-GS63VR-7RF kernel: [ 1461.424024] usb 2-2: SerialNumber: XXXXXXXXXXXX
Dec 17 16:55:07 tom-GS63VR-7RF org.freedesktop.fwupd[1262]: (fwupd:2828): libdfu-WARNING **: interface found, but not interface data
Dec 17 16:55:07 tom-GS63VR-7RF kernel: [ 1461.453340] [UFW BLOCK] IN=wlp62s0 OUT= MAC= SRC=fe80:0000:0000:0000:9a8e:55bc:1eca:a62e DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=495965 PROTO=UDP SPT=8612 DPT=8612 LEN=24 
Dec 17 16:55:08 tom-GS63VR-7RF systemd[1]: Starting DisplayLink Manager Service...
Dec 17 16:55:08 tom-GS63VR-7RF sh[6198]: libkmod: ERROR ../libkmod/libkmod-config.c:635 kmod_config_parse: /etc/modprobe.d/local.conf line 1: ignoring bad line starting with 'drm_kms_helper'
Dec 17 16:55:08 tom-GS63VR-7RF systemd[1]: Started DisplayLink Manager Service.
Dec 17 16:55:10 tom-GS63VR-7RF kernel: [ 1464.219087] [UFW BLOCK] IN=wlp62s0 OUT= MAC=XXXXXXXXXXXX SRC=192.168.1.104 DST=192.168.1.192 LEN=348 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1900 DPT=51943 LEN=328 
Dec 17 16:55:10 tom-GS63VR-7RF kernel: [ 1464.219780] [UFW BLOCK] IN=wlp62s0 OUT= MAC=XXXXXXXXXXXX SRC=192.168.1.100 DST=192.168.1.192 LEN=348 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1900 DPT=51943 LEN=328 
Dec 17 16:55:10 tom-GS63VR-7RF kernel: [ 1464.220099] [UFW BLOCK] IN=wlp62s0 OUT= MAC=XXXXXXXXXXXX SRC=192.168.1.102 DST=192.168.1.192 LEN=348 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1900 DPT=51943 LEN=328 
Dec 17 16:55:11 tom-GS63VR-7RF kernel: [ 1465.220638] [UFW BLOCK] IN=wlp62s0 OUT= MAC=XXXXXXXXXXXX SRC=192.168.1.102 DST=192.168.1.192 LEN=348 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1900 DPT=51943 LEN=328 
Dec 17 16:55:11 tom-GS63VR-7RF kernel: [ 1465.220994] [UFW BLOCK] IN=wlp62s0 OUT= MAC=XXXXXXXXXXXX SRC=192.168.1.104 DST=192.168.1.192 LEN=348 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1900 DPT=51943 LEN=328 
Dec 17 16:55:18 tom-GS63VR-7RF kernel: [ 1472.148228] evdi: [W] evdi_painter_disconnect:593 (dev=-1) An unknown connection to XXXXXXXXXXXX tries to close us
Dec 17 16:55:18 tom-GS63VR-7RF kernel: [ 1472.148228] evdi: [W] evdi_painter_disconnect:594  - ignoring
Dec 17 16:55:18 tom-GS63VR-7RF kernel: [ 1472.152436] evdi: [D] evdi_painter_connect:572 (dev=2) Connected with XXXXXXXXXXXX
Dec 17 16:55:18 tom-GS63VR-7RF kernel: [ 1472.152437] evdi: [D] evdi_detect:75 (dev=2) Painter is connected
Dec 17 16:55:18 tom-GS63VR-7RF kernel: [ 1472.152473] evdi: [D] evdi_painter_crtc_state_notify:481 (dev=2) Notifying crtc state: 3
Dec 17 16:55:18 tom-GS63VR-7RF kernel: [ 1472.153428] evdi: [D] evdi_detect:75 (dev=2) Painter is connected
Dec 17 16:55:18 tom-GS63VR-7RF kernel: [ 1472.153430] evdi: [D] evdi_painter_get_edid_copy:215 (dev=2) 00 ff ff
Dec 17 16:55:18 tom-GS63VR-7RF kernel: [ 1472.182767] evdi: [D] evdi_painter_mode_changed_notify:505 (dev=2) Notifying mode changed: 1920x1080@60; bpp 32; 
Dec 17 16:55:18 tom-GS63VR-7RF kernel: [ 1472.182768] evdi: [D] evdi_painter_mode_changed_notify:506 pixel format 875713112
Dec 17 16:55:18 tom-GS63VR-7RF kernel: [ 1472.182772] evdi: [D] evdi_painter_crtc_state_notify:481 (dev=2) Notifying crtc state: 0
Dec 17 16:55:18 tom-GS63VR-7RF kernel: [ 1472.182773] evdi: [D] evdi_painter_dpms_notify:468 (dev=2) Notifying dpms mode: 0
Dec 17 16:55:26 tom-GS63VR-7RF kernel: [ 1480.071507] xhci_hcd 0000:00:14.0: Cannot set link state.
Dec 17 16:55:26 tom-GS63VR-7RF kernel: [ 1480.071520] usb usb2-port2: cannot disable (err = -32)
Dec 17 16:55:26 tom-GS63VR-7RF kernel: [ 1480.071534] usb 2-2: USB disconnect, device number 9
Dec 17 16:55:26 tom-GS63VR-7RF kernel: [ 1480.075859] evdi: [D] evdi_painter_disconnect:611 (dev=2) Disconnected from XXXXXXXXXXXX
Dec 17 16:55:26 tom-GS63VR-7RF kernel: [ 1480.075864] evdi: [D] evdi_detect:78 Painter is disconnected
Dec 17 16:55:26 tom-GS63VR-7RF kernel: [ 1480.076209] evdi: [W] evdi_painter_disconnect:593 (dev=-1) An unknown connection to XXXXXXXXXXXX tries to close us
Dec 17 16:55:26 tom-GS63VR-7RF kernel: [ 1480.076212] evdi: [W] evdi_painter_disconnect:594  - ignoring
Dec 17 16:55:26 tom-GS63VR-7RF kernel: [ 1480.077639] evdi: [D] evdi_detect:78 Painter is disconnected
Dec 17 16:55:26 tom-GS63VR-7RF systemd[1]: Stopping DisplayLink Manager Service...
Dec 17 16:55:26 tom-GS63VR-7RF kernel: [ 1480.093468] evdi: [D] evdi_painter_crtc_state_notify:481 (dev=-1) Notifying crtc state: 3
Dec 17 16:55:26 tom-GS63VR-7RF kernel: [ 1480.093469] evdi: [W] evdi_painter_send_crtc_state:387 Painter is not connected!
Dec 17 16:55:26 tom-GS63VR-7RF kernel: [ 1480.098596] [UFW BLOCK] IN=wlp62s0 OUT= MAC= SRC=fe80:0000:0000:0000:9a8e:55bc:1eca:a62e DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=495965 PROTO=UDP SPT=8612 DPT=8612 LEN=24 
Dec 17 16:55:27 tom-GS63VR-7RF DisplayLinkManager[6207]: [libevdi] ioctl: drop_master error=-1
Dec 17 16:55:27 tom-GS63VR-7RF DisplayLinkManager[6207]: message repeated 2 times: [ [libevdi] ioctl: drop_master error=-1]
Dec 17 16:55:27 tom-GS63VR-7RF systemd[1]: Stopped DisplayLink Manager Service.


Get this bounty!!!

#StackBounty: #ubuntu #nx X2GO client not forwarding keys like Ctrl and Alt

Bounty: 50

I really hope someone can point me in the right direction here.

X2GO server is on Ubuntu Server 16.04LTS ( Not a VM ).
X2GO client is on Kali Rolling Release ( Updated ).

Normally this would not be a problem but lets say I run a Terminal command like ping 8.8.8.8, I have to terminate it with CtrlC. Its also a pain when I’m trying to save something with CtrlS.

And it’s a real pain when I’m typing something and I have to use Caps Lock to cap a single letter.


Get this bounty!!!

#StackBounty: #linux #ubuntu #nfs #nfs4 NFS v4 server is causing stale file handle, but only when bind mount is a subdirectory

Bounty: 50

This problem is basically driving me insane, at this point. I have an Ubuntu 16.04 NFS server that was working fine with this configuration:

/etc/fstab:
UUID=b6bd34a3-f5af-4463-a515-be0b0b583f98  /data2  xfs  rw,relatime  0  0
/data2  /srv/nfs/cryodata    none    defaults,bind    0  0
/usr/local       /srv/nfs/local    none    defaults,bind    0  0

and

/etc/exports
/srv/nfs  192.168.159.31(rw,sync,fsid=0,crossmnt,no_subtree_check)
/srv/nfs/cryodata  192.168.159.31(rw,sync,no_subtree_check)
/srv/nfs/local      192.168.159.31(rw,sync,no_subtree_check)

This has all been working fine for months on the one nfs client using this configuration so far using these client side /etc/fstab entries:

kraken.bio.univ.edu:/local  /usr/local  nfs4  _netdev,auto  0  0
kraken.bio.univ.edu:/cryodata  /cryodata  nfs4  _netdev,auto  0  0

However, since this is a very large storage server, it was decided that it needs to accommodate several labs. So, I moved all the stuff that had been scattered across the /data2 partition into a /data2/cryodata subdirectory, and updated /etc/fstab on the server and /etc/exports as follows:

/etc/fstab:
...
/data2/cryodata  /srv/nfs/cryodata    none    defaults,bind    0  0
/data2/xray      /srv/nfs/xray    none    defaults,bind    0  0
/data2/EM        /srv/nfs/EM    none    defaults,bind    0  0
/usr/local       /srv/nfs/local    none    defaults,bind    0  0

and

/etc/exports
/srv/nfs  192.168.159.31(rw,sync,fsid=0,crossmnt,no_subtree_check)
/srv/nfs/cryodata  192.168.159.31(rw,sync,no_subtree_check)
/srv/nfs/EM  192.168.159.31(rw,sync,no_subtree_check)
/srv/nfs/xray  192.168.159.31(rw,sync,no_subtree_check)
/srv/nfs/local  192.168.159.31(rw,sync,no_subtree_check)

This simply does not work! When I try to mount the new mount on the client using the same client /etc/fstab entry:

{nfs client} /etc/fstab:
...
kraken.bio.univ.edu:/local  /usr/local  nfs4  _netdev,auto  0  0
kraken.bio.univ.edu:/cryodata  /cryodata  nfs4  _netdev,auto  0  0

.

# mount -v /cryodata
mount.nfs4: timeout set for Sat Feb 24 09:24:38 2018
mount.nfs4: trying text-based options 'addr=192.168.41.171,clientaddr=192.168.159.31'
mount.nfs4: mount(2): Stale file handle
mount.nfs4: trying text-based options 'addr=192.168.41.171,clientaddr=192.168.159.31'
mount.nfs4: mount(2): Stale file handle
mount.nfs4: trying text-based options 'addr=128.83.41.171,clientaddr=129.116.159.31'
...

The /usr/local continues to mount without problems. The first time I tried this I did forget to unexport/export the filesystems using exportfs -var before making changes, but since then I’ve switched back and forth, being careful to unexport and umount everything, with several server reboots in between. The original mount of a bind mount of the entire partition always works, and the bind mount of a subdirectory fails with the stale nfs handle message every time. I’ve tried enabling other nfs clients that have never mounted these partitions and get exactly the same error message: in this case it is definitely a server side problem. I’ve checked /var/lib/nfs/etab to make sure it’s cleared out between mount attempts, etc.

I thought the technique of bind mounting into an nfs server root directory resolved all these kinds of issues, but apparently not? The odd thing is /usr/local is a subdirectory of another partition, and it always mounts fine. It is on an ext3 md raid 1, although I can’t imagine this matters.

I’ve spent hours on this and have almost broken google looking for a solution to no avail.


Get this bounty!!!

#StackBounty: #networking #ubuntu #socat How to keep socat alive using keepalive option

Bounty: 50

I have this socat command that is running fine, but when no data is transfered, it is dying after exactly 5 minutes and I don’t understand why as I’ve set it up to send 100 keepalive every 10 seconds after the first 10 seconds. From what I understood of the socat man page, that should keep it alive for 1000s which is 16 minutes. Also, if I try to set keepcnt to 200, I get “setsockopt(7, 6, 6, {200}, 4): Invalid argument” but nowhere on internet could I find what is the max value for that argument so I think I must be missing something very obvious here.
Experimenting more with the arguments never changed the timeout value of 5mn. Setting lower value for keepcnt and higher values of keepintvl is accepted but simply has no visible effect.

socat -d -d -d -v pty,link=/tmp/lp1 tcp:192.168.0.5:9100,reuseaddr,keepalive,keepidle=10,keepintvl=10,keepcnt=100
2017/05/31 08:53:01 socat[16065] I This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)
2017/05/31 08:53:01 socat[16065] I This product includes software written by Tim Hudson (tjh@cryptsoft.com)
2017/05/31 08:53:01 socat[16065] I setting option "symbolic-link" to "/tmp/lp1"
2017/05/31 08:53:01 socat[16065] I openpty({5}, {6}, {"/dev/pts/1"},,) -> 0
2017/05/31 08:53:01 socat[16065] N PTY is /dev/pts/1
2017/05/31 08:53:01 socat[16065] I setting option "so-keepalive" to 1
2017/05/31 08:53:01 socat[16065] I setting option "tcp-keepidle" to 10
2017/05/31 08:53:01 socat[16065] I setting option "tcp-keepintvl" to 10
2017/05/31 08:53:01 socat[16065] I setting option "tcp-keepcnt" to 100
2017/05/31 08:53:01 socat[16065] N opening connection to AF=2 192.168.0.5:9100
2017/05/31 08:53:01 socat[16065] I starting connect loop
2017/05/31 08:53:01 socat[16065] I socket(2, 1, 6) -> 7
2017/05/31 08:53:01 socat[16065] N successfully connected from local address AF=2 192.168.0.4:56482
2017/05/31 08:53:01 socat[16065] I resolved and opened all sock addresses
2017/05/31 08:53:01 socat[16065] N starting data transfer loop with FDs [5,5] and [7,7]
2017/05/31 08:58:01 socat[16065] N socket 2 (fd 7) is at EOF
2017/05/31 08:58:02 socat[16065] I poll timed out (no data within 0.500000 seconds)
2017/05/31 08:58:02 socat[16065] I close(5)
2017/05/31 08:58:02 socat[16065] I shutdown(7, 2)
2017/05/31 08:58:02 socat[16065] N exiting with status 0


Get this bounty!!!

#StackBounty: #linux #ubuntu #microsoft-word #word-processor Linux word processor with good inline Word formula support

Bounty: 50

Is there a word processor for Linux, specifically Ubuntu, which has excellent support for Word equations in existing docx documents?

LibreOffice supports viewing and editing equations, but the editing process seems a bit complicated. You can’t just type in them; clicking them to edit them opens a new window in which you edit your equation. Ideally I’d like to be able to edit them in-line.

I also like Word’s ‘LaTeX shortcuts’ feature, where LaTeX symbol names such as theta are automatically replaced with actual Unicode symbols.

Are there any Word alternatives for Linux with all of these features?


Get this bounty!!!

#StackBounty: #ubuntu #windows-10-preview #windows-subsystem-for-linux Why does Ubuntu on Windows crash on startup?

Bounty: 50

I’m running Windows 10 Insider Preview Build 17074 for PC. The Windows Subsystem for Linux is enabled and I’ve installed Ubuntu on Windows from the Windows Store.

Whenever I try to launch Ubuntu, it fails with the following error message:

“The data area passed to a system call is too small.”

enter image description here

I’ve tried uninstalling/installing the app (via Apps & features) and disabling/enabling the Linux Subsystem (via Turn Windows features on or off), but still get the same error.

How can I fix this problem?

Windows version

Error message

Install Ubuntu

Uninstall Ubuntu


Get this bounty!!!

#StackBounty: #ubuntu #docker How to install missing /lib/modules/$(uname -r) on my trusty docker container

Bounty: 50

Running docker on a Mac

docker pull ubuntu:14.04
docker run -i -t ubuntu:14.04 /bin/bash

Linux Standard Base

root@d112db1e835e:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:    14.04
Codename:   trusty

My goal is to retire a dedicated laptop that I used to build some good old C code and use a docker container instead.

In order to compile my code, my Makefile is looking to run

Makefile:       /usr/bin/make -C /lib/modules/$(shell uname -r)/build M=$(PWD)/linux/$* modules

unfortunately the modules folder is empty

mysuer@d112db1e835e:~/robot$ ls -al /lib/modules/
ls: cannot access /lib/modules/: No such file or directory

On my linux machine, I can find the modules

$ ls -al /lib/modules/
total 28
drwxr-xr-x  7 root root 4096 Dez 13  2016 .
drwxr-xr-x 24 root root 4096 Apr 24  2017 ..
drwxr-xr-x  5 root root 4096 Dez 13  2016 3.13.0-105-generic
drwxr-xr-x  5 root root 4096 Jun 23  2015 3.13.0-55-generic
drwxr-xr-x  5 root root 4096 Jul 10  2015 3.13.0-57-generic
drwxr-xr-x  5 root root 4096 Nov  3  2015 3.13.0-65-generic
drwxr-xr-x  5 root root 4096 Nov 24  2015 3.13.0-68-generic

but no modules in my docker.

On my docker

uname -r
4.9.60-linuxkit-aufs

hence

/usr/bin/make -C /lib/modules/4.9.60-linuxkit-aufs/build .... FAILS

/lib/modules/4.9.60-linuxkit-aufs is not there.

How do I work around that?

Trying to install headers

apt-cache search linux-headers-4
linux-headers-4.2.0-18 - Header files related to Linux kernel version 4.2.0
linux-headers-4.2.0-18-generic - Linux kernel headers for version 4.2.0 on 64 bit x86 SMP
linux-headers-4.2.0-18-lowlatency - Linux kernel headers for version 4.2.0 on 64 bit x86 SMP
linux-headers-4.2.0-19 - Header files related to Linux kernel version 4.2.0
linux-headers-4.2.0-19-generic - Linux kernel headers for version 4.2.0 on 64 bit x86 SMP
linux-headers-4.2.0-19-lowlatency - Linux kernel headers for version 4.2.0 on 64 bit x86 SMP
linux-headers-4.2.0-21 - Header files related to Linux kernel version 4.2.0
linux-headers-4.2.0-21-generic - Linux kernel headers for version 4.2.0 on 64 bit x86 SMP
linux-headers-4.2.0-21-lowlatency - Linux kernel headers for version 4.2.0 on 64 bit x86 SMP
linux-headers-4.2.0-22 - Header files related to Linux kernel version 4.2.0
...

I don’t find headers for 4.9.60

root@d112db1e835e:~#  apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-4.9.60-linuxkit-aufs
E: Couldn't find any package by regex 'linux-headers-4.9.60-linuxkit-aufs'

or

root@d112db1e835e:~# apt-cache search linux-headers-4.9
root@d112db1e835e:~# 

no candidate

root@d112db1e835e:~# apt-get install linux-headers 
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Package linux-headers is a virtual package provided by:
  linux-headers-4.4.0-1010-aws 4.4.0-1010.10
  linux-headers-4.4.0-1009-aws 4.4.0-1009.9
... FILTERED ...
  linux-headers-3.13.0-100-lowlatency 3.13.0-100.147
  linux-headers-3.13.0-100-generic 3.13.0-100.147
You should explicitly select one to install.

E: Package 'linux-headers' has no installation candidate
root@d112db1e835e:~# 

doesn’t return any packages

root@d112db1e835e:~# apt-cache search linux-source     
linux-source - Linux kernel source with Ubuntu patches
linux-source-3.13.0 - Linux kernel source for version 3.13.0 with Ubuntu patches


Get this bounty!!!

#StackBounty: #ubuntu #usb #camera Why does my camera not show up in /dev although it does in dmesg? (Possible Ubuntu regression.)

Bounty: 100

A while ago I could plug in my Canon via USB and it would get mounted as an external drive. Nothing has been reconfigured in the camera, but now if I plug it in

$> dmesg
[103943.225623] usb 1-2: new high-speed USB device number 2 using xhci_hcd
[103943.430666] usb 1-2: New USB device found, idVendor=04a9, idProduct=3110
[103943.430673] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[103943.430677] usb 1-2: Product: Canon Digital Camera
[103943.430680] usb 1-2: Manufacturer: Canon Inc.

$> ls /dev/sd*
/dev/sda  /dev/sda1  /dev/sda2  /dev/sda3  /dev/sda4  /dev/sda5  /dev/sda6  /dev/sda7  /dev/sdb  /dev/sdb1  /dev/sdb2  /dev/sdb3

sda and sdb are internal disks. Previously the camera would show up as sdc. Presently, other USB devices show up as sdc and are mounted correctly.

What has gone wrong between dmesg and /dev? I think this broke after upgrading to Ubuntu 15.10.


Get this bounty!!!

#StackBounty: #ubuntu #crash Ubuntu 16.04 LTS randomly freezes

Bounty: 50

I just freshly installed Ubuntu on my ASUS Aspire E15. It’s alongside a Windows installation.

Roughly 10 minutes into my boot (maybe longer), everything will just freeze. I can move the mouse but no shortcuts work and no programs respond. I have to hold the power button to turn the computer off, then boot again. I think it may be related to a problem with git. I am trying to git pull in the background.

How would I go about determining what is causing the freezes?


Get this bounty!!!