Re: Thunderbolt i debian 12: Thinkpad x390

Narcis Garcia <[email protected]> Sat, 25 May 2024 09:16:28 +0200
Newsgroups gmane.linux.debian.user.catalan
Message-ID <[email protected]>
Gràcies Laura per compartir tota aquesta recerca; a tu et servirà per a 
capejar un problema, i a altres ens servirà per a orientar-nos millor 
quan ens topem amb el Thundebolt.

Llegeixo sobre temes de compatibilitat (cal saber segur de cada endoll 
USB-C si suporta Thunderbolt o no, i quines versions):
«Some functionality may be available if a Thunderbolt device is 
connected to a USB-C port; this is implementation-dependent, and not 
guaranteed.»

«Thunderbolt 4 supports Thunderbolt 3 devices, but not earlier versions. 
Thunderbolt 1 and 2 devices can be used with most, but not all, 
Thunderbolt 3 PCs with the use of an adapter.»

«Thunderbolt 3 is a hardware interface developed by Intel. It shares 
USB-C connectors with USB, supports USB 3.1 Gen 2, and can require 
special "active" cables for maximum performance for cable lengths over 
0.5 meters (1.5 feet).»

De moment, la convergència no és completa amb USB, tot i què USB4 apunta 
maneres i en la majoria de casos admet dispositius Thunderbolt.


El 24/5/24 a les 20:11, Laura Mora i Aubert ha escrit:
> Bona tarda,
> Obro un fil nou per a mostrar els veus avenços. Aprofito per explicar
> les coses que m'he anat trobant per a les persones que encara no heu
> tocat aquesta tecnologia.
> 
> Spoiler: Era el cable, però tot i això no acaba d'anar del tot la cosa
> 
> # BIOS
> Anem per la part més de ferro. A la BIOS, hi ha un apartat a config
> the és Thunderbolt (TM) 3. Atenció lu del numero és important.
> Thunderbolt 3 != Thunderbolt 4 (tot i que quan vaig comprar el cable
> dèia que Thunderbolt 4 també servia per Thunderbolt 3 i de moment
> sembla que no amb el què m'he trobat).
> 
> Hi ha dues opcions que s'han de tenir en compte
> 
> 1. Security Level: [No Security | User Authorization | Secure Connect
> | Diplay Port and USB]
> He definit "No Security", això fa que es validi automàticament
> Thunderbolt. Entenc que el boltctl serviria per autoritzar la connexió
> d'aquests dispositius.
> 
> 2. Support in Pre Boot Environment, Thunderbolt (TM) Device:
> [Disabled| Enabled| Pre-Boot ACL]
> - Pre-OS support for Thunderbold devices attached to Thunderbolt 3
> port. [Enabled]
> - Thunderbolt devices to be connected automatically [Pre-Boot ACL]
> - Thunderbolt devices to be connected after de the user authorization
> or automatically with security level "No Security" [Disabled]
> 
> He provat les tres opcions, i no hi ha canvi. La que he deixat ara
> mateix és Pre-Boot ACL.
> 
> Al arrancar la màquina he buscat alguna cosa de gestionar thunderbolt
> sense arrancar el sistema i no he vist cap opció.
> 
> # UBUNTU
> He reiniciat i la ethernet seguia sense aparèixer. Així que he
> arrancat amb la liveCD d'ubuntu. Allà he anat a buscar thunderbolt i
> dintre d'opcions > security, allà hi era. Però no detectava la dock
> station. Se m'ha ocorregut canviar el cable per el que venia amb la
> dockstation que és massa curt i per a això vaig comprar-ne un de nou i
> dadá! la ethernet ha funcionat i ha detectat la dockstation però
> tampoc em deixava fer gran cosa. El cable que venia amb la dock és
> Thunderbolt 3 i el que vaig comprar Thunderbolt 4. He provat de
> canviar els cables un parell de cops i el 4 no l'hi agradava, en
> comptes el 3 si.
> 
> El boltcl domains em detectava el domini actiu.
> 
> He reiniciat a debian de nou i amb el cable Thunderbolt 3 la xarxa ha
> funcionat correctament. He buscat el nom de la interfície però no l'hi
> posa nom, sembla que ho fa directament des de la dock. Ni amb lspci ni
> amb lsusb, ni amb lshw veig el nom de la interfície
> 
> root@triptofan:~# lspci
> 00:00.0 Host bridge: Intel Corporation Coffee Lake HOST and DRAM
> Controller (rev 0c)
> 00:02.0 VGA compatible controller: Intel Corporation WhiskeyLake-U GT2
> [UHD Graphics 620] (rev 02)
> 00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200
> v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 0c)
> 00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 /
> E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
> 00:12.0 Signal processing controller: Intel Corporation Cannon
> Point-LP Thermal Controller (rev 30)
> 00:14.0 USB controller: Intel Corporation Cannon Point-LP USB 3.1 xHCI
> Controller (rev 30)
> 00:14.2 RAM memory: Intel Corporation Cannon Point-LP Shared SRAM (rev 30)
> 00:14.3 Network controller: Intel Corporation Cannon Point-LP CNVi
> [Wireless-AC] (rev 30)
> 00:16.0 Communication controller: Intel Corporation Cannon Point-LP
> MEI Controller #1 (rev 30)
> 00:16.3 Serial controller: Intel Corporation Cannon Point-LP Keyboard
> and Text (KT) Redirection (rev 30)
> 00:1c.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root
> Port #1 (rev f0)
> 00:1c.4 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root
> Port #5 (rev f0)
> 00:1d.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root
> Port #9 (rev f0)
> 00:1d.4 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root
> Port #13 (rev f0)
> 00:1f.0 ISA bridge: Intel Corporation Cannon Point-LP LPC Controller (rev 30)
> 00:1f.3 Audio device: Intel Corporation Cannon Point-LP High
> Definition Audio Controller (rev 30)
> 00:1f.4 SMBus: Intel Corporation Cannon Point-LP SMBus Controller (rev 30)
> 00:1f.5 Serial bus controller: Intel Corporation Cannon Point-LP SPI
> Controller (rev 30)
> 00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (6)
> I219-LM (rev 30)
> 01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd.
> RTS522A PCI Express Card Reader (rev 01)
> 3d:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd
> NVMe SSD Controller SM981/PM981/PM983
> 
> root@triptofan:~# lsusb
> Bus 002 Device 008: ID 0951:1666 Kingston Technology DataTraveler 100
> G3/G4/SE9 G2/50 Kyson
> Bus 002 Device 011: ID 17ef:3082 Lenovo ThinkPad TBT 3 Dock
> Bus 002 Device 010: ID 17ef:307f Lenovo USB3.1 Hub
> Bus 002 Device 009: ID 17ef:307f Lenovo USB3.1 Hub
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 004: ID 04f2:b6d9 Chicony Electronics Co., Ltd Integrated Camera
> Bus 001 Device 003: ID 2386:4338 Raydium Corporation Raydium Touch System
> Bus 001 Device 033: ID 2109:8887 VIA Labs, Inc. 40AN
> Bus 001 Device 031: ID 046d:c050 Logitech, Inc. RX 250 Optical Mouse
> Bus 001 Device 030: ID 413c:2106 Dell Computer Corp. QuietKey Keyboard
> Bus 001 Device 035: ID 17ef:30c9 Lenovo ThinkPad Thunderbolt 3 Dock USB Audio
> Bus 001 Device 032: ID 17ef:3081 Lenovo USB2.0 HUB
> Bus 001 Device 029: ID 17ef:3080 Lenovo USB2.0 Hub
> Bus 001 Device 028: ID 17ef:3080 Lenovo USB2.0 Hub
> Bus 001 Device 006: ID 8087:0aaa Intel Corp. Bluetooth 9460/9560
> Jefferson Peak (JfP)
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> 
> # lshw -c Network
>    *-network
>         description: Ethernet interface
>         physical id: 9
>         bus info: usb@2:2.1.2
>         logical name: enx047bcb643baf
>         serial: 04:7b:cb:64:3b:af
>         size: 1Gbit/s
>         capacity: 1Gbit/s
>         capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt
> 100bt-fd 1000bt 1000bt-fd autonegotiation
>         configuration: autonegotiation=on broadcast=yes driver=r8152
> driverversion=v1.12.13 duplex=full ip=10.******* link=yes
> multicast=yes port=MII speed=1Gbit/s
> 
> root@triptofan:~# ethtool enx047bcb643baf
> Settings for enx047bcb643baf:
> Supported ports: [ TP MII ]
> Supported link modes:   10baseT/Half 10baseT/Full
>                          100baseT/Half 100baseT/Full
>                          1000baseT/Half 1000baseT/Full
> Supported pause frame use: No
> Supports auto-negotiation: Yes
> Supported FEC modes: Not reported
> Advertised link modes:  10baseT/Half 10baseT/Full
>                          100baseT/Half 100baseT/Full
>                          1000baseT/Full
> Advertised pause frame use: No
> Advertised auto-negotiation: Yes
> Advertised FEC modes: Not reported
> Link partner advertised link modes:  10baseT/Half 10baseT/Full
>                                       100baseT/Half 100baseT/Full
>                                       1000baseT/Full
> Link partner advertised pause frame use: Symmetric
> Link partner advertised auto-negotiation: Yes
> Link partner advertised FEC modes: Not reported
> Speed: 1000Mb/s
> Duplex: Full
> Auto-negotiation: on
> Port: MII
> PHYAD: 32
> Transceiver: internal
> Supports Wake-on: pumbg
> Wake-on: g
>          Current message level: 0x00007fff (32767)
>                                 drv probe link timer ifdown ifup rx_err
> tx_err tx_queued intr tx_done rx_status pktdata hw wol
> Link detected: yes
> 
> 
> # PANTALLA
> He provat de connectar la pantalla a través de la dock i res, no ha
> funcionat. L'altre dia vaig aconseguir que funcionés la pantalla. Així
> que he posat el cable Thunderbolt 4 i la pantalla ha funcionat, però
> ha deixat de funcionar la xarxa. Com que la pantalla a través de la
> dock es veu com blanquinosa, he tornat a connectar el cable HDMI
> directament al port del portàtil.
> 
> Pregunta: algun motiu de perquè la pantalla es veu blanquinosa a
> través de la dock? el cable és el mateix.
> 
> # BOLTCTL
> 
> Per veure els dominis utilitzo boltctl domains
> 
> root@triptofan:~# boltctl domains
>   ● domain0 cd010000-00a2-a098-2054-c02e6c7XXXXX
>     ├─ bootacl:  0/16
>     └─ security: none
> 
> root@triptofan:~# boltctl info cd010000-00a2-a098-2054-c02e6c7XXXXX
>   ○ Lenovo X390/T490s
>     ├─ type:          host
>     ├─ name:          X390/T490s
>     ├─ vendor:        Lenovo
>     ├─ uuid:          cd010000-00a2-a098-2054-c02e6c7XXXXX
>     ├─ dbus path:
> /org/freedesktop/bolt/devices/cd010000_00a2_a098_2054_c02e6c7XXXXX
>     ├─ generation:    Thunderbolt 3
>     ├─ status:        disconnected
>     ├─ authorized:    divendres, 24 de maig de 2024, 18:07:09
>     ├─ connected:     divendres, 24 de maig de 2024, 18:07:09
>     └─ stored:        dilluns, 29 d’abril de 2024, 09:16:40
>        ├─ policy:     manual
>        └─ key:        no
> 
> Si desconnecto el cable, aleshores surt així:
> 
> root@triptofan:~# boltctl domains
>   ○ domain cd010000-00a2-a098-2054-c02e6c734026
>     ├─ bootacl:  0/16
>     └─ security: none
> 
> I perquè torni a estar amb el puntet verd (que no s'aprecia al estar
> en text), he de reiniciar.
> 
> He provat de jugar amb diferents comandes del boltctl però no
> aconsegueixo avançar. En alguns moments he aconseguit que el status
> posés connected, però he connectat i desconnectat tant que ja no sé ni
> com ho he aconseguit.
> 
> En fi... tot un món...
> 
> - Laura Mora i Aubert
> http://blackhold.nusepas.com
> @blackhold_
> ~> cal lluitar contra el fort per deixar de ser febles, i contra
> nosaltres mateixos quan siguem forts (Xirinacs)
> <°((( ><
> 

-- 

Narcis Garcia

__________
I'm using this dedicated address because personal addresses aren't 
masked enough at this mail public archive. Public archive administrator 
should remove and omit any @, dot and mailto combinations against 
automated addresses collectors.