382 Commits

Author SHA1 Message Date
Vadim Mikhailov
4b2c4c211f Add IBM SK-8815 keyboard as compatible device
Closes #647.
2026-01-16 12:47:18 -08:00
Vadim Mikhailov
da8a260538 Remove Dell Wyse 5070 - does not support vbus off
Closes #646, originally added in #642.
2026-01-16 12:36:50 -08:00
Vadim Mikhailov
a9cd307a4a Add Sipolar A-173 as compatible device
Closes #645.
2026-01-16 12:32:05 -08:00
Vadim Mikhailov
f45034e0d0 Add DLink DUB-2332 as compatible device 2025-12-19 16:50:14 -08:00
Vadim Mikhailov
74ac3e6bc3 Add Dell Wyse 5070 as compatible device 2025-12-19 16:48:52 -08:00
Vadim Mikhailov
1117cc7ce2 Add a note how to install uhubctl from FreeBSD ports
uhubctl is now available in FreeBSD ports collection.
Soon it should be available as a package too,
which will make install even simpler (`pkg install uhubctl`).

Closes #640.
2025-11-10 18:15:15 -08:00
Vadim Mikhailov
65e3b74e60 Add MacBook Air 2010 as compatible device
Closes #638.
2025-11-10 18:01:05 -08:00
Vadim Mikhailov
ceadf4c13a Add a warning for Sugoi USB2-HUB4X
New hw revision of Sugoi USB2-HUB4X does not support per-port power control,
but seems to work with ganged power switching (requires -f).

Closes #636.
2025-10-04 11:54:44 -07:00
Vadim Mikhailov
ad94660713 Add a note for Maplin A08CQ
Only older model with red plastic in USB ports is working correctly.
Per report in issue #635, there are different samples
with white plastic in USB ports which do not support PPPS
and should be avoided.

