Re: [ANNOUNCE] System Inactivity Monitor v1.0

From: Alessandro Di Marco
Date: Tue Jan 23 2007 - 09:15:10 EST


Pavel Machek <pavel@xxxxxx> writes:

Hi!

> > +if [ ! -d "/proc/sin" ]; then
> > + echo "/proc/sin not found, has sinmod been loaded?"
> > + exit
> > +fi
>
> No new /proc files, please.
>
> This was merely a prototype realized in a hurry, not a production
> driver. Really, I did't think it could be interesting for anybody.
>
> Would be /sys ok?

If it has to be in kernel, /sys/power is probably ok.

Doh! The attached patch introduces /sys/class/misc (along with some bug-fixes.)
In case I'll change it again.

Ah, there is still a time-warp bug pending. In practice I have to turn off the
timer just before suspending, hibernating, etc or it will give you hell on the
next system resume...

But I still believe it can be out.

Do you believe it could be a user-space daemon or what?

Best,