You are not logged in.

#26 2013-09-13 18:46:13

chx
Member
Registered: 2011-05-28
Posts: 85

Re: USB DisplayLink Second Monitor

Now I am getting this:

[     5.298] (II) modesetting(G0): using drv /dev/dri/card1
[     5.298] (==) modesetting(G0): Depth 24, (==) framebuffer bpp 32
[     5.298] (==) modesetting(G0): RGB weight 888
[     5.298] (==) modesetting(G0): Default visual is TrueColor
[     5.298] (II) modesetting(G0): ShadowFB: preferred NO, enabled NO
[     5.383] (II) modesetting(G0): Output DVI-0 has no monitor section
[     5.467] (II) modesetting(G0): Output DVI-0 connected
[     5.467] (WW) modesetting(G0): Unable to find initial modes
[     5.467] (EE) modesetting(G0): Output DVI-0 enabled but has no modes
[     5.467] (EE) modesetting(G0): No modes.
[     5.467] hotplugged device 0 didn't configure
[     5.467] xf86: found device 1
[     5.467] removing GPU device /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/drm/card1/card1-DVI-I-1 (null)

Offline

#27 2013-09-23 01:04:11

ndt
Member
From: USA
Registered: 2011-10-12
Posts: 30
Website

Re: USB DisplayLink Second Monitor

Are you using xrandr and xf86-video-modesetting as suggested? I am not sure about this, but something about that log hints that you have a single Xorg.conf file somewhere where it is looking for modes.

For clarification of how I'm doing this, here's a script I wrote that sets up my DisplayLink monitor:

#!/bin/bash
# Script for setting up DisplayLink monitor.
#
# Fill in MAINOUTPUT, MAINPROVIDER, WIDTH, HEIGHT, and REFRESH with your own
# values before use.

MAINOUTPUT="LVDS1" # Obtained from xrandr --current
MAINPROVIDER="0"   # Obtained from xrandr --listproviders
WIDTH="1366"       # Width of DisplayLink monitor in pixels
HEIGHT="768"       # Height of DisplayLink monitor in pixels
REFRESH="59.9"     # Refresh rate of DisplayLink monitor

modeline=$(gtf $WIDTH $HEIGHT $REFRESH | grep -E "Modeline" | cut -d ' ' -f 4- |
           sed -e 's/"//g')
dlmodename=$(echo $modeline | cut -d ' ' -f 1)
dlprovider=$(xrandr --listproviders | grep modesetting | cut -d ' ' -f 2 | 
              sed -e 's/://g')
mainstatus=$(xrandr --current | grep $MAINOUTPUT | cut -d ' ' -f 3)
SEARCHLINE='\([0-9]\+\)x\([0-9]\+\)+\([0-9]\+\)+\([0-9]\+\)'
mainwidth=$(echo $mainstatus | sed 's/'$SEARCHLINE'/\1/g')
mainheight=$(echo $mainstatus | sed 's/'$SEARCHLINE'/\2/g')
mainx=$(echo $mainstatus | sed 's/'$SEARCHLINE'/\3/g')
mainy=$(echo $mainstatus | sed 's/'$SEARCHLINE'/\4/g')

tput setaf 6; tput bold;
printf ">> DisplayLink Mode: "
tput sgr0;
echo $modeline

tput setaf 6; tput bold;
printf ">> DisplayLink Provider: "
tput sgr0;
echo $dlprovider

tput setaf 6; tput bold;
printf ">> DisplayLink Mode name: "
tput sgr0;
echo $dlmodename

if ! xrandr | grep DVI; then
    xrandr --setprovideroutputsource $dlprovider $MAINPROVIDER
fi

if ! xrandr | grep $dlmodename; then
    tput setaf 6; tput bold;
    printf ">> Desired DisplayLink mode "
    tput sgr0;
    printf $dlmodename
    tput setaf 6; tput bold;
    printf " does not exist! Creating new mode ...\n"
    xrandr --newmode $modeline
fi

tput setaf 6; tput bold;
printf ">> DisplayLink output: "
tput sgr0;
dloutput=$(xrandr | grep DVI | cut -d ' ' -f 1)
echo $dloutput

xrandr --addmode $dloutput $dlmodename
xrandr --output $MAINOUTPUT --mode "$mainwidth"x"$mainheight" --pos "$mainx"x"$mainy" --rotate normal \
       --output $dloutput --mode $dlmodename --pos "$mainwidth"x"$mainy" --rotate normal \
       --output VGA1 --off

The output looks like:

$ ./displaylink.sh
>> Mode: 1368x768_59.90 85.72 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync
>> Provider: 1
>> Mode name: 1368x768_59.90
DVI-0 connected (normal left inverted right x axis y axis)
   1368x768_59.90   59.9  
  1368x768_59.90 (0x108)   85.7MHz
>> DisplayLink output: DVI-0

You can bind it to a udev event or whatever so it sets the monitor up every time you plug it in. It is able to automatically detect your DisplayLink monitor even when the name changes to DVI-0, DVI-1, ... as you hotplug it repeatedly. If you have a setup significantly different from mine, however, there's really no guarantee it will work.

The steps used if you were to do this manually are detailed earlier in this thread.

Last edited by ndt (2013-09-23 01:05:12)


[~/.]

Offline

#28 2013-09-26 07:49:19

unknown123
Member
Registered: 2013-09-26
Posts: 1

Re: USB DisplayLink Second Monitor

Hi,

thanks a lot! Works perfectly with my Thinkvision LT1421...

Only problem is, i need my LT1421s in pivot / vertical mode.

Does anybody have any idea how to get rotate working? Just like the previous poster xrandr starts to permanently fail with errors once i try to rotate the displaylink device.

Help would be greatly appreciated!

Thanks

Offline

#29 2013-10-04 00:43:39

chx
Member
Registered: 2011-05-28
Posts: 85

Re: USB DisplayLink Second Monitor

ndt wrote:

Are you using xrandr and xf86-video-modesetting as suggested?

Funny. Read back who suggested that big_smile

I will retest with Linux 3.11.

Offline

#30 2013-10-04 02:45:45

ndt
Member
From: USA
Registered: 2011-10-12
Posts: 30
Website

Re: USB DisplayLink Second Monitor

chx wrote:

Funny. Read back who suggested that big_smile

Oh ... woops. I am not sure what to suggest now, but I can tell you my setup that works, and you can try to find what differs.

I will retest with Linux 3.11.

Package versions:

$ pacman -Q linux-lts xorg-server xf86-video-modesetting xorg-xrandr nvidia intel-dri bumblebee
linux-lts 3.10.13-1
xorg-server 1.14.3-1
xf86-video-modesetting 0.8.0-1
xorg-xrandr 1.4.1-1
nvidia 325.15-7
intel-dri 9.2.0-2
bumblebee 3.2.1-3

No custom kernel params, udlfb blacklisted. No modules in mkinitcpio. udl must be autodetected, then, I guess.

cat /etc/mkinitcpio.conf
...
HOOKS="base systemd autodetect modconf block filesystems keyboard fsck shutdown"
...

xorg is started via systemd --user per the wiki articles on the topic, but I doubt this has anything to do with DisplayLink (it worked before I did that).


[~/.]

Offline

#31 2013-10-22 21:08:21

chx
Member
Registered: 2011-05-28
Posts: 85

Re: USB DisplayLink Second Monitor

Works again; who knows what happened... (and I found a carry on sized backpack housing the GearGrip Wide LCD harness + AOC 22" USB monitor)

Offline

#32 2013-10-27 11:19:32

jrk
Member
From: Nämberch
Registered: 2012-10-16
Posts: 29

Re: USB DisplayLink Second Monitor

Hi,

I just quickly skimmed the thread, so sorry if I missed this.
I'm interested in getting such an usb-to-dvi adapter myself and I'd like to now if it will work together with my laptop gpu (intel) just as if I'd plug in a vga monitor (i.e. extended desktop without xinerama).
Does this work or is this just an extra screen (e.g. 0:0 and 0:1)?

Offline

#33 2013-11-22 21:36:27

ndt
Member
From: USA
Registered: 2011-10-12
Posts: 30
Website

Re: USB DisplayLink Second Monitor

Possibly. I've had issues getting DisplayLink to work since doing a kenrel upgrade and kludging around with my GPU drivers. I have an Intel and nVidia card in my laptop and use optimus, plus hop around between open source/proprietary drivers more than is healthy. But at some point, I guess, I had it working.

As for Xorg, the methods described in this thread work with xrandr, so it is proper single-xorg multiscreen.

My understanding is that DisplayLink USB to DVI adapters use similar technology to DispalyLink monitors, though if anyone has specific knowledge about this please correct me if I'm wrong.


[~/.]

Offline

#34 2013-12-13 01:51:49

czikus
Member
Registered: 2013-12-13
Posts: 2

Re: USB DisplayLink Second Monitor

Ownaginatious wrote:

Well, in my haste at seeing all the success, I went and bought an AOC 16-inch DisplayLink monitor. Unfortunately, it's not working as smoothly as the 22-inch model.

I have the same exact problem you report (the device appears in xrandr, but I only see horizontal bars). Did you manage to resolve it? If not, let's compare our specs. I'm currently running Ubuntu 12.04 with xserver 1.13.3 and I tried various mainline kernels (3.9 / 3.11 / 3.12) all with the same results.

Offline

#35 2014-06-08 21:57:22

Ownaginatious
Member
Registered: 2010-08-28
Posts: 55

Re: USB DisplayLink Second Monitor

czikus wrote:
Ownaginatious wrote:

Well, in my haste at seeing all the success, I went and bought an AOC 16-inch DisplayLink monitor. Unfortunately, it's not working as smoothly as the 22-inch model.

I have the same exact problem you report (the device appears in xrandr, but I only see horizontal bars). Did you manage to resolve it? If not, let's compare our specs. I'm currently running Ubuntu 12.04 with xserver 1.13.3 and I tried various mainline kernels (3.9 / 3.11 / 3.12) all with the same results.

Sorry for the 6-month late response, but no, I never resolved the problem.

I am curious though as to what the present state of things is in regard to Displaylink on Linux. Any updates to the udl drivers anyone?

Offline

#36 2014-06-10 22:02:19

ndt
Member
From: USA
Registered: 2011-10-12
Posts: 30
Website

Re: USB DisplayLink Second Monitor

Ownaginatious wrote:

I am curious though as to what the present state of things is in regard to Displaylink on Linux. Any updates to the udl drivers anyone?

Not much, but there's a few minor bugfixes. Thinkvision displays still *work*, but they are as unsatable as they've ever been. Here's the kernel git log for udl:

drm$ git log --since="2013-06-01" --abbrev-commit udl > /tmp/udl-changelog-short
drm$ cat /tmp/udl-changelog-short
737583f USB: udl: proper error reporting
9f97ba8 Merge tag 'drm-intel-fixes-2014-04-04' of git://anongit.freedesktop.org/drm-intel into drm-next
f4510a2 drm: Replace crtc fb with primary plane fb (v3)
0654a65 Merge tag 'v3.14' into drm-intel-next-queued
347cf10 drm/udl: take reference to device struct for dma-bufs
2b932d8 drm/udl: fix Bpp calculation in dumb_create()
06c99161 drm/udl: fix error-path when damage-req fails
73e9efd drm: Push dirtyfb ioctl kms locking down to drivers
1d507b3 udl: fix issue with imported prime buffers
92b6f89 drm: Add separate Kconfig option for fbdev helpers
16eb5f4 drm: kill ->gem_init_object() and friends
d2aebe3 drm/udl: rip out set_need_resched
5dc9e1e drm/udl: use gem get/put page helpers
b0e898a drm: remove FASYNC support
08fcd72 drm: don't push static constants on stack for %*ph
43387b3 drm/gem: create drm_gem_dumb_destroy
0de2397 drm/gem: convert to new unified vma manager
fb85ac4 drm: Drop all the stub gamma_get, gamma_set, load_lut functions from drivers

Full diff.

Last edited by ndt (2014-06-10 22:02:48)


[~/.]

Offline

#37 2014-10-09 03:42:20

RankoKohime
Member
Registered: 2014-01-08
Posts: 65

Re: USB DisplayLink Second Monitor

Has anyone managed to get this display to work on a desktop with the proprietary Nvidia drivers installed?  I had it working when I just had the Intel graphics, but since running an Nvidia card, I no longer get it showing up when I do

xrandr --listproviders

Co-host of the Linux Tech and Gaming show/podcast

Offline

#38 2014-10-26 18:01:24

kc7noa
Member
Registered: 2014-09-05
Posts: 4

Re: USB DisplayLink Second Monitor

So what is hte best drivers and such to get the displaylink USB2 devices to work ...

dmseg shows that my displaylink is detected and placed with dev/fb1 .... but xrandr --listproviders shows only my intel (laptop) display ....

Offline

#39 2014-12-25 22:27:32

Peterdes
Member
Registered: 2012-09-22
Posts: 7

Re: USB DisplayLink Second Monitor

I have the very same issue, udl recognizing framebuffer fb1 (fb0 is nvidia's framebuffer, I suppose) and xrandr not listing displaylink, currently using NVIDIA propertiary drivers.

Also, I managed to use the displaylink alone with udlfb and Xinerama, and managed to start X on displaylink device alone with udl and Xinerama, but only with black screen as a result.

Last edited by Peterdes (2014-12-25 22:39:28)

Offline

Board footer

Powered by FluxBB