Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Apr 2020 18:35:02 +0300
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        Hans Petter Selasky <hps@selasky.org>, usb@freebsd.org
Subject:   =?UTF-8?Q?Re=3a_Cheap_UPS_with_USB_=c2=abflicker=c2=bb_with_FreeBSD?= =?UTF-8?Q?_but_not_with_Windows?=
Message-ID:  <2a570645-70c4-7ead-1e7b-fd3e5b8c10cb@FreeBSD.org>
In-Reply-To: <408f99ba-bbf9-2273-4caa-281ab96f4a91@selasky.org>
References:  <a97d989e-fb7e-b365-458c-c12e2c161a62@FreeBSD.org> <4a0271c4-edf8-909f-c8d1-894323d1c8d5@selasky.org> <5b87bfd2-55c1-5281-b964-47dfea8c48cb@FreeBSD.org> <408f99ba-bbf9-2273-4caa-281ab96f4a91@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--aFm59MAUzEQ1QuI0bhsA1NcTA7ngBY6CV
Content-Type: multipart/mixed; boundary="7xaJdtwnZ3DiF6lMnPDnsjskpopVcwUqp"

--7xaJdtwnZ3DiF6lMnPDnsjskpopVcwUqp
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 17.04.2020 18:04, Hans Petter Selasky wrote:

>>> sysctl hw.usb.disable_enumeration=3D1
>>>
>>> Does your device still function?
>> =C2=A0 Nope, it still disappears.
>=20
> You must set this while the device is attached.
 Yep, I understand this. I've wrote script which monitors presence of dev=
ice (by checking existence of file in /dev), and when it change status fr=
om "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 exac=
tly 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
#

--=20
// Lev Serebryakov


--7xaJdtwnZ3DiF6lMnPDnsjskpopVcwUqp--

--aFm59MAUzEQ1QuI0bhsA1NcTA7ngBY6CV
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE+W0coLX0MYtnSzMK6rA8WL/cR48FAl6ZzKZfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY5
NkQxQ0EwQjVGNDMxOEI2NzRCMzMwQUVBQjAzQzU4QkZEQzQ3OEYACgkQ6rA8WL/c
R4/1jw//V6Fq3wmYklkYXU+tKtoPJqG19onyPCltZ3m4jLSJX3EOWR/ozVmpBqmL
yZJBfuNZbNsa3uZtRSUQe5O1ijisKhu30sXcIJEH6mioObHZRMSWzIJh2bq+Yo9w
LrI7oYoSu+1pYyfIXrTbWAC/I4o56qIkhjetmtcHwc8WHt6QDrIxSlnCYRJBz9Sk
9GrfEfxBMfC+DcmRaBynZE5P89In2EHNeOSmNeCTK5MDslrR5iE/9n/Fak44d7/0
i+Rtyg5Fg2KszgVmlyhblbJvmPrSyMvFYxqg/sRGi5BNiC60s3qN4UEhRwhqMKBj
5HUU79v7NE2stlIdGmuMej1d9xcdcoWaguLxO+eZFw9XX4KBtgC/9MYhPrwvoi+g
WQElBcOVvQjys6MmR2dlrBhCmDm3//L0JW8vNK5UUdcg5A4tznq9YjZ80ssreojY
VQcn4RZU8fPRaEuUM7sePded++Lu81v2n2AEf78jqoPqHr1n8PY9ZRlibNI2D4eO
Qkyn54bjyCWL59w7OsckohA6PfPPTshR2AyIJ62l18mWHaANDfl30MuxhmQ7p8rg
aP159bh/ENf/QlWY15gfIiJTrb2BnSoi5BLQiP7TGsGBGZBVmgRaFjupUxfy9oG/
EdDZWbTNXPiHyyOO/I1myfdkBi2KYJkJHpFeM5ySL/7aO9bd2yU=
=iaMP
-----END PGP SIGNATURE-----

--aFm59MAUzEQ1QuI0bhsA1NcTA7ngBY6CV--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2a570645-70c4-7ead-1e7b-fd3e5b8c10cb>