Making Game: What can a program find out about a USB-C cable attached to the computer?

Original Source Link

I plug an unknown USB-C cable into my computer.
Theoretically, could a program read information about that cable? In particular:

  1. What version of USB it supports: 2.0, 3.1, etc.
  2. Whether it supports Thunderbolt, etc.
  3. Whether it supports Power Delivery, Quick Charge, VOOC, SuperCharge, Pump Express, Super FlashCharge, etc.
  4. Up to what speed it can transfer data.
  5. Up to what wattage/amperage it can charge a high-spec device.

Notes:

  • I am on Linux, but answers for other OSes are fine too.
  • Let’s say nothing is connected at the other end of the cable. But if really necessary, we can say a recent rooted Android phone is connected and can run whatever code is needed.

All answers of what Type-C connector can do and can’t are given in its specifications.

In brief, Type-C cable specs are nearly independent from USB data and USB Power Delivery (Type-C can support anything).

By specs, Type-C connector/cable provides two methods of self-identification.

First one is by combination of resistor pulls-up and pulls-down on both sides of CC wires. Since there are two CC pins in Type-C connectors, and several analog levels, many combinations are available. Other than connect function itself and basic determination of source-sink roles and power capacity, several “alternate” functions are defined, as Display Port, Audio, and Debug mode.

The second amendment to Type-C is the mandatory embedding of e-markers into every C-C cable. The information in e-marker contains name of manufacturer and current carrying capability of particular cable.

The state of CC1/CC2 pins is usually acquired by a special CC-controller chip. The CC-controller communicates with main system by I2C interface. The register-based interface is standardized in Intel document USB Type-C Connector System Software Interface Specification

Microsoft provides a special UCSI driver to communicate the state of Type-C connector to Windows. I am certain that Linux does have the corresponding driver as well, take a look at this article.

So, partial answer your set of questions can be found in the following EE article. #1 and #5 is supported. #4 is the same as #1. Regarding #3, Type-C connector supports only one “charging signature”, which is Power Delivery specification. Regarding the second part of your notes, if nothing is connected on the other end of CC cable, I am not sure if presence of Ra alone will trigger any detection of the cable, need to check on this.

Tagged : / / / /

Linux HowTo: What can a program find out about a USB-C cable attached to the computer?

Original Source Link

I plug an unknown USB-C cable into my computer.
Theoretically, could a program read information about that cable? In particular:

  1. What version of USB it supports: 2.0, 3.1, etc.
  2. Whether it supports Thunderbolt, etc.
  3. Whether it supports Power Delivery, Quick Charge, VOOC, SuperCharge, Pump Express, Super FlashCharge, etc.
  4. Up to what speed it can transfer data.
  5. Up to what wattage/amperage it can charge a high-spec device.

Notes:

  • I am on Linux, but answers for other OSes are fine too.
  • Let’s say nothing is connected at the other end of the cable. But if really necessary, we can say a recent rooted Android phone is connected and can run whatever code is needed.

All answers of what Type-C connector can do and can’t are given in its specifications.

In brief, Type-C cable specs are nearly independent from USB data and USB Power Delivery (Type-C can support anything).

By specs, Type-C connector/cable provides two methods of self-identification.

First one is by combination of resistor pulls-up and pulls-down on both sides of CC wires. Since there are two CC pins in Type-C connectors, and several analog levels, many combinations are available. Other than connect function itself and basic determination of source-sink roles and power capacity, several “alternate” functions are defined, as Display Port, Audio, and Debug mode.

The second amendment to Type-C is the mandatory embedding of e-markers into every C-C cable. The information in e-marker contains name of manufacturer and current carrying capability of particular cable.

The state of CC1/CC2 pins is usually acquired by a special CC-controller chip. The CC-controller communicates with main system by I2C interface. The register-based interface is standardized in Intel document USB Type-C Connector System Software Interface Specification

Microsoft provides a special UCSI driver to communicate the state of Type-C connector to Windows. I am certain that Linux does have the corresponding driver as well, take a look at this article.

So, partial answer your set of questions can be found in the following EE article. #1 and #5 is supported. #4 is the same as #1. Regarding #3, Type-C connector supports only one “charging signature”, which is Power Delivery specification. Regarding the second part of your notes, if nothing is connected on the other end of CC cable, I am not sure if presence of Ra alone will trigger any detection of the cable, need to check on this.

Tagged : / / / /

Ubuntu HowTo: High-res monitor support, 5120×2160, LG 34WK95

Original Source Link

I have a new Dell Precission 5540 laptop that I connect to my LG 34WK95 display. In windows I get the full 5120×[email protected] resolution, but in Ubuntu the best I can get is 3440×1440. The monitor is connect over thunderbolt (usb-c).

Does anyone know how to fix this? Or at least where I should file a bugreport.

The only relevant things I can find while googling are these links

https://unix.stackexchange.com/questions/486350/using-displayport-over-usb-c-thunderbolt-3-to-drive-external-5120×2160-monitor

https://www.phoronix.com/scan.php?page=news_item&px=Linux-USB-Type-C-Port-DP-Driver

UPDATE 1:
Using xrandr I’m able to force a 5120×[email protected] setting, so this might indicate it’s somehow operating in USB-C mode even though connected with the same thunberbolt cable that works in Windows?
https://www.lg.com/uk/monitors/lg-34WK95U

60 Hz still doesn’t work.

UPDATE 2:
attaching xrandr --verbose output as requested

$ xrandr --verbose
Screen 0: minimum 320 x 200, current 8192 x 3456, maximum 16384 x 16384
eDP-1 connected (normal left inverted right x axis y axis)
    Identifier: 0x42
    Timestamp:  3453569
    Subpixel:   unknown
    Clones:    
    CRTCs:      1 0 2
    Transform:  1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
               filter: 
    _MUTTER_PRESENTATION_OUTPUT: 0 
    EDID: 
        00ffffffffffff004d10ba1400000000
        161d0104a52213780ede50a3544c9926
        0f505400000001010101010101010101
        010101010101ac3780a070383e403020
        350058c2100000180000000000000000
        00000000000000000000000000fe004d
        57503154804c513135364d3100000000
        0002410332001200000a010a202000d3
    scaling mode: Full aspect 
        supported: Full, Center, Full aspect
    max bpc: 12 
        range: (6, 12)
    Broadcast RGB: Automatic 
        supported: Automatic, Full, Limited 16:235
    link-status: Good 
        supported: Good, Bad
    CONNECTOR_ID: 86 
        supported: 86
    non-desktop: 0 
        range: (0, 1)
  1920x1080 (0x47) 142.520MHz -HSync -VSync +preferred
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock  68.52KHz
        v: height 1080 start 1083 end 1088 total 1142           clock  60.00Hz
  1920x1080 (0x48) 266.500MHz +HSync -VSync DoubleScan
        h: width  1920 start 1944 end 1960 total 2000 skew    0 clock 133.25KHz
        v: height 1080 start 1081 end 1084 total 1111           clock  59.97Hz
  1920x1080 (0x49) 173.000MHz -HSync +VSync
        h: width  1920 start 2048 end 2248 total 2576 skew    0 clock  67.16KHz
        v: height 1080 start 1083 end 1088 total 1120           clock  59.96Hz
  1920x1080 (0x4a) 138.500MHz +HSync -VSync
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock  66.59KHz
        v: height 1080 start 1083 end 1088 total 1111           clock  59.93Hz
  1680x1050 (0x4b) 146.250MHz -HSync +VSync
        h: width  1680 start 1784 end 1960 total 2240 skew    0 clock  65.29KHz
        v: height 1050 start 1053 end 1059 total 1089           clock  59.95Hz
  1680x1050 (0x4c) 119.000MHz +HSync -VSync
        h: width  1680 start 1728 end 1760 total 1840 skew    0 clock  64.67KHz
        v: height 1050 start 1053 end 1059 total 1080           clock  59.88Hz
  1600x1024 (0x4d) 103.125MHz +HSync +VSync
        h: width  1600 start 1600 end 1656 total 1664 skew    0 clock  61.97KHz
        v: height 1024 start 1024 end 1029 total 1030           clock  60.17Hz
  1400x1050 (0x4e) 122.000MHz +HSync +VSync
        h: width  1400 start 1488 end 1640 total 1880 skew    0 clock  64.89KHz
        v: height 1050 start 1052 end 1064 total 1082           clock  59.98Hz
  1600x900 (0x4f) 246.000MHz -HSync +VSync DoubleScan
        h: width  1600 start 1728 end 1900 total 2200 skew    0 clock 111.82KHz
        v: height  900 start  901 end  904 total  932           clock  59.99Hz
  1600x900 (0x50) 186.500MHz +HSync -VSync DoubleScan
        h: width  1600 start 1624 end 1640 total 1680 skew    0 clock 111.01KHz
        v: height  900 start  901 end  904 total  926           clock  59.94Hz
  1600x900 (0x51) 118.250MHz -HSync +VSync
        h: width  1600 start 1696 end 1856 total 2112 skew    0 clock  55.99KHz
        v: height  900 start  903 end  908 total  934           clock  59.95Hz
  1600x900 (0x52) 97.500MHz +HSync -VSync
        h: width  1600 start 1648 end 1680 total 1760 skew    0 clock  55.40KHz
        v: height  900 start  903 end  908 total  926           clock  59.82Hz
  1280x1024 (0x53) 108.000MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock  63.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  60.02Hz
  1440x900 (0x54) 106.500MHz -HSync +VSync
        h: width  1440 start 1520 end 1672 total 1904 skew    0 clock  55.93KHz
        v: height  900 start  903 end  909 total  934           clock  59.89Hz
  1400x900 (0x55) 103.500MHz -HSync +VSync
        h: width  1400 start 1480 end 1624 total 1848 skew    0 clock  56.01KHz
        v: height  900 start  903 end  913 total  934           clock  59.96Hz
  1400x900 (0x56) 86.500MHz +HSync -VSync
        h: width  1400 start 1448 end 1480 total 1560 skew    0 clock  55.45KHz
        v: height  900 start  903 end  913 total  926           clock  59.88Hz
  1280x960 (0x57) 108.000MHz +HSync +VSync
        h: width  1280 start 1376 end 1488 total 1800 skew    0 clock  60.00KHz
        v: height  960 start  961 end  964 total 1000           clock  60.00Hz
  1440x810 (0x58) 198.125MHz -HSync +VSync DoubleScan
        h: width  1440 start 1548 end 1704 total 1968 skew    0 clock 100.67KHz
        v: height  810 start  811 end  814 total  839           clock  60.00Hz
  1440x810 (0x59) 151.875MHz +HSync -VSync DoubleScan
        h: width  1440 start 1464 end 1480 total 1520 skew    0 clock  99.92KHz
        v: height  810 start  811 end  814 total  833           clock  59.97Hz
  1368x768 (0x5a) 85.250MHz -HSync +VSync
        h: width  1368 start 1440 end 1576 total 1784 skew    0 clock  47.79KHz
        v: height  768 start  771 end  781 total  798           clock  59.88Hz
  1368x768 (0x5b) 72.250MHz +HSync -VSync
        h: width  1368 start 1416 end 1448 total 1528 skew    0 clock  47.28KHz
        v: height  768 start  771 end  781 total  790           clock  59.85Hz
  1360x768 (0x5c) 84.750MHz -HSync +VSync
        h: width  1360 start 1432 end 1568 total 1776 skew    0 clock  47.72KHz
        v: height  768 start  771 end  781 total  798           clock  59.80Hz
  1360x768 (0x5d) 72.000MHz +HSync -VSync
        h: width  1360 start 1408 end 1440 total 1520 skew    0 clock  47.37KHz
        v: height  768 start  771 end  781 total  790           clock  59.96Hz
  1280x800 (0x5e) 174.250MHz -HSync +VSync DoubleScan
        h: width  1280 start 1380 end 1516 total 1752 skew    0 clock  99.46KHz
        v: height  800 start  801 end  804 total  829           clock  59.99Hz
  1280x800 (0x5f) 134.250MHz +HSync -VSync DoubleScan
        h: width  1280 start 1304 end 1320 total 1360 skew    0 clock  98.71KHz
        v: height  800 start  801 end  804 total  823           clock  59.97Hz
  1280x800 (0x60) 83.500MHz -HSync +VSync
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock  49.70KHz
        v: height  800 start  803 end  809 total  831           clock  59.81Hz
  1280x800 (0x61) 71.000MHz +HSync -VSync
        h: width  1280 start 1328 end 1360 total 1440 skew    0 clock  49.31KHz
        v: height  800 start  803 end  809 total  823           clock  59.91Hz
  1152x864 (0x62) 81.620MHz -HSync +VSync
        h: width  1152 start 1216 end 1336 total 1520 skew    0 clock  53.70KHz
        v: height  864 start  865 end  868 total  895           clock  60.00Hz
  1280x720 (0x63) 156.125MHz -HSync +VSync DoubleScan
        h: width  1280 start 1376 end 1512 total 1744 skew    0 clock  89.52KHz
        v: height  720 start  721 end  724 total  746           clock  60.00Hz
  1280x720 (0x64) 120.750MHz +HSync -VSync DoubleScan
        h: width  1280 start 1304 end 1320 total 1360 skew    0 clock  88.79KHz
        v: height  720 start  721 end  724 total  740           clock  59.99Hz
  1280x720 (0x65) 74.500MHz -HSync +VSync
        h: width  1280 start 1344 end 1472 total 1664 skew    0 clock  44.77KHz
        v: height  720 start  723 end  728 total  748           clock  59.86Hz
  1280x720 (0x66) 63.750MHz +HSync -VSync
        h: width  1280 start 1328 end 1360 total 1440 skew    0 clock  44.27KHz
        v: height  720 start  723 end  728 total  741           clock  59.74Hz
  1024x768 (0x67) 133.475MHz -HSync +VSync DoubleScan
        h: width  1024 start 1100 end 1212 total 1400 skew    0 clock  95.34KHz
        v: height  768 start  768 end  770 total  794           clock  60.04Hz
  1024x768 (0x68) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  960x720 (0x69) 117.000MHz -HSync +VSync DoubleScan
        h: width   960 start 1024 end 1128 total 1300 skew    0 clock  90.00KHz
        v: height  720 start  720 end  722 total  750           clock  60.00Hz
  928x696 (0x6a) 109.150MHz -HSync +VSync DoubleScan
        h: width   928 start  976 end 1088 total 1264 skew    0 clock  86.35KHz
        v: height  696 start  696 end  698 total  719           clock  60.05Hz
  896x672 (0x6b) 102.400MHz -HSync +VSync DoubleScan
        h: width   896 start  960 end 1060 total 1224 skew    0 clock  83.66KHz
        v: height  672 start  672 end  674 total  697           clock  60.01Hz
  1024x576 (0x6c) 98.500MHz -HSync +VSync DoubleScan
        h: width  1024 start 1092 end 1200 total 1376 skew    0 clock  71.58KHz
        v: height  576 start  577 end  580 total  597           clock  59.95Hz
  1024x576 (0x6d) 78.375MHz +HSync -VSync DoubleScan
        h: width  1024 start 1048 end 1064 total 1104 skew    0 clock  70.99KHz
        v: height  576 start  577 end  580 total  592           clock  59.96Hz
  1024x576 (0x6e) 46.500MHz -HSync +VSync
        h: width  1024 start 1064 end 1160 total 1296 skew    0 clock  35.88KHz
        v: height  576 start  579 end  584 total  599           clock  59.90Hz
  1024x576 (0x6f) 42.000MHz +HSync -VSync
        h: width  1024 start 1072 end 1104 total 1184 skew    0 clock  35.47KHz
        v: height  576 start  579 end  584 total  593           clock  59.82Hz
  960x600 (0x70) 96.625MHz -HSync +VSync DoubleScan
        h: width   960 start 1028 end 1128 total 1296 skew    0 clock  74.56KHz
        v: height  600 start  601 end  604 total  622           clock  59.93Hz
  960x600 (0x71) 77.000MHz +HSync -VSync DoubleScan
        h: width   960 start  984 end 1000 total 1040 skew    0 clock  74.04KHz
        v: height  600 start  601 end  604 total  617           clock  60.00Hz
  960x540 (0x72) 86.500MHz -HSync +VSync DoubleScan
        h: width   960 start 1024 end 1124 total 1288 skew    0 clock  67.16KHz
        v: height  540 start  541 end  544 total  560           clock  59.96Hz
  960x540 (0x73) 69.250MHz +HSync -VSync DoubleScan
        h: width   960 start  984 end 1000 total 1040 skew    0 clock  66.59KHz
        v: height  540 start  541 end  544 total  555           clock  59.99Hz
  960x540 (0x74) 40.750MHz -HSync +VSync
        h: width   960 start  992 end 1088 total 1216 skew    0 clock  33.51KHz
        v: height  540 start  543 end  548 total  562           clock  59.63Hz
  960x540 (0x75) 37.250MHz +HSync -VSync
        h: width   960 start 1008 end 1040 total 1120 skew    0 clock  33.26KHz
        v: height  540 start  543 end  548 total  556           clock  59.82Hz
  800x600 (0x76) 81.000MHz +HSync +VSync DoubleScan
        h: width   800 start  832 end  928 total 1080 skew    0 clock  75.00KHz
        v: height  600 start  600 end  602 total  625           clock  60.00Hz
  800x600 (0x77) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  800x600 (0x78) 36.000MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz
        v: height  600 start  601 end  603 total  625           clock  56.25Hz
  840x525 (0x79) 73.125MHz -HSync +VSync DoubleScan
        h: width   840 start  892 end  980 total 1120 skew    0 clock  65.29KHz
        v: height  525 start  526 end  529 total  544           clock  60.01Hz
  840x525 (0x7a) 59.500MHz +HSync -VSync DoubleScan
        h: width   840 start  864 end  880 total  920 skew    0 clock  64.67KHz
        v: height  525 start  526 end  529 total  540           clock  59.88Hz
  864x486 (0x7b) 32.500MHz -HSync +VSync
        h: width   864 start  888 end  968 total 1072 skew    0 clock  30.32KHz
        v: height  486 start  489 end  494 total  506           clock  59.92Hz
  864x486 (0x7c) 30.500MHz +HSync -VSync
        h: width   864 start  912 end  944 total 1024 skew    0 clock  29.79KHz
        v: height  486 start  489 end  494 total  500           clock  59.57Hz
  800x512 (0x7d) 51.562MHz +HSync +VSync DoubleScan
        h: width   800 start  800 end  828 total  832 skew    0 clock  61.97KHz
        v: height  512 start  512 end  514 total  515           clock  60.17Hz
  700x525 (0x7e) 61.000MHz +HSync +VSync DoubleScan
        h: width   700 start  744 end  820 total  940 skew    0 clock  64.89KHz
        v: height  525 start  526 end  532 total  541           clock  59.98Hz
  800x450 (0x7f) 59.125MHz -HSync +VSync DoubleScan
        h: width   800 start  848 end  928 total 1056 skew    0 clock  55.99KHz
        v: height  450 start  451 end  454 total  467           clock  59.95Hz
  800x450 (0x80) 48.750MHz +HSync -VSync DoubleScan
        h: width   800 start  824 end  840 total  880 skew    0 clock  55.40KHz
        v: height  450 start  451 end  454 total  463           clock  59.82Hz
  640x512 (0x81) 54.000MHz +HSync +VSync DoubleScan
        h: width   640 start  664 end  720 total  844 skew    0 clock  63.98KHz
        v: height  512 start  512 end  514 total  533           clock  60.02Hz
  720x450 (0x82) 53.250MHz -HSync +VSync DoubleScan
        h: width   720 start  760 end  836 total  952 skew    0 clock  55.93KHz
        v: height  450 start  451 end  454 total  467           clock  59.89Hz
  700x450 (0x83) 51.750MHz -HSync +VSync DoubleScan
        h: width   700 start  740 end  812 total  924 skew    0 clock  56.01KHz
        v: height  450 start  451 end  456 total  467           clock  59.96Hz
  700x450 (0x84) 43.250MHz +HSync -VSync DoubleScan
        h: width   700 start  724 end  740 total  780 skew    0 clock  55.45KHz
        v: height  450 start  451 end  456 total  463           clock  59.88Hz
  640x480 (0x85) 54.000MHz +HSync +VSync DoubleScan
        h: width   640 start  688 end  744 total  900 skew    0 clock  60.00KHz
        v: height  480 start  480 end  482 total  500           clock  60.00Hz
  640x480 (0x86) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
  720x405 (0x87) 22.500MHz -HSync +VSync
        h: width   720 start  744 end  808 total  896 skew    0 clock  25.11KHz
        v: height  405 start  408 end  413 total  422           clock  59.51Hz
  720x405 (0x88) 21.750MHz +HSync -VSync
        h: width   720 start  768 end  800 total  880 skew    0 clock  24.72KHz
        v: height  405 start  408 end  413 total  419           clock  58.99Hz
  684x384 (0x89) 42.625MHz -HSync +VSync DoubleScan
        h: width   684 start  720 end  788 total  892 skew    0 clock  47.79KHz
        v: height  384 start  385 end  390 total  399           clock  59.88Hz
  684x384 (0x8a) 36.125MHz +HSync -VSync DoubleScan
        h: width   684 start  708 end  724 total  764 skew    0 clock  47.28KHz
        v: height  384 start  385 end  390 total  395           clock  59.85Hz
  680x384 (0x8b) 42.375MHz -HSync +VSync DoubleScan
        h: width   680 start  716 end  784 total  888 skew    0 clock  47.72KHz
        v: height  384 start  385 end  390 total  399           clock  59.80Hz
  680x384 (0x8c) 36.000MHz +HSync -VSync DoubleScan
        h: width   680 start  704 end  720 total  760 skew    0 clock  47.37KHz
        v: height  384 start  385 end  390 total  395           clock  59.96Hz
  640x400 (0x8d) 41.750MHz -HSync +VSync DoubleScan
        h: width   640 start  676 end  740 total  840 skew    0 clock  49.70KHz
        v: height  400 start  401 end  404 total  415           clock  59.88Hz
  640x400 (0x8e) 35.500MHz +HSync -VSync DoubleScan
        h: width   640 start  664 end  680 total  720 skew    0 clock  49.31KHz
        v: height  400 start  401 end  404 total  411           clock  59.98Hz
  576x432 (0x8f) 40.810MHz -HSync +VSync DoubleScan
        h: width   576 start  608 end  668 total  760 skew    0 clock  53.70KHz
        v: height  432 start  432 end  434 total  447           clock  60.06Hz
  640x360 (0x90) 37.250MHz -HSync +VSync DoubleScan
        h: width   640 start  672 end  736 total  832 skew    0 clock  44.77KHz
        v: height  360 start  361 end  364 total  374           clock  59.86Hz
  640x360 (0x91) 31.875MHz +HSync -VSync DoubleScan
        h: width   640 start  664 end  680 total  720 skew    0 clock  44.27KHz
        v: height  360 start  361 end  364 total  370           clock  59.83Hz
  640x360 (0x92) 18.000MHz -HSync +VSync
        h: width   640 start  664 end  720 total  800 skew    0 clock  22.50KHz
        v: height  360 start  363 end  368 total  376           clock  59.84Hz
  640x360 (0x93) 17.750MHz +HSync -VSync
        h: width   640 start  688 end  720 total  800 skew    0 clock  22.19KHz
        v: height  360 start  363 end  368 total  374           clock  59.32Hz
  512x384 (0x94) 32.500MHz -HSync -VSync DoubleScan
        h: width   512 start  524 end  592 total  672 skew    0 clock  48.36KHz
        v: height  384 start  385 end  388 total  403           clock  60.00Hz
  512x288 (0x95) 23.250MHz -HSync +VSync DoubleScan
        h: width   512 start  532 end  580 total  648 skew    0 clock  35.88KHz
        v: height  288 start  289 end  292 total  299           clock  60.00Hz
  512x288 (0x96) 21.000MHz +HSync -VSync DoubleScan
        h: width   512 start  536 end  552 total  592 skew    0 clock  35.47KHz
        v: height  288 start  289 end  292 total  296           clock  59.92Hz
  480x270 (0x97) 20.375MHz -HSync +VSync DoubleScan
        h: width   480 start  496 end  544 total  608 skew    0 clock  33.51KHz
        v: height  270 start  271 end  274 total  281           clock  59.63Hz
  480x270 (0x98) 18.625MHz +HSync -VSync DoubleScan
        h: width   480 start  504 end  520 total  560 skew    0 clock  33.26KHz
        v: height  270 start  271 end  274 total  278           clock  59.82Hz
  400x300 (0x99) 20.000MHz +HSync +VSync DoubleScan
        h: width   400 start  420 end  484 total  528 skew    0 clock  37.88KHz
        v: height  300 start  300 end  302 total  314           clock  60.32Hz
  400x300 (0x9a) 18.000MHz +HSync +VSync DoubleScan
        h: width   400 start  412 end  448 total  512 skew    0 clock  35.16KHz
        v: height  300 start  300 end  301 total  312           clock  56.34Hz
  432x243 (0x9b) 16.250MHz -HSync +VSync DoubleScan
        h: width   432 start  444 end  484 total  536 skew    0 clock  30.32KHz
        v: height  243 start  244 end  247 total  253           clock  59.92Hz
  432x243 (0x9c) 15.250MHz +HSync -VSync DoubleScan
        h: width   432 start  456 end  472 total  512 skew    0 clock  29.79KHz
        v: height  243 start  244 end  247 total  250           clock  59.57Hz
  320x240 (0x9d) 12.587MHz -HSync -VSync DoubleScan
        h: width   320 start  328 end  376 total  400 skew    0 clock  31.47KHz
        v: height  240 start  245 end  246 total  262           clock  60.05Hz
  360x202 (0x9e) 11.250MHz -HSync +VSync DoubleScan
        h: width   360 start  372 end  404 total  448 skew    0 clock  25.11KHz
        v: height  202 start  204 end  206 total  211           clock  59.51Hz
  360x202 (0x9f) 10.875MHz +HSync -VSync DoubleScan
        h: width   360 start  384 end  400 total  440 skew    0 clock  24.72KHz
        v: height  202 start  204 end  206 total  209           clock  59.13Hz
  320x180 (0xa0)  9.000MHz -HSync +VSync DoubleScan
        h: width   320 start  332 end  360 total  400 skew    0 clock  22.50KHz
        v: height  180 start  181 end  184 total  188           clock  59.84Hz
  320x180 (0xa1)  8.875MHz +HSync -VSync DoubleScan
        h: width   320 start  344 end  360 total  400 skew    0 clock  22.19KHz
        v: height  180 start  181 end  184 total  187           clock  59.32Hz
DP-1 connected primary 8192x3456+0+0 (0x5dd) normal (normal left inverted right x axis y axis) 800mm x 330mm
    Identifier: 0x43
    Timestamp:  3453569
    Subpixel:   unknown
    Gamma:      1.0:1.0:1.0
    Brightness: 1.0
    Clones:    
    CRTC:       0
    CRTCs:      1 0 2
    Transform:  1.599991 0.000000 0.000000
                0.000000 1.599991 0.000000
                0.000000 0.000000 1.000000
               filter: bilinear
    EDID: 
        00ffffffffffff001e6d2177d3ad0200
        091d0104b55021789e09c1ae5044af26
        0e50542108007140818081c0a9c0d1c0
        810001010101e77c70a0d0a029503020
        3a00204a3100001a9d6770a0d0a02250
        30203a00204a3100001a000000fd0030
        3d1e874c000a202020202020000000fc
        004c472048445220354b0a202020033d
        02031971449004030123090707830100
        00e305c000e30605014dd000a0f0703e
        803020650c204a3100001a286800a0f0
        703e800890650c204a3100001a000000
        00000000000000000000000000000000
        00000000000000000000000000000000
        00000000000000000000000000000000
        000000000000000000000000000000e3
        701279030001000c401fe40c00147008
        90788999030014e07c00086f0d9f002f
        801f009f052800020009000000000000
        00000000000000000000000000000000
        00000000000000000000000000000000
        00000000000000000000000000000000
        00000000000000000000000000000000
        00000000000000000000000000002590
        701279030012001682100000ff096f08
    _MUTTER_PRESENTATION_OUTPUT: 0 
    Content Protection: Undesired 
        supported: Undesired, Desired, Enabled
    max bpc: 12 
        range: (6, 12)
    Broadcast RGB: Automatic 
        supported: Automatic, Full, Limited 16:235
    audio: auto 
        supported: force-dvi, off, auto, on
    link-status: Good 
        supported: Good, Bad
    CONNECTOR_ID: 92 
        supported: 92
    non-desktop: 0 
        range: (0, 1)
  3440x1440 (0x5df) 319.750MHz +HSync -VSync +preferred
        h: width  3440 start 3488 end 3520 total 3600 skew    0 clock  88.82KHz
        v: height 1440 start 1443 end 1453 total 1481           clock  59.97Hz
  3840x2160 (0x5e0) 533.250MHz +HSync -VSync
        h: width  3840 start 3888 end 3920 total 4000 skew    0 clock 133.31KHz
        v: height 2160 start 2214 end 2219 total 2222           clock  60.00Hz
  3840x2160 (0x5e1) 266.640MHz +HSync -VSync
        h: width  3840 start 3848 end 3992 total 4000 skew    0 clock  66.66KHz
        v: height 2160 start 2214 end 2219 total 2222           clock  30.00Hz
  3440x1440 (0x5e2) 319.680MHz +HSync -VSync
        h: width  3440 start 3488 end 3520 total 3600 skew    0 clock  88.80KHz
        v: height 1440 start 1443 end 1453 total 1481           clock  59.96Hz
  3440x1440 (0x5e3) 265.250MHz +HSync -VSync
        h: width  3440 start 3488 end 3520 total 3600 skew    0 clock  73.68KHz
        v: height 1440 start 1443 end 1453 total 1474           clock  49.99Hz
  1920x1080 (0x5e4) 148.500MHz -HSync -VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.50KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  60.00Hz
  1920x1080 (0x5e5) 148.500MHz +HSync +VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.50KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  60.00Hz
  1920x1080 (0x5e6) 148.352MHz +HSync +VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.43KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  59.94Hz
  1600x900 (0x5e7) 108.000MHz +HSync +VSync
        h: width  1600 start 1624 end 1704 total 1800 skew    0 clock  60.00KHz
        v: height  900 start  901 end  904 total 1000           clock  60.00Hz
  1280x1024 (0x53) 108.000MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock  63.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  60.02Hz
  1280x800 (0x60) 83.500MHz -HSync +VSync
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock  49.70KHz
        v: height  800 start  803 end  809 total  831           clock  59.81Hz
  1152x864 (0x5e8) 81.579MHz -HSync +VSync
        h: width  1152 start 1216 end 1336 total 1520 skew    0 clock  53.67KHz
        v: height  864 start  865 end  868 total  895           clock  59.97Hz
  1280x720 (0x5e9) 74.250MHz +HSync +VSync
        h: width  1280 start 1390 end 1430 total 1650 skew    0 clock  45.00KHz
        v: height  720 start  725 end  730 total  750           clock  60.00Hz
  1280x720 (0x5ea) 74.176MHz +HSync +VSync
        h: width  1280 start 1390 end 1430 total 1650 skew    0 clock  44.96KHz
        v: height  720 start  725 end  730 total  750           clock  59.94Hz
  1024x768 (0x68) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  800x600 (0x77) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  720x480 (0x5eb) 27.027MHz -HSync -VSync
        h: width   720 start  736 end  798 total  858 skew    0 clock  31.50KHz
        v: height  480 start  489 end  495 total  525           clock  60.00Hz
  720x480 (0x5ec) 27.000MHz -HSync -VSync
        h: width   720 start  736 end  798 total  858 skew    0 clock  31.47KHz
        v: height  480 start  489 end  495 total  525           clock  59.94Hz
  640x480 (0x5ed) 25.200MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.50KHz
        v: height  480 start  490 end  492 total  525           clock  60.00Hz
  640x480 (0x86) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
  5120x2160_30.00 (0x5dd) 452.750MHz -HSync +VSync *current
        h: width  5120 start 5448 end 5992 total 6864 skew    0 clock  65.96KHz
        v: height 2160 start 2163 end 2173 total 2200           clock  29.98Hz
  5120x2160_60.00 (0x5f1) 949.000MHz -HSync +VSync
        h: width  5120 start 5536 end 6096 total 7072 skew    0 clock 134.19KHz
        v: height 2160 start 2163 end 2173 total 2237           clock  59.99Hz
DP-2 connected (normal left inverted right x axis y axis)
    Identifier: 0x44
    Timestamp:  3453569
    Subpixel:   unknown
    Clones:    
    CRTCs:      1 0 2
    Transform:  1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
               filter: 
    EDID: 
        00ffffffffffff001e6d2177d3ad0200
        091d0104b55021789e09c1ae5044af26
        0e505420000001010101010101010101
        01010101010100000000000000000000
        00000000000000000000000000000000
        00000000000000000000000000fd0030
        3d1e874c000a202020202020000000fc
        004c472048445220354b0a202020017a
        701279030001000c401fe40c00147008
        9078899912001680101000ff096f0800
        0000000047534d217701010101030014
        f0890008ff094f0007801f006f085100
        00000700000000000000000000000000
        00000000000000000000000000000000
        00000000000000000000000000000000
        00000000000000000000000000003290
    TILE: 1 1 2 1 1 0 2560 2160 
    Content Protection: Undesired 
        supported: Undesired, Desired, Enabled
    max bpc: 12 
        range: (6, 12)
    Broadcast RGB: Automatic 
        supported: Automatic, Full, Limited 16:235
    audio: auto 
        supported: force-dvi, off, auto, on
    link-status: Good 
        supported: Good, Bad
    CONNECTOR_ID: 100 
        supported: 100
    non-desktop: 0 
        range: (0, 1)
  2560x2160 (0x5de) 353.120MHz +HSync -VSync
        h: width  2560 start 2568 end 2600 total 2640 skew    0 clock 133.76KHz
        v: height 2160 start 2161 end 2169 total 2242           clock  59.66Hz
  640x480 (0x86) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
DP-3 disconnected (normal left inverted right x axis y axis)
    Identifier: 0x45
    Timestamp:  3453569
    Subpixel:   unknown
    Clones:    
    CRTCs:      1 0 2
    Transform:  1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
               filter: 
    Content Protection: Undesired 
        supported: Undesired, Desired, Enabled
    max bpc: 12 
        range: (6, 12)
    Broadcast RGB: Automatic 
        supported: Automatic, Full, Limited 16:235
    audio: auto 
        supported: force-dvi, off, auto, on
    link-status: Good 
        supported: Good, Bad
    CONNECTOR_ID: 106 
        supported: 106
    non-desktop: 0 
        range: (0, 1)

UPDATE 3:
I tried running mainline kernel 5.6.7 in the hope that TB lane bonding support would fix the issue, but it did not.

I was able to get it working by copying the specific mode from macOS with SwitchResX. It did not require using both DisplayPorts with xrandr for me. I’ve got DisplayPort 1.2 selected in my OSD.

Use xrandr to find the first output for the monitor and put that below in place of DisplayPort-2

xrandr --newmode "5120x2160" 703.75 5120 5168 5200 5280 2160 2163 2173 2222 +HSync -VSync
xrandr --addmode DisplayPort-2 5120x2160
xrandr --output DisplayPort-2 --mode 5120x2160

Note I’m on 5.4.0 kernel and Gnome 3.36.2

Tagged : / / / /

Ubuntu HowTo: Dell WD19TB Thunderbolt dock – Failed to authorize device

Original Source Link

In pursuit of an answer to this question, I purchased a Dell WD19TB dock for my XPS 13 7390 “Developer Edition” running 18.04.3 LTS. After connecting everything, the HDMI external monitor works fine, but the USB 3 and gigabit ethernet ports don’t work at all. I looked at my devices->Thunderbolt, and the dock shows up as “pending”:

pending

I clicked on the dock name in that screen and this dialog popped up, asking me to “authorize and connect” to the dock:

authorize

I click the “authorize and connect” button, and after typing in my sudo password, I got another dialog stating “Failed to authorize device: kernel error.”

failed

After this, back on the devices->Thunderbolt screen, the dock shows with an error:

error

Dell support has no idea what to do with Ubuntu users, it seems, and directed me to the official Ubuntu forum, where I will be posting as well. Do I need to install some drivers for the dock? If so, what drivers and where do I get them? How do I get a Dell WD19TB dock working with my system?

I figured this out, mostly by accident. In the BIOS, there are several settings related to Thunderbolt. One is “Thunderbolt Security Level,” which defaults to “User Authorization.” I changed this setting to “No Security,” reconnected the dock, booted it up, and now it sees everything that is connected to the dock.

BIOS Thunderbolt Security

Now, when I look in “Devices -> Thunderbolt,” the dock shows up as “Authorized.”

Thunderbolt Authorized

Hope this helps someone in the future.

Had a similar issue with a Lenovo ThinkPad. Solved it by clicking unlock button on the settings window, then did the steps described above again.

(if the “authorise and connect” button is missing, reboot the machine).

I have a 7380 and had similar problems (on Fedora, though, not Ubuntu)… plugged in the dock and… only power worked. I had no idea “thunderbolt authorization” was a thing until I saw this question. Well, I’m also running KDE and have nothing like the “thunderbolt devices” shown in the question, so I asked my package manager for anything related to “thunderbolt”. Apparently the only thing Fedora packages is the CLI boltctl. (I wouldn’t be surprised if the GUIs are using boltctl under the hood.)

Installed and ran that (no arguments yet), and wham, display turns on. (Possibly the only reason the display didn’t work immediately is because I didn’t have boltctl installed previously. Running boltctl obviously gave the TB bus a needed kick.) Still no USB though, but I’m not done yet. A quick boltctl authorize <UUID>, and now everything is working, no BIOS fiddling required.

This may depend on what kernel version you’re running; I read somewhere that thunderbolt authorization stuff was added in 4.13. I’m running 5.5. It may be that authorization doesn’t work on older LTS versions.

Same in my Ubuntu 19.10 with Benq dock ethernet, but today it worked in Kubuntu 20.04. (Too bad external microphones are broken now.) I guess it’s a kernel issue.

$ uname -a
Linux cees-XPS-13-9380 5.4.0-31-generic #35-Ubuntu SMP Thu May 7 20:20:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Tagged : / / /

Ubuntu HowTo: USB Ethernet + thunderbolt errors

Original Source Link

Currently having major issues with thunderbolt ethernet adapter.

The device is a “Razer Core X” thunderbolt eGPU enclosure which has a built in USB3 hub and gigabit ethernet port. Essentially a very powerful dock with its own GPU (utilizing the 4 lanes of PCIe on the thunderbolt port).

The same issue occurs if I use the built in ethernet port or if I plug in my own USB3 ethernet adaptor into the USB3 hub on the dock. The issue does not occur if I bypass the thunderbolt dock and plug an ethernet adaptor in directly (although this kind of defeats the purpose of the dock).

The same issue also occurs on different laptops that both use this dock. My work laptop is on 18.04 and my new personal laptop is on 20.04 and both versions of Ubuntu on both laptops have the exact same behavior.

When the ethernet fails it is no longer able to resolve DNS nor can I even ping anything on my local network, but the device still appears “connected” in the NetworkManager UI. When I toggle the connection off/on then it shows “Connecting” and stays stuck there permanently.

When I check dmesg/syslog I see the exact same bunch of errors every single time. Below is an example of the error. Here you can see in the logs I reload the driver via modprobe which causes connection to work again briefly. Then the exact same error and symptoms occur moments later:

[SAME ERROR REPEATED ~20 times]
[  543.814402] xhci_hcd 0000:0c:00.0: Looking for event-dma 0000000425e6e3f0 trb-start 0000000425e6e2e0 trb-end 0000000425e6e2e0 seg-start 0000000425e6e000 seg-end 0000000425e6eff0
[  543.815185] xhci_hcd 0000:0c:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 4 comp_code 13
[  543.815186] xhci_hcd 0000:0c:00.0: Looking for event-dma 0000000425e6e400 trb-start 0000000425e6e2e0 trb-end 0000000425e6e2e0 seg-start 0000000425e6e000 seg-end 0000000425e6eff0
[  543.815271] xhci_hcd 0000:0c:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 4 comp_code 13
[  543.815272] xhci_hcd 0000:0c:00.0: Looking for event-dma 0000000425e6e410 trb-start 0000000425e6e2e0 trb-end 0000000425e6e2e0 seg-start 0000000425e6e000 seg-end 0000000425e6eff0
[  543.815356] xhci_hcd 0000:0c:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 4 comp_code 13
[  543.815357] xhci_hcd 0000:0c:00.0: Looking for event-dma 0000000425e6e420 trb-start 0000000425e6e2e0 trb-end 0000000425e6e2e0 seg-start 0000000425e6e000 seg-end 0000000425e6eff0
[  543.815822] xhci_hcd 0000:0c:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 4 comp_code 13
[  543.815823] xhci_hcd 0000:0c:00.0: Looking for event-dma 0000000425e6e430 trb-start 0000000425e6e2e0 trb-end 0000000425e6e2e0 seg-start 0000000425e6e000 seg-end 0000000425e6eff0
[  609.127969] usbcore: deregistering interface driver ax88179_178a
[  609.128443] ax88179_178a 10-1:1.0 enx90203a1c2b65: unregister 'ax88179_178a' usb-0000:0c:00.0-1, ASIX AX88179 USB 3.0 Gigabit Ethernet
[  609.643604] ax88179_178a 10-1:1.0 eth0: register 'ax88179_178a' at usb-0000:0c:00.0-1, ASIX AX88179 USB 3.0 Gigabit Ethernet, 90:20:3a:1c:2b:65
[  609.645089] usbcore: registered new interface driver ax88179_178a
[  609.646672] ax88179_178a 10-1:1.0 enx90203a1c2b65: renamed from eth0
[  612.705215] ax88179_178a 10-1:1.0 enx90203a1c2b65: ax88179 - Link status is: 1
[  612.735735] IPv6: ADDRCONF(NETDEV_CHANGE): enx90203a1c2b65: link becomes ready
[  652.991795] xhci_hcd 0000:0c:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 4 comp_code 13
[  652.991799] xhci_hcd 0000:0c:00.0: Looking for event-dma 0000000384cb4280 trb-start 0000000384cb4260 trb-end 0000000384cb4260 seg-start 0000000384cb4000 seg-end 0000000384cb4ff0
[  652.991859] xhci_hcd 0000:0c:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 4 comp_code 13
[  652.991862] xhci_hcd 0000:0c:00.0: Looking for event-dma 0000000384cb4290 trb-start 0000000384cb4260 trb-end 0000000384cb4260 seg-start 0000000384cb4000 seg-end 0000000384cb4ff0
[  652.991944] xhci_hcd 0000:0c:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 4 comp_code 13
[  652.991945] xhci_hcd 0000:0c:00.0: Looking for event-dma 0000000384cb42a0 trb-start 0000000384cb4260 trb-end 0000000384cb4260 seg-start 0000000384cb4000 seg-end 0000000384cb4ff0
[  652.992030] xhci_hcd 0000:0c:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 4 comp_code 13
[  652.992032] xhci_hcd 0000:0c:00.0: Looking for event-dma 0000000384cb42b0 trb-start 0000000384cb4260 trb-end 0000000384cb4260 seg-start 0000000384cb4000 seg-end 0000000384cb4ff0
[  652.992121] xhci_hcd 0000:0c:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 4 comp_code 13
[  652.992122] xhci_hcd 0000:0c:00.0: Looking for event-dma 0000000384cb42c0 trb-start 0000000384cb4260 trb-end 0000000384cb4260 seg-start 0000000384cb4000 seg-end 0000000384cb4ff0
[SAME ERROR REPEATED ~20 times]

That “transfer event” error is in the logs every single time I check them after noticing the symptoms and the timestamp in syslog appears to correspond precisely to the moment the network stops working. As you can see from this run there is no other log output between loading the driver and experiencing the issue.

When I google that error message there are multiple articles talking about thunderbolt bandwidth management issues, but every post I can find is years old and just says it’s fixed in the kernel now. But it doesn’t seem to be fixed for me (5.3.0-51-generic). The error does occur much more quickly when I am doing something that requires more network bandwidth (like streaming a movie) so that does seem to point to thunderbolt bandwidth issues, but again I cannot find a fix/supposedly this was all fixed years ago.

Linked here is my output from the networking diagnostic script: https://paste.ubuntu.com/p/FmG8hGzkXV/

I’ve tried disabling autosuspend (using powertop) of both the ethernet device and the USB bus that the device is attached to, but it does not help. My laptops do not appear to have laptop-mode-tools nor tlp installed.

Can someone please help me figure out what is going on? I feel like a thunderbolt device like this should be able to work on Ubuntu. If anything I expected issues with the GPU part of the eGPU but that is working fine as I am currently typing on dual 4k monitors being driven by the dock, the only issue is with the ethernet (keyboard, mouse, usb sound card all work fine when plugged into dock).

Tagged : / / /

Linux HowTo: How to properly solder apple’s thunderbolt to vga?

Original Source Link

I just bought a cheap Thunderbolt to VGA conversor, for a macbook pro. It didn’t work at all so I decided to open the case. I found a silicon lump and most of the cables just hanging there.

Just as an exercise, I want to sort out which cables I need to solder onto which pins. Here are some pictures with what I got.

DP to VGA back

DP to VGA front

I’ve looked for VGA pinout and Thunderbolt pinout. Also found this link about Apple’s MiniDisplay port, but I really don’t have much clue where to look next.


Update 1

Here’s a picture showing chip information on the board. As mentioned on the comments, my bet is that this is a standard DisplayPort to VGA conversor board. But I haven’t found any info on it.

Chip detail

Text on chips:

Big chip (Parade):

PSB617
A0
UOBCAC
0807H
C 1420

SmallerChip (BergMicro):

25Q40ASTCG
1406

Update 2

The Parade chip/board is described here: www.paradetech.com/products/displayport-format-converters/ps8617/ (not enough rep to post more links).

I believe the first question to answer is the cable color correspondence of the ThunderBolt end, I don’t know if there’s a standard, or if that’s possible without tearing the wire apart.

The number that is shown next to each pads, is the pin number of a normal sized displayport connector.
You can find the relation between the normal and mini sized connector at wikipedia.
Next you have to identify the numbering for for each wire – for that you can use a multimeter.

Tagged : / / / /

Making Game: How to properly solder apple’s thunderbolt to vga?

Original Source Link

I just bought a cheap Thunderbolt to VGA conversor, for a macbook pro. It didn’t work at all so I decided to open the case. I found a silicon lump and most of the cables just hanging there.

Just as an exercise, I want to sort out which cables I need to solder onto which pins. Here are some pictures with what I got.

DP to VGA back

DP to VGA front

I’ve looked for VGA pinout and Thunderbolt pinout. Also found this link about Apple’s MiniDisplay port, but I really don’t have much clue where to look next.


Update 1

Here’s a picture showing chip information on the board. As mentioned on the comments, my bet is that this is a standard DisplayPort to VGA conversor board. But I haven’t found any info on it.

Chip detail

Text on chips:

Big chip (Parade):

PSB617
A0
UOBCAC
0807H
C 1420

SmallerChip (BergMicro):

25Q40ASTCG
1406

Update 2

The Parade chip/board is described here: www.paradetech.com/products/displayport-format-converters/ps8617/ (not enough rep to post more links).

I believe the first question to answer is the cable color correspondence of the ThunderBolt end, I don’t know if there’s a standard, or if that’s possible without tearing the wire apart.

The number that is shown next to each pads, is the pin number of a normal sized displayport connector.
You can find the relation between the normal and mini sized connector at wikipedia.
Next you have to identify the numbering for for each wire – for that you can use a multimeter.

Tagged : / / / /

Linux HowTo: How can I tell whether my USB C cable is a USB 3.1 cable, a passive Thunderbolt 3 cable, or an active Thunderbolt 3 cable?

Original Source Link

I have two Thunderbolt 3 devices that each came with their own Thunderbolt 3 cable, plus another USB-C cable that I’m not sure what it’s capabilities are.

Is there any way I can determine whether the Thunderbolt 3 cables are either passive 20 Gbps cables or active 40 Gbps cables?

And in the case of the unknown USB-C cable, how I can tell whether it’s a 10 Gbps USB 3.1 cable, or either of the two types of Thunderbolt 3 cables?

You could ask the manufacturer if it is active or passive. The only thing I read was that active cable have a slightly longer plug. The lightning symbol should tell you if it is a thunderbolt cable (but I think not every manufacturer follow the rules …).

Tagged : / /

Making Game: How can I tell whether my USB C cable is a USB 3.1 cable, a passive Thunderbolt 3 cable, or an active Thunderbolt 3 cable?

Original Source Link

I have two Thunderbolt 3 devices that each came with their own Thunderbolt 3 cable, plus another USB-C cable that I’m not sure what it’s capabilities are.

Is there any way I can determine whether the Thunderbolt 3 cables are either passive 20 Gbps cables or active 40 Gbps cables?

And in the case of the unknown USB-C cable, how I can tell whether it’s a 10 Gbps USB 3.1 cable, or either of the two types of Thunderbolt 3 cables?

You could ask the manufacturer if it is active or passive. The only thing I read was that active cable have a slightly longer plug. The lightning symbol should tell you if it is a thunderbolt cable (but I think not every manufacturer follow the rules …).

Tagged : / /

Making Game: Dell XPS 13 9370 not recognizing thunderbolt devices

Original Source Link

I have an issue on my Dell XPS 13 9370 running Ubuntu Linux 19.10. I would like to use an external HDMI display with my laptop. I am using a Thunderbolt 3 to HDMI adapter to connect my laptop to my monitor. The HDMI cable, monitor, and adapter all work, and I have tested them with other devices.

When I connect my monitor to my laptop, it goes into HDMI power saving mode. On my laptop, in GNOME settings, it does not appear as a thunderbolt device. However, when I first plug it in, a cable icon (I don’t know specifically what it’s called) shows up in the GNOME task bar in the top-right of my screen, where the WiFi and battery icons are. The icon disappears after a second or so.

I have already made sure that thunderbolt is enabled in my BIOS, and have tried on every security setting. I am running Linux kernel 5.3.0, and all of my apt packages are up to date. My laptop does support thunderbolt 3, and I have tried connecting the display to every port on my laptop. The ports work fine for USB devices and USB C charging cables. I have tried boltctl list and no devices appear.

I have had this problem for close to two years, and am still no closer to a solution. Thanks in advance for any help.

Edit: Here is the output of lspci -tv when a thunderbolt device is connected

➜  ~ lspci -tv
-[0000:00]-+-00.0  Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers
           +-02.0  Intel Corporation UHD Graphics 620
           +-04.0  Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem
           +-14.0  Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller
           +-14.2  Intel Corporation Sunrise Point-LP Thermal subsystem
           +-15.0  Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0
           +-15.1  Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1
           +-16.0  Intel Corporation Sunrise Point-LP CSME HECI #1
           +-1c.0-[01]----00.0  Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader
           +-1c.2-[02]----00.0  Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
           +-1c.4-[03-6d]----00.0-[04-6d]--+-00.0-[05]--
           |                               +-01.0-[06-38]--
           |                               +-02.0-[39]----00.0  Intel Corporation JHL6540 Thunderbolt 3 USB Controller (C step) [Alpine Ridge 4C 2016]
           |                               -04.0-[3a-6d]--
           +-1d.0-[6e]----00.0  Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
           +-1f.0  Intel Corporation Sunrise Point LPC Controller/eSPI Controller
           +-1f.2  Intel Corporation Sunrise Point-LP PMC
           +-1f.3  Intel Corporation Sunrise Point-LP HD Audio
           -1f.4  Intel Corporation Sunrise Point-LP SMBus

Tagged : / / /