From nobody Sat Jun 29 06:46:57 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WB2sp6BVkz5QYxx for ; Sat, 29 Jun 2024 06:47:10 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Received: from dragonfly.birch.relay.mailchannels.net (dragonfly.birch.relay.mailchannels.net [23.83.209.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WB2sl3Pr8z49QK for ; Sat, 29 Jun 2024 06:47:06 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=menhennitt.com.au header.s=dreamhost header.b="Inn/d6ok"; dmarc=none; spf=pass (mx1.freebsd.org: domain of graham@menhennitt.com.au designates 23.83.209.51 as permitted sender) smtp.mailfrom=graham@menhennitt.com.au; arc=pass ("mailchannels.net:s=arc-2022:i=1") X-Sender-Id: dreamhost|x-authsender|graham@menhennitt.com.au Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1C5404C213F for ; Sat, 29 Jun 2024 06:47:04 +0000 (UTC) Received: from pdx1-sub0-mail-a263.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A57A34C20C0 for ; Sat, 29 Jun 2024 06:47:03 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1719643623; a=rsa-sha256; cv=none; b=MtGQ87xzfxsbztIKmjIhnZ5wus7K3Id1DwJAzJZ/KrxGPsk9+A6flSqgR5zAeRr9RMHn/k jNsX/po5ADoK5S6sOPe3MyRPHaiYo9SahdNl8rZc2gnehAOyx3pklWuPIJXYCp1LepqkNx KJR3foJo1Aj3L4sseWYe7MREwqsPBmGCRtM6QEF1h/zqubsXAvvn5A1sJxKiOqtJg5XrAl liuBMWY2ZCoZkSr24t+TzEfxX2FfqQ7bUzLid1LhjhKxFZ9kMJZ7qFYnrh4zy+S6OdmsU8 dQR6wh0e0+bJiB786VJqECE6jQ/yROS/rDE0DWsMNY8HQYClmlHJIrrdVomnNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1719643623; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=+XSE5lyPqt1d58VJMH1BsAgbOjBSG4lqBPgFYSR3MBs=; b=LQhhvTMZTzZIPVVPV4iA++/WZNorGj6gNTqN5hAFczbFQFaDGm2qGy5Efdsut85yUmyRVV 7XCvsys7P84HBpk+/h1s//Fx7lPboMgun9Mm7zpb4iI4mjXaiFmHSrl8Z56QSP0pU+0drz Jev/9RKHqpcMRS6YlnJGOgzzMjJRfXtihrWNW30Vm4WDPCdedkGkRi1oHDA1uDAVIJn0CY 7K8/ifFq+Y0xwTsHg6fl7tHBDqGmIsRlm0JbVdQlmg6zTfNbQIFGADiuLFHIFj16irwV8z Yyi07rsoHYGZS0vvj17NFf42TghC1MQYY2mOVB/PJjQQgTNS+pN+PyIlP16qwQ== ARC-Authentication-Results: i=1; rspamd-7f76976655-lw6zg; auth=pass smtp.auth=dreamhost smtp.mailfrom=graham@menhennitt.com.au X-Sender-Id: dreamhost|x-authsender|graham@menhennitt.com.au X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|graham@menhennitt.com.au X-MailChannels-Auth-Id: dreamhost X-Chemical-Soft: 0f0ac93d1e7e185d_1719643623882_3104744909 X-MC-Loop-Signature: 1719643623882:3154314691 X-MC-Ingress-Time: 1719643623882 Received: from pdx1-sub0-mail-a263.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.108.35.150 (trex/6.9.2); Sat, 29 Jun 2024 06:47:03 +0000 Received: from [203.3.73.118] (unknown [117.102.153.160]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: graham@menhennitt.com.au) by pdx1-sub0-mail-a263.dreamhost.com (Postfix) with ESMTPSA id 4WB2sb3YZXzP4 for ; Fri, 28 Jun 2024 23:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=menhennitt.com.au; s=dreamhost; t=1719643623; bh=+XSE5lyPqt1d58VJMH1BsAgbOjBSG4lqBPgFYSR3MBs=; h=Date:Subject:From:To:Content-Type:Content-Transfer-Encoding; b=Inn/d6okEKUc0oheWimiGTeMImoCXirOopiy5rv1+XyHCQ2V4+c/zSNLF1TAB64nU oWswkS5oFUVK6dZ/QIVRmV/66Tote+2niFd/jbjToVz1g74bIxO3Cj8hXKH2ury6wq lcgbyTsbK6pnc2KQ8qr0s1yPE08hR87q0Vr+gEnk2tNcvxPq/LvIZqQ5zVu2XMtsFZ 0mkRUcCw+Ew0RLHbDEJCRl93rNP8lks15+/U3N1WL76JQHLPINN1N9sf6hu+V2DBEO 13f7UJcBrXLUnzNjrB35RXb9o9Y8I/WjzplwVqvpSX6VG/OqTAFmygeTT97CTYlr8E +Xv3Gew2cQPNg== Message-ID: <9e58c4fa-e7ba-4ecd-b35d-e16e3ecddbb3@menhennitt.com.au> Date: Sat, 29 Jun 2024 16:46:57 +1000 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Help please. USB HID problem (was Re: Nut can't open Mini-Box OPEN-UPS2) From: Graham Menhennitt To: freebsd-ports@freebsd.org References: <12903a5d-c6c0-4476-bb20-4a60ec00b0e5@menhennitt.com.au> Content-Language: en-AU In-Reply-To: <12903a5d-c6c0-4476-bb20-4a60ec00b0e5@menhennitt.com.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.59 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_ALLOW(-1.00)[mailchannels.net:s=arc-2022:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[menhennitt.com.au:s=dreamhost]; R_SPF_ALLOW(-0.20)[+ip4:23.83.208.0/20]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[23.83.209.51:from]; XM_UA_NO_VERSION(0.01)[]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:36483, ipnet:23.83.208.0/21, country:CA]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[23.83.209.51:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[menhennitt.com.au]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_COUNT_THREE(0.00)[4]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[menhennitt.com.au:+] X-Rspamd-Queue-Id: 4WB2sl3Pr8z49QK Hello again, I sent this a couple of weeks ago and haven't had any replies. I'm sure that somebody recognises the USB error, even if they don't know anything about Nut or the UPS. So I've resent this with a slightly more general subject line. Other people with similar problems on Linux have mentioned HID devices. Can somebody please help me. Thanks,   Graham On 1/06/2024 2:57 pm, Graham Menhennitt wrote: > Hi FreeBSDers, > > Trying to get nut to talk to my Mini-Box OPEN-UPS2 (FreeBSD 13.3 with > nut-2.8.2 built from ports). I've fixed devfs.rules correctly so that > the /dev entry is owned by user nut. > > When I start nut, I get a message "Can't claim USB device > [04d8:d005]@0/0/0: Other error". See below for details including > usbconfig output for the device. > > Does anybody have a clue, please. > > Thanks in advance for any hints, > >     Graham > > > root@larabee# ll -L /dev/ugen0.2 /dev/usb/0.2.0 > crw-rw----  1 nut  nut  0x59  1 Jun 14:12 /dev/ugen0.2 > crw-rw----  1 nut  nut  0x59  1 Jun 14:12 /dev/usb/0.2.0 > > > root@larabee# service nut restart > nut not running? (check /var/db/nut/upsd.pid). > Network UPS Tools - UPS driver controller 2.8.2 > Network UPS Tools - Generic HID driver 0.53 (2.8.2) > USB communication driver (libusb 1.0) 0.47 > Can't claim USB device [04d8:d005]@0/0/0: Other error > upsnotify: failed to notify about state 4: no notification tech > defined, will not spam more about it > Driver failed to start (exit status=1) > /usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut > > > root@larabee# usbconfig -v -d ugen0.2 > ugen0.2: at usbus0, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON (100mA) > ugen0.2.0: uhid0: addr 2> > >   bLength = 0x0012 >   bDescriptorType = 0x0001 >   bcdUSB = 0x0200 >   bDeviceClass = 0x0000  >   bDeviceSubClass = 0x0000 >   bDeviceProtocol = 0x0000 >   bMaxPacketSize0 = 0x0020 >   idVendor = 0x04d8 >   idProduct = 0xd005 >   bcdDevice = 0x0003 >   iManufacturer = 0x0001  >   iProduct = 0x0002  >   iSerialNumber = 0x0004  >   bNumConfigurations = 0x0001 > > >  Configuration index 0 > >     bLength = 0x0009 >     bDescriptorType = 0x0002 >     wTotalLength = 0x0029 >     bNumInterfaces = 0x0001 >     bConfigurationValue = 0x0001 >     iConfiguration = 0x0000  >     bmAttributes = 0x00c0 >     bMaxPower = 0x0032 > >     Interface 0 >       bLength = 0x0009 >       bDescriptorType = 0x0004 >       bInterfaceNumber = 0x0000 >       bAlternateSetting = 0x0000 >       bNumEndpoints = 0x0002 >       bInterfaceClass = 0x0003  >       bInterfaceSubClass = 0x0000 >       bInterfaceProtocol = 0x0000 >       iInterface = 0x0000  > >       Additional Descriptor > >       bLength = 0x09 >       bDescriptorType = 0x21 >       bDescriptorSubType = 0x11 >        RAW dump: >        0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0xf7, >        0x08 | 0x02 > >      Endpoint 0 >         bLength = 0x0007 >         bDescriptorType = 0x0005 >         bEndpointAddress = 0x0081  >         bmAttributes = 0x0003  >         wMaxPacketSize = 0x0020 >         bInterval = 0x000a >         bRefresh = 0x0000 >         bSynchAddress = 0x0000 > >      Endpoint 1 >         bLength = 0x0007 >         bDescriptorType = 0x0005 >         bEndpointAddress = 0x0001  >         bmAttributes = 0x0003  >         wMaxPacketSize = 0x0020 >         bInterval = 0x000a >         bRefresh = 0x0000 >         bSynchAddress = 0x0000 > > > > root@larabee# > >