Closes #635.
2025-09-19 13:14:31 -07:00
Vadim Mikhailov
ca7610ab01 Add Lenovo ThinkPad Mini Dock Series 3 as compatible device
Closes #628.
2025-09-19 13:05:56 -07:00
Vadim Mikhailov
c9edaf3da8 Add a note how to make uhubctl work on MacOS 26 Tahoe
Closes #623.
2025-09-18 10:03:05 -07:00
Shun Hasegawa
9a6e6d3a6d Add note to ReTRY HUB (#631) 2025-09-18 09:39:09 -07:00
Vadim Mikhailov
1af4949ce8 Lenovo USB-C to 4 Port USB-A Hub only works in USB2 mode
This hub only works in USB2 mode, and ports are ganged in a weird way.
Added a note in device table.

Closes #625.
2025-06-13 08:58:25 -07:00
Vadim Mikhailov
5dda8a874b Add hub|usb udev recipe to README as well
Related to #618.
2025-06-06 22:40:54 -07:00
Vadim Mikhailov
786dcb2277 Improve Linux udev rules to support more systems
Some Linux systems detect USB hubs with driver as `hub`, and some as `usb`.
Improve udev permission rules to match both options.

Closes #618.
2025-06-05 21:32:31 -07:00
Vadim Mikhailov
fab805bc12 Add Targus ACH155 as compatible device
Per submitter, Targus ACH155 port 3 turns on/off power on all four ports.

Closes #620.
2025-06-04 23:09:40 -07:00
Vadim Mikhailov
a05a250644 Add Rosonway RSH-ST10C-6 as compatible device
Closes #616.
2025-05-30 23:54:36 -07:00
Vadim Mikhailov
b3fa9e7e63 Improve computer model detection when device tree is not available
Closes #614.
2025-05-30 23:23:04 -07:00
Vadim Mikhailov
fbe812bd83 Add an option to search/limit hub by description
Adding new option to limit hub by description.
Existing -s option limits by attached device description,
and new feature -H limits by hub instead.
Thanks to @pendragonsound for submitting patch!

Closes #611.
2025-04-19 10:35:44 -07:00
Vadim Mikhailov
d96308569c uhubctl is in homebrew core now - remove obsolete files, update readme
* remove custom homebrew tap - uhubctl is included in homebrew core now.
* remove bitbake recipe - it does not seem to be used for years now,
  and it should not have been committed in first place.
* add `installing` paragraph to readme. since most relevant OS include uhubctl
  in standard package managers now, most people don't want to compile it,
  but instead know how to install it quickly.
* update short links to not use bit.ly as it became very spammy now.
* update few expired links to point to archive.org cache.
* add `all` target to Makefile (FreeBSD ports want `all` target to always exist).
2025-04-18 23:13:56 -07:00
Vadim Mikhailov
d85f100c98 homebrew audit: livecheck must be before depends_on 2025-04-17 13:51:05 -07:00
Vadim Mikhailov
65f6d48cd1 homebrew audit one more fix 2025-04-17 13:44:56 -07:00
Vadim Mikhailov
14852054e2 making homebrew audit happy 2025-04-17 13:42:33 -07:00
Vadim Mikhailov
d00a167ab4 homebrew audit insists on checksum before head 2025-04-17 13:35:31 -07:00
Vadim Mikhailov
16001b090d minor fixes to homebrew formula so it passes strict audit checks 2025-04-17 13:28:19 -07:00
Vadim Mikhailov
42cdfb0b82 Fix udev rules to support Linux kernels 6.8+
Linux kernels before had devpath containing `usbN-portM`.
Newer kernels just use `port` symlink instead, which breaks our udev rules.
Changing glob from `*-port*` to `*port*` makes it work for both old and new kernels.

Closes issues #608, #609.
2025-02-23 12:51:49 -08:00
Vadim Mikhailov
c74755be42 Fix FreeBSD build, update docs regarding pkg-config 2025-01-21 19:45:22 -08:00
Vadim Mikhailov
07abf4cbea Fix warnings when compiled in C++ mode
Fixed all warnings when compiling with `c++ -std=c++11 ...`:
* bzero() appears to be deprecated, replaced with memset()
* fixed few const warnings
* suppressed zero array warnings (emitted by libusb headers)
2025-01-21 19:25:50 -08:00
Vadim Mikhailov
d483981f95 Add thermal camera control as notable project
Described in #594.
2025-01-18 14:59:52 -08:00
Vadim Mikhailov
2ca14eb3dd Add Mac Mini M4 as compatible device
Closes #606.
2025-01-18 14:44:59 -08:00
Vadim Mikhailov
40f10578cb Remove Rosonway RSH-A107 (and ikuai A107) from supported list
There are multiple reports that RSH-A107 does not turn off VBUS:
While it is possible that some hardware revisions which are working,
looks like most don't. It is better to remove it from the list.

Closes #604.
2025-01-18 14:32:56 -08:00
Vadim Mikhailov
7604f84c95 Add StarTech HB31C2A2CB as compatible device
Closes #601.
2025-01-18 14:24:32 -08:00
Vadim Mikhailov
f4b0d2ad31 Add RSH-A37S as compatible device
Closes #598.
2025-01-18 14:15:35 -08:00
Vadim Mikhailov
a7df8f8367 Cleanup ifdef usage
* No need to check for both __gnu_linux__ and __linux__, latter is enough.
* Require libusb 1.0.13 to build - this makes LIBUSB_API_VERSION always defined.
* Include `<libusb.h>` not `<libusb-1.0/libusb.h>` - this will always work
  if `pkg-config` is detected. For backwards compatibility still try building
  without `pkg-config` present, but it is much less reliable and will not work on Mac.
* Bump copyright year.
2025-01-18 14:04:34 -08:00
Tormod Volden
a957b21815 Add --sysdev/-y option for direct device node access (#600)
* Add --sysdev/-u option for direct device node access

Only the device specified by the given device path will be accessed,
instead of scanning the USB bus.

Most useful if you use udev rules to create stable device node aliases for hubs,
independent of bus topology.

For instance, if your matching udev rules include SYMLINK+="MYSMARTHUB1"
you can call uhubctl with --sysdev /dev/MYSMARTHUB1 instead of using -l
and a non-stable bus location to specify it.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2025-01-18 11:50:25 -08:00
Vadim Mikhailov
2dbc6ce2d9 Add recipe for compiling on OpenSUSE
Closes #592.
2024-10-15 21:49:00 -07:00
mvp
302b3c0c77 always include <fcntl.h>
4a233824c4 fixed issue for Raspberry Pi on Linux, but broke compilation on Mac.
Fixing it by always including <fcntl.h>.
2024-10-13 13:10:22 -07:00
Vadim Mikhailov
4a233824c4 Add StarTech DKT30CSDHPD3 as compatible device
Closes #588.
2024-09-17 18:09:57 -07:00
Vadim Mikhailov
e0d1c34eed Improve support for Raspberry Pi 4B and 5:
* Detect if we are running on Raspberry 4B or 5
* Add RPi 4B and 5 conditionals for RPi hacks
* Relax some conditions which may vary depending on RPi hardware and/or OS
  (in particular Ubuntu hub numbering differs from Raspbian).
* For RPi5, changed README to suggest using busses 2 and 4 instead of 1 and 3.
  This makes the same recipe work on both Raspbian and Ubuntu.

This fixes #587.
2024-09-16 20:23:33 -07:00
mvp
153c5da267 Fixed snprintf override which breaks on old MacOS
`snprintf` is available in Mac/FreeBSD headers only if _XOPEN_SOURCE is 600 or higher.
This closes #586.
2024-09-12 10:42:23 -07:00
mvp
bfc11e6b05 Remove Buffalo BSH4A05U3BK from supported list
Buffalo BSH4A05U3BK does not seem to support VBUS off, removing from the list.

Closes #584.
2024-08-31 22:29:58 -07:00
mvp
c9abed425c Release version 2.6.0 as stable brew tap 2024-08-31 16:57:18 -07:00
mvp
352f5878e9 Release version 2.6.0 v2.6.0 2024-08-31 16:30:35 -07:00
mvp
169842ae97 Improve Linux detection
__gnu_linux__ is not always present on all Linux platforms -
add checking for __linux__ too.
2024-08-31 16:19:59 -07:00
mvp
8de8c9487f Add Philips 346B1C as compatible device
Closes #582.
2024-08-31 16:01:38 -07:00
mvp
3dbc1d9e41 Add Rosonway RSH-A107 (aka ikuai A107) as compatible device
Closes #572.
2024-08-31 15:52:12 -07:00
Misha Bunte
83ce372810 Fix flag to turn on and off 2024-08-16 14:05:14 -07:00
Misha Bunte
f22541cf64 Add flash (inverted cycle) option - turn on and off (#580)
* Add flash (inverted cycle) option - to turn port on then off with a delay
2024-08-13 13:24:09 -07:00
Christian Svensson
2df4681826 Construct root USB device sysfs path
Fixes #578. See issue for discussion.

Signed-off-by: Christian Svensson <blue@cmd.nu>
2024-08-05 12:32:33 -07:00
mvp
359d887927 Fix typo for driver name
Closes #574.
2024-08-04 20:51:41 -07:00