Hello,

I'm trying to use sensorsd to shutdown my Thinkpad T410 laptop when
the battery reaches the "low capacity" level. However, when I add the
line shown below to sensorsd.conf the laptop always shutdown within a
couple of minutes of booting regardless of the current battery level
or if running on AC power.

The line I added to sensorsd.conf is:

hw.sensors.acpibat0.amphour3:low=0.02Ah:command=/sbin/shutdown -hp now

The sysctl output for my battery is:

hw.sensors.acpibat0.volt0=10.80 VDC (voltage)
hw.sensors.acpibat0.volt1=11.17 VDC (current voltage)
hw.sensors.acpibat0.current0=0.99 A (rate)
hw.sensors.acpibat0.amphour0=4.93 Ah (last full capacity)
hw.sensors.acpibat0.amphour1=0.25 Ah (warning capacity)
hw.sensors.acpibat0.amphour2=0.02 Ah (low capacity)
hw.sensors.acpibat0.amphour3=0.27 Ah (remaining capacity), OK
hw.sensors.acpibat0.raw0=2 (battery charging), OK
hw.sensors.acpiac0.indicator0=On (power supply)

Any suggestions as to what I'm doing wrong?

Regards,
Laurence.

Reply via email to