[Bug 215389] Re: No battery charge percentage on belkin usb avr

2008-04-14 Thread David Erosa
Chuck, I tried your repo and installed nut version 2.2.1-2.1ubuntu7~ppa3
and everything seems to be working right:

$ /lib/nut/megatec_usb  -DD -a SAI
...
Checking device (0665/5161) (001/004)
- VendorID: 0665
- ProductID: 5161
- Manufacturer: Cypress Semiconductor
- Product: USB to Serial
- Serial Number: unknown
- Bus: 001
Trying to match device
Device matches
Starting UPS detection process...
Asking for UPS status [Q1]...
Q1 = OK [(226.9 226.9 226.9 043 50.1 13.6 25.0 1001]
Asking for UPS status [Q1]...
Q1 = OK [(226.9 226.9 226.9 043 50.1 13.6 25.0 1001]
Asking for UPS status [Q1]...
Q1 = OK [(225.4 225.4 225.4 042 50.1 13.6 25.0 1001]
Asking for UPS status [Q1]...
Q1 = OK [(225.4 225.4 225.4 042 50.1 13.6 25.0 1001]
Asking for UPS status [Q1]...
Q1 = OK [(225.4 225.0 225.4 042 50.1 13.6 25.0 1001]
0 out of 5 detection attempts failed (minimum failures: 2).
Asking for UPS information [I]...
I = FAILED [short read]
Megatec protocol UPS detected.
Cancelling any pending shutdown or battery test.
Asking for UPS power ratings [F]...
F = OK [#230.0 002 12.00 50.0]
12.0V battery, interval [9.7V, 13.7V].
Done setting up the UPS.
Asking for UPS status [Q1]...
Q1 = OK [(225.4 225.4 225.4 043 50.1 13.6 25.0 1001]
Calculated battery charge: 97.5%
dstate_init: sock /var/run/nut/megatec_usb-SAI open on fd 5
Asking for UPS status [Q1]...
Q1 = OK [(225.4 225.4 225.4 042 50.1 13.6 25.0 1001]
Calculated battery charge: 97.5%
...

As for the battvolts option, I don't really know the right values for
The battery voltage interval. I think I can live with that 97.5% :)

-- 
No battery charge percentage on belkin usb avr
https://bugs.launchpad.net/bugs/215389
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 215389] Re: No battery charge percentage on belkin usb avr

2008-04-14 Thread Chuck Short
Thanks,

The update for nut should be uploaded to the archive soon. Thanks again
for testing.

chuck

-- 
No battery charge percentage on belkin usb avr
https://bugs.launchpad.net/bugs/215389
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs