[ltp] apm --standby and an other 'problem'

Patrick Wustmann linux-thinkpad@linux-thinkpad.org
Thu, 12 Feb 2004 19:16:18 +0100


Hello,

I've bookmarked this link - i haven't tried it yet, but i think i will do=
 it=20
soon:

http://web.cs.cmu.edu/~mukesh/hacks/spindown/t1.html

this is the last site of his document:
http://web.cs.cmu.edu/~mukesh/hacks/spindown/x152.html

hope it helps us to find at least the reason.

regards

pat

On Thursday 12 February 2004 18:44, Marius Gedminas wrote:
> Hi,
>
> On Thu, Feb 12, 2004 at 10:22:16AM +0100, Konstantin wrote:
> > apm --standby works fine for my T40, also with the keys Fn + F3, but
> > the sound stops playing, I don't know why the programms are stopped o=
n
> > standby. This must be a linux option, because it works under windows.
>
> You might take a look at /etc/apm/event.d/.  I have an 'alsa' script
> there that sends SIGSTOP to all processes that use the sound card on
> suspend.  I do not know if that also applies to standby.
>
> > The only thing I want is to use my T40 as mp3 player without running
> > the display all the time, what wastes the most battery power :(
>
> You can use tpctl (or the BIOS IIRC) to disable suspend on lid closure.
> Then when you close the lid the LCD will go off (nearly doubling batter=
y
> time) and the music will continue playing.
>
> > Another linux not thinkpad Problem:
> > If I use my thinkpad under terminal, the harddisk is quit and stays o=
n
> > standby mode, I hear not one sound of my thinkpad, but if I start
> > Xwindows(whatever xfce, kde, gnome) a process writes or read somethin=
g
> > of the hd, so it spins up every 30 seconds and then goes to standby
> > mode again. Yes this kill my nerves, the harddisk and the battery :(
> > No I do nothing on my laptop in this time and it's not sim(icq) or IR=
C
> > or Sylpheed(e-mail programm) or any MP3 player(not one is open or
> > running), because I tried it with an empty desktop and it's alway the
> > same problem :(
>
> I have the same problem.  Even in single user mode, with all daemons
> stopped and / mounted noatime, the disk would still spin up.
>
> Yesterday I tried laptop-mode which is part of 2.4.24.  (I had to locat=
e
> laptop-mode.sh on the Internet, since it was not present in
> /usr/src/linux/Documentation).  Did not help -- the disk would still
> spin up every 30 seconds.  Enabling /proc/sys/vm/block_dump showed that
> the process that did most of the waking up was kjournald.  I did not tr=
y
> single user mode this time.
>
> Could it be that kjournald is just hiding some other application that
> accesses my ext3 partition?  Is this just some journal commit that
> occurs every 30 seconds and can be tuned in /proc/sys?  I thought
> laptop-mode.sh would take care of everything.
>
> Marius Gedminas