linrunner / TLP

TLP - Optimize Linux Laptop Battery Life
https://linrunner.de/tlp
GNU General Public License v2.0
2.74k stars 130 forks source link

Lenovo USB-C Gen2 Docking Station not Charging Thinkpad when TLP is Enabled #479

Closed lvlanson closed 4 years ago

lvlanson commented 4 years ago

Hey there,

as long as TLP is enabled the Docking Station does not charge my Thinkpad anymore. I cannot figure out which setting has to be altered to make it work. I checked quite a few settings. The docking station is connected via the thunderbolt 3 connector.

Also as soon as I plugged in the docking station, I need to "unplug" the battery via bios, otherwise I also cannot charge via my AC.

When TLP is disabled the docking station is charging my thinkpad and is working as expected.

What can I do?

lvlanson commented 4 years ago

I want to add, disabling tlp alone does not help. Only when I rebooted after disabling TLP the charging works again.

lspci: 00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 08) 00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07) 00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 08) 00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model 00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) 00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21) 00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21) 00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21) 00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1) 00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1) 00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 (rev f1) 00:1f.0 ISA bridge: Intel Corporation Sunrise Point LPC Controller/eSPI Controller (rev 21) 00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21) 00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21) 00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21) 02:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78) 04:00.0 Non-Volatile memory controller: Sandisk Corp WD Black 2018/PC SN720 NVMe SSD 05:00.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02) 06:00.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02) 06:01.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02) 06:02.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02) 06:04.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02) 3b:00.0 USB controller: Intel Corporation JHL6540 Thunderbolt 3 USB Controller (C step) [Alpine Ridge 4C 2016] (rev 02)

