Re: [Nut-upsuser] Can NUT handle a laptop battery?

2022-01-08 Thread Charles Lepple via Nut-upsuser
On Jan 8, 2022, at 12:38 PM, Goran Vukoman  wrote:
> 
> The Pine64 ARM boards have a battery connector, not quite a laptop, but AFAIK 
> the board will charge and use the battery as fallback if lights go out.

It looks like the Pinebook Pro has a /sys/class/power_supply driver:

https://github.com/Syonyk/pinebookpro/blob/master/pbp-status.sh#L10 


so theoretically, you could poll that interface and export some data for 
dummy-ups, as suggested in this thread:

https://alioth-lists.debian.net/pipermail/nut-upsuser/2016-September/010300.html
 


Admittedly, a compiled NUT driver for Linux power_supply devices would be 
better:

https://github.com/networkupstools/nut/issues/319 



> ___
> Nut-upsuser mailing list
> Nut-upsuser@alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Can NUT handle a laptop battery?

2022-01-08 Thread Goran Vukoman
The Pine64 ARM boards have a battery connector, not quite a laptop, but
AFAIK the board will charge and use the battery as fallback if lights
go out.

Am Freitag, dem 07.01.2022 um 10:03 +0100 schrieb Jim Klimov:
> Just to clarify: I don't think there is a NUT driver that would
> consider a computer's local battery as an UPS - probably no-one came
> around to write one, and probably that would be very much OS-
> dependent (more than HW dependent).
> 
> The laptop should be okay as a NUT client (for external NUT servers),
> as well as a NUT server for traditional connections to
> serial/usb/snmp/... UPSes with respective drivers.
> 
> Jim
> 
> On Thu, Jan 6, 2022, 19:03 G  wrote:
> > Yes, debian or devuan do have support for nut on any arch.
> > 
> > https://packages.debian.org/bullseye/nut
> > 
> > I will play with it to see if I can control via nut an arm laptop.
> > 
> > Am Donnerstag, dem 06.01.2022 um 17:00 +0100 schrieb Matus UHLAR -
> > fantomas:
> > > > On January 6, 2022 2:50:44 PM GMT+02:00, G 
> > wrote:
> > > > > Can NUT handle an ARM laptop like the pinebook pro?
> > > 
> > > On 06.01.22 17:35, Manuel Wolfshant wrote:
> > > > It should. I had it running several years on a 2nd generation
> > RPi.
> > > > 
> > > > The real problem is if the distribution of your choice provides
> > > > either a package for nut or the tools (and libraries) to
> > compile it
> > > > yourself.
> > > 
> > > I guess the OP means if the NUT supports using laptop battery as
> > the
> > > UPS.
> > > (I think I made the same mistake some time ago).
> > > 
> > > afaik there is no driver for laptop batteries.
> > > I guess it could run on ACPI data.
> > 
> > 
> > 
> > ___
> > Nut-upsuser mailing list
> > Nut-upsuser@alioth-lists.debian.net
> > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Can NUT handle a laptop battery?

2022-01-07 Thread Jim Klimov via Nut-upsuser
Just to clarify: I don't think there is a NUT driver that would consider a
computer's local battery as an UPS - probably no-one came around to write
one, and probably that would be very much OS-dependent (more than HW
dependent).

The laptop should be okay as a NUT client (for external NUT servers), as
well as a NUT server for traditional connections to serial/usb/snmp/...
UPSes with respective drivers.

Jim

On Thu, Jan 6, 2022, 19:03 G  wrote:

> Yes, debian or devuan do have support for nut on any arch.
>
> https://packages.debian.org/bullseye/nut
>
> I will play with it to see if I can control via nut an arm laptop.
>
> Am Donnerstag, dem 06.01.2022 um 17:00 +0100 schrieb Matus UHLAR -
> fantomas:
> > > On January 6, 2022 2:50:44 PM GMT+02:00, G  wrote:
> > > > Can NUT handle an ARM laptop like the pinebook pro?
> >
> > On 06.01.22 17:35, Manuel Wolfshant wrote:
> > > It should. I had it running several years on a 2nd generation RPi.
> > >
> > > The real problem is if the distribution of your choice provides
> > > either a package for nut or the tools (and libraries) to compile it
> > > yourself.
> >
> > I guess the OP means if the NUT supports using laptop battery as the
> > UPS.
> > (I think I made the same mistake some time ago).
> >
> > afaik there is no driver for laptop batteries.
> > I guess it could run on ACPI data.
>
>
>
> ___
> Nut-upsuser mailing list
> Nut-upsuser@alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
>
___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Can NUT handle a laptop battery?

2022-01-06 Thread G
Yes, debian or devuan do have support for nut on any arch.

https://packages.debian.org/bullseye/nut

I will play with it to see if I can control via nut an arm laptop.

Am Donnerstag, dem 06.01.2022 um 17:00 +0100 schrieb Matus UHLAR -
fantomas:
> > On January 6, 2022 2:50:44 PM GMT+02:00, G  wrote:
> > > Can NUT handle an ARM laptop like the pinebook pro?
> 
> On 06.01.22 17:35, Manuel Wolfshant wrote:
> > It should. I had it running several years on a 2nd generation RPi.
> > 
> > The real problem is if the distribution of your choice provides
> > either a package for nut or the tools (and libraries) to compile it
> > yourself.
> 
> I guess the OP means if the NUT supports using laptop battery as the
> UPS.
> (I think I made the same mistake some time ago).
> 
> afaik there is no driver for laptop batteries.
> I guess it could run on ACPI data.



___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Can NUT handle a laptop battery?

2022-01-06 Thread Matus UHLAR - fantomas

On January 6, 2022 2:50:44 PM GMT+02:00, G  wrote:

Can NUT handle an ARM laptop like the pinebook pro?


On 06.01.22 17:35, Manuel Wolfshant wrote:

It should. I had it running several years on a 2nd generation RPi.

The real problem is if the distribution of your choice provides either a 
package for nut or the tools (and libraries) to compile it yourself.


I guess the OP means if the NUT supports using laptop battery as the UPS.
(I think I made the same mistake some time ago).

afaik there is no driver for laptop batteries.
I guess it could run on ACPI data.
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
LSD will make your ECS screen display 16.7 million colors

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Can NUT handle a laptop battery?

2022-01-06 Thread Manuel Wolfshant
On January 6, 2022 2:50:44 PM GMT+02:00, G  wrote:
>Can NUT handle an ARM laptop like the pinebook pro?

It should. I had it running several years on a 2nd generation RPi.

The real problem is if the distribution of your choice provides either a 
package for nut or the tools (and libraries) to compile it yourself.

wolfy

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser


[Nut-upsuser] Can NUT handle a laptop battery?

2022-01-06 Thread G
Can NUT handle an ARM laptop like the pinebook pro?

Regards


___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser