public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* ACPI + Laptop Power Management
@ 2003-11-21  4:01 Ow Mun Heng
       [not found] ` <C386328088ED7F4E9F81AFBABDDF60DA03386202-Yw6hFe9C1vnHQcBQSaPqJq0fmWJ9l57d0E9HWUfgJXw@public.gmane.org>
  0 siblings, 1 reply; 21+ messages in thread
From: Ow Mun Heng @ 2003-11-21  4:01 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi,

	This is a question (not a solution) to determine how to gain maximum
batt life on a laptop.

More details on http://bellet.info/~bellet/laptop/t40.html

Currently, following the recommendations in the link above, I have set
'noatime' for my HDs as well as placing commit=600.

so in /etc/fstab

/dev/hda	/	etx3	defaults,noatime,commit=600 1 1

The commit=600 is supposed to stop Kjournal from committing to disk every 5
seconds and to give a chance to the HD to spin down (not happening!) (can
check via hdparm -C /dev/hda)

Doing a hdparm -y /dev/hda (to place the disk into standby) will only work
for like 10-30 seconds before it spins up again. I have no idea what is
causing it to spin up again.. (what I/O is going on??)

There is the option of changing bdflush as well, changing this (5th & 6th)
to 6000 & 12000 does not yield anything better

Does anyone has a solution or something like a solution which I can try
out??

Anything would be good.. I want to extend my battery life.. Dell D600 on a
4320Mah 6cell Batt with 14.1 SXGA screen

Cheers,                                                 .^.
Mun Heng, Ow                                            /V\
H/M Engineering                                       /(   )\
Western Digital M'sia                                  ^^-^^
DID : 03-7870 5168                          The Linux Advocate

        


-------------------------------------------------------
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/

^ permalink raw reply	[flat|nested] 21+ messages in thread
* RE: ACPI + Laptop Power Management
@ 2003-11-28  3:21 Ow Mun Heng
       [not found] ` <C386328088ED7F4E9F81AFBABDDF60DA0338640F-Yw6hFe9C1vnHQcBQSaPqJq0fmWJ9l57d0E9HWUfgJXw@public.gmane.org>
  0 siblings, 1 reply; 21+ messages in thread
From: Ow Mun Heng @ 2003-11-28  3:21 UTC (permalink / raw)
  To: Micha Feigin, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f



> -----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:
> 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.

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.

BTW, Laptop_mode is merged into the 2.4.23-rc5 kernel (based on the
changelogs)

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 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!


-------------------------------------------------------
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/

^ permalink raw reply	[flat|nested] 21+ messages in thread
* RE: ACPI + Laptop Power Management
@ 2003-12-01  1:20 Ow Mun Heng
  0 siblings, 0 replies; 21+ messages in thread
From: Ow Mun Heng @ 2003-12-01  1:20 UTC (permalink / raw)
  To: Ducrot Bruno; +Cc: Micha Feigin, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f



> -----Original Message-----
> From: Ducrot Bruno [mailto:ducrot-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org]
> Sent: Friday, November 28, 2003 11:47 PM
> To: Ow Mun Heng
> Cc: Micha Feigin; acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: Re: [ACPI] ACPI + Laptop Power Management
> 
> 
> > 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?

I took another look at the kernel docs. It _does_ say it adds like 10% of
batt time. The initial post about the "NON-significant ..etc" was actually
gathered from one website that had the laptop-mode's author email.

 
> 
> > 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.

That's just for power savings. eg: power management of the HD.. I spin the
HD down manually using hdparm -y /dev/hda




> 
> > BTW, Laptop_mode is merged into the 2.4.23-rc5 kernel (based on the
> > changelogs)
> 
> As already said.

I took a swipe at kernel 2.4.23 yesterday night. Laptop mode is in..
_however_ cpu frequency scaling is not in there and that's most certainly
something that I _need_ ton conserve batt life. I used to get it from the
-ac branch but seems like Alan is busy and heven't released anything after
2.4.22-ac4.

BTW, anyone know how to get cpufreq into the main kernel. Where can I find a
diff or is there another method of cpu freq scaling now??


> 
> > 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.
> 

Fudge that.. I found out how to use xhost properly (finally) yesterday. It
seems I missed the ":" in "xhost +local:"

Now screen blanking works great and so does acpid and it's events.

 BTW, I use RedHat 9

Cheers 

OW


-------------------------------------------------------
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/

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2003-12-01  1:20 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-21  4:01 ACPI + Laptop Power Management 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
  -- strict thread matches above, loose matches on Subject: below --
2003-11-28  3:21 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
2003-12-01  1:20 Ow Mun Heng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox