26 comments

  • billyhoffman47 minutes ago
    Props to @sleepingNomad here, who has done 16 releases in the last 7 hours, incorporating feedback from HN on the fly!<p>* Don&#x27;t like menubar apps? you you can run it as a normal app<p>* Don&#x27;t like GUIs? Now you can run it on the command line<p>Just look at that Changelog:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;darrylmorley&#x2F;whatcable&#x2F;releases?page=2" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;darrylmorley&#x2F;whatcable&#x2F;releases?page=2</a>
    • sleepingNomad26 minutes ago
      Thanks! HN gave me great bug reports and feature requests. Claude helped me ship fast. 16 releases in 7 hours is a lot easier with a decent pair programmer.
    • AnonC32 minutes ago
      Quite impressive, indeed. OP&#x2F;sleepingNomad, can I have this on MacPorts, please? Thank you.
  • pimeys4 hours ago
    Cool. Just want to chime in that I wanted to see how quickly GPT-5.5 can turn this into a KDE Plasma 6 Plasmoid. Took about 10 minutes and two dollars, and now I have a nice QML app showing the same information in my taskbar.<p>Just wanted to say this because I feel it&#x27;s really crazy that I can just do this today...
    • geordieboozer3 hours ago
      To save me 10 mins and $2, is this posted to GitHub somewhere?
      • rustyhancock3 hours ago
        Absolutely this is worth packaging for KDE.<p>Although I imagine if you don&#x27;t have the motivation to make it in the first place, you likely don&#x27;t have the motivation to package it.
        • pimeys2 hours ago
          I feel like this is so lazy bothering maintainers for it is not great.
          • marmarama14 minutes ago
            No need to bother maintainers, just package it up and upload it to the KDE store as a Plasma extension. Then it can appear for download in &quot;Get New Widgets&quot; in Plasma edit mode. Plenty of &quot;lazy&quot; widgets in there.
      • pimeys3 hours ago
        It&#x27;s 1st of May here, so probably not doing it today. Looking into it a bit more when I get back from the parties. but it&#x27;s basically just three files: QML for the UI, some python code to parse &#x2F;proc data and a metadata file.
        • lostlogin26 minutes ago
          &gt; It&#x27;s 1st of May here<p>Is that date significant somewhere? It was an nice sunny Friday for me.
          • harwoodr4 minutes ago
            May Day - like labour day in Canada&#x2F;USA... but on the first of May
          • kdkdodjckejfj20 minutes ago
            [dead]
  • sagacity4 hours ago
    This is pretty nice, but why do a lot of Mac apps insist on living in the menu bar?
    • mft_3 hours ago
      Agreed, especially for something like this that might get used a handful of times (I’m assuming most people don’t have myriad cables or want to check them regularly?)<p>The problem of course is that on my 14” screen the area to the right of the notch is already close to full and I don’t even have that many things there…
    • sleepingNomad1 hour ago
      It works for me, but I understand for others it might not. So, there&#x27;s now a &quot;Show in menu bar&quot; toggle in Settings. Turn it off and WhatCable runs as a regular Dock app with a normal window instead.
    • poisonborz4 hours ago
      Making 1 click to access is faster than typing the app name in finder. Dock is usually full and used for different type of apps. Makes also constantly visible output possible with standard ui patterns.
      • Someone2 hours ago
        And ‘every’ Mac developer thinks people will want to run their tool all the time.<p>For this kind of read-only tool, I doubt that’s the case. A regular application probably serves most users better.<p>Also, if you want users to have the option of permanently displaying this kind of info, a desktop widget (<a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;documentation&#x2F;widgetkit" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;documentation&#x2F;widgetkit</a>) may be a better option than a menu bar item.
        • sgt2 hours ago
          Exactly, this should just be a regular app with an optional menu bar option for those who want to switch it on.
        • sleepingNomad1 hour ago
          I like this idea.
      • lxgr3 hours ago
        &gt; Dock is usually full<p>My menu bar is also full and, unlike the Dock, I can’t resize it to fit more.
        • poisonborz2 hours ago
          You can put it in a secondary onclick taskbar with Ice (similarly to Windows)
          • alexcroox2 hours ago
            Just a heads up Ice is abandoned and broken on upcoming versions of MacOS. I still need to look into an alternative
            • borski1 hour ago
              <a href="https:&#x2F;&#x2F;www.macrumors.com&#x2F;2024&#x2F;06&#x2F;06&#x2F;alternatives-bartender-mac-menu-bar&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.macrumors.com&#x2F;2024&#x2F;06&#x2F;06&#x2F;alternatives-bartender-...</a>
      • UqWBcuFx6NV4r4 hours ago
        OK, thanks. We understand what a menu bar is.<p>How is this conducive to the typical usage pattern of an app like this?
        • kranner3 hours ago
          For some reason the app supports a separate standalone window mode as well [0]. It&#x27;s not clear why the developer took the trouble to support two different modes when the menubar mode doesn&#x27;t seem to add anything (like a live-updating icon for throughput).<p>Well, I can think of one reason why it wasn&#x27;t that much more trouble. François Chollet had a nice tweet [1] on why removing human cognitive friction is resulting in needless software complexity.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;darrylmorley&#x2F;whatcable&#x2F;blob&#x2F;main&#x2F;Sources&#x2F;WhatCable&#x2F;App.swift" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;darrylmorley&#x2F;whatcable&#x2F;blob&#x2F;main&#x2F;Sources&#x2F;...</a><p>[1] <a href="https:&#x2F;&#x2F;x.com&#x2F;fchollet&#x2F;status&#x2F;2045929951539707957" rel="nofollow">https:&#x2F;&#x2F;x.com&#x2F;fchollet&#x2F;status&#x2F;2045929951539707957</a>
          • jaffee2 hours ago
            &gt; removing human cognitive friction is resulting in needless software complexity<p>This is kind of a hilarious statement just on the surface. Isn&#x27;t removing burden from humans the whole purpose of software? How can you call the complexity &quot;needless&quot;?!<p>(the actual tweet seems to go into a bit more detail around being incentivized to find good abstractions)
            • kranner1 hour ago
              I think you&#x27;re conflating the burden of creation with the burden of relevance, suitability, usability and usefulness of the created artifact. The more the person in charge is disengaged, the sloppier the output is likely to be.
        • awakeasleep4 hours ago
          Are you saying you wish this was a desktop app and you would just open it occasionally when curious?<p>If so, it feels like a needlessly indirect and combative way to go about it.
          • teh_klev3 hours ago
            Why is it &quot;combative&quot;? Seems like a needlessly hyperbolic description of launching a desktop app.
      • kdkdodjckejfj15 minutes ago
        [dead]
    • jrochkind12 hours ago
      oh no you&#x27;re right, my menu bar is full already.
    • kdkdodjckejfj17 minutes ago
      [dead]
  • bhouston1 hour ago
    I tried to contribute back adapter current Wattage display to stats, but I got my PR closed without comment. It is similar to this:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;exelban&#x2F;stats&#x2F;pull&#x2F;3024" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;exelban&#x2F;stats&#x2F;pull&#x2F;3024</a>
  • jareds2 hours ago
    Thanks for creating this. I&#x27;m blind so the $16 USB tester off amazon to sort through my drawer of cables is not an option. This will stop me from needing to buy a sbc just so I have something running Linux to test cables.
  • bichiliad3 hours ago
    I love that this is a native mac app. Thanks for building this, and thanks for sharing.
    • sleepingNomad3 hours ago
      Thanks for taking a look, just pleased other people find it useful.
  • khat_th9 minutes ago
    Clean execution. The &quot;tiny menu bar app&quot; framing is exactly where I&#x27;m trying to land my own scope right now.<p>What was the hardest thing you cut to keep it tiny? I keep adding &quot;one more useful thing&quot; and have to talk myself down.
  • n3storm5 hours ago
    can something like this be done for linux? maybe a wrapper for lsusb. I just found <a href="https:&#x2F;&#x2F;github.com&#x2F;doug-gilbert&#x2F;lsucpd" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;doug-gilbert&#x2F;lsucpd</a> which adds PD and more.
    • WillAdams3 hours ago
      See:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47973621">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47973621</a>
  • bkummel5 hours ago
    Doesn&#x27;t work for me. Says &quot;No USB-C ports detected&quot;, although I&#x27;m pretty sure my monitor is connected via USB-C, and the monitor also has a built-in USB hub where my USB keyboard is connected to.
    • bkummel5 hours ago
      There&#x27;s an issue on Github for this now: <a href="https:&#x2F;&#x2F;github.com&#x2F;darrylmorley&#x2F;whatcable&#x2F;issues&#x2F;2" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;darrylmorley&#x2F;whatcable&#x2F;issues&#x2F;2</a>
    • sleepingNomad3 hours ago
      Hi, should be fixed now.
      • codepoet802 hours ago
        Not for me! Intel Mac Pro 7,1, Sequoia 15.7.3, running v0.4.7
  • ricardobeat4 hours ago
    I remember seeing a recent analysis where the vast majority of cables from Amazon misreported their capabilities. Is this tool going to be able to catch those, or blindly report what the chip advertises?
    • Neywiny4 hours ago
      I think for real cables the delta could also be explained by damage or just a bad plug-in attempt, so even if you&#x27;re not trying to detect counterfeit cables it could be useful to know:<p>1. What does the host support<p>2. What does the cable support<p>3. What does the device support<p>4. What actually got negotiated
  • emaro5 hours ago
    Pretty cool. What I don&#x27;t understand is why both my USB@1 and USB@2 show the same connected devices. I&#x27;d expect to only see the respective devices. USB@1 is my USB-hub monitor, the other one is connected to my phone. Both show keyboard, etc. plus my phone as connected devices.
  • kmmbvnr_5 hours ago
    Could it be just a console utility?
    • captainbland5 hours ago
      Yeah I like the sound of the functionality but I don&#x27;t like the idea of it taking up menu bar space. Console utility would be good or even a gui that can be quickly launched through spotlight
      • piskov4 hours ago
        &gt; I don&#x27;t like the idea of it taking up menu bar space<p>You know you can close it? :-)
        • captainbland38 minutes ago
          I will 100% ADHD it left open and it will sit there making it more cluttered than it needs to be
      • bichiliad3 hours ago
        You might like Ice: <a href="https:&#x2F;&#x2F;github.com&#x2F;jordanbaird&#x2F;Ice" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jordanbaird&#x2F;Ice</a>
    • sleepingNomad3 hours ago
      I&#x27;ll look into this.
  • aquir5 hours ago
    Good stuff, but it&#x27;s telling me that my USB-C Thunderbolt cable has been plugged in upside down but the connector handled this. I was not aware that you can plug in something into USB-C upside down!
    • justusthane5 hours ago
      I wasn&#x27;t either (insomuch as I had never thought about it), but it makes sense if you think about it for a second. If you have one end plugged in one way, and the other end plugged in the other way, each individual wire is flipped from where it should be. The fact that you _can_ plug it in either way means that the device on one end needs to be capable of recognizing that and logically reversing it. Same as automatic crossover in Ethernet.<p>That&#x27;s all the program is telling you. It doesn&#x27;t matter that it&#x27;s backwards, but technically it is.
      • regularfry4 hours ago
        It&#x27;s not always the case that the cable will correctly fix it. I <i>think</i> (hope?) any that any which didn&#x27;t would be out of spec, but they exist...
        • justusthane3 hours ago
          It&#x27;s the cable that is supposed to reverse itself and not the device? I&#x27;m not entirely sure I buy that - seems like it would add a lot of unnecessary complexity to every cable.
          • nhecker34 minutes ago
            The terminating device(s) are the ones that do the flipping, not the cable. You can take a cable that works either way between two high-end device, and then connect it to at least one low-end device and it will fail to connect for one of the two orientations.
    • jrmg3 hours ago
      What does it mean to be ‘upside down’ if the connector handles both orientations?
    • sleepingNomad3 hours ago
      This has been fixed now, apologies.
  • theanonymousone4 hours ago
    I would like to ask an LLM to rewrite it as Python CLI script. Is it even possible, or some Swift-only functionality is necessary?<p>P.S. Some time ago I learnt through HN of a one-line command in macOS which revealed the power (Wattage) of the connected charger. Can&#x27;t find it now, but it was very useful.
    • nhecker26 minutes ago
      Python script that Claude Code wrote and I tweaked for peeking at marked USB-C cables: <a href="https:&#x2F;&#x2F;github.com&#x2F;nhecker&#x2F;usb-e-marker" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nhecker&#x2F;usb-e-marker</a><p>Gist of random (human-written) power-related commands to peek at random power info: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;nhecker&#x2F;8e850773ff229724ce361967cc227d27" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;nhecker&#x2F;8e850773ff229724ce361967cc22...</a><p>For your last point, you&#x27;re probably looking for something like `ioreg -raw0 -c AppleSmartBattery | plutil -extract 0.PowerTelemetryData.SystemPowerIn raw -` (The source for that last command is from the above gist: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;nhecker&#x2F;8e850773ff229724ce361967cc227d27#print-power-from-the-power-adapter-in-mw" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;nhecker&#x2F;8e850773ff229724ce361967cc22...</a> ) Or maybe `pmset -g ac | head -n3` is helpful, too. HTH.<p>_nick<p>(edit1: formatting)<p>(edit2: there&#x27;s also <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47677607">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47677607</a> which seems pretty cool but is quite complex, and might be overkill)<p>(edit3: different method for printing adapter wattage)
    • krelas4 hours ago
      `system_profiler SPPowerDataType | grep &quot;Wattage&quot;`?
  • brk5 hours ago
    14 Inch 2021 MBPro &#x2F; M1 Pro chip &#x2F; Sonoma 14.5<p>WhatCable says &quot;No USB-C Ports Detected&quot;.<p>System info clearly shows my iPhone attached to USB 3.1 Bus.
    • bkummel5 hours ago
      There&#x27;s an issue on Github for this now: <a href="https:&#x2F;&#x2F;github.com&#x2F;darrylmorley&#x2F;whatcable&#x2F;issues&#x2F;2" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;darrylmorley&#x2F;whatcable&#x2F;issues&#x2F;2</a>
      • wallst074 hours ago
        ...And claude fixed it already <a href="https:&#x2F;&#x2F;github.com&#x2F;darrylmorley&#x2F;whatcable&#x2F;commit&#x2F;7a3ad1363aea1adbd9b6b21f679edce18a2098bf" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;darrylmorley&#x2F;whatcable&#x2F;commit&#x2F;7a3ad1363ae...</a>
  • thiagoperes4 hours ago
    I am definitely gonna contribute or fork to create an open leaderboard of cable brands and quality :D
    • j16sdiz4 hours ago
      It won&#x27;t tell you the _quality_<p>It just tell you want the e-marker said.
      • rupx43 minutes ago
        Yep, the e-marker can effectively report whatever.<p>You&#x27;d need proper hardware capable of testing bandwidth, power, noise, etc, which is prohibitively expensive.
      • zimpenfish2 hours ago
        &gt; It just tell you want the e-marker said.<p>Which isn&#x27;t helpful if the cable has no e-marker.
    • sleepingNomad56 minutes ago
      That&#x27;s a great idea.
  • BiteCode_dev5 hours ago
    Tangential, but LLT recently came out with their own lineup of USB-C cables guaranteed to be up to spec. And they have the main specs printed on each cable end, so you know what you grab.<p>That should be mandatory.
    • pzmarzly3 hours ago
      TIL, and they look great indeed. Shame they are all sold out except for &lt;= 0.3m lengths. <a href="https:&#x2F;&#x2F;global.lttstore.com&#x2F;products&#x2F;ltt-truespec-cable-usb-type-c-to-c" rel="nofollow">https:&#x2F;&#x2F;global.lttstore.com&#x2F;products&#x2F;ltt-truespec-cable-usb-...</a>
    • aphroz5 hours ago
      You mean LTT ?
    • barbazoo1 hour ago
      I&#x27;ll only buy them if they have gold connectors, those are the fastest. &#x2F;s
  • randomeel3 hours ago
    Cool ! Would love a brew installation as well
  • jrochkind12 hours ago
    oh my god, this is going to change my life if it works.
  • Alifatisk4 hours ago
    Any plans to support installations through Homebrew?
  • gedy4 hours ago
    I like the idea and thanks for sharing, but I do think folks who vibe code or use Claude should take their time using, testing, and improving app before rushing to share. This was pushed&#x2F;deved like 2 hours ago
    • LordGrey4 hours ago
      And it&#x27;s been updated, with full releases, many times since.<p>I like this tool, but I agree that it was rushed and it is <i>still</i> being rushed. I urge the developer to slow down and get it right.
      • literalAardvark3 hours ago
        This isn&#x27;t an air traffic control system though.<p>Shipping early is an entirely valid dev strategy.
      • sleepingNomad1 hour ago
        [dead]
    • xandrius4 hours ago
      Just because it got pushed 2h ago it doesn&#x27;t mean they didn&#x27;t test it on their end.
      • sleepingNomad55 minutes ago
        I did indeed test it. Had the idea, and wanted to get it going.
  • mp0rta4 hours ago
    Great project. It would be even better if it supported platforms other than Mac.
    • sleepingNomad3 hours ago
      I&#x27;m working on a Windows version.
      • mwexler2 hours ago
        Looking forward to seeing this one in action
  • ulfw5 hours ago
    The &#x27;plugged upside down&#x27; is weird for a USB-cable. Especially as that doesn&#x27;t work. I tried plugging it &#x27;the other way around&#x27; and it showed the same &#x27;upside down&#x27; warning
    • AndroTux4 hours ago
      Everyone knows you have to flip the USB cable <i>twice</i> before it’s no longer upside down.
  • hallegbg5 hours ago
    Nice!
  • suyavuz5 hours ago
    [dead]
  • denkmoon4 hours ago
    I get that the connectors are identical but I find it odd that people find it so challenging. Thunderbolt is the thick and short cable. If it&#x27;s not thick it&#x27;s not gonna work well and if it&#x27;s over a metre it&#x27;s not gonna work well. cf my pile of thin long &quot;basic&quot; usb c cables.
    • wallst074 hours ago
      How do you define &quot;thick&quot; or &quot;short&quot; to a non-engineer&#x2F;tech person? Relative to what exactly?
      • lostlogin17 minutes ago
        Are you talking about cables?
    • consp4 hours ago
      Thunderbolt 4 passive (over usb) is 0.8m in length, longer cables are active, up to two meters I think, so they do exist.
    • zimpenfish3 hours ago
      Great, and what about non-Thunderbolt cables? How do I distinguish between power only, USB 2, USB 2+PD, and USB 3.2 cables? I&#x27;ve got a whole pile of cables that, without my Treedix tester, are indistinguishable re: functionality and support.