Re: tp_smapi config
On Sat, 13 Dec 2008 14:02:47 -0400
tyler <tyler.smith@mail.mcgill.ca> wrote:
> Micha Feigin <michf@post.tau.ac.il> writes:
>
> > On Fri, 12 Dec 2008 11:23:35 -0400
> > tyler <tyler.smith@mail.mcgill.ca> wrote:
> >
> >> Winfried Tilanus <winfried@tilanus.com> writes:
> >>
> >> > Install the tp_smapi modules. See http://www.thinkwiki.org/wiki/Tp_smapi
> >> > for more information.
> >>
> >> oops. I'm missing something. I just installed the tp-smapi packages for
> >> my kernel, and according to the documentation on thinkwiki, I can set
> >> the start and stop thresholds with this:
> >>
> >> echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
> >> echo 70 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh
> >>
> >> Except that there is no /sys/devices/platform/smapi directory on my
> >> system, and I cannot create the directory with mkdir. I searched my
> >> entire system for smapi directories, BAT0 directories, or files names
> >> {start,stop}_charge_thresh, but none exist. I tried rebooting, in case
> >> there was some mystic kernel thing going on, but that didn't help. I
> >> tried modprobe -l, which confirmed that the smapi modules were loaded:
> >>
> >
> > do lsmod to make sure that they are loaded
> >
>
> lsmod | grep smapi
>
modprobe tp_smapi
and if you want it to load automatically at startup you will want to do as root
echo tp_smapi >> /etc/modules
> produces nothing, so they aren't loaded. How do I load them? I'm not
> using a custom kernel, so the instructions on ThinkWiki lead me to
> believe that all I needed to do was
>
> aptitude install tp-smapi-modules-`uname -r`
>
> I guess there's more to it?
>
> Thanks,
>
> Tyler
>
>
Reply to: