From: Ivan Fedorov <ns@altlinux.org>
To: community@lists.altlinux.org
Subject: Re: [Comm] Массовая настройка управления питанием. Как?
Date: Wed, 09 Dec 2009 21:31:45 +0300
Message-ID: <m38wdcov72.fsf@thinkpad.oxyum.localnet> (raw)
In-Reply-To: <d77783290912091027u293a2f45tcfda0b913c9628b5@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 765 bytes --]
Денис Черносов <denis0.ru-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
writes:
> Ребята!!! При неактивности _можно_ гасить экран. Т.е. _есть_ какой-то
> счетчик неактивности, на который можно повесить любую команду, с
> помощью микроскрипта типа (очень приблизительно):
>
> #!/bin/sh
> $cnt = `cat /proc/some/counter`
>
> if [ $cnt > $max_cnt ]; then
> halt now
> else
> sleep 1000
> fi
>
> А скрипт пусть запускается при загрузке и висит по фону.
>
> Вот и вопрос: где значение взять?
xscreensaver-command -time
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2009-12-09 18:31 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-08 8:49 Денис Черносов
2009-12-08 10:04 ` Michael A. Kangin
2009-12-08 10:10 ` Владимир
2009-12-08 10:27 ` Денис Черносов
2009-12-08 12:25 ` Michael A. Kangin
2009-12-08 23:56 ` MisHel64
2009-12-09 0:24 ` Anton Farygin
2009-12-09 9:58 ` MisHel64
2009-12-09 10:10 ` Anton Farygin
2009-12-09 16:48 ` Michael Shigorin
2009-12-09 16:48 ` Michael Shigorin
2009-12-09 18:03 ` Anton Farygin
2009-12-09 18:27 ` Денис Черносов
2009-12-09 18:31 ` Ivan Fedorov [this message]
2009-12-09 18:35 ` Andrey Rahmatullin
2009-12-10 6:18 ` Денис Черносов
2009-12-10 11:52 ` Michael Shigorin
2009-12-10 13:13 ` Денис Черносов
2009-12-10 13:53 ` Michael Shigorin
2009-12-17 11:41 ` Денис Черносов
2009-12-17 13:10 ` Денис Черносов
2010-02-02 16:32 ` Денис Черносов
2009-12-09 11:50 ` Денис Черносов
2009-12-09 12:16 ` Andrey Rahmatullin
2009-12-09 13:23 ` Денис Черносов
2009-12-09 13:44 ` Andrey Rahmatullin
2009-12-09 14:02 ` Anton Farygin
2009-12-09 16:33 ` Владимир Гусев
2009-12-09 13:39 ` Dmitriy Kruglikov
2009-12-09 16:52 ` Michael Shigorin
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=m38wdcov72.fsf@thinkpad.oxyum.localnet \
--to=ns@altlinux.org \
--cc=community@lists.altlinux.org \
/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
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git