From nobody Sat Jun 01 04:57:11 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 4Vrnm366Y0z5M9Dd for ; Sat, 01 Jun 2024 04:57:23 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Received: from hedgehog.birch.relay.mailchannels.net (hedgehog.birch.relay.mailchannels.net [23.83.209.81]) (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 4Vrnm220t7z4K7F for ; Sat, 1 Jun 2024 04:57:22 +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=EQbeVPfh; dmarc=none; spf=pass (mx1.freebsd.org: domain of graham@menhennitt.com.au designates 23.83.209.81 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 9673F422EF for ; Sat, 1 Jun 2024 04:57:19 +0000 (UTC) Received: from pdx1-sub0-mail-a290.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 2219842250 for ; Sat, 1 Jun 2024 04:57:19 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1717217839; a=rsa-sha256; cv=none; b=TcMQK3usHoT3nkinnA1MzYOrfgLgX1VQag1AmFC3KMZ1PoUzqMwZD23jWh1Q1fd0JVuP2+ KWLfobQde29GfKT8MKkaPMSKvZPg4tf/MRsVT32bRzTXzfrax4nHP3yYNq6z3t950Qfoym emlIhkL1DFlTyc5herBrgi2z9CbNgCRZ5MfftIinRGzezhT2+GhbICXyHa+j8M+eVwAYhm QTAAPh6FpLoERTdAGMJ77TMTP/B0qZXqvh9wzYavbwrJCOgBRn4fMr0FG/9i4F3TBxP2GB aJDG+MZPMsrLM6ainiTGx1KY2/+y5ZOIeME6DrKvMY6fnWYkmR1swMHywpshiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1717217839; 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:dkim-signature; bh=VaAEIldm9GwnpSXS2mtbPb+sqYZq8oHDuMfCw9/yj4g=; b=AUIna5JI+GrqQszrTAjpJ1Y+bTE5thazV6rbbu/B8cosZXLm6Jpo+UHE5U19NElMmcdia9 gah5jGnUQzHH2E8ZwxGYJfGCSMNSjbyLdVE731jyTxLaG7j6YdYRA4fTwUeRWi+JOMXwWm CWLnXr9ecr6xmyMpVyIxZitQrvMmpybsMw81zxc9Q51rm+A2HdNHfYG+Oczo6JcPJS9SYh HzuFHpcAAYeAlqUDHh0C5y3h+wqD0p4E2yu0vruPSpOHWmObjIkqevqF8RHkDAZwHgOfnu 0k85X5ZWg7LtelYvh0tqgLJ2XoalUTCD5ZlOfEo33oz0KzkLzXOT7QCIxUc9nw== ARC-Authentication-Results: i=1; rspamd-79677bdb95-9f5bs; 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-Obese-Decisive: 5003f42014abe8e1_1717217839364_1501556518 X-MC-Loop-Signature: 1717217839364:919164168 X-MC-Ingress-Time: 1717217839364 Received: from pdx1-sub0-mail-a290.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.123.82.153 (trex/6.9.2); Sat, 01 Jun 2024 04:57:19 +0000 Received: from [203.3.73.118] (unknown [117.102.139.28]) (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-a290.dreamhost.com (Postfix) with ESMTPSA id 4Vrnlv3hx9zBX for ; Fri, 31 May 2024 21:57:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=menhennitt.com.au; s=dreamhost; t=1717217839; bh=VaAEIldm9GwnpSXS2mtbPb+sqYZq8oHDuMfCw9/yj4g=; h=Date:To:From:Subject:Content-Type:Content-Transfer-Encoding; b=EQbeVPfhEexRbpbQwNuKSAOSEI/zl+Img9//oP9pE0+N1TrAWTyEqJhvocotuTFIi 2n35dDskR3jIsdg186DZ/O7Hu/E8Dv0Vqv+RFNfELqxb5IRps4yIXkrnUGEcr9GZ79 KIaNpzFIJ27nmOmJZsoDpAlpS9QKqkH1UrEe1Rt70SGIkAb7a28kOuCrJsWWcyhDRi IZ4mjW0DXnH0/dqBqEHNiHgMso1CHI/jPm3iABR86tQAx1ZEWbFdbgo+l7LIuMYAwu uAlaXBqv0hz3bIzk9OKzTztfzaOetaJTB8G+Oq1FpIlGUm2zyVj75vJ9pIxPz0zvUQ B2GohtFFZB+0w== Message-ID: <12903a5d-c6c0-4476-bb20-4a60ec00b0e5@menhennitt.com.au> Date: Sat, 1 Jun 2024 14:57:11 +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 Content-Language: en-AU To: freebsd-ports@freebsd.org From: Graham Menhennitt Subject: Nut can't open Mini-Box OPEN-UPS2 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.58 / 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(-0.99)[-0.989]; 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.81: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.81: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: 4Vrnm220t7z4K7F 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:   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#