From: Micha Feigin <michf-+lLcF8/aw9x6auLlOhE+pQ@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: ACPI + Laptop Power Management
Date: Fri, 28 Nov 2003 20:09:09 +0200 [thread overview]
Message-ID: <20031128180909.GA27807@luna.mooo.com> (raw)
In-Reply-To: <20031128154714.GP7374-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
On Fri, Nov 28, 2003 at 04:47:14PM +0100, Ducrot Bruno wrote:
> On Fri, Nov 28, 2003 at 11:21:19AM +0800, Ow Mun Heng wrote:
> >
> >
> > > -----Original Message-----
> > > From: Micha Feigin [mailto:michf-+lLcF8/aw9x6auLlOhE+pQ@public.gmane.org]
> > > Sent: Friday, November 21, 2003 7:13 PM
> > > To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > > Subject: Re: [ACPI] ACPI + Laptop Power Management
> > >
> > >
> > > On Fri, Nov 21, 2003 at 11:12:32AM +0100, Ducrot Bruno wrote:
> ^^^^^^^^^^^^
>
> I *never* wrote the following (but there are good stuff
> inside).
>
> > > like said here, laptopmode is what you want since it holds back dirty
> > > buffer flushes which is what you are experiencing. It will fire up the
> > > disk on reads though. I attached a script that you can use to enter
> > > laptopmode (was actually distributed with laptopmode as far as I could
> > > tell when googling for the original patch). I call it in responce to
> > > ac events from acpid to get it running when the power is disconnected.
> > > Will have to make sure that you get those event though since I had to
> > > twik my dsdt for that.
> > > You can also look at cpufreq of acpi cpu throttling to
> > > throttle down you
> > > cpu when on battery to conserve power (assuming you cpu
> > > supports that).
> >
> > I took a look at laptop mode. However, as the author said "it adds a
> > non-significant" amount of battery time.
>
> Where have you read that?
> Have you looked at linux/Documentation/laptop-mode.txt?
>
>
> > The thing here is, even though it's flushing the buffers when there are
> > others to flush, it makes not difference if the drive is still spinning and
> > not in standby-mode! I can't figure out what is making the HD _not_ spin
> > down.
>
> man hdparm, hdparm -S something.
>
> > BTW, Laptop_mode is merged into the 2.4.23-rc5 kernel (based on the
> > changelogs)
>
> As already said.
>
> > With regard to ACPId events, can you tell me how yo get it to work? I'm
> > having problems getting it running. It gets lodaded up during init, and it's
> > running as root, but after logging in (GDM desktop), the events won't fire
> > until I kill the acpid process and re-run it again. (once I logged in)
> > I can't figure out how to get it to work. I read in one page where the
> > auther said to put xhost +local somewhere at the end of /etc/X11/xinitrc.
> > That didn't work either.
>
> I don't know. All my scripts for power managements via acpid certainly
> do not use X. I am wondering what is inside yours, but if they come
> as default with a distribution, it is probably better to use another
> distribution.
>
> I doubt also the author of laptop-mode have done that. Again, read
> the documentation which come with laptop-mode.
>
> > > I patched reiserfs to change the journal commit time
> > > according to the entry in
> > > bdflush so that I can get the regular 30 sec journal flush
> > > time when on
> > > ac and 10 minutes when of battery.
> > > I could try making such a patch for ext3 if you want.
> >
> > You mean that has to be patched at the Kernel Code Level?? Ah.. Dang!
> >
>
> If you read the laptop-mode documentation, you will know that reiserfs
> have to be modified, but not ext3. BTW, I don't use reiserfs.
>
I guess that is meant for me. I read that but at the time I looked at
the diff and saw that the change was done in the jfs directory, so only
when I later looked at the code to see where ext3 should be patched I
saw that that was the change for ext3.
I wrote a reply saying that, but I had some trouble with my email so I'm
not sure if it got through.
> --
> Ducrot Bruno
>
> -- Which is worse: ignorance or apathy?
> -- Don't know. Don't care.
>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
next prev parent reply other threads:[~2003-11-28 18:09 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-28 3:21 ACPI + Laptop Power Management Ow Mun Heng
[not found] ` <C386328088ED7F4E9F81AFBABDDF60DA0338640F-Yw6hFe9C1vnHQcBQSaPqJq0fmWJ9l57d0E9HWUfgJXw@public.gmane.org>
2003-11-28 9:32 ` Diego SANTA CRUZ
2003-11-28 15:47 ` Ducrot Bruno
[not found] ` <20031128154714.GP7374-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2003-11-28 18:09 ` Micha Feigin [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-12-01 1:20 Ow Mun Heng
2003-11-21 4:01 Ow Mun Heng
[not found] ` <C386328088ED7F4E9F81AFBABDDF60DA03386202-Yw6hFe9C1vnHQcBQSaPqJq0fmWJ9l57d0E9HWUfgJXw@public.gmane.org>
2003-11-21 10:12 ` Ducrot Bruno
[not found] ` <20031121101232.GL32464-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2003-11-21 10:57 ` Luca Capello
[not found] ` <3FBDEFB3.3060303-wlebWZzHoyE@public.gmane.org>
2003-11-21 13:03 ` Ducrot Bruno
[not found] ` <20031121130307.GM32464-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2003-11-22 18:31 ` Luca Capello
[not found] ` <3FBFAB8A.4060001-wlebWZzHoyE@public.gmane.org>
2003-11-22 20:47 ` Micha Feigin
2003-11-21 11:13 ` Micha Feigin
[not found] ` <20031121111323.GB18223-4cxDFgrrBECgSpxsJD1C4w@public.gmane.org>
2003-11-21 13:07 ` Luca Capello
[not found] ` <3FBE0E02.3080203-wlebWZzHoyE@public.gmane.org>
2003-11-21 13:21 ` Ducrot Bruno
2003-11-21 13:53 ` Micha Feigin
[not found] ` <20031121135321.GF5917-4cxDFgrrBECgSpxsJD1C4w@public.gmane.org>
2003-11-21 14:44 ` Luca Capello
[not found] ` <3FBE24DC.8020203-wlebWZzHoyE@public.gmane.org>
2003-11-24 21:37 ` Micha Feigin
2003-11-23 19:12 ` Luca Capello
[not found] ` <3FC106AE.4040701-wlebWZzHoyE@public.gmane.org>
2003-11-24 12:44 ` Ducrot Bruno
[not found] ` <20031124124451.GB7374-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2003-11-24 13:52 ` Luca Capello
[not found] ` <3FC20D2F.30305-wlebWZzHoyE@public.gmane.org>
2003-11-25 16:07 ` Micha Feigin
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=20031128180909.GA27807@luna.mooo.com \
--to=michf-+llcf8/aw9x6aullohe+pq@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox