Added a configuration option to disable the check, attached a patch that fixes
the problem. I'm sorry if I didn't get anything quite right, this is my first
time submitting a patch! :)

Mike

On Wed, 27 Feb 2013 14:35:49 +0530
Ritesh Raj Sarraf <r...@researchut.com> wrote:

> On Wednesday 27 February 2013 10:54 AM, Mike Roddewig wrote:
> > The battery in my Thinkpad T420 reports an abnormally high alarm level which
> > results in laptop-mode-tools disabling the data-loss sensitive features,
> > even at 50% battery charge. There is no option to disable this check in the
> > configuration file. The offending code starts on line 818. For the time
> > being I've commented out the if block (lines 818-830) which fixed the
> > problem.
> >
> > $ cat /sys/class/power_supply/BAT0/alarm
> > 2455000
> > $ cat /sys/class/power_supply/BAT0/charge_full
> > 4911000
> Yup!!! Maybe we should have that configurable. It was done with the
> assumption that the report we get from underneath is always correct.
> 
> -- 
> Ritesh Raj Sarraf
> RESEARCHUT - http://www.researchut.com
> "Necessity is the mother of invention."
> 
> 


-- 
Mike Roddewig <m...@dietfig.org>

Attachment: patch
Description: Binary data

Attachment: pgptlX4F_6Uor.pgp
Description: PGP signature

Reply via email to