Issue with External Keyboard and Mouse Recognition at Login Screen after Installing SWAY

Hello,

Since I installed the SWAY version, I’ve been having a strange issue:

  1. When I start my laptop from a cold state, both my external screen and laptop screens light up and show the default login screen.
  2. However, my external keyboard and mouse, which are connected to a docking station along with the monitors, are not recognized.
  3. I enter my password using my laptop’s keyboard and log in.
  4. To make the external keyboard and mouse work, I have to unplug the docking station’s cable from my laptop and plug it in again.
  5. After doing that, the external peripheral devices are finally recognized.

Is there a way to make the OS recognize external peripheral devices at the login screen?

It could be that a driver for the docking station is not properly activated during boot.
You may want to confirm if this is true.

  1. Boot and login as you described
  2. Open a terminal and run this command:
journalctl -f
  1. Unplug and replug the docking station.
  2. Go to the terminal and press Ctrl+ C to stop the command from logging.
  3. Inspect the terminal output. It should show some HW and drivers changes. You may want to post it here for advice (use code format </> ).
1 Like

Docking stations are a known kind of quirk in Linux.

Most of the time my computer will have no problem. Sometimes if I restart though I’ll get screens missing even though my keyboard works or vice versa. It’s really intermittent and goes away with either another restart or re plugging in the dock.

Note I have Lenovo Thinkpad usbc gen 2

1 Like

Hi, thank you for your answer. I did what you suggested - please find the output of the above command:

Jul 03 16:26:00 xps159560 systemd[639]: Finished Exit the Session.
Jul 03 16:26:00 xps159560 systemd[639]: Reached target Exit the Session.
Jul 03 16:26:00 xps159560 (sd-pam)[640]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x8004 service=[systemd-user] terminal=[] user=[sddm] ruser=[<unknown>] rhost=[<unknown>]
Jul 03 16:26:00 xps159560 systemd[1]: user@966.service: Deactivated successfully.
Jul 03 16:26:00 xps159560 systemd[1]: Stopped User Manager for UID 966.
Jul 03 16:26:00 xps159560 systemd[1]: Stopping User Runtime Directory /run/user/966...
Jul 03 16:26:01 xps159560 systemd[1]: run-user-966.mount: Deactivated successfully.
Jul 03 16:26:01 xps159560 systemd[1]: user-runtime-dir@966.service: Deactivated successfully.
Jul 03 16:26:01 xps159560 systemd[1]: Stopped User Runtime Directory /run/user/966.
Jul 03 16:26:01 xps159560 systemd[1]: Removed slice User Slice of UID 966.
Jul 03 16:26:03 xps159560 bluetoothd[495]: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP record: Host is down
Jul 03 16:26:07 xps159560 kernel: pcieport 0000:00:1d.6: AER: Corrected error received: 0000:00:1d.6
Jul 03 16:26:07 xps159560 kernel: pcieport 0000:00:1d.6: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
Jul 03 16:26:07 xps159560 kernel: pcieport 0000:00:1d.6:   device [8086:a11e] error status/mask=00000001/00002000
Jul 03 16:26:07 xps159560 kernel: pcieport 0000:00:1d.6:    [ 0] RxErr                  (First)
Jul 03 16:26:09 xps159560 kernel: pcieport 0000:00:1c.0: AER: Multiple Corrected error received: 0000:02:00.0
Jul 03 16:26:09 xps159560 kernel: ath10k_pci 0000:02:00.0: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
Jul 03 16:26:09 xps159560 kernel: ath10k_pci 0000:02:00.0:   device [168c:003e] error status/mask=00000081/00006000
Jul 03 16:26:09 xps159560 kernel: ath10k_pci 0000:02:00.0:    [ 0] RxErr                  (First)
Jul 03 16:26:09 xps159560 kernel: ath10k_pci 0000:02:00.0:    [ 7] BadDLLP               
Jul 03 16:26:14 xps159560 kernel: ACPI BIOS Error (bug): Failure creating named object [\_GPE.XTBT.SPRT], AE_ALREADY_EXISTS (20221020/dswload2-326)
Jul 03 16:26:14 xps159560 kernel: ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20221020/psobject-220)
Jul 03 16:26:14 xps159560 kernel: ACPI Error: Aborting method \_GPE.XTBT due to previous error (AE_ALREADY_EXISTS) (20221020/psparse-529)
Jul 03 16:26:14 xps159560 kernel: ACPI Error: Aborting method \_GPE.XTBT due to previous error (AE_ALREADY_EXISTS) (20221020/psparse-529)
Jul 03 16:26:14 xps159560 kernel: ACPI Error: Aborting method \_GPE._E42 due to previous error (AE_ALREADY_EXISTS) (20221020/psparse-529)
Jul 03 16:26:14 xps159560 kernel: ACPI: Marking method _E42 as Serialized because of AE_ALREADY_EXISTS error
Jul 03 16:26:14 xps159560 kernel: ACPI Error: AE_ALREADY_EXISTS, while evaluating GPE method [_E42] (20221020/evgpe-511)
Jul 03 16:26:14 xps159560 kernel: pci 0000:06:00.0: [8086:1576] type 01 class 0x060400
Jul 03 16:26:14 xps159560 kernel: pci 0000:06:00.0: enabling Extended Tags
Jul 03 16:26:14 xps159560 kernel: pci 0000:06:00.0: supports D1 D2
Jul 03 16:26:14 xps159560 kernel: pci 0000:06:00.0: PME# supported from D0 D1 D2 D3hot D3cold
Jul 03 16:26:14 xps159560 kernel: pci 0000:06:00.0: 15.752 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x2 link at 0000:00:1d.6 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:00.0: [8086:1576] type 01 class 0x060400
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:00.0: enabling Extended Tags
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:00.0: supports D1 D2
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:00.0: PME# supported from D0 D1 D2 D3hot D3cold
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:01.0: [8086:1576] type 01 class 0x060400
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:01.0: enabling Extended Tags
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:01.0: supports D1 D2
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:01.0: PME# supported from D0 D1 D2 D3hot D3cold
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0: [8086:1576] type 01 class 0x060400
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0: enabling Extended Tags
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0: supports D1 D2
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0: PME# supported from D0 D1 D2 D3hot D3cold
Jul 03 16:26:14 xps159560 kernel: pci 0000:06:00.0: PCI bridge to [bus 07-3e]
Jul 03 16:26:14 xps159560 kernel: pci 0000:06:00.0:   bridge window [mem 0xd4000000-0xea0fffff]
Jul 03 16:26:14 xps159560 kernel: pci 0000:06:00.0:   bridge window [mem 0x90000000-0xb1ffffff 64bit pref]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:00.0: PCI bridge to [bus 08]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:00.0:   bridge window [mem 0xea000000-0xea0fffff]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:01.0: PCI bridge to [bus 09-3d]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:01.0:   bridge window [mem 0xd4000000-0xe9efffff]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:01.0:   bridge window [mem 0x90000000-0xb1ffffff 64bit pref]
Jul 03 16:26:14 xps159560 kernel: pci 0000:3e:00.0: [8086:15b5] type 00 class 0x0c0330
Jul 03 16:26:14 xps159560 kernel: pci 0000:3e:00.0: reg 0x10: [mem 0xe9f00000-0xe9f0ffff]
Jul 03 16:26:14 xps159560 kernel: pci 0000:3e:00.0: enabling Extended Tags
Jul 03 16:26:14 xps159560 kernel: pci 0000:3e:00.0: supports D1 D2
Jul 03 16:26:14 xps159560 kernel: pci 0000:3e:00.0: PME# supported from D0 D1 D2 D3hot D3cold
Jul 03 16:26:14 xps159560 kernel: pci 0000:3e:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x4 link at 0000:07:02.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0: PCI bridge to [bus 3e]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0:   bridge window [mem 0xe9f00000-0xe9ffffff]
Jul 03 16:26:14 xps159560 kernel: pci_bus 0000:07: Allocating resources
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:01.0: bridge window [io  0x1000-0x0fff] to [bus 09-3d] add_size 1000
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0: bridge window [io  0x1000-0x0fff] to [bus 3e] add_size 1000
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 3e] add_size 200000 add_align 100000
Jul 03 16:26:14 xps159560 kernel: pci 0000:06:00.0: bridge window [io  0x1000-0x0fff] to [bus 07-3e] add_size 2000
Jul 03 16:26:14 xps159560 kernel: pci 0000:06:00.0: BAR 13: no space for [io  size 0x2000]
Jul 03 16:26:14 xps159560 kernel: pci 0000:06:00.0: BAR 13: failed to assign [io  size 0x2000]
Jul 03 16:26:14 xps159560 kernel: pci 0000:06:00.0: BAR 13: no space for [io  size 0x2000]
Jul 03 16:26:14 xps159560 kernel: pci 0000:06:00.0: BAR 13: failed to assign [io  size 0x2000]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0: BAR 15: no space for [mem size 0x00200000 64bit pref]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:01.0: BAR 13: no space for [io  size 0x1000]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:01.0: BAR 13: failed to assign [io  size 0x1000]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0: BAR 13: no space for [io  size 0x1000]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0: BAR 13: failed to assign [io  size 0x1000]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0: BAR 15: no space for [mem size 0x00200000 64bit pref]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0: BAR 13: no space for [io  size 0x1000]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0: BAR 13: failed to assign [io  size 0x1000]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:01.0: BAR 13: no space for [io  size 0x1000]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:01.0: BAR 13: failed to assign [io  size 0x1000]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:00.0: PCI bridge to [bus 08]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:00.0:   bridge window [mem 0xea000000-0xea0fffff]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:01.0: PCI bridge to [bus 09-3d]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:01.0:   bridge window [mem 0xd4000000-0xe9efffff]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:01.0:   bridge window [mem 0x90000000-0xb1ffffff 64bit pref]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0: PCI bridge to [bus 3e]
Jul 03 16:26:14 xps159560 kernel: pci 0000:07:02.0:   bridge window [mem 0xe9f00000-0xe9ffffff]
Jul 03 16:26:14 xps159560 kernel: pci 0000:06:00.0: PCI bridge to [bus 07-3e]
Jul 03 16:26:14 xps159560 kernel: pci 0000:06:00.0:   bridge window [mem 0xd4000000-0xea0fffff]
Jul 03 16:26:14 xps159560 kernel: pci 0000:06:00.0:   bridge window [mem 0x90000000-0xb1ffffff 64bit pref]
Jul 03 16:26:14 xps159560 kernel: xhci_hcd 0000:3e:00.0: xHCI Host Controller
Jul 03 16:26:14 xps159560 kernel: xhci_hcd 0000:3e:00.0: new USB bus registered, assigned bus number 3
Jul 03 16:26:14 xps159560 kernel: xhci_hcd 0000:3e:00.0: hcc params 0x200077c1 hci version 0x110 quirks 0x0000000200009810
Jul 03 16:26:14 xps159560 kernel: xhci_hcd 0000:3e:00.0: xHCI Host Controller
Jul 03 16:26:14 xps159560 kernel: xhci_hcd 0000:3e:00.0: new USB bus registered, assigned bus number 4
Jul 03 16:26:14 xps159560 kernel: xhci_hcd 0000:3e:00.0: Host supports USB 3.1 Enhanced SuperSpeed
Jul 03 16:26:14 xps159560 kernel: usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.03
Jul 03 16:26:14 xps159560 kernel: usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Jul 03 16:26:14 xps159560 kernel: usb usb3: Product: xHCI Host Controller
Jul 03 16:26:14 xps159560 kernel: usb usb3: Manufacturer: Linux 6.3.9-arch1-1 xhci-hcd
Jul 03 16:26:14 xps159560 kernel: usb usb3: SerialNumber: 0000:3e:00.0
Jul 03 16:26:14 xps159560 kernel: hub 3-0:1.0: USB hub found
Jul 03 16:26:14 xps159560 kernel: hub 3-0:1.0: 2 ports detected
Jul 03 16:26:14 xps159560 kernel: usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.03
Jul 03 16:26:14 xps159560 kernel: usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Jul 03 16:26:14 xps159560 kernel: usb usb4: Product: xHCI Host Controller
Jul 03 16:26:14 xps159560 kernel: usb usb4: Manufacturer: Linux 6.3.9-arch1-1 xhci-hcd
Jul 03 16:26:14 xps159560 kernel: usb usb4: SerialNumber: 0000:3e:00.0
Jul 03 16:26:14 xps159560 kernel: hub 4-0:1.0: USB hub found
Jul 03 16:26:14 xps159560 kernel: hub 4-0:1.0: 2 ports detected
Jul 03 16:26:14 xps159560 kernel: usb 3-1: new high-speed USB device number 2 using xhci_hcd
Jul 03 16:26:15 xps159560 kernel: usb 3-1: New USB device found, idVendor=17ef, idProduct=30af, bcdDevice=60.90
Jul 03 16:26:15 xps159560 kernel: usb 3-1: New USB device strings: Mfr=10, Product=11, SerialNumber=0
Jul 03 16:26:15 xps159560 kernel: usb 3-1: Product: USB2.0 Hub
Jul 03 16:26:15 xps159560 kernel: usb 3-1: Manufacturer: Lenovo
Jul 03 16:26:15 xps159560 kernel: hub 3-1:1.0: USB hub found
Jul 03 16:26:15 xps159560 kernel: hub 3-1:1.0: 3 ports detected
Jul 03 16:26:15 xps159560 kernel: usb 4-1: new SuperSpeed Plus Gen 2x1 USB device number 2 using xhci_hcd
Jul 03 16:26:15 xps159560 kernel: usb 4-1: New USB device found, idVendor=17ef, idProduct=30ab, bcdDevice=51.14
Jul 03 16:26:15 xps159560 kernel: usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 03 16:26:15 xps159560 kernel: usb 4-1: Product: USB3.1 Hub             
Jul 03 16:26:15 xps159560 kernel: usb 4-1: Manufacturer: VIA Labs, Inc.         
Jul 03 16:26:15 xps159560 kernel: usb 4-1: SerialNumber: 000000001
Jul 03 16:26:15 xps159560 kernel: hub 4-1:1.0: USB hub found
Jul 03 16:26:15 xps159560 kernel: hub 4-1:1.0: 4 ports detected
Jul 03 16:26:15 xps159560 kernel: usb 3-1.1: new high-speed USB device number 3 using xhci_hcd
Jul 03 16:26:15 xps159560 kernel: usb 3-1.1: New USB device found, idVendor=17ef, idProduct=30ac, bcdDevice=51.14
Jul 03 16:26:15 xps159560 kernel: usb 3-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 03 16:26:15 xps159560 kernel: usb 3-1.1: Product: USB2.0 Hub             
Jul 03 16:26:15 xps159560 kernel: usb 3-1.1: Manufacturer: VIA Labs, Inc.         
Jul 03 16:26:15 xps159560 kernel: usb 3-1.1: SerialNumber: 000000001
Jul 03 16:26:15 xps159560 kernel: hub 3-1.1:1.0: USB hub found
Jul 03 16:26:15 xps159560 kernel: hub 3-1.1:1.0: 4 ports detected
Jul 03 16:26:15 xps159560 kernel: usb 3-1.2: new full-speed USB device number 4 using xhci_hcd
Jul 03 16:26:16 xps159560 kernel: usb 3-1.2: New USB device found, idVendor=17ef, idProduct=30b0, bcdDevice= 0.42
Jul 03 16:26:16 xps159560 kernel: usb 3-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 03 16:26:16 xps159560 kernel: usb 3-1.2: Product: ThinkPad USB-C Dock Audio
Jul 03 16:26:16 xps159560 kernel: usb 3-1.2: Manufacturer: Lenovo
Jul 03 16:26:16 xps159560 kernel: usb 3-1.2: SerialNumber: 000000000000
Jul 03 16:26:16 xps159560 kernel: hid-generic 0003:17EF:30B0.0002: hiddev96,hidraw1: USB HID v1.11 Device [Lenovo ThinkPad USB-C Dock Audio] on usb-0000:3e:00.0-1.2/input3
Jul 03 16:26:16 xps159560 kernel: usbcore: registered new interface driver usbhid
Jul 03 16:26:16 xps159560 kernel: usbhid: USB HID core driver
Jul 03 16:26:16 xps159560 kernel: usb 4-1.1: new SuperSpeed USB device number 3 using xhci_hcd
Jul 03 16:26:16 xps159560 kernel: usb 4-1.1: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=31.23
Jul 03 16:26:16 xps159560 kernel: usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
Jul 03 16:26:16 xps159560 kernel: usb 4-1.1: Product: Realtek USB LAN
Jul 03 16:26:16 xps159560 kernel: usb 4-1.1: Manufacturer: Realtek
Jul 03 16:26:16 xps159560 kernel: usb 4-1.1: SerialNumber: 3213000001
Jul 03 16:26:16 xps159560 kernel: usbcore: registered new interface driver snd-usb-audio
Jul 03 16:26:16 xps159560 systemd[695]: Reached target Sound Card.
Jul 03 16:26:16 xps159560 kernel: usb 3-1.3: new full-speed USB device number 5 using xhci_hcd
Jul 03 16:26:16 xps159560 kernel: pcieport 0000:00:1d.6: AER: Corrected error received: 0000:06:00.0
Jul 03 16:26:16 xps159560 kernel: pcieport 0000:06:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Receiver ID)
Jul 03 16:26:16 xps159560 kernel: pcieport 0000:06:00.0:   device [8086:1576] error status/mask=00000080/00002000
Jul 03 16:26:16 xps159560 kernel: pcieport 0000:06:00.0:    [ 7] BadDLLP               
Jul 03 16:26:16 xps159560 kernel: usb 3-1.3: New USB device found, idVendor=17ef, idProduct=30a9, bcdDevice=30.73
Jul 03 16:26:16 xps159560 kernel: usb 3-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 03 16:26:16 xps159560 kernel: usb 3-1.3: Product: 40AY
Jul 03 16:26:16 xps159560 kernel: usb 3-1.3: Manufacturer: Lenovo
Jul 03 16:26:16 xps159560 kernel: usb 3-1.3: SerialNumber: 1SSD21B41469ZVQ0SEPG
Jul 03 16:26:16 xps159560 kernel: usb 4-1.2: new SuperSpeed USB device number 4 using xhci_hcd
Jul 03 16:26:16 xps159560 kernel: usb 4-1.2: New USB device found, idVendor=0bda, idProduct=0411, bcdDevice= 1.04
Jul 03 16:26:16 xps159560 kernel: usb 4-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul 03 16:26:16 xps159560 kernel: usb 4-1.2: Product: 4-Port USB 3.0 Hub
Jul 03 16:26:16 xps159560 kernel: usb 4-1.2: Manufacturer: Generic
Jul 03 16:26:16 xps159560 kernel: hub 4-1.2:1.0: USB hub found
Jul 03 16:26:16 xps159560 kernel: hub 4-1.2:1.0: 4 ports detected
Jul 03 16:26:16 xps159560 kernel: usb 3-1.1.2: new high-speed USB device number 6 using xhci_hcd
Jul 03 16:26:16 xps159560 kernel: usb 3-1.1.2: New USB device found, idVendor=0bda, idProduct=5411, bcdDevice= 1.04
Jul 03 16:26:16 xps159560 kernel: usb 3-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul 03 16:26:16 xps159560 kernel: usb 3-1.1.2: Product: 4-Port USB 2.0 Hub
Jul 03 16:26:16 xps159560 kernel: usb 3-1.1.2: Manufacturer: Generic
Jul 03 16:26:16 xps159560 kernel: hub 3-1.1.2:1.0: USB hub found
Jul 03 16:26:16 xps159560 kernel: hub 3-1.1.2:1.0: 4 ports detected
Jul 03 16:26:16 xps159560 kernel: usb 4-1.3: new SuperSpeed Plus Gen 2x1 USB device number 5 using xhci_hcd
Jul 03 16:26:16 xps159560 kernel: usb 4-1.3: New USB device found, idVendor=17ef, idProduct=30ad, bcdDevice=51.13
Jul 03 16:26:16 xps159560 kernel: usb 4-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 03 16:26:16 xps159560 kernel: usb 4-1.3: Product: USB3.1 Hub             
Jul 03 16:26:16 xps159560 kernel: usb 4-1.3: Manufacturer: VIA Labs, Inc.         
Jul 03 16:26:16 xps159560 kernel: usb 4-1.3: SerialNumber: 000000001
Jul 03 16:26:16 xps159560 kernel: hub 4-1.3:1.0: USB hub found
Jul 03 16:26:16 xps159560 kernel: hub 4-1.3:1.0: 4 ports detected
Jul 03 16:26:16 xps159560 kernel: usb 3-1.1.3: new high-speed USB device number 7 using xhci_hcd
Jul 03 16:26:16 xps159560 kernel: usbcore: registered new device driver r8152-cfgselector
Jul 03 16:26:17 xps159560 kernel: usb 3-1.1.3: New USB device found, idVendor=17ef, idProduct=30ae, bcdDevice=51.13
Jul 03 16:26:17 xps159560 kernel: usb 3-1.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 03 16:26:17 xps159560 kernel: usb 3-1.1.3: Product: USB2.0 Hub             
Jul 03 16:26:17 xps159560 kernel: usb 3-1.1.3: Manufacturer: VIA Labs, Inc.         
Jul 03 16:26:17 xps159560 kernel: usb 3-1.1.3: SerialNumber: 000000001
Jul 03 16:26:17 xps159560 kernel: hub 3-1.1.3:1.0: USB hub found
Jul 03 16:26:17 xps159560 kernel: hub 3-1.1.3:1.0: 4 ports detected
Jul 03 16:26:17 xps159560 kernel: usb 3-1.1.2.1: new full-speed USB device number 8 using xhci_hcd
Jul 03 16:26:17 xps159560 kernel: usb 3-1.1.2.1: New USB device found, idVendor=046d, idProduct=c548, bcdDevice= 5.01
Jul 03 16:26:17 xps159560 kernel: usb 3-1.1.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul 03 16:26:17 xps159560 kernel: usb 3-1.1.2.1: Product: USB Receiver
Jul 03 16:26:17 xps159560 kernel: usb 3-1.1.2.1: Manufacturer: Logitech
Jul 03 16:26:17 xps159560 kernel: input: Logitech USB Receiver as /devices/pci0000:00/0000:00:1d.6/0000:06:00.0/0000:07:02.0/0000:3e:00.0/usb3/3-1/3-1.1/3-1.1.2/3-1.1.2.1/3-1.1.2.1:1.0/0003:046D:C548.0003/input/input23
Jul 03 16:26:17 xps159560 kernel: hid-generic 0003:046D:C548.0003: input,hidraw2: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:3e:00.0-1.1.2.1/input0
Jul 03 16:26:17 xps159560 kernel: r8152-cfgselector 4-1.1: reset SuperSpeed USB device number 3 using xhci_hcd
Jul 03 16:26:17 xps159560 kernel: input: Logitech USB Receiver Mouse as /devices/pci0000:00/0000:00:1d.6/0000:06:00.0/0000:07:02.0/0000:3e:00.0/usb3/3-1/3-1.1/3-1.1.2/3-1.1.2.1/3-1.1.2.1:1.1/0003:046D:C548.0004/input/input24
Jul 03 16:26:17 xps159560 kernel: input: Logitech USB Receiver Consumer Control as /devices/pci0000:00/0000:00:1d.6/0000:06:00.0/0000:07:02.0/0000:3e:00.0/usb3/3-1/3-1.1/3-1.1.2/3-1.1.2.1/3-1.1.2.1:1.1/0003:046D:C548.0004/input/input25
Jul 03 16:26:17 xps159560 kernel: r8152 4-1.1:1.0: load rtl8153b-2 v2 04/27/23 successfully
Jul 03 16:26:17 xps159560 kernel: input: Logitech USB Receiver System Control as /devices/pci0000:00/0000:00:1d.6/0000:06:00.0/0000:07:02.0/0000:3e:00.0/usb3/3-1/3-1.1/3-1.1.2/3-1.1.2.1/3-1.1.2.1:1.1/0003:046D:C548.0004/input/input26
Jul 03 16:26:17 xps159560 kernel: hid-generic 0003:046D:C548.0004: input,hidraw3: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:3e:00.0-1.1.2.1/input1
Jul 03 16:26:17 xps159560 kernel: hid-generic 0003:046D:C548.0005: hiddev97,hidraw4: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:3e:00.0-1.1.2.1/input2
Jul 03 16:26:17 xps159560 NetworkManager[531]: <info>  [1688397977.4087] manager: (eth0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/4)
Jul 03 16:26:17 xps159560 kernel: r8152 4-1.1:1.0 eth0: v1.12.13
Jul 03 16:26:17 xps159560 kernel: usbcore: registered new interface driver r8152
Jul 03 16:26:17 xps159560 kernel: usbcore: registered new interface driver cdc_ether
Jul 03 16:26:17 xps159560 kernel: usbcore: registered new interface driver r8153_ecm
Jul 03 16:26:17 xps159560 kernel: r8152 4-1.1:1.0 enp62s0u1u1: renamed from eth0
Jul 03 16:26:17 xps159560 systemd-logind[499]: Watching system buttons on /dev/input/event19 (Logitech USB Receiver Consumer Control)
Jul 03 16:26:17 xps159560 systemd-logind[499]: Watching system buttons on /dev/input/event20 (Logitech USB Receiver System Control)
Jul 03 16:26:17 xps159560 systemd-logind[499]: Watching system buttons on /dev/input/event17 (Logitech USB Receiver)
Jul 03 16:26:17 xps159560 NetworkManager[531]: <info>  [1688397977.4772] device (eth0): interface index 3 renamed iface from 'eth0' to 'enp62s0u1u1'
Jul 03 16:26:17 xps159560 kernel: usb 3-1.1.2.2: new full-speed USB device number 9 using xhci_hcd
Jul 03 16:26:17 xps159560 NetworkManager[531]: <info>  [1688397977.4825] device (enp62s0u1u1): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Jul 03 16:26:17 xps159560 NetworkManager[531]: <info>  [1688397977.4881] settings: (enp62s0u1u1): created default wired connection 'Wired connection 1'
Jul 03 16:26:17 xps159560 kernel: usb 3-1.1.2.2: New USB device found, idVendor=0c45, idProduct=5004, bcdDevice= 1.05
Jul 03 16:26:17 xps159560 kernel: usb 3-1.1.2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul 03 16:26:17 xps159560 kernel: usb 3-1.1.2.2: Product: USB DEVICE
Jul 03 16:26:17 xps159560 kernel: usb 3-1.1.2.2: Manufacturer: SONiX
Jul 03 16:26:17 xps159560 kernel: input: SONiX USB DEVICE as /devices/pci0000:00/0000:00:1d.6/0000:06:00.0/0000:07:02.0/0000:3e:00.0/usb3/3-1/3-1.1/3-1.1.2/3-1.1.2.2/3-1.1.2.2:1.0/0003:0C45:5004.0006/input/input27
Jul 03 16:26:17 xps159560 kernel: hid-generic 0003:0C45:5004.0006: input,hidraw5: USB HID v1.11 Keyboard [SONiX USB DEVICE] on usb-0000:3e:00.0-1.1.2.2/input0
Jul 03 16:26:17 xps159560 kernel: input: SONiX USB DEVICE Keyboard as /devices/pci0000:00/0000:00:1d.6/0000:06:00.0/0000:07:02.0/0000:3e:00.0/usb3/3-1/3-1.1/3-1.1.2/3-1.1.2.2/3-1.1.2.2:1.1/0003:0C45:5004.0007/input/input28
Jul 03 16:26:17 xps159560 kernel: input: SONiX USB DEVICE as /devices/pci0000:00/0000:00:1d.6/0000:06:00.0/0000:07:02.0/0000:3e:00.0/usb3/3-1/3-1.1/3-1.1.2/3-1.1.2.2/3-1.1.2.2:1.1/0003:0C45:5004.0007/input/input29
Jul 03 16:26:17 xps159560 kernel: hid-generic 0003:0C45:5004.0007: input,hiddev98,hidraw6: USB HID v1.11 Keyboard [SONiX USB DEVICE] on usb-0000:3e:00.0-1.1.2.2/input1
Jul 03 16:26:17 xps159560 systemd-logind[499]: Watching system buttons on /dev/input/event21 (SONiX USB DEVICE)
Jul 03 16:26:17 xps159560 kernel: usb 3-1.1.2.3: new high-speed USB device number 10 using xhci_hcd
Jul 03 16:26:17 xps159560 systemd-logind[499]: Watching system buttons on /dev/input/event22 (SONiX USB DEVICE Keyboard)
Jul 03 16:26:18 xps159560 kernel: usb 3-1.1.2.3: New USB device found, idVendor=046d, idProduct=0826, bcdDevice= 0.10
Jul 03 16:26:18 xps159560 kernel: usb 3-1.1.2.3: New USB device strings: Mfr=0, Product=2, SerialNumber=1
Jul 03 16:26:18 xps159560 kernel: usb 3-1.1.2.3: Product: HD Webcam C525
Jul 03 16:26:18 xps159560 kernel: usb 3-1.1.2.3: SerialNumber: CCA0FD50
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:00:1d.6: AER: Corrected error received: 0000:06:00.0
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:06:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Receiver ID)
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:06:00.0:   device [8086:1576] error status/mask=00000080/00002000
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:06:00.0:    [ 7] BadDLLP               
Jul 03 16:26:18 xps159560 kernel: usb 3-1.1.2.3: set resolution quirk: cval->res = 384
Jul 03 16:26:18 xps159560 kernel: usb 3-1.1.2.3: Found UVC 1.00 device HD Webcam C525 (046d:0826)
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:00:1d.6: AER: Corrected error received: 0000:06:00.0
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:06:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Receiver ID)
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:06:00.0:   device [8086:1576] error status/mask=00000080/00002000
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:06:00.0:    [ 7] BadDLLP               
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:00:1d.6: AER: Corrected error received: 0000:06:00.0
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:06:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Receiver ID)
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:06:00.0:   device [8086:1576] error status/mask=00000080/00002000
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:06:00.0:    [ 7] BadDLLP               
Jul 03 16:26:18 xps159560 kernel: usb 3-1.1.2.4: new full-speed USB device number 11 using xhci_hcd
Jul 03 16:26:18 xps159560 kernel: usb 3-1.1.2.4: New USB device found, idVendor=0b0e, idProduct=0305, bcdDevice= 4.01
Jul 03 16:26:18 xps159560 kernel: usb 3-1.1.2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 03 16:26:18 xps159560 kernel: usb 3-1.1.2.4: Product: Jabra EVOLVE LINK MS
Jul 03 16:26:18 xps159560 kernel: usb 3-1.1.2.4: Manufacturer: GN Netcom A/S
Jul 03 16:26:18 xps159560 kernel: usb 3-1.1.2.4: SerialNumber: 0008456AB21E0A
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:00:1d.6: AER: Corrected error received: 0000:06:00.0
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:06:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Receiver ID)
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:06:00.0:   device [8086:1576] error status/mask=00000080/00002000
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:06:00.0:    [ 7] BadDLLP               
Jul 03 16:26:18 xps159560 wireplumber[966]: <WpPortalPermissionStorePlugin:0x561476d9cf90> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
Jul 03 16:26:18 xps159560 wireplumber[966]: <WpPortalPermissionStorePlugin:0x561476d9cf90> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
Jul 03 16:26:18 xps159560 kernel: input: GN Netcom A/S Jabra EVOLVE LINK MS as /devices/pci0000:00/0000:00:1d.6/0000:06:00.0/0000:07:02.0/0000:3e:00.0/usb3/3-1/3-1.1/3-1.1.2/3-1.1.2.4/3-1.1.2.4:1.3/0003:0B0E:0305.0008/input/input30
Jul 03 16:26:18 xps159560 kernel: jabra 0003:0B0E:0305.0008: input,hiddev99,hidraw7: USB HID v1.00 Device [GN Netcom A/S Jabra EVOLVE LINK MS] on usb-0000:3e:00.0-1.1.2.4/input3
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:00:1d.6: AER: Corrected error received: 0000:06:00.0
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:06:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Receiver ID)
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:06:00.0:   device [8086:1576] error status/mask=00000080/00002000
Jul 03 16:26:18 xps159560 kernel: pcieport 0000:06:00.0:    [ 7] BadDLLP               
Jul 03 16:26:23 xps159560 kernel: dell_wmi: Unknown key with type 0x0012 and code 0x0000 pressed

Yes, I have observed that working with docking stations under Linux is not the best nor most predictable experience. For example, I noticed sometimes that my monitors will be recognised under different names (e.g. DP-4 & DP-7 and DP5 & DP6) which causes issues with my scripts.

Instead of using the output values that change every time, you can use the machine name (wrapped in quotes) and Sway will honor that. Run swaymsg -t get_outputs and use the piece that looks like “Some Company ABC123 0x00000000” instead of DP4, DP 5 and so on.

Some scripts will require double-quoting the name due to shell expansion.

2 Likes

Thanks! That’s a good shout, I will consider rewriting my wofi display setting script :slight_smile:

1 Like

Unfortunately, I don’t have the time to troubleshoot this like a personal support. It requires too much time. I can point out info sources that I would follow, if it was mine.

Archwiki udev
man udevadm
man udev

Find the device attributes, trigger with udevadm, and see if you can enable the dock with a command without replugging. If you make it, create a service unit to handle this, either on boot, or some other time. You might need to add some module in kernel image, and/or some kernel parameters.

Also, SDDM and Wayland might have to do with this.
sddm is just a user on the system and might need to be added some group, or privilege.

A tutorial about this would be of benefit for all users, instead of a one time solution for one case.

I wish success.

Double-check usbutils is installed.

If it’s already installed, you may need to update your BIOS firmware, or the firmware of the docking station itself.

3 Likes

Hi, sorry for the late response. I have installed that utility and I think that resolved the issue for me. I will continue to keep an eye but so far so good. I just don’t understand why it resolves the issue and why this was not part of the distro itself in the first place.

Btw, is it possible to provide an ID of the monitor instead of the name “DP*”? to the wlr-ranr command?

I don’t think wlr-ranr supports that feature actually, based on this thread: https://todo.sr.ht/~emersion/wlr-randr/12

I’m not sure what you are trying to do, but it may be worth checking out Kanshi.

1 Like

Thanks, will check it out. I have a very simply wofi script that I have bound to a keycombo that allows me to switch on external displays:

#!/bin/bash

# monitor configurations
monitorConfigs="Monitor1\nMonitor1&2\nLaptop"
chosen=$(echo -e "$monitorConfigs" | wofi --conf=$HOME/.config/wofi/config.power --style=$HOME/.config/wofi/style.widgets.css)

case "$chosen" in
"Monitor1") wlr-randr --output DP-7 --preferred --on --pos 0,0 --output eDP-1 --off --output DP-4 --off ;;
"Monitor1&2") wlr-randr --output DP-7 --preferred --on --pos 0,0 --output DP-4 --on --pos 1920,0 --output eDP-1 --off ;;
"Laptop") wlr-randr --output eDP-1 --preferred --on --pos 0,0 --output DP-4 --off --output DP-7 --off ;;
#"HDMI") wlr-randr --output HDMI-1 --mode 1920x1080 --output eDP-1 --off ;;
esac

Taking a look at the issue link you provided, it looks like this is currently not possible simply using wlr-randr alone as the display names do change.

You may be able to accomplish what you are trying to do with swaymsg. Here is an example of a script I run when plugging my laptop into my desk at home, which has two monitors. The script sets the position, scale, and sets a wallpaper for each display. I am using the monitor ID because these monitors are in a dock, and change output designation every session (like yours):

swaymsg output eDP-1 pos 2560 1080 scale 1.5 bg /usr/share/backgrounds/swans.jpg fill
swaymsg output '"Acer Technologies EB321HQU C 0x00000848"' pos 0 0 bg /usr/share/backgrounds/skyline.jpg fill
swaymsg output '"Samsung Electric Company S22E450 HCHN502280"' pos 2560 0 bg /usr/share/backgrounds/ollie_bench.jpg fill

Notice the monitor IDs are double-quoted.

If you specifically need to turn the displays on, you can do that with swaymsg too, by using the power option. From man sway-output:

output <name> power on|off|toggle
Turns on or off the specified output.

As opposed to the enable and disable commands, the output keeps its current workspaces and windows.

You can probably add power on to a swaymsg line and get it all on one line, or a more common way to use it would be to turn on all displays:

swaymsg "output * power on"
2 Likes

Thank you a lot for sharing this scripts! I didn’t know that swaymsg can control display outputs! I will definitely try to replace my current script.

1 Like

I’ve been testing for a couple of days now and I can say that by installing this package the problem went away. Thanks!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.