Re: Cheap UPS with USB «flicker» with FreeBSD but not with Windows
Lev Serebryakov
lev at FreeBSD.org
Fri Apr 17 15:35:05 UTC 2020
On 17.04.2020 18:04, Hans Petter Selasky wrote:
>>> sysctl hw.usb.disable_enumeration=1
>>>
>>> Does your device still function?
>> Nope, it still disappears.
>
> You must set this while the device is attached.
Yep, I understand this. I've wrote script which monitors presence of device (by checking existence of file in /dev), and when it change status from "not present" to "present" script sets this sysctl. After that device disappears in 10-15 seconds and never re-appears (which is not surprising, as enumeration is disabled!).
> You can also enable UHUB debug messages (hw.usb.uhub.debug) to see exactly which event is causing this.
I don't have such subtree:
# sysctl hw.usb
hw.usb.ucom.cons_baud: 9600
hw.usb.ucom.cons_subunit: 0
hw.usb.ucom.cons_unit: -1
hw.usb.ucom.device_mode_console: 1
hw.usb.ucom.pps_mode: 0
hw.usb.uftdi.skip_jtag_interfaces: 1
hw.usb.full_ddesc: 0
hw.usb.no_cs_fail: 0
hw.usb.disable_port_power: 0
hw.usb.disable_enumeration: 0
hw.usb.power_timeout: 30
hw.usb.usb_lang_mask: 255
hw.usb.usb_lang_id: 9
hw.usb.template: -1
hw.usb.debug: 0
hw.usb.no_shutdown_wait: 0
hw.usb.no_suspend_wait: 0
hw.usb.no_boot_wait: 0
#
--
// Lev Serebryakov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20200417/1fdada15/attachment.sig>
More information about the freebsd-usb
mailing list