You are not logged in.

#1 2019-09-11 13:25:20

noobr
Member
Registered: 2019-09-05
Posts: 9

[SOLVED] KDE + T480 + 3 displays

Hello,

I just bought this new lenovo T480 and a orico xc-306 docking station, I have a HP E231 monitor connected via the laptops HDMI and an Acer K222HQL on the docking stations HDMI port,
which is then connected to my laptop via the thunderbolt 3 port.

The thing is.... EVERY time I reboot or shutdown, then turn it all on again, the system starts normally but, I have to unplug and plug my docking station so the mouse and keyboard can get recognized ,
plus the main problem here is that I loose the displays setup...

it should alway look like this:

 correct display setup

I tried many things, and one that I saw and found pretty curious was the result of the command:

$ kcmshell5 xserver

which gave me this:
result of kcmshell5 xserver


as you can see it shows - on the available screens tab - only screen#0

Shouldn't it show screen 1, 2 and 3 ?
example:  1 laptop, 2 the acer monitor and 3 the hp monitor

ps. my laptop doesn't have nvidia or amd gpu, its all intels

Last edited by noobr (2019-09-11 21:23:24)

Offline

#2 2019-09-11 19:25:48

Swiggles
Member
Registered: 2014-08-02
Posts: 266

Re: [SOLVED] KDE + T480 + 3 displays

Some ideas, maybe something helps.

First rule out it is a security problem and disable that feature in your UEFI (should be roughly at Advanced/Security -> Thunderbolt) and allow all devices to connect.
Maybe it is a missing module during boot. Find the driver used by the dock by running

lsusb -v

And add it to your /etc/mkinitcpio.conf, rebuild the initram.

Please give us dmesg output:

# 1) Have dock connected
# 2) reboot
# 3) Device should not work -> Remove
# 4) replug device
dmesg

Offline

#3 2019-09-11 21:21:07

noobr
Member
Registered: 2019-09-05
Posts: 9

Re: [SOLVED] KDE + T480 + 3 displays

Swiggles wrote:

Some ideas, maybe something helps.

First rule out it is a security problem and disable that feature in your UEFI (should be roughly at Advanced/Security -> Thunderbolt) and allow all devices to connect.
Maybe it is a missing module during boot. Find the driver used by the dock by running

lsusb -v

And add it to your /etc/mkinitcpio.conf, rebuild the initram.

Please give us dmesg output:

# 1) Have dock connected
# 2) reboot
# 3) Device should not work -> Remove
# 4) replug device
dmesg

Thank you, I've just found a solution then came here and saw your help, here is what I did:
this helped me a lot: https://blog.victormendonca.com/2018/06 … e-screens/

$ sudo pacman -S xorg-xrandr

then got the displays and etc by doing...

$ xrandr
Screen 0: minimum 8 x 8, current 3000 x 1920, maximum 32767 x 32767
eDP1 connected primary (normal left inverted right x axis y axis)
   1920x1080     60.01 +  59.93    48.01  
   1680x1050     59.88  
   1400x1050     59.98  
   1600x900      60.00    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1368x768      60.00    59.88    59.85  
   1280x800      59.81    59.91  
   1280x720      59.86    60.00    59.74  
   1024x768      60.00  
   1024x576      60.00    59.90    59.82  
   960x540       60.00    59.63    59.82  
   800x600       60.32    56.25  
   864x486       60.00    59.92    59.57  
   640x480       59.94  
   720x405       59.51    60.00    58.99  
   640x360       59.84    59.32    60.00  
DP1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 480mm x 270mm
   1920x1080     60.00*+  59.94    30.00    29.97  
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x960      60.00  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      60.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected 1080x1920+1920+0 left (normal left inverted right x axis y axis) 510mm x 290mm
   1920x1080     60.00*+
   1680x1050     59.88  
   1600x900      60.00  
   1280x1024     60.02  
   1440x900      59.90  
   1280x720      60.00  
   1024x768      60.00  
   800x600       60.32  
   640x480       59.94  
   720x400       70.08  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

then with this information I added to /usr/share/sddm/scripts/Xsetup these lines:

xrandr --output eDP1 --off 
xrandr --output DP1 --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI2 --mode 1920x1080 --pos 1920x0 --rotate left

and about the dock, I had powertop --auto-tune running as a systemd service on startup, just disabled and it is all good.

now my KDE Display settings is like this from the beginning
finnaly good

I hope this may help others around!

Last edited by noobr (2019-09-11 21:22:30)

Offline

#4 2019-09-11 22:06:51

Swiggles
Member
Registered: 2014-08-02
Posts: 266

Re: [SOLVED] KDE + T480 + 3 displays

Thank you for the detailed solution!

You mentioned you disabled Powertop, but I assume you use it for saving power. In the wiki the remark for extracting the commands and pointers to the recommended configuration are quite helpful imo.

Offline

Board footer

Powered by FluxBB