uhubctl VS Lunar

Compare uhubctl vs Lunar and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
uhubctl Lunar
31 192
2,075 4,356
- -
6.6 9.0
10 days ago 4 days ago
C Swift
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

uhubctl

Posts with mentions or reviews of uhubctl. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-11.
  • I2c-USB-hub: An i2C Controllable USB 2.0 Hub
    7 projects | news.ycombinator.com | 11 Sep 2023
    In my experience this support was rare. I had an issue a few years ago with multiple USB 3 cameras (Intel Realsense) on a mobile robot that would periodically freeze up and need to be hard-reset, and a power-controllable hub seemed like the least-bad way to hack around it. I found my way to this tool, with its convenient list of compatible hardware:

    https://github.com/mvp/uhubctl

    Of the USB 3 options on the list, several were EOL or impossible to find, and when I ordered one each of the remainder, there was only one I could get working, and it wasn't reliable about being able to reset a device that had frozen to the point where Linux no longer had sysfs entries for it.

    We ended up instead using a hub with an internal jumper to disable bus power, and then putting the self power line through a separately-controllable relay.

  • Does RPI ZERO W have a low-power mode? (eink reader project)
    2 projects | /r/raspberry_pi | 26 Jun 2023
    Best you can tweak is to disable the WiFi / Bluetooth and possibly the USB ports (edit - USB look no go https://github.com/mvp/uhubctl)
  • Would a headphone to USB adapter work through a USB C hub?
    1 project | /r/UsbCHardware | 29 May 2023
    There's an extremely useful feature called USB Per-Port Power Switching, that's somewhat rare because nobody knows about it. If you use a Unix-family operating system, then here's a C driver. Windows doesn't currently have this feature, but could add it in the future -- let's hope they do!
  • RTL_433 fails, how to bring it back without pulling the dongle
    1 project | /r/RTLSDR | 27 Apr 2023
  • Kb2040 and usb hub not seeing all of my boards
    3 projects | /r/adafruit | 21 Apr 2023
    https://github.com/codazoda/hub-ctrl.c or https://github.com/mvp/uhubctl can be used if the hubs have "Per-port power switching". The second link also has a long description.
  • Recommendation for USB relay
    1 project | /r/homeautomation | 5 Apr 2023
    If you were using a USB-powered drive and Linux/Mac/Unix, you could use uhubctl with one of the (uncommon) hubs that support Per-Port Power Switching (PPPS).
  • uhubctl - USB hub per-port power control
    1 project | /r/linux | 8 Feb 2023
  • Customized Pi for Humidor
    1 project | /r/RASPBERRY_PI_PROJECTS | 15 Jan 2023
    Actually some of the Pi boards USB ports can be controlled by Uhubctl but you have to note the restrictions on the board you are using - mainly how many you effect and the "minor" fact of the USB also controls the Ethernet and WiFi power on some boards!
  • Mac Mini touchscreen issue
    1 project | /r/macsysadmin | 10 Jan 2023
    Agreed this is not the right sub for this, but you got me curious. Without diving too deep, check out https://github.com/mvp/uhubctl
  • Alternatives to Clear-Com Call Signal Flasher?
    1 project | /r/livesound | 27 Dec 2022
    I've also used Qlab on both ends to trigger USB led flashes via OSC using uhubctl. You'll need a usb hub for that.

Lunar

Posts with mentions or reviews of Lunar. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-23.
  • Reverse Engineering a Software Crack
    2 projects | news.ycombinator.com | 23 Apr 2024
    It’s done in a similar way on macOS: a dylib is added to the bundle and an LC_LOAD command is added to the app binary. The dylib is the first thing that runs because of using the constructor attribute, like this: https://notes.alinpanaitiu.com/Injecting%20a%20DYLIB%20into%...

    The nice thing is that a signed app will refuse to load a dylib that does not have the same signature. So crackers will be forced to change the whole app signature which can be easily detected in app code.

    I have that kind of protection in Lunar (https://lunar.fyi/) and Clop (https://lowtechguys.com/clop) and it seems to be good enough as they have no recent cracks.

  • No I don't want 2, Emacs
    1 project | news.ycombinator.com | 15 Apr 2024
    Pretty sure Lunar [0] can do this for you, and you can buy a lifetime license.

    [0]: https://lunar.fyi/

  • Show HN: Multi-monitor KVM using just a USB switch
    9 projects | news.ycombinator.com | 10 Feb 2024
    I've had good luck with the Lunar app - it manages my Dell and LG monitors on an M2. (No affiliation) https://lunar.fyi
  • PHOLED Will Transform Displays
    1 project | news.ycombinator.com | 21 Dec 2023
    Wild! I am working on exactly the same thing now for Lunar (https://lunar.fyi), and I'm also calling it Night Mode ^_^ what a coincidence

    I've been trying to make "white regions in dark backgrounds" less painful for months, but doing that at the system level on macOS is incredibly hard. I see you're doing it with CSS filters, which make sense in the limited scope of an article. But applying something like that on the whole macOS UI would cause confusion.

    I already use something similar on the iPhone: I read on the Kindle app which has white text on black background, then I have a full red Color Tint filter on the Triple Back Tap shortcut which I use before reading. Very similar effect to your solution, although I don't have images in my books.

  • If buying isn't owning, piracy isn't stealing
    2 projects | news.ycombinator.com | 9 Dec 2023
    I was comparing anti-piracy measures with DRM, I don't have actual DRM in my app. I can't block users that really bought the app from using it (which is what DRM is notorious for).

    But I do have a license verification for the Pro features (https://lunar.fyi/#pro), and that is what people are cracking in the app. I only added more protection around this verification.

  • MacOS tools to make your life easier
    14 projects | /r/MacOS | 7 Dec 2023
    Lunar
  • Create a shortcut for even lower phone brightness
    1 project | news.ycombinator.com | 6 Nov 2023
    There's no Reduce White Point on Mac as far as I am aware. However, you can use the fantastic Lunar [0] app to achieve this, as it supports "Sub-Zero Dimming".

    To use it, I think you just need to start Lunar, and then press the Reduce Brightness button on your keyboard until it goes below the minimum Mac allows.

    [0] https://lunar.fyi

  • YouTube's Anti-Adblock and uBlock Origin
    8 projects | news.ycombinator.com | 29 Oct 2023
    As the dev of a macOS app that breaks all the time because of external hardware, the tone of the article hits close to home. (I’m talking about https://lunar.fyi/ whose brightness control commands can be blocked by USB-C hubs, “smart” monitors, too long cables etc.)

    I had to disable public GitHub issues on the app repo [1] because people seemed to fuel each other with spiteful comments and “why can’t you just!!” sentences.

    The contact form still attracts many such “entitled” people and it hurts to wake up to such messages, but at least I can choose to ignore those if I can’t bring anything to the discussion. There’s no peer pressure.

    These people are expecting too much from a handful of developers who are sharing a lot of free work and time that could have been spent better than hunting new IDs in URLs and updating regular expressions.

    [1] https://github.com/alin23/Lunar

  • I2c-USB-hub: An i2C Controllable USB 2.0 Hub
    7 projects | news.ycombinator.com | 11 Sep 2023
    Last year I bought a second computer for my music studio. I wanted to use the same set of 2 monitors and wired keyboard + trackpad on both machines.

    I wrote simple scripts to switch my monitor inputs with keyboard shortcuts (even simpler with Lunar, amazing new Mac app — https://lunar.fyi), which saved me from having to press annoying input-source buttons.

    But I couldn't for the life of me find a simple, suitable software controllable KVM switch. That still requires the hardware button to be controlled, so frustrating.

  • Changing my relationship with GitHub Copilot
    2 projects | news.ycombinator.com | 28 Aug 2023
    Some people like the process of writing code, more than the end result. I had a few months of that feeling, but nowadays it’s rarely about writing for me.

    Just the other day I used Copilot to explain the disassembly of macOS KeyboardBacklight code, so that I can turn off the keyboard lights when using Lunar’s Blackout (https://lunar.fyi/#blackout)

    It even helped me generate the ObjC function signatures from assembly and use the right calling convention in Swift afterwards. It really feels like magic.

    I would have no joy in writing that code, it’s mostly bridging and translation anyway. I just need it to do this thing so that people can take advantage of it.

What are some alternatives?

When comparing uhubctl and Lunar you can also consider the following projects:

libwdi - Windows Driver Installer library for USB devices

MonitorControl - 🖥 Control your display's brightness & volume on your Mac as if it was a native Apple Display. Use Apple Keyboard keys or custom shortcuts. Shows the native macOS OSDs.

PS5-Camera-Firmware-Loader - A cross-platform utility for loading custom firmware onto the PlayStation 5 camera, written in Rust

BetterDisplay - Unlock your displays on your Mac! Flexible HiDPI scaling, XDR/HDR extra brightness, virtual screens, DDC control, extra dimming, PIP/streaming, EDID override and lots more!

RPi4 - Raspberry Pi 4 UEFI Firmware Images

Monitorian - A Windows desktop tool to adjust the brightness of multiple monitors with ease

CherryUSB - CherryUSB is a tiny and portable USB Stack (device & host) for embedded system with USB IP

BetterDummy - Unlock your displays on your Mac! Smooth scaling, HiDPI unlock, XDR/HDR extra brightness upscale, DDC, brightness and dimming, dummy displays, PIP and lots more! [Moved to: https://github.com/waydabber/BetterDisplay]

libusb - A cross-platform library to access USB devices

RatPoison - Latest Ver: 1.7; Default Menu Key is F1; Charlatano's Successor; dn

kiauh - Klipper Installation And Update Helper

SlimHUD - Replacement for MacOS' volume, brightness and keyboard backlight HUDs.