1.\" $OpenBSD: upd.4,v 1.3 2014/03/19 09:22:25 mpi Exp $ 2.\" 3.\" Copyright (c) 2014 Andre de Oliveira <andre@openbsd.org> 4.\" 5.\" Permission to use, copy, modify, and distribute this software for any 6.\" purpose with or without fee is hereby granted, provided that the above 7.\" copyright notice and this permission notice appear in all copies. 8.\" 9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16.\" 17.Dd $Mdocdate: March 19 2014 $ 18.Dt UPD 4 19.Os 20.Sh NAME 21.Nm upd 22.Nd USB Power Devices sensor 23.Sh SYNOPSIS 24.Cd "upd* at uhidev?" 25.Sh DESCRIPTION 26The 27.Nm 28driver exposes data from USB Power Devices (such as an UPS), 29as hardware sensors via 30.Xr sysctl 3 . 31.Pp 32The following sensors are provided by the 33.Nm 34driver, which can be monitored using 35.Xr sensorsd 8 : 36.Pp 37.Bl -item -offset indent -compact 38.It 39RelativeStateOfCharge 40.It 41AbsoluteStateOfCharge 42.It 43RemainingCapacity 44.It 45FullChargeCapacity 46.It 47Charging 48.It 49Discharging 50.It 51BatteryPresent 52.It 53ShutdownImminent 54.It 55ACPresent 56.It 57AtRateTimeToFull 58.El 59.Sh SEE ALSO 60.Xr intro 4 , 61.Xr uhidev 4 , 62.Xr sensorsd 8 , 63.Xr sysctl 8 64.Sh HISTORY 65The 66.Nm 67driver first appeared in 68.Ox 5.6 . 69.Sh AUTHORS 70The 71.Nm 72driver was written by 73.An Andre de Oliveira . 74