lsusb: Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 8087:0a2b Intel Corp. Bus 001 Device 015: ID 046d:c069 Logitech, Inc. M-U0007 [Corded Mouse M500] Bus 001 Device 014: ID 17ef:a396 Lenovo Bus 001 Device 016: ID 17ef:a38f Lenovo Bus 001 Device 012: ID 17ef:a395 Lenovo USB2.0 Hub Bus 001 Device 011: ID 17ef:a394 Lenovo USB2.0 Hub Bus 001 Device 010: ID 17ef:a392 Lenovo USB2.0 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmesg when unplugging and replugging the tb3 cable: [ 233.834081] usb 1-3: USB disconnect, device number 10 [ 233.834089] usb 1-3.3: USB disconnect, device number 11 [ 233.834094] usb 1-3.3.3: USB disconnect, device number 12 [ 233.834098] usb 1-3.3.3.1: USB disconnect, device number 16 [ 233.835727] usb 1-3.3.3.2: USB disconnect, device number 14 [ 233.968761] xhci_hcd 0000:3b:00.0: remove, state 1 [ 233.968764] usb usb4: USB disconnect, device number 1 [ 233.968943] xhci_hcd 0000:3b:00.0: USB bus 4 deregistered [ 233.968948] xhci_hcd 0000:3b:00.0: remove, state 4 [ 233.968949] usb usb3: USB disconnect, device number 1 [ 233.969045] xhci_hcd 0000:3b:00.0: Host halt failed, -19 [ 233.969048] xhci_hcd 0000:3b:00.0: Host not accessible, reset failed. [ 233.969107] xhci_hcd 0000:3b:00.0: USB bus 3 deregistered [ 233.989380] usb 1-3.3.3.4: USB disconnect, device number 15 [ 234.222560] pci_bus 0000:06: Allocating resources [ 234.222592] pcieport 0000:06:01.0: bridge window [mem 0x00100000-0x000fffff] to [bus 08-3a] add_size 200000 add_align 100000 [ 234.222599] pcieport 0000:06:04.0: bridge window [mem 0x00100000-0x000fffff] to [bus 3c-6f] add_size 200000 add_align 100000 [ 234.222611] pcieport 0000:06:01.0: BAR 14: no space for [mem size 0x00200000] [ 234.222614] pcieport 0000:06:01.0: BAR 14: failed to assign [mem size 0x00200000] [ 234.222618] pcieport 0000:06:04.0: BAR 14: no space for [mem size 0x00200000] [ 234.222621] pcieport 0000:06:04.0: BAR 14: failed to assign [mem size 0x00200000] [ 234.222625] pcieport 0000:06:04.0: BAR 14: no space for [mem size 0x00200000] [ 234.222628] pcieport 0000:06:04.0: BAR 14: failed to assign [mem size 0x00200000] [ 234.222631] pcieport 0000:06:01.0: BAR 14: no space for [mem size 0x00200000] [ 234.222634] pcieport 0000:06:01.0: BAR 14: failed to assign [mem size 0x00200000] [ 239.042638] pcieport 0000:06:02.0: can't change power state from D3cold to D0 (config space inaccessible) [ 239.043109] pcieport 0000:06:00.0: can't change power state from D3cold to D0 (config space inaccessible) [ 239.043457] pci_bus 0000:07: busn_res: [bus 07] is released [ 239.043615] pci_bus 0000:08: busn_res: [bus 08-3a] is released [ 239.043744] pci_bus 0000:3b: busn_res: [bus 3b] is released [ 239.044263] pci_bus 0000:3c: busn_res: [bus 3c-6f] is released [ 239.044511] pci_bus 0000:06: busn_res: [bus 06-6f] is released [ 240.980458] usb 1-3: new high-speed USB device number 17 using xhci_hcd [ 241.011323] usb 1-3: New USB device found, idVendor=17ef, idProduct=a392, bcdDevice= c.d4 [ 241.011326] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 241.011328] usb 1-3: Product: USB2.0 Hub [ 241.011329] usb 1-3: Manufacturer: VIA Labs, Inc. [ 241.013185] hub 1-3:1.0: USB hub found [ 241.013380] hub 1-3:1.0: 4 ports detected [ 241.736745] usb 1-3.3: new high-speed USB device number 18 using xhci_hcd [ 241.760620] usb 1-3.3: New USB device found, idVendor=17ef, idProduct=a394, bcdDevice= c.d3 [ 241.760626] usb 1-3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 241.760630] usb 1-3.3: Product: USB2.0 Hub [ 241.760633] usb 1-3.3: Manufacturer: VIA Labs, Inc. [ 241.762403] hub 1-3.3:1.0: USB hub found [ 241.762719] hub 1-3.3:1.0: 4 ports detected [ 242.472411] usb 1-3.3.3: new high-speed USB device number 19 using xhci_hcd [ 242.508814] usb 1-3.3.3: New USB device found, idVendor=17ef, idProduct=a395, bcdDevice=60.70 [ 242.508820] usb 1-3.3.3: New USB device strings: Mfr=10, Product=11, SerialNumber=0 [ 242.508824] usb 1-3.3.3: Product: USB2.0 Hub [ 242.508827] usb 1-3.3.3: Manufacturer: Lenovo [ 242.510349] hub 1-3.3.3:1.0: USB hub found [ 242.510740] hub 1-3.3.3:1.0: 4 ports detected [ 242.804447] usb 1-3.3.3.1: new full-speed USB device number 20 using xhci_hcd [ 242.912015] usb 1-3.3.3.1: New USB device found, idVendor=17ef, idProduct=a38f, bcdDevice= 0.00 [ 242.912021] usb 1-3.3.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 242.912025] usb 1-3.3.3.1: Product: Billboard Device [ 242.912029] usb 1-3.3.3.1: Manufacturer: Cypress Semiconductor [ 242.912031] usb 1-3.3.3.1: SerialNumber: 0001 [ 242.919200] hid-generic 0003:17EF:A38F.0009: hiddev0,hidraw0: USB HID v1.11 Device [Cypress Semiconductor Billboard Device] on usb-0000:00:14.0-3.3.3.1/input1 [ 243.000482] usb 1-3.3.3.2: new full-speed USB device number 21 using xhci_hcd [ 243.292137] usb 1-3.3.3.2: New USB device found, idVendor=17ef, idProduct=a396, bcdDevice= 0.07 [ 243.292144] usb 1-3.3.3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 243.292148] usb 1-3.3.3.2: Product: ThinkPad USB-C Dock Gen2 USB Audio [ 243.292151] usb 1-3.3.3.2: Manufacturer: Lenovo [ 243.292153] usb 1-3.3.3.2: SerialNumber: 000000000000 [ 243.434979] input: Lenovo ThinkPad USB-C Dock Gen2 USB Audio as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.3/1-3.3.3/1-3.3.3.2/1-3.3.3.2:1.3/0003:17EF:A396.000A/input/input20 [ 243.492972] hid-generic 0003:17EF:A396.000A: input,hidraw1: USB HID v1.11 Device [Lenovo ThinkPad USB-C Dock Gen2 USB Audio] on usb-0000:00:14.0-3.3.3.2/input3 [ 243.576566] usb 1-3.3.3.4: new low-speed USB device number 22 using xhci_hcd [ 243.685959] usb 1-3.3.3.4: New USB device found, idVendor=046d, idProduct=c069, bcdDevice=56.01 [ 243.685964] usb 1-3.3.3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 243.685967] usb 1-3.3.3.4: Product: USB Laser Mouse [ 243.685970] usb 1-3.3.3.4: Manufacturer: Logitech [ 243.695114] input: Logitech USB Laser Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.3/1-3.3.3/1-3.3.3.4/1-3.3.3.4:1.0/0003:046D:C069.000B/input/input21 [ 243.695728] hid-generic 0003:046D:C069.000B: input,hidraw2: USB HID v1.10 Mouse [Logitech USB Laser Mouse] on usb-0000:00:14.0-3.3.3.4/input0 [ 246.381985] thinkpad_acpi: undocked from hotplug port replicator [ 249.321042] pci 0000:05:00.0: [8086:15d3] type 01 class 0x060400 [ 249.321101] pci 0000:05:00.0: enabling Extended Tags [ 249.321189] pci 0000:05:00.0: supports D1 D2 [ 249.321190] pci 0000:05:00.0: PME# supported from D0 D1 D2 D3hot D3cold [ 249.321446] pci 0000:06:00.0: [8086:15d3] type 01 class 0x060400 [ 249.321508] pci 0000:06:00.0: enabling Extended Tags [ 249.321595] pci 0000:06:00.0: supports D1 D2 [ 249.321596] pci 0000:06:00.0: PME# supported from D0 D1 D2 D3hot D3cold [ 249.321699] pci 0000:06:01.0: [8086:15d3] type 01 class 0x060400 [ 249.321761] pci 0000:06:01.0: enabling Extended Tags [ 249.321841] pci 0000:06:01.0: supports D1 D2 [ 249.321841] pci 0000:06:01.0: PME# supported from D0 D1 D2 D3hot D3cold [ 249.321938] pci 0000:06:02.0: [8086:15d3] type 01 class 0x060400 [ 249.322001] pci 0000:06:02.0: enabling Extended Tags [ 249.322081] pci 0000:06:02.0: supports D1 D2 [ 249.322082] pci 0000:06:02.0: PME# supported from D0 D1 D2 D3hot D3cold [ 249.322200] pci 0000:06:04.0: [8086:15d3] type 01 class 0x060400 [ 249.322261] pci 0000:06:04.0: enabling Extended Tags [ 249.322341] pci 0000:06:04.0: supports D1 D2 [ 249.322342] pci 0000:06:04.0: PME# supported from D0 D1 D2 D3hot D3cold [ 249.322457] pci 0000:05:00.0: PCI bridge to [bus 06-6f] [ 249.322465] pci 0000:05:00.0: bridge window [mem 0xe0000000-0xe01fffff] [ 249.322470] pci 0000:05:00.0: bridge window [mem 0x2000000000-0x20005fffff 64bit pref] [ 249.322510] pci 0000:06:00.0: PCI bridge to [bus 07] [ 249.322518] pci 0000:06:00.0: bridge window [mem 0xe0100000-0xe01fffff] [ 249.322565] pci 0000:06:01.0: PCI bridge to [bus 08-3a] [ 249.322643] pci 0000:3b:00.0: [8086:15d4] type 00 class 0x0c0330 [ 249.322677] pci 0000:3b:00.0: reg 0x10: [mem 0xe0000000-0xe000ffff] [ 249.322755] pci 0000:3b:00.0: enabling Extended Tags [ 249.322866] pci 0000:3b:00.0: supports D1 D2 [ 249.322867] pci 0000:3b:00.0: PME# supported from D0 D1 D2 D3hot D3cold [ 249.322954] pci 0000:3b:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x4 link at 0000:06:02.0 (capable of 31.504 Gb/s with 8 GT/s x4 link) [ 249.323105] pci 0000:06:02.0: PCI bridge to [bus 3b] [ 249.323114] pci 0000:06:02.0: bridge window [mem 0xe0000000-0xe00fffff] [ 249.323173] pci 0000:06:04.0: PCI bridge to [bus 3c-6f] [ 249.323213] pci_bus 0000:06: Allocating resources [ 249.323232] pci 0000:06:01.0: bridge window [io 0x1000-0x0fff] to [bus 08-3a] add_size 1000 [ 249.323234] pci 0000:06:01.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 08-3a] add_size 200000 add_align 100000 [ 249.323236] pci 0000:06:01.0: bridge window [mem 0x00100000-0x000fffff] to [bus 08-3a] add_size 200000 add_align 100000 [ 249.323238] pci 0000:06:02.0: bridge window [io 0x1000-0x0fff] to [bus 3b] add_size 1000 [ 249.323240] pci 0000:06:02.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 3b] add_size 200000 add_align 100000 [ 249.323242] pci 0000:06:04.0: bridge window [io 0x1000-0x0fff] to [bus 3c-6f] add_size 1000 [ 249.323244] pci 0000:06:04.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 3c-6f] add_size 200000 add_align 100000 [ 249.323246] pci 0000:06:04.0: bridge window [mem 0x00100000-0x000fffff] to [bus 3c-6f] add_size 200000 add_align 100000 [ 249.323248] pci 0000:05:00.0: bridge window [io 0x1000-0x0fff] to [bus 06-6f] add_size 4000 [ 249.323251] pci 0000:05:00.0: BAR 13: no space for [io size 0x4000] [ 249.323252] pci 0000:05:00.0: BAR 13: failed to assign [io size 0x4000] [ 249.323254] pci 0000:05:00.0: BAR 13: no space for [io size 0x4000] [ 249.323255] pci 0000:05:00.0: BAR 13: failed to assign [io size 0x4000] [ 249.323259] pci 0000:06:01.0: BAR 14: no space for [mem size 0x00200000] [ 249.323260] pci 0000:06:01.0: BAR 14: failed to assign [mem size 0x00200000] [ 249.323263] pci 0000:06:01.0: BAR 15: assigned [mem 0x2000000000-0x20001fffff 64bit pref] [ 249.323264] pci 0000:06:02.0: BAR 15: assigned [mem 0x2000200000-0x20003fffff 64bit pref] [ 249.323266] pci 0000:06:04.0: BAR 14: no space for [mem size 0x00200000] [ 249.323267] pci 0000:06:04.0: BAR 14: failed to assign [mem size 0x00200000] [ 249.323269] pci 0000:06:04.0: BAR 15: assigned [mem 0x2000400000-0x20005fffff 64bit pref] [ 249.323270] pci 0000:06:01.0: BAR 13: no space for [io size 0x1000] [ 249.323272] pci 0000:06:01.0: BAR 13: failed to assign [io size 0x1000] [ 249.323273] pci 0000:06:02.0: BAR 13: no space for [io size 0x1000] [ 249.323274] pci 0000:06:02.0: BAR 13: failed to assign [io size 0x1000] [ 249.323276] pci 0000:06:04.0: BAR 13: no space for [io size 0x1000] [ 249.323277] pci 0000:06:04.0: BAR 13: failed to assign [io size 0x1000] [ 249.323280] pci 0000:06:04.0: BAR 14: no space for [mem size 0x00200000] [ 249.323281] pci 0000:06:04.0: BAR 14: failed to assign [mem size 0x00200000] [ 249.323282] pci 0000:06:04.0: BAR 13: no space for [io size 0x1000] [ 249.323284] pci 0000:06:04.0: BAR 13: failed to assign [io size 0x1000] [ 249.323285] pci 0000:06:02.0: BAR 13: no space for [io size 0x1000] [ 249.323286] pci 0000:06:02.0: BAR 13: failed to assign [io size 0x1000] [ 249.323288] pci 0000:06:01.0: BAR 14: no space for [mem size 0x00200000] [ 249.323289] pci 0000:06:01.0: BAR 14: failed to assign [mem size 0x00200000] [ 249.323290] pci 0000:06:01.0: BAR 13: no space for [io size 0x1000] [ 249.323291] pci 0000:06:01.0: BAR 13: failed to assign [io size 0x1000] [ 249.323293] pci 0000:06:00.0: PCI bridge to [bus 07] [ 249.323299] pci 0000:06:00.0: bridge window [mem 0xe0100000-0xe01fffff] [ 249.323307] pci 0000:06:01.0: PCI bridge to [bus 08-3a] [ 249.323314] pci 0000:06:01.0: bridge window [mem 0x2000000000-0x20001fffff 64bit pref] [ 249.323320] pci 0000:06:02.0: PCI bridge to [bus 3b] [ 249.323325] pci 0000:06:02.0: bridge window [mem 0xe0000000-0xe00fffff] [ 249.323328] pci 0000:06:02.0: bridge window [mem 0x2000200000-0x20003fffff 64bit pref] [ 249.323334] pci 0000:06:04.0: PCI bridge to [bus 3c-6f] [ 249.323341] pci 0000:06:04.0: bridge window [mem 0x2000400000-0x20005fffff 64bit pref] [ 249.323347] pci 0000:05:00.0: PCI bridge to [bus 06-6f] [ 249.323351] pci 0000:05:00.0: bridge window [mem 0xe0000000-0xe01fffff] [ 249.323355] pci 0000:05:00.0: bridge window [mem 0x2000000000-0x20005fffff 64bit pref] [ 249.324692] xhci_hcd 0000:3b:00.0: xHCI Host Controller [ 249.324698] xhci_hcd 0000:3b:00.0: new USB bus registered, assigned bus number 3 [ 249.325818] xhci_hcd 0000:3b:00.0: hcc params 0x200077c1 hci version 0x110 quirks 0x0000000200009810 [ 249.326019] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.05 [ 249.326020] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 249.326021] usb usb3: Product: xHCI Host Controller [ 249.326022] usb usb3: Manufacturer: Linux 5.5.7-050507-generic xhci-hcd [ 249.326023] usb usb3: SerialNumber: 0000:3b:00.0 [ 249.327844] hub 3-0:1.0: USB hub found [ 249.327855] hub 3-0:1.0: 2 ports detected [ 249.328399] xhci_hcd 0000:3b:00.0: xHCI Host Controller [ 249.328402] xhci_hcd 0000:3b:00.0: new USB bus registered, assigned bus number 4 [ 249.328404] xhci_hcd 0000:3b:00.0: Host supports USB 3.1 Enhanced SuperSpeed [ 249.328429] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.05 [ 249.328430] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 249.328431] usb usb4: Product: xHCI Host Controller [ 249.328432] usb usb4: Manufacturer: Linux 5.5.7-050507-generic xhci-hcd [ 249.328433] usb usb4: SerialNumber: 0000:3b:00.0 [ 249.328527] hub 4-0:1.0: USB hub found [ 249.328535] hub 4-0:1.0: 2 ports detected [ 249.773289] usb 4-1: new SuperSpeedPlus Gen 2 USB device number 2 using xhci_hcd [ 249.796319] usb 4-1: New USB device found, idVendor=17ef, idProduct=a391, bcdDevice= c.d4 [ 249.796329] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 249.796334] usb 4-1: Product: USB3.1 Hub [ 249.796340] usb 4-1: Manufacturer: VIA Labs, Inc. [ 249.800011] hub 4-1:1.0: USB hub found [ 249.800362] hub 4-1:1.0: 4 ports detected [ 250.360884] usb 4-1.1: new SuperSpeed Gen 1 USB device number 3 using xhci_hcd [ 250.381464] usb 4-1.1: New USB device found, idVendor=17ef, idProduct=a387, bcdDevice=31.03 [ 250.381471] usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=6 [ 250.381475] usb 4-1.1: Product: USB-C Dock Ethernet [ 250.381478] usb 4-1.1: Manufacturer: Realtek [ 250.381482] usb 4-1.1: SerialNumber: 301000001 [ 250.464633] usb 4-1.3: new SuperSpeedPlus Gen 2 USB device number 4 using xhci_hcd [ 250.488625] usb 4-1.3: New USB device found, idVendor=17ef, idProduct=a393, bcdDevice= c.d3 [ 250.488626] usb 4-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 250.488628] usb 4-1.3: Product: USB3.1 Hub [ 250.488628] usb 4-1.3: Manufacturer: VIA Labs, Inc. [ 250.492688] hub 4-1.3:1.0: USB hub found [ 250.492928] hub 4-1.3:1.0: 4 ports detected [ 250.565073] usb 4-1.1: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd [ 250.588770] r8152 4-1.1:1.0: Direct firmware load for rtl_nic/rtl8153b-2.fw failed with error -2 [ 250.588778] r8152 4-1.1:1.0: unable to load firmware patch rtl_nic/rtl8153b-2.fw (-2) [ 250.621675] r8152 4-1.1:1.0 eth0: v1.11.11 [ 251.242748] r8152 4-1.1:1.0 enx482ae33f6fa5: renamed from eth0 [ 252.211769] IPv6: ADDRCONF(NETDEV_CHANGE): enx482ae33f6fa5: link becomes ready [ 252.212526] r8152 4-1.1:1.0 enx482ae33f6fa5: carrier on

linrunner commented 4 years ago

Never heard of such a symptom before.

Make shure all your Lenovo firmware is up to date. Specifically i remember critical thunderbolt FW updates by Lenovo recently.

Apart from that I'm afraid you're on your own to identify the cause, refer to the troubleshooting guide.

Btw: no support whatsoever without all the outputs required by the bug template.

lvlanson commented 4 years ago

Blacklisting "mei_me" under PCIe fixed the problem.

Thanks for the heads up.

linrunner commented 4 years ago

Thanks for your feedback.

However for recent TLP versions mei_me is in RUNTIME_PM_DRIVER_BLACKLIST by default. Without the outputs I'm left in the dark about your system.

lvlanson commented 4 years ago

Could you point me to the bug template and tell me which information you need?

After some testing it still works pretty unreliably.

linrunner commented 4 years ago

https://github.com/linrunner/TLP/blob/master/.github/ISSUE_TEMPLATE/bug_report.md https://github.com/linrunner/TLP/blob/master/.github/Bug_Reporting_Howto.md

It's just the full output of tlp-stat via https://gist.github.com/ please, AC suffices in your case.

You didn't comment about my suggestion about firmware updates and I don't very much like to ask for information repeatedly.

lvlanson commented 4 years ago

I am really sorry not being clear so far. I will post the bugs asap.

