Skip to content

Conversation

fommil
Copy link

@fommil fommil commented Jun 1, 2025

I don't use indi (I use the ASI SDK directly) but when I was reviewing your rules I noticed that you're missing this line that I personally have needed to be able to control my ZWO EFWmini so I thought you might appreciate the payback.

BTW I've been using GROUP="plugdev" like this, I'd encourage you to make that kind of change more generally instead of MODE=0666

# ZWO USB device access
SUBSYSTEM=="usb", ATTR{idVendor}=="03c3", GROUP="plugdev", MODE="0660", TAG+="uaccess"

# ZWO EFW HID device access
KERNEL=="hidraw*", ATTRS{idVendor}=="03c3", GROUP="plugdev", MODE="0660", TAG+="uaccess"

I've confirmed that the version of the udev rules in this PR that I'm submitting work for me (with libASICamera2.so.1.37 / libEFWFilter.so.1.7), but the ones in your main branch do not. Without the proposed hidraw rule I get a failure when calling EFWOpen

@knro
Copy link
Collaborator

knro commented Jun 9, 2025

Thanks, but isn't plugdev more legacy now? If you remove GROUP and MODE, and just kept TAG, would it work?

@fommil
Copy link
Author

fommil commented Jun 10, 2025

The comment was just a suggestion, the proposed PR is more in-line with the current rules:

KERNEL=="hidraw*", ATTRS{idVendor}=="03c3", MODE="0666", TAG+="uaccess"

@fommil
Copy link
Author

fommil commented Jul 16, 2025

my Debian 13 system no longer seems to like my EFWmini, and I'm getting this

[  560.772590] usb 1-5: new full-speed USB device number 24 using xhci_hcd
[  560.911325] usb 1-5: New USB device found, idVendor=03c3, idProduct=1f01, bcdDevice= 0.00
[  560.911339] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  560.911344] usb 1-5: Product: ZWO EFW
[  560.911347] usb 1-5: Manufacturer: ZW0
[  560.914208] usbhid 1-5:1.0: can't add hid device: -22
[  560.914230] usbhid 1-5:1.0: probe with driver usbhid failed with error -22

I suspect that something changed in the kernel (I'm now running 6.12.35+deb13-amd64). I'll try reverting the kernel.

UPDATE confirmed kernel regression. I don't know the exact upstream bug but reverting to kernel 6.12.31-amd64 my EFWmini works again (but still requires the rule I suggest in this PR).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants