Re: [ANNOUNCE] System Inactivity Monitor v1.0



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. But I still
believe it can be out.

Yes, I believe it is interesting: on modern machine, you want to
control keyboard illumination, lower backlight after short inactivity,
turn screen off after longer one, etc...

Heh. We'll waste power trying to save it.

Well, not just a power saver. For example I use SIN to auto-logoff my bash
session as well (detaching the screen session.)

Ok, ok :-).

If you have to hook it into kernel, can you at least do it properly?

Of course. You can find attached a patch fixing this. Now SIN wakes up just
when it expects to do something: if in the meantime the user interacts with the
system, SIN simply recalculates the next wake-up time on the basis of the last
user's activity date and goes to sleep again.

Good.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Webcams again
    ... I'm not so sure now that it is a driver ... as I find that ekiga gives me much better colour than aMSN. ... the kernel include/config directory for the compile to work at all. ... ..the Sin of Ignorance, ...
    (Fedora)
  • Re: buying a 56K modem...
    ... If you gotta dnload a driver, ... ..the Sin of Ignorance, ... Linux user# 44256 Sign up at: http://counter.li.org/ ...
    (Fedora)
  • Re: Fedora 7 - RPM Build Nvidia 9755
    ... And just because there are SELinux problems with the Livna NVIDIA ... driver RPMs doesn't mean that the same problem exists in the official ... NVIDIA driver packages. ... ..the Sin of Ignorance, ...
    (Fedora)
  • Re: Beryl crashes with segfault in FC6
    ... (After displaying a bunch of tests that ... I am using the commercial NVIDIA driver version 9631. ... ..the Sin of Ignorance, ...
    (Fedora)
  • Xauth and Xresources
    ... how can I disable Xauth completely?? ... need this for testing purposes. ... Still not getting a session approved and ... ..the Sin of Ignorance, ...
    (Fedora)