Firmware for everything is up to date. The Thinkpad has all the latest Firmware updates and so has the docking station.

My apologies

lvlanson commented 4 years ago

[x] I've read and accepted the Bug Reporting Howto

Description

Devices:

When attaching the USB-C Docking Station to the Thinkpad, the thinkpad is not charging. When TLP is disabled the charging works as expected.

After the charging not working via the docking station, also the charging via the AC does not work anymore

The Docking Station is connected via a Thunderbolt3 cable at the regular charging connector of the Thinkpad. All firmware has been updated to the very latest versions prior to this.

All peripherals work so far, as far as I had been able to test them yet.

Excpected Behaviour

The Laptop should be charging, if the thunderbolt 3 cable is attached.

To Reproduce

The Problem does Occur when on AC.

  1. Having TLP enabled
  2. Attach the tb3 cable 2.a if its charging, try replugging it, soon it will fail

tlp-stat: https://gist.github.com/lvlanson/58303db402276e8582da2ddc26f2baa6

If anything is missing or if you need anything additional, please let me know

linrunner commented 4 years ago

(1) Your configuration differs from what you wrote above: RUNTIME_PM_DRIVER_BLACKLIST does not contain mei_me, which is probably irrelevant because on AC autosuspend is disabled (on) anyway. Or did you mean the opposite i.e. you removed mei_me from the list (seems more plausible)?

(2) You configured thresholds so the battery won't charge at the current SOC of 88% which is between 20 and 90 --> i.e. works as designed by Lenovo.

/sys/class/power_supply/BAT0/status                         = Unknown (threshold may prevent charging)
/sys/class/power_supply/BAT0/charge_start_threshold         =     20 [%]
/sys/class/power_supply/BAT0/charge_stop_threshold          =     90 [%]
Charge                                                      =   87.9 [%]

Please comment the thresholds in the configuration and remove them with

tlp fullcharge

Test again.

lvlanson commented 4 years ago

I should have mentioned, that there is an LED indicating if the connector is receiving any power or not. If power is full, the LED is white, if its charging the LED is yellow. The LED when the error occurs is actually off.

I will drain the battery, comment out the threshholds and do tlp fullcharge and repost the tlp-stat command output.

linrunner commented 4 years ago

I did not say to drain the battery, just remove the thresholds as described.

Afterwards undock, dock again and check if the symptom occurs. Only then show the output.

linrunner commented 4 years ago

ps. I read about malfunctions where the LED didn't indicate the charging state correctly.

lvlanson commented 4 years ago

Weirdly, the LED is now lit, but it is not charging, though the threshholds are off.

https://gist.github.com/lvlanson/1f57cd6664843d8c612b728ff8141fb3#file-gistfile1-txt

lvlanson commented 4 years ago

After having rebooted a second time, the status LED is also not lit anymore.

linrunner commented 4 years ago

Look at your output:

/sys/class/power_supply/BAT0/charge_start_threshold         =     20 [%]
/sys/class/power_supply/BAT0/charge_stop_threshold          =     90 [%]

It reveals the thresholds still effective. Either you missed the tlp fullcharge command or it failed because the embedded controller (EC) ignored the writing. Please show:

tlp fullcharge
fwupdmgr get-devices
lvlanson commented 4 years ago

sudo tlp fullcharge Setting temporary charge thresholds for BAT0: stop = 100 start = 96 Charging starts now, keep AC connected. fwupdmgr get-devices X1 Carbon Thunderbolt Controller DeviceId: 5f6ba1816efb8d8edc63b4e1aa7c166734c8ed17 Guid: 5ff9544e-fce2-5fd9-9cd2-671c95ac91dc Summary: Unmatched performance for high-speed I/O Plugin: thunderbolt Flags: internal|updatable|require-ac|supported|registered Vendor: Lenovo VendorId: TBT:0x0109 Version: 43.00 VersionFormat: pair Icon: computer Created: 2020-03-14

20KGS03800 System Firmware DeviceId: 1c53551e7da69d896138fac1ae131c83ad46d923 Guid: a4b51dca-8f97-4310-8821-3330f83c9135 Plugin: uefi Flags: internal|updatable|require-ac|supported|registered|needs-reboot Version: 0.1.46 VersionLowest: 0.0.1 VersionFormat: triplet Icon: computer Created: 2020-03-14

