ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Владимир Гусев" <vova1971@narod.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] hibernate [was: кодек для  kaffeine]
Date: Fri, 30 Jan 2009 15:45:51 +0300
Message-ID: <20090130154551.5512bee0@wind.gusev.ru> (raw)
In-Reply-To: <f041fbd00901300345nfa9b13o3900bf503a09c4ba@mail.gmail.com>

> > Все работает.. нужно поставить 2 пакета, создать один текстовый
> > файл, подправить 1 файл, рестартить acpid и выключить powersaved -
> > он мешает acpid, увы.. проверено на трех ноутах. в т.ч. и на MSI
> > Wind U100, который мало чем отличается по наполнению от eeePC.. (а
> > в чем-то даже лучше).
> >
> 
> хм...
> а дайте подробный рецепт... а то как-то глазки разбежались-загорелись
> это воплотить на моем леново с9

apt-get install hibernate hibernate-cleanup

Создать файл lid

[vova@wind ~]$ cat /etc/acpi/events/lid
event=button/lid
action=/usr/sbin/hibernate

Как минимум подправить (если нужно) файл /etc/hibernate/hibernate.conf,
чтобы выбрать нужный метод засыпания:

[root@wind hibernate]# cat hibernate.conf
# hibernate.conf is split into separate configuration files.
# 
# Each file is tried in the order below, until an available suspend
# method is found.
# 
# Options specific to a particular suspend method should be placed in
the # appropriate configuration file (suspend2.conf, ususpend.conf,
disk.conf # or ram.conf).
# Options common to all suspend methods should be placed in common.conf.
#
# See hibernate.conf(5) for help on the configuration items.

TryMethod ram.conf
TryMethod suspend2.conf
TryMethod disk.conf

Я выбрал для сбрасывания информации Память (поставил строку TryMethod
ram.conf первой).

Можете посмотреть также тамошние файлы, в частности common.conf, может
захотите изменить поведение некоторых вещей до или после засыпания..

Сделать 

service powersaved stop
chkconfig powersaved off
service acpid restart

и закройте крышку ноута..
В зависимости от мощности ноута, сразу или не очень, у вас он заснет.
Либо издаст сигнал, либо ничего не издаст но будет видно по
индикаторам.. В это время ноут работает от батареи, правда в довольно
экономном режиме..

Если крышку поднять, то, опять-таки в зависимости от модели, ноут либо
сразу поснется, либо нужно будет нажать на кнопку power (обычно где-то
рядом с клавиатурой)..

P.S. powersaved мешает acpid рестартовать после пробуждения, приходится
перезапускать его вручную.. баг в багзилле есть.


-- 
С уважением,
Владимир Гусев


  reply	other threads:[~2009-01-30 12:45 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-04  8:19 [Comm] кодек для kaffeine Геннадий Ищенко
2009-01-06 16:26 ` Константин Михайленко
2009-01-06 18:01   ` Yurkovsky Andrey
2009-01-07  8:53     ` Константин Михайленко
2009-01-07 10:18       ` Yurkovsky Andrey
2009-01-09  7:08         ` Константин Михайленко
2009-01-10  7:53           ` Yurkovsky Andrey
2009-01-10  6:42   ` Геннадий Ищенко
2009-01-10  6:50     ` Occisor
2009-01-10  7:53     ` Yurkovsky Andrey
2009-01-11  5:44       ` Геннадий Ищенко
2009-01-11 12:03         ` Yurkovsky Andrey
2009-01-10 15:50   ` Michael Shigorin
2009-01-10 16:07     ` Ivan Petrov
2009-01-10 16:21       ` Michael Shigorin
2009-01-10 16:59         ` [Comm] hibernate Ivan Petrov
2009-01-10 17:39           ` Michael Shigorin
2009-01-30  9:37         ` [Comm] кодек для kaffeine Владимир Гусев
2009-01-30 11:45           ` Maks Re
2009-01-30 12:45             ` Владимир Гусев [this message]
2009-01-30 19:07               ` [Comm] hibernate [was: кодек для kaffeine] Maks Re
2009-01-10 19:45     ` [Comm] кодек для kaffeine Yurkovsky Andrey
2009-01-10 20:52       ` Michael Shigorin
2009-02-12 14:09       ` 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=20090130154551.5512bee0@wind.gusev.ru \
    --to=vova1971@narod.ru \
    --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