This almost certainly has nothing to do with ipaq-sleep, in and of
itself. All ipaq-sleep does is scan the various "places" for activity
and eventually submit the *system* command /sbin/pm-helper suspend.
At present ipaq-sleep does *not* interact with the kernel at all,
instead relying purely on reading /proc files itself for apm and
interupts (although before version 1.0, I should make it more
sophisticated so it runs with less overhead, although the overhead as it
is, is not large).
In any case, I would be shocked if ipaq-sleep has done anything that
should affect /proc/uptime in any way.
On Wed, 2002-02-27 at 12:48, Erik Karlin wrote:
> I seem to be having a problem with /proc/uptime. I've recently
> installed ipaq-sleep, and I have pretty much the default settings,
> dim:90 and sleep: 180, though I set apm:0 to sleep on AC. The problem
> is that my uptime is just not correct, at least /proc/uptime is not
> being updated. The screenshot I attached shows at 9:25am, it was up
> 0h1m, then it dimmed and slept. at 10:15am, my uptime showed 0h8m.
> Surely more than 7 minutes are between 9:25 and 10:15am...
>
> I'm running ICEwm, which I believe has the power button hooked up to
> /usr/bin/power.sh...but I'm just letting ipaq-sleep handle the suspend
> stuff.
>
> Does anyone have any ideas?
>
>
>
> Below is the bash script that I use for uptime:
> #!/bin/bash
> #
> # mimic solaris uptime
> #
>
> temp=$(cat /proc/loadavg)
> one=`echo ${temp%% *}`
> five=`x=${temp#* } && echo ${x%% *}`
> fifteen=`x=${temp#* } && y=${x#* } && echo ${y%% *}`
>
> temp=$(cat /proc/uptime)
> let upSeconds="${temp%%.*}"
> let secs=$((${upSeconds}%60))
> let mins=$((${upSeconds}/60%60))
> let hours=$((${upSeconds}/3600%24))
> let days=$((${upSeconds}/86400))
>
>
> echo -n "`date +%l:%M%p` up ${days}d ${hours}h${mins}m, "
> echo "load average: $one, $five, $fifteen"
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Greetings - Send FREE e-cards for every occasion!
> http://greetings.yahoo.com
-- Joseph J. McCarthy, Assistant Professor Department of Chemical and Petroleum Engineering University of Pittsburgh 1249 Benedum Hall Pittsburgh, Pennsylvania 15261 Ph. 412-624-7362 Fax 412-624-9639 mccarthy@engrng.pitt.edu http://granular.che.pitt.eduReceived on Wed Feb 27 18:12:21 2002
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:44:33 EDT