UEFI Device Firmware DeviceId: 29749712e93b58730ecd1b8537a5503ff5b7fb27 Guid: 9c9d9769-32fa-4841-b550-ea998e754e99 Plugin: uefi Flags: internal|updatable|require-ac|supported|registered|needs-reboot Version: 184.70.3626 VersionLowest: 0.0.1 VersionFormat: triplet Icon: audio-card Created: 2020-03-14

UEFI Device Firmware DeviceId: 9698faabddf0d7b18925cfbbda95f8b0d0dacc53 Guid: 3babca5f-b2bf-4f4b-a72e-2bdc84eb4019 Plugin: uefi Flags: internal|updatable|require-ac|supported|registered|needs-reboot Version: 0.1.20 VersionLowest: 0.1.20 VersionFormat: triplet Icon: audio-card Created: 2020-03-14

UEFI Device Firmware DeviceId: 9e329270a7a68d289c82fe77d32d02208ddf0890 Guid: cea87551-1701-43fb-afbc-6e8ce9728345 Plugin: uefi Flags: internal|updatable|require-ac|registered|needs-reboot Version: 0.73.4 VersionLowest: 0.73.4 VersionFormat: triplet Icon: audio-card Created: 2020-03-14

WDC PC SN720 SDAQNTW-512G-1001 DeviceId: 04e17fcf7d3de91da49a163ffe4907855c3648be Guid: ff2112dc-038c-596d-90ca-d43c5077c6ec Guid: 63af1441-fb24-5368-b450-886fbc98610b Summary: NVM Express Solid State Drive Plugin: nvme Flags: internal|updatable|require-ac|supported|registered|needs-reboot Vendor: Sandisk Corp VendorId: NVME:0x15B7 Version: 10190101 VersionFormat: plain Icon: drive-harddisk Created: 2020-03-14


Devices that have been updated successfully:

• 20KGS03800 System Firmware (0.1.45 → 0.1.46) • WDC PC SN720 SDAQNTW-512G-1001 (10170101 → 10190101)

Uploading firmware reports helps hardware vendors to quickly identify failing and successful updates on real devices. Upload report now? (Requires internet connection) [Y|n]: y Target: https://fwupd.org/lvfs/firmware/report Payload: { "ReportVersion" : 2, "MachineId" : "061c1ddddb3c60e080d425cf0c415a6b23a61ef601fb61b9571fd0a015c2f2a3", "Metadata" : { "DistroId" : "ubuntu", "DistroVersion" : "19.10" }, "Reports" : [ { "Checksum" : "a72acc3dfce26e8dcaa858d794398abc7af7a557", "UpdateState" : 2, "Guid" : "a4b51dca-8f97-4310-8821-3330f83c9135", "Plugin" : "uefi", "VersionOld" : "0.1.45", "VersionNew" : "0.1.46", "Flags" : 299, "Created" : 1583754965, "Modified" : 0, "Metadata" : { "BootMgrDesc" : "legacy", "CompileVersion(com.redhat.fwupdate)" : "12", "DistroVersion" : "19.10", "CompileVersion(org.freedesktop.fwupd)" : "1.2.10", "SecureBoot" : "Disabled", "CompileVersion(com.redhat.efivar)" : "37", "UEFIUXCapsule" : "Disabled", "ESPMountPoint" : "/boot/efi", "CompileVersion(org.freedesktop.gusb)" : "0.3.0", "RuntimeVersion(com.dell.libsmbios)" : "2.4", "DistroId" : "ubuntu", "CpuArchitecture" : "x86_64", "BootTime" : "1583754951", "RuntimeVersion(org.freedesktop.appstream-glib)" : "0.7.14", "RuntimeVersion(com.redhat.fwupdate)" : "12", "RuntimeVersion(org.freedesktop.fwupd)" : "1.2.10", "KernelVersion" : "5.5.8-050508-generic" } }, { "Checksum" : "fe758e713f4801c65c9d129a4c16ccd5ec465fb9", "UpdateState" : 2, "UpdateError" : "failed to update_prepare using upower: Cannot install update when not on AC power unless forced", "Guid" : "ff2112dc-038c-596d-90ca-d43c5077c6ec", "Plugin" : "nvme", "VersionOld" : "10170101", "VersionNew" : "10190101", "Flags" : 299, "Created" : 1583957080, "Modified" : 1584087504, "Metadata" : { "RuntimeVersion(com.redhat.fwupdate)" : "12", "CompileVersion(org.freedesktop.gusb)" : "0.3.0", "CpuArchitecture" : "x86_64", "RuntimeVersion(org.freedesktop.fwupd)" : "1.2.10", "DistroId" : "ubuntu", "DistroVersion" : "19.10", "RuntimeVersion(org.freedesktop.appstream-glib)" : "0.7.14", "CompileVersion(org.freedesktop.fwupd)" : "1.2.10", "BootTime" : "1583957037", "RuntimeVersion(com.dell.libsmbios)" : "2.4", "CompileVersion(com.redhat.efivar)" : "37", "KernelVersion" : "5.5.8-050508-generic", "CompileVersion(com.redhat.fwupdate)" : "12" } } ] } Proceed with upload? [Y|n]: y lvlanson@pop-os  ~  fwupdmgr get-devices X1 Carbon Thunderbolt Controller DeviceId: 5f6ba1816efb8d8edc63b4e1aa7c166734c8ed17 Guid: 5ff9544e-fce2-5fd9-9cd2-671c95ac91dc Summary: Unmatched performance for high-speed I/O Plugin: thunderbolt Flags: internal|updatable|require-ac|supported|registered Vendor: Lenovo VendorId: TBT:0x0109 Version: 43.00 VersionFormat: pair Icon: computer Created: 2020-03-14

20KGS03800 System Firmware DeviceId: 1c53551e7da69d896138fac1ae131c83ad46d923 Guid: a4b51dca-8f97-4310-8821-3330f83c9135 Plugin: uefi Flags: internal|updatable|require-ac|supported|registered|needs-reboot Version: 0.1.46 VersionLowest: 0.0.1 VersionFormat: triplet Icon: computer Created: 2020-03-14

UEFI Device Firmware DeviceId: 29749712e93b58730ecd1b8537a5503ff5b7fb27 Guid: 9c9d9769-32fa-4841-b550-ea998e754e99 Plugin: uefi Flags: internal|updatable|require-ac|supported|registered|needs-reboot Version: 184.70.3626 VersionLowest: 0.0.1 VersionFormat: triplet Icon: audio-card Created: 2020-03-14

UEFI Device Firmware DeviceId: 9698faabddf0d7b18925cfbbda95f8b0d0dacc53 Guid: 3babca5f-b2bf-4f4b-a72e-2bdc84eb4019 Plugin: uefi Flags: internal|updatable|require-ac|supported|registered|needs-reboot Version: 0.1.20 VersionLowest: 0.1.20 VersionFormat: triplet Icon: audio-card Created: 2020-03-14

UEFI Device Firmware DeviceId: 9e329270a7a68d289c82fe77d32d02208ddf0890 Guid: cea87551-1701-43fb-afbc-6e8ce9728345 Plugin: uefi Flags: internal|updatable|require-ac|registered|needs-reboot Version: 0.73.4 VersionLowest: 0.73.4 VersionFormat: triplet Icon: audio-card Created: 2020-03-14

WDC PC SN720 SDAQNTW-512G-1001 DeviceId: 04e17fcf7d3de91da49a163ffe4907855c3648be Guid: ff2112dc-038c-596d-90ca-d43c5077c6ec Guid: 63af1441-fb24-5368-b450-886fbc98610b Summary: NVM Express Solid State Drive Plugin: nvme Flags: internal|updatable|require-ac|supported|registered|needs-reboot Vendor: Sandisk Corp VendorId: NVME:0x15B7 Version: 10190101 VersionFormat: plain Icon: drive-harddisk Created: 2020-03-14

===========================================================

It is now charging

linrunner commented 4 years ago

And the output of

tlp-stat -s -c 

please.

ps. Thunderbolt firmware 43.00 and EC 1.20 are newest indeed. I use a X1C6 with CS18 dock (connected to the TB port) myself running kernel 5.5.8 and i observe zero charging issues.

lvlanson commented 4 years ago

This is the output:

--- TLP 1.3.1 --------------------------------------------

+++ Configured Settings: /etc/tlp.conf L0015: TLP_ENABLE="1" /etc/tlp.conf L0025: TLP_PERSISTENT_DEFAULT="0" /etc/tlp.conf L0030: DISK_IDLE_SECS_ON_AC="0" /etc/tlp.conf L0031: DISK_IDLE_SECS_ON_BAT="2" /etc/tlp.conf L0035: MAX_LOST_WORK_SECS_ON_AC="15" /etc/tlp.conf L0036: MAX_LOST_WORK_SECS_ON_BAT="60" defaults.conf L0010: CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance" defaults.conf L0011: CPU_ENERGY_PERF_POLICY_ON_BAT="balance_power" /etc/tlp.conf L0097: SCHED_POWERSAVE_ON_AC="0" /etc/tlp.conf L0098: SCHED_POWERSAVE_ON_BAT="1" /etc/tlp.conf L0103: NMI_WATCHDOG="0" /etc/tlp.conf L0124: DISK_DEVICES="nvme0n1 sda" defaults.conf L0016: DISK_APM_LEVEL_ON_AC="254 254" defaults.conf L0017: DISK_APM_LEVEL_ON_BAT="128 128" defaults.conf L0018: DISK_IOSCHED="keep keep" /etc/tlp.conf L0166: SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance" /etc/tlp.conf L0167: SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power" /etc/tlp.conf L0184: AHCI_RUNTIME_PM_TIMEOUT="15" defaults.conf L0022: PCIE_ASPM_ON_AC="default" defaults.conf L0023: PCIE_ASPM_ON_BAT="default" defaults.conf L0024: RADEON_POWER_PROFILE_ON_AC="default" defaults.conf L0025: RADEON_POWER_PROFILE_ON_BAT="default" defaults.conf L0026: RADEON_DPM_PERF_LEVEL_ON_AC="auto" defaults.conf L0027: RADEON_DPM_PERF_LEVEL_ON_BAT="auto" /etc/tlp.conf L0223: WIFI_PWR_ON_AC="off" /etc/tlp.conf L0224: WIFI_PWR_ON_BAT="on" /etc/tlp.conf L0228: WOL_DISABLE="Y" /etc/tlp.conf L0233: SOUND_POWER_SAVE_ON_AC="0" /etc/tlp.conf L0234: SOUND_POWER_SAVE_ON_BAT="1" /etc/tlp.conf L0239: SOUND_POWER_SAVE_CONTROLLER="Y" /etc/tlp.conf L0246: BAY_POWEROFF_ON_AC="0" /etc/tlp.conf L0247: BAY_POWEROFF_ON_BAT="0" /etc/tlp.conf L0250: BAY_DEVICE="sr0" /etc/tlp.conf L0254: RUNTIME_PM_ON_AC="on" /etc/tlp.conf L0255: RUNTIME_PM_ON_BAT="auto" /etc/tlp.conf L0268: RUNTIME_PM_DRIVER_BLACKLIST="amdgpu nouveau nvidia pcieport radeon" /etc/tlp.conf L0272: USB_AUTOSUSPEND="1" /etc/tlp.conf L0283: USB_BLACKLIST_BTUSB="0" /etc/tlp.conf L0288: USB_BLACKLIST_PHONE="0" /etc/tlp.conf L0293: USB_BLACKLIST_PRINTER="1" /etc/tlp.conf L0298: USB_BLACKLIST_WWAN="0" defaults.conf L0045: USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN="0" /etc/tlp.conf L0315: RESTORE_DEVICE_STATE_ON_STARTUP="0" defaults.conf L0047: RESTORE_THRESHOLDS_ON_BAT="0" /etc/tlp.conf L0368: NATACPI_ENABLE="1" /etc/tlp.conf L0369: TPACPI_ENABLE="1" /etc/tlp.conf L0370: TPSMAPI_ENABLE="1" /etc/tlp.conf L0020: TLP_DEFAULT_MODE="AC" /etc/tlp.conf L0072: CPU_HWP_ON_AC="balance_performance" /etc/tlp.conf L0073: CPU_HWP_ON_BAT="balance_power" /etc/tlp.conf L0080: CPU_MIN_PERF_ON_AC="0" /etc/tlp.conf L0081: CPU_MAX_PERF_ON_AC="100" /etc/tlp.conf L0082: CPU_MIN_PERF_ON_BAT="0" /etc/tlp.conf L0083: CPU_MAX_PERF_ON_BAT="50" /etc/tlp.conf L0091: CPU_BOOST_ON_AC="1" /etc/tlp.conf L0092: CPU_BOOST_ON_BAT="0" /etc/tlp.conf L0117: ENERGY_PERF_POLICY_ON_AC="performance" /etc/tlp.conf L0118: ENERGY_PERF_POLICY_ON_BAT="power" /etc/tlp.conf L0198: INTEL_GPU_MIN_FREQ_ON_BAT="0" /etc/tlp.conf L0200: INTEL_GPU_MAX_FREQ_ON_BAT="800" /etc/tlp.conf L0202: INTEL_GPU_BOOST_FREQ_ON_BAT="1000"

+++ System Info System = LENOVO ThinkPad X1 Carbon 6th 20KGS03800 BIOS = N23ET71W (1.46 ) Release = Pop!_OS 19.10 Kernel = 5.5.9-050509-generic #202003120738 SMP Thu Mar 12 07:41:55 UTC 2020 x86_64 /proc/cmdline = initrd=\EFI\Pop_OS-5ece54db-02d2-4fd3-8ad3-6e13212dcd96\initrd.img root=UUID=5ece54db-02d2-4fd3-8ad3-6e13212dcd96 ro quiet loglevel=0 systemd.show_status=false splash psmouse.synaptics_intertouch=0 Init system = systemd v242 (242) Boot mode = UEFI

+++ TLP Status State = enabled RDW state = enabled Last run = 06:05:30 PM, 4 sec(s) ago Mode = AC Power source = AC

============================================================

Also I notice, normally the LED is orange when charging, now it is constantly white.

linrunner commented 4 years ago

Sorry, I forgot

tlp-stat -b
lvlanson commented 4 years ago

--- TLP 1.3.1 --------------------------------------------

+++ Battery Features: Charge Thresholds and Recalibrate natacpi = active (data, thresholds) tpacpi-bat = active (recalibrate) tp-smapi = inactive (ThinkPad not supported)

+++ ThinkPad Battery Status: BAT0 (Main / Internal) /sys/class/power_supply/BAT0/manufacturer = LGC /sys/class/power_supply/BAT0/model_name = 01AV494 /sys/class/power_supply/BAT0/cycle_count = 126 /sys/class/power_supply/BAT0/energy_full_design = 57000 [mWh] /sys/class/power_supply/BAT0/energy_full = 50580 [mWh] /sys/class/power_supply/BAT0/energy_now = 48760 [mWh] /sys/class/power_supply/BAT0/power_now = 11118 [mW] /sys/class/power_supply/BAT0/status = Charging

/sys/class/power_supply/BAT0/charge_start_threshold = 96 [%] /sys/class/power_supply/BAT0/charge_stop_threshold = 100 [%] tpacpi-bat.BAT0.forceDischarge = 0

Charge = 96.4 [%] Capacity = 88.7 [%]

linrunner commented 4 years ago

Now observe if the not-charging problem occurs again without charge thresholds.

I must say i can't make sense of your initial threshold values yet. start=20 means you may start travelling with 20% remaining capacity which is ~2h runtime max. on the X1C6. Did you look at the FAQ "How to choose good battery charge thresholds"?

lvlanson commented 4 years ago

Actually I haven't yet looked at the charge threshholds.

So far it seems to work fine without the threshholds.

linrunner commented 4 years ago

I assume that this was a problem with the handling of the charge thresholds. Feel free to reopen if you find other clues.

linrunner commented 4 years ago

Here is an interesting firmware for the USB-C Gen2 Dock:

Fix smart charging power mechanism issue on all P series Laptops(P52, P53, P72, and P73)

It's still in "testing" so won't show up in a plain fwupdmgr updateyet.

lvlanson commented 4 years ago

Thanks for the heads up! I will check it when available.

Normally I had to update the firmware of the Dock via Windows, because fwupdmgr couldn't really update it.