From: Kiko Piris <kernel@pirispons.net>
To: linux-kernel@vger.kernel.org
Subject: A couple of questions about laptop-mode for 2.6, version 4
Date: Sat, 27 Dec 2003 11:57:00 +0100 [thread overview]
Message-ID: <20031227105700.GA3554@sacarino.pirispons.net> (raw)
In-Reply-To: <3FEAFE66.2020602@samwel.tk>
On 25/12/2003 at 16:12, Bart Samwel wrote:
> Thanks, I've fixed this. Here is the resulting patch.
>
> I've got another problem getting this stuff to work. The problem lies
> with my HD: it just doesn't respect the spindown time, I've got it set
> to hdparm -S 4 and it just doesn't spin down, even though there's no
> activity whatsoever! hdparm -B 254 gives me:
Hi,
since laptop-mode was a feature from 2.4 wich I was missing in 2.6, I've
decided to give it a try.
However, I have not a clue about kernel programming (and neither about
filesystems implementations), so looking at the source code is useless
to me (as I do not understand anything :-[). So, please forgive-me if
I'm asking obvious questions:
1.- I've used the patch posted in the message I'm replying (From: Bart
Samwel, Date: Thu, 25 Dec 2003 16:12:38 +0100). Hope this is the correct
one.
2.- I plan to use cpudyn (http://mnm.uib.es/~gallir/cpudyn) to spin down
the disks (as I did in 2.4). If I have understood it correctly, that
functionality is what the smart_spindown script does. I guess there will
be no problems with that.
3.- As I use mainly ext3 partitions, I read in the first post regarding
laptop-mode with ext3, that I had to mount my filesystems with
commit=$MAX_AGE (beeing that $MAX_AGE, the value used in
linux-2.4/Documentation/laptop-mode.sh). Is this correct?
If the previous answer is yes, what do you think would be the best way
to do so? I don't like modifying /etc/fstab, because if I boot another
(non laptop-mode) kernel (or I want to disable laptop-mode when doing
something important); I guess nasty things could happen if I forget to
remount my ext3 filesystems appropiately.
I was thinking in modifying laptop-mode.sh to read /proc/mounts and
remount ext3 partitions with the appropiate parameter (on start and also
on stop). But I quite don't like this method, it seems "ugly" to me (and
does not solve the problem of mounting filesystems after
activating/deactivating laptop-mode).
Do you have a better idea? I know this last question is a userspace
problem, but AFAICS it's tightly related to the way laptop-mode is
implemented in the kernel (always suposing the answer to 3.- is yes).
Thanks in advance!
--
Kiko
next prev parent reply other threads:[~2003-12-27 10:57 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-24 5:33 [PATCH] laptop-mode for 2.6, version 2 Bart Samwel
2003-12-24 11:16 ` Jens Axboe
2003-12-24 15:25 ` [PATCH] laptop-mode for 2.6, version 3 Bart Samwel
2003-12-25 10:06 ` Arnaldo Carvalho de Melo
2003-12-25 15:12 ` [PATCH] laptop-mode for 2.6, version 4 + smart_spindown Bart Samwel
2003-12-25 17:04 ` John Bradford
2003-12-25 21:39 ` Bart Samwel
2003-12-27 10:57 ` Kiko Piris [this message]
2003-12-24 13:51 ` [PATCH] laptop-mode for 2.6, version 2 Hugang
2003-12-24 14:24 ` Nikita Danilov
2003-12-25 2:59 ` Hugang
[not found] ` <16362.43831.569086.825899@laputa.namesys.com>
2003-12-25 9:40 ` Hugang
2003-12-25 10:27 ` Nikita Danilov
2003-12-25 10:59 ` Hugang
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=20031227105700.GA3554@sacarino.pirispons.net \
--to=kernel@pirispons.net \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®