Saratov Linux User Group
 help / color / mirror / Atom feed
From: Sicness <ctolbhuk@gmail.com>
To: Saratov Linux User Group Maillist <sarlug@lists.lug.ru>
Subject: [Sarlug] Определение простоя системы
Date: Fri, 14 Aug 2009 17:49:54 +0400
Message-ID: <4A856B82.3000904@gmail.com> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Здравстуйте. Задумался над не тривиальной задачей. Как отловить что
система простаивает, всмысле что нет активности пользователя n времени.
Я хочу при наступлении этого n запустить музыку, а при первой активности
выключить. Как это можно реализовать. В частности, как можно определить
простой системы? Сама то ОС знает сколько она простаивает (например
выключает монитор). И, собственно, как отловить окончание простоя :)
Ubuntu 9.04
Есть идеи?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iJwEAQECAAYFAkqFa4IACgkQ5jgWcLqRXle3jgQAnSzxVhgQmAE18UM9nosqdgSE
PSFjFka0sfynBPEHYv0zHKzmfZ2C5K1ucuMgoNGuAyFfIjdIY7YSligC3WsRzI07
G91S0nwlUlyyf8FqsD6AYcirV72yY1taL9uaj4+auO+5Q07hfUfUoFR7ABu3wLn+
H3DnYzrn8R8lpXXMr7g=
=odyq
-----END PGP SIGNATURE-----


             reply	other threads:[~2009-08-14 13:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-14 13:49 Sicness [this message]
2009-08-14 15:37 ` Evgeny Sinelnikov
2009-08-14 17:44   ` Sicness

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A856B82.3000904@gmail.com \
    --to=ctolbhuk@gmail.com \
    --cc=sarlug@lists.lug.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Saratov Linux User Group

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sarlug/0 sarlug/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sarlug sarlug/ http://lore.altlinux.org/sarlug \
		sarlug@lists.lug.ru sarlug@lug.ru
	public-inbox-index sarlug

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sarlug


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git