Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"The voters have spoken, the bastards..." -- unknown


computers / alt.os.linux.mageia / USB connection to UPS

SubjectAuthor
* USB connection to UPSGrimble
+* Re: USB connection to UPSBit Twister
|`* Re: USB connection to UPSGrimble
| `- Re: USB connection to UPSWilliam Unruh
`* Re: USB connection to UPSDavid W. Hodgins
 `* Re: USB connection to UPSGrimble
  `* Re: USB connection to UPSDavid W. Hodgins
   `* Re: USB connection to UPSGrimble
    `- Re: USB connection to UPSGrimble

1
USB connection to UPS

<s7jg4r$o17$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3636&group=alt.os.linux.mageia#3636

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: grim...@nomail.afraid.org (Grimble)
Newsgroups: alt.os.linux.mageia
Subject: USB connection to UPS
Date: Thu, 13 May 2021 16:19:46 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <s7jg4r$o17$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 13 May 2021 15:20:59 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a10aa54af0fa215021f0b0b7288541df";
logging-data="24615"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX196QmiUGeuktYcGmrZxxSxO"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.10.1
Cancel-Lock: sha1:btfJksPg0WjYIQUI0weURDCyleg=
Content-Language: en-GB
X-Mozilla-News-Host: news://eternal-september.org:119
 by: Grimble - Thu, 13 May 2021 15:19 UTC

I have installed two UPSs, "Powercool", which come with a USB cable and
an application to set parameters and power-fail actions and to monitor
performance. However, the application reports "Communication Failure".
lsusb shows the connection as 0001:0000 Fry's Electronics MEC0003.
Changing permissions to the corresponding Bus/Device has no effect.
Googling for Fry's Electronics MEC0003 shows many posts but all seem to
rely on installing NUT and nut-monitor, which I don't want, because I
want to use the supplied application. I suspect udev may be involved in
correcting the problem, but I don't know enough to go further.
Can anyone help please?

--
Grimble
Machine 'Haydn' running Plasma 5.20.4 on 5.10.33-desktop-1.mga8 kernel.
Mageia release 8 (Official) for x86_64

Re: USB connection to UPS

<slrns9qom8.22lph.BitTwister@wb.home.test>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3638&group=alt.os.linux.mageia#3638

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: BitTwis...@mouse-potato.com (Bit Twister)
Newsgroups: alt.os.linux.mageia
Subject: Re: USB connection to UPS
Date: Thu, 13 May 2021 12:32:56 -0500
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <slrns9qom8.22lph.BitTwister@wb.home.test>
References: <s7jg4r$o17$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="4b45ff8289593a43c7a339cd6b953292";
logging-data="3226"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+mofnB3uP6HEmxKHKgiQP3R/fDGclLm8="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:C5inBxn+BvX2X8+l3TnJPJMW/Ns=
 by: Bit Twister - Thu, 13 May 2021 17:32 UTC

On Thu, 13 May 2021 16:19:46 +0100, Grimble wrote:
> I have installed two UPSs, "Powercool", which come with a USB cable and
> an application to set parameters and power-fail actions and to monitor
> performance. However, the application reports "Communication Failure".
> lsusb shows the connection as 0001:0000 Fry's Electronics MEC0003.
> Changing permissions to the corresponding Bus/Device has no effect.
> Googling for Fry's Electronics MEC0003 shows many posts but all seem to
> rely on installing NUT and nut-monitor, which I don't want, because I
> want to use the supplied application. I suspect udev may be involved in
> correcting the problem, but I don't know enough to go further.
> Can anyone help please?

Not me but you mention changing permissions which reminded me
that I added my login to the usb group. If you do so on your
system you will need to log out/in to pick up the new group.

You might also want to "cat /etc/group" to see if there is
a new group added by your ups software. If so you might
also add your login id to that group and log out/in.

Re: USB connection to UPS

<op.03cnshuza3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3642&group=alt.os.linux.mageia#3642

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: alt.os.linux.mageia
Subject: Re: USB connection to UPS
Date: Thu, 13 May 2021 17:10:55 -0400
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <op.03cnshuza3w0dxdave@hodgins.homeip.net>
References: <s7jg4r$o17$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="8d68a8fa546e6f5e8674b71d6b1d8e1c";
logging-data="17274"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+O9pQHQvSl0q+s/J1sA30xtYm+eNYhJ00="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:ZD2P2o6SG93Swwg0BHKs6PVZwe0=
 by: David W. Hodgins - Thu, 13 May 2021 21:10 UTC

On Thu, 13 May 2021 11:19:46 -0400, Grimble <grimble@nomail.afraid.org> wrote:

> I have installed two UPSs, "Powercool", which come with a USB cable and
> an application to set parameters and power-fail actions and to monitor
> performance. However, the application reports "Communication Failure".
> lsusb shows the connection as 0001:0000 Fry's Electronics MEC0003.
> Changing permissions to the corresponding Bus/Device has no effect.
> Googling for Fry's Electronics MEC0003 shows many posts but all seem to
> rely on installing NUT and nut-monitor, which I don't want, because I
> want to use the supplied application. I suspect udev may be involved in
> correcting the problem, but I don't know enough to go further.
> Can anyone help please?

I have a usb connected ups. I do use nut to monitor it. A couple of things
from it's settings may help though ...

driver = "usbhid-ups"
port = /dev/auto

It's installation script creates the user/group ups.

The program that actually accesses the ups (usbhid-ups) runs as the user ups
which is a member of the groups dialout, tty, and usb.

Don't forget to logout/in for any group changes to take effect.

The nut-server package includes the file /usr/lib/udev/rules.d/70-nut-usbups.rules
which sets MODE="664", GROUP="ups" for the actual usb device.

Connecting the usb cable adds a line to the journal with ...
kernel: hid-generic 0003:051D:0002.0007: hiddev1,hidraw0: USB HID v1.00 Device [American Power Conversion Back-UPS XS 1300G FW:864.L6 .D USB FW:L6 ] on usb-0000:00:12.0-5/input0

lsusb shows ...
Bus 008 Device 003: ID 051d:0002 American Power Conversion Uninterruptible Power Supply

I do recommend using nut. The values returned from the ups are standardized,
so using the software that comes with it rather then a Mageia package likely
doesn't add anything.

Hope some of this helps.

Regards, Dave Hodgins

--
Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
email replies.

Re: USB connection to UPS

<s7rau8$bjf$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3701&group=alt.os.linux.mageia#3701

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: grim...@nomail.afraid.org (Grimble)
Newsgroups: alt.os.linux.mageia
Subject: Re: USB connection to UPS
Date: Sun, 16 May 2021 15:41:12 +0100
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <s7rau8$bjf$1@dont-email.me>
References: <s7jg4r$o17$1@dont-email.me>
<slrns9qom8.22lph.BitTwister@wb.home.test>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 16 May 2021 14:41:12 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d51561174785813805a96d09ef53293e";
logging-data="11887"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/J3tyI9DMF+vtbr9NjM/oB"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.10.0
Cancel-Lock: sha1:jW/MQBPBSXlbxuDY9lPudqDq4CU=
In-Reply-To: <slrns9qom8.22lph.BitTwister@wb.home.test>
Content-Language: en-GB
 by: Grimble - Sun, 16 May 2021 14:41 UTC

On 13/05/2021 18:32, Bit Twister wrote:
> On Thu, 13 May 2021 16:19:46 +0100, Grimble wrote:
>> I have installed two UPSs, "Powercool", which come with a USB cable and
>> an application to set parameters and power-fail actions and to monitor
>> performance. However, the application reports "Communication Failure".
>> lsusb shows the connection as 0001:0000 Fry's Electronics MEC0003.
>> Changing permissions to the corresponding Bus/Device has no effect.
>> Googling for Fry's Electronics MEC0003 shows many posts but all seem to
>> rely on installing NUT and nut-monitor, which I don't want, because I
>> want to use the supplied application. I suspect udev may be involved in
>> correcting the problem, but I don't know enough to go further.
>> Can anyone help please?
>
> Not me but you mention changing permissions which reminded me
> that I added my login to the usb group. If you do so on your
> system you will need to log out/in to pick up the new group.
>
Bit: thanks for the tip. Did that
> You might also want to "cat /etc/group" to see if there is
> a new group added by your ups software. If so you might
> also add your login id to that group and log out/in.

Nothing found

--
Grimble
Registered Linux User #450547
Machine 'Bach' running Plasma 5.20.4 on 5.10.33-desktop-1.mga8 kernel.
Mageia release 8 (Official) for x86_64

Re: USB connection to UPS

<s7rbm0$90f$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3702&group=alt.os.linux.mageia#3702

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: unr...@invalid.ca (William Unruh)
Newsgroups: alt.os.linux.mageia
Subject: Re: USB connection to UPS
Date: Sun, 16 May 2021 14:53:52 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <s7rbm0$90f$2@dont-email.me>
References: <s7jg4r$o17$1@dont-email.me>
<slrns9qom8.22lph.BitTwister@wb.home.test> <s7rau8$bjf$1@dont-email.me>
Injection-Date: Sun, 16 May 2021 14:53:52 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c77b6222d7b6854def3aa277d57e0d74";
logging-data="9231"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+xI5Il2JzBq+AZcXzoLvl"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:SZnR7kmHTg65JUlVTgfIRe+IOqE=
 by: William Unruh - Sun, 16 May 2021 14:53 UTC

On 2021-05-16, Grimble <grimble@nomail.afraid.org> wrote:
> On 13/05/2021 18:32, Bit Twister wrote:
>> On Thu, 13 May 2021 16:19:46 +0100, Grimble wrote:
>>> I have installed two UPSs, "Powercool", which come with a USB cable and
>>> an application to set parameters and power-fail actions and to monitor
>>> performance. However, the application reports "Communication Failure".
>>> lsusb shows the connection as 0001:0000 Fry's Electronics MEC0003.
>>> Changing permissions to the corresponding Bus/Device has no effect.
>>> Googling for Fry's Electronics MEC0003 shows many posts but all seem to
>>> rely on installing NUT and nut-monitor, which I don't want, because I
>>> want to use the supplied application. I suspect udev may be involved in
>>> correcting the problem, but I don't know enough to go further.
>>> Can anyone help please?
>>
>> Not me but you mention changing permissions which reminded me
>> that I added my login to the usb group. If you do so on your
>> system you will need to log out/in to pick up the new group.
>>
> Bit: thanks for the tip. Did that

Note that you do not have to logout/in to test. just do
su - <yourusername> That new login will have the new group associated
with your username. However, you do need to logout/in so as to make it
the default on your current login. But if you are running in X, the
background x ( and all programs spawned by it) will still have the old
group identity of your username, rather than the new one, unless you get
out of that X session and go into a new one (logout/in fromthe X
session)

>> You might also want to "cat /etc/group" to see if there is
>> a new group added by your ups software. If so you might
>> also add your login id to that group and log out/in.
>
> Nothing found
>
>

Re: USB connection to UPS

<s7rboh$u8p$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3703&group=alt.os.linux.mageia#3703

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: grim...@nomail.afraid.org (Grimble)
Newsgroups: alt.os.linux.mageia
Subject: Re: USB connection to UPS
Date: Sun, 16 May 2021 15:55:12 +0100
Organization: A noiseless patient Spider
Lines: 67
Message-ID: <s7rboh$u8p$1@dont-email.me>
References: <s7jg4r$o17$1@dont-email.me>
<op.03cnshuza3w0dxdave@hodgins.homeip.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 16 May 2021 14:55:13 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d51561174785813805a96d09ef53293e";
logging-data="31001"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kVf1soW6BWEg6KW6ytvr2"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.10.0
Cancel-Lock: sha1:3w1/KXHmn+zWkFbMJwOvVPYkp2A=
In-Reply-To: <op.03cnshuza3w0dxdave@hodgins.homeip.net>
Content-Language: en-GB
 by: Grimble - Sun, 16 May 2021 14:55 UTC

On 13/05/2021 22:10, David W. Hodgins wrote:
> On Thu, 13 May 2021 11:19:46 -0400, Grimble <grimble@nomail.afraid.org>
> wrote:
>
>> I have installed two UPSs, "Powercool", which come with a USB cable and
>> an application to set parameters and power-fail actions and to monitor
>> performance. However, the application reports "Communication Failure".
>> lsusb shows the connection as 0001:0000 Fry's Electronics MEC0003.
>> Changing permissions to the corresponding Bus/Device has no effect.
>> Googling for Fry's Electronics MEC0003 shows many posts but all seem to
>> rely on installing NUT and nut-monitor, which I don't want, because I
>> want to use the supplied application. I suspect udev may be involved in
>> correcting the problem, but I don't know enough to go further.
>> Can anyone help please?
>
> I have a usb connected ups. I do use nut to monitor it. A couple of things
> from it's settings may help though ...
>
> driver = "usbhid-ups"
> port = /dev/auto
>
> It's installation script creates the user/group ups.
>
> The program that actually accesses the ups (usbhid-ups) runs as the user
> ups
> which is a member of the groups dialout, tty, and usb.
>
> Don't forget to logout/in for any group changes to take effect.
>
Checked that
> The nut-server package includes the file
> /usr/lib/udev/rules.d/70-nut-usbups.rules
> which sets MODE="664", GROUP="ups" for the actual usb device.
>
The line for my vendor/product was already there

> Connecting the usb cable adds a line to the journal with ...
> kernel: hid-generic 0003:051D:0002.0007: hiddev1,hidraw0: USB HID v1.00
> Device [American Power Conversion Back-UPS XS 1300G FW:864.L6 .D USB
> FW:L6 ] on usb-0000:00:12.0-5/input0
>
I found something similar

> lsusb shows ...
> Bus 008 Device 003: ID 051d:0002 American Power Conversion
> Uninterruptible Power Supply
>
> I do recommend using nut. The values returned from the ups are
> standardized,
> so using the software that comes with it rather then a Mageia package
> likely
> doesn't add anything.
>
I got the application to load but it bombed with some display problems,
so I'll take your advice and set up nut.
Thanks
> Hope some of this helps.
>
> Regards, Dave Hodgins
>

--
Grimble
Registered Linux User #450547
Machine 'Bach' running Plasma 5.20.4 on 5.10.33-desktop-1.mga8 kernel.
Mageia release 8 (Official) for x86_64

Re: USB connection to UPS

<op.03hwc0pka3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3704&group=alt.os.linux.mageia#3704

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: alt.os.linux.mageia
Subject: Re: USB connection to UPS
Date: Sun, 16 May 2021 13:04:02 -0400
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <op.03hwc0pka3w0dxdave@hodgins.homeip.net>
References: <s7jg4r$o17$1@dont-email.me>
<op.03cnshuza3w0dxdave@hodgins.homeip.net> <s7rboh$u8p$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="0630fa56e89aad3e6dbae757be3f8dda";
logging-data="19874"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9trw6qbAG1UfaTHHtbCQS8g3mHsapYh4="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:sFpOwXBReHByszlskuqBitxVtWo=
 by: David W. Hodgins - Sun, 16 May 2021 17:04 UTC

On Sun, 16 May 2021 10:55:12 -0400, Grimble <grimble@nomail.afraid.org> wrote:
> I got the application to load but it bombed with some display problems,
> so I'll take your advice and set up nut.

I have nut and nut-server installed on the system the ups is connected to.
I've chosen to use the device name nutdev1 for my ups, and in the following
replaced the actual password with the word munged.

In /etc/ups/ups.conf I've added the lines ...
[nutdev1]
driver = "usbhid-ups"
port = /dev/auto

In /etc/ups/upsd.conf I've added the line
LISTEN 127.0.0.1 3493

In /etc/ups/upsd.users I've added the lines ...
[admin]
password = munged
actions = SET
instcmds = ALL
[upsmon]
password = munged
upsmon master

In /etc/ups/upsmon.conf I have the line ...
MONITOR nutdev1@localhost 1 upsmon munged master
with the rest of the uncommented lines being the from the rpm package.

The command "upsc nutdev1" returns 43 lines such as ...
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 50
battery.date: 2001/09/25
battery.mfr.date: 2013/01/12
battery.runtime: 579

Regards, Dave Hodgins

--
Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
email replies.

Re: USB connection to UPS

<s8b96o$6s0$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3723&group=alt.os.linux.mageia#3723

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: grim...@nomail.afraid.org (Grimble)
Newsgroups: alt.os.linux.mageia
Subject: Re: USB connection to UPS
Date: Sat, 22 May 2021 16:49:44 +0100
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <s8b96o$6s0$1@dont-email.me>
References: <s7jg4r$o17$1@dont-email.me>
<op.03cnshuza3w0dxdave@hodgins.homeip.net> <s7rboh$u8p$1@dont-email.me>
<op.03hwc0pka3w0dxdave@hodgins.homeip.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 22 May 2021 15:49:45 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="6f532e5e4f71f752b8fb67b81e4ded03";
logging-data="7040"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19KNSuEMDlPXl6x92XdsiUN"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.10.2
Cancel-Lock: sha1:kzGM+5cuczN1TH0pnCIQKc/cV/I=
In-Reply-To: <op.03hwc0pka3w0dxdave@hodgins.homeip.net>
Content-Language: en-GB
 by: Grimble - Sat, 22 May 2021 15:49 UTC

On 16/05/2021 18:04, David W. Hodgins wrote:
> On Sun, 16 May 2021 10:55:12 -0400, Grimble <grimble@nomail.afraid.org>
> wrote:
>> I got the application to load but it bombed with some display problems,
>> so I'll take your advice and set up nut.
>
> I have nut and nut-server installed on the system the ups is connected to.
> I've chosen to use the device name nutdev1 for my ups, and in the following
> replaced the actual password with the word munged.
>
> In /etc/ups/ups.conf I've added the lines ...
> [nutdev1]
>         driver = "usbhid-ups"
>         port = /dev/auto
>
> In /etc/ups/upsd.conf I've added the line
> LISTEN 127.0.0.1 3493
>
> In /etc/ups/upsd.users I've added the lines ...
>         [admin]
>                 password = munged
>                 actions = SET
>                 instcmds = ALL
>         [upsmon]
>                 password  = munged
>                 upsmon master
>
> In /etc/ups/upsmon.conf I have the line ...
> MONITOR nutdev1@localhost 1 upsmon munged master
> with the rest of the uncommented lines being the from the rpm package.
>< snip>
Thanks Dave, that was very useful. In fact I used nut-scanner and
modified ups.conf with its output.
upsdrvctl indicated it could communicate with the UPS:
"Supported UPS detected with megatec protocol
Vendor information read in 1 tries"
but upsc gave
"Error: Connection failure: Connection refused"
I guess I'll have to trace the various permissions to see what's wrong.
Best,

--
Grimble
Registered Linux User #450547
Machine 'Bach' running Plasma 5.20.4 on 5.10.37-desktop-2.mga8 kernel.
Mageia release 8 (Official) for x86_64

Re: USB connection to UPS

<s8b9td$i0s$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3724&group=alt.os.linux.mageia#3724

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: grim...@nomail.afraid.org (Grimble)
Newsgroups: alt.os.linux.mageia
Subject: Re: USB connection to UPS
Date: Sat, 22 May 2021 17:01:49 +0100
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <s8b9td$i0s$1@dont-email.me>
References: <s7jg4r$o17$1@dont-email.me>
<op.03cnshuza3w0dxdave@hodgins.homeip.net> <s7rboh$u8p$1@dont-email.me>
<op.03hwc0pka3w0dxdave@hodgins.homeip.net> <s8b96o$6s0$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 22 May 2021 16:01:49 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="6f532e5e4f71f752b8fb67b81e4ded03";
logging-data="18460"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rW0PWrV/tyWvcLOUuNRVr"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.10.2
Cancel-Lock: sha1:K8kwC3UMYPOgWpOngl/ighDUYvA=
In-Reply-To: <s8b96o$6s0$1@dont-email.me>
Content-Language: en-GB
 by: Grimble - Sat, 22 May 2021 16:01 UTC

On 22/05/2021 16:49, Grimble wrote:
> On 16/05/2021 18:04, David W. Hodgins wrote:
>> On Sun, 16 May 2021 10:55:12 -0400, Grimble
>> <grimble@nomail.afraid.org> wrote:
>>> I got the application to load but it bombed with some display problems,
>>> so I'll take your advice and set up nut.
>>
>> I have nut and nut-server installed on the system the ups is connected
>> to.
>> I've chosen to use the device name nutdev1 for my ups, and in the
>> following
>> replaced the actual password with the word munged.
>>
>> In /etc/ups/ups.conf I've added the lines ...
>> [nutdev1]
>>          driver = "usbhid-ups"
>>          port = /dev/auto
>>
>> In /etc/ups/upsd.conf I've added the line
>> LISTEN 127.0.0.1 3493
>>
>> In /etc/ups/upsd.users I've added the lines ...
>>          [admin]
>>                  password = munged
>>                  actions = SET
>>                  instcmds = ALL
>>          [upsmon]
>>                  password  = munged
>>                  upsmon master
>>
>> In /etc/ups/upsmon.conf I have the line ...
>> MONITOR nutdev1@localhost 1 upsmon munged master
>> with the rest of the uncommented lines being the from the rpm package.
>> < snip>
> Thanks Dave, that was very useful. In fact I used nut-scanner and
> modified ups.conf with its output.
> upsdrvctl indicated it could communicate with the UPS:
> "Supported UPS detected with megatec protocol
> Vendor information read in 1 tries"
> but upsc gave
> "Error: Connection failure: Connection refused"
> I guess I'll have to trace the various permissions to see what's wrong.
Forget that - hadn't started nut-server. Lots of output now, but lots of
zero values!
> Best,
>

--
Grimble
Registered Linux User #450547
Machine 'Bach' running Plasma 5.20.4 on 5.10.37-desktop-2.mga8 kernel.
Mageia release 8 (Official) for x86_64

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor