File: smartbatt

package info (click to toggle)
lm-sensors 1%3A2.10.7-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,324 kB
  • ctags: 10,814
  • sloc: ansic: 63,969; perl: 8,111; sh: 1,823; makefile: 399; lex: 371; yacc: 312; python: 11
file content (66 lines) | stat: -rw-r--r-- 1,640 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Kernel driver `smartbatt.o'
==========================

Status: Alpha

Supported chips:
  * Smart batteries
    Prefix: 'smartbatt'
	Address scanned: 0x0b
	Datasheet: Smart Battery Data Specification Revision 1.1
        http://www.sbs-forum.org/

Author: M. Studebaker <mdsxyz123@yahoo.com>

License: GPL


Module Parameters
-----------------

* force: short array (min = 1, max = 48)
  List of adapter,address pairs to boldly assume to be present
* force_smartbatt: short array (min = 1, max = 48)
  List of adapter,address pairs which are unquestionably assumed to contain
  a `smartbatt' chip
* probe: short array (min = 1, max = 48)
  List of adapter,address pairs to scan additionally
* probe_range: short array (min = 1, max = 48)
  List of adapter,start-addr,end-addr triples to scan additionally
* ignore: short array (min = 1, max = 48)
  List of adapter,address pairs not to scan
* ignore_range: short array (min = 1, max = 48)
  List of adapter,start-addr,end-addr triples not to scan


Detection
---------

Very poor. Just looks for the presence of some registers.


Uses
----

Provides read-only access to battery voltage, current, temperature,
charge status, time remaining, and alarms.


/proc entries
-------------

Average readings are one minute rolling averages.

  alarms        bitmask
  charge        relative charge, absolute charge (%)
  i             average current, instantaneous current (A)
  temp          temperature (deg. C)
  time          avg. time to empty, avg. time to full,
                instantaneous time to full (min)
  v             max voltage, current voltage (V)


To do
-----

More features.