You are not logged in.
Pages: 1
Hi everyone
I'm using Arch with Enlightenment on a ThinkPad Yoga. I'm currently testing my OneLink Pro Dock. It has a DVI Output. It seems to regocnize the DVI Port of the Dual Screen but the external screen says it doesn't get a signal.
$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 276mm x 156mm panning 1920x1080+0+0
1920x1080 60.04*+
1400x1050 59.98
1280x1024 60.02
1280x960 60.00
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
800x600 60.00 60.32 56.25
700x525 59.98
640x512 60.02
640x480 60.00 59.94
512x384 60.00
400x300 60.32 56.34
320x240 60.05
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-1-1 connected (normal left inverted right x axis y axis)
1920x1200 59.95 +
1680x1050 59.88
1280x1024 75.02
1440x900 59.90
1280x960 60.00
1280x720 60.00 50.00 59.94
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 disconnected (normal left inverted right x axis y axis)
What's wrong here?
Offline
DP-1-1 is disabled
xrandr --output DP-1-1 --auto
man xrandr
Offline
THanks, now it works. May I ask where you saw that it was disabled? And what all the others DP are? Also it seems that I have to run that command each time I plug the dock in, so I'm wondering how I can automate this.
How can I detect that I plugged in the dock?
Will of course read about xrandr t set up everything more nicely.
Offline
Also it seems that I have to run that command each time I plug the dock in, so I'm wondering how I can automate this.
How can I detect that I plugged in the dock?
I've been search for a good solution myself and there is no easy way to automate this.
Autorandr is one option (https://github.com/wertarbyte/autorandr). However, this still requires you to manually run the command each time you dock/undock.
Whenever you dock, new peripherals/ports show up that are visible via lspci. You will need to write a udev rule whenever you detect one of these (see https://wiki.archlinux.org/index.php/Udev). These rules can call a script that runs whenever a device is added/removed.
But here's the catch. You cannot call xrandr in the udev script because of X11's latency. Udev will run the script immediately upon docking, but Xrandr will not yet recognize the secondary monitor at this stage. My hack involves this:
- Write a udev rule that runs a script upon docking. Let's call it foo_udev.sh
- foo_udev.sh simply writes to a temp file
- Use file-inotify to run a script foo_dock.sh whenever it detects changes to the temp file
- foo_dock.sh runs xrandr and whatever else you need when you dock
I did something similar to remap mouse buttons when a usb mouse is plugged in. Take a look at the solution here https://bbs.archlinux.org/viewtopic.php … 5#p1626055. You will need to make the necessary modifications when docking.
Offline
okay thanks for that info Lucky the dock isn't important at the moment. Will try to get it working and might post again if something nice shows up
Offline
https://keithp.com/blogs/x-on-resize/
Package: https://aur.archlinux.org/packages/x-on-resize/
DP-1-1 is only connected, but has no resolution assigned. Also the current mode is tagged with an asterisk.
Display Port provides a main link (DP-1) with 4 lanes which allow you to daisy chain outputs.
Offline
Pages: 1