LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 08-11-2004, 07:10 PM   #1
koody
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Rep: Reputation: 0
Question Syslog prevent harddrive from spinning down


Each time I do a

apm --standby

the following message is logged in /var/log/syslog:

apmd[1881]: Standing by now

This causes the hd to spin up. I have a - in front of /var/log/syslog in /etc/syslog.conf but it doesn't help since ext3 will sync after five seconds :-(

How can I prevent that message from being written to /var/log/syslog?
 
Old 08-12-2004, 11:54 PM   #2
koody
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
(bump) Noone has a solution? The problem bugs me more and more each day :-(
 
Old 08-14-2004, 11:08 AM   #3
n8behavior
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
in the july 2004 (Vol 6, Issue 7) Linux Magazine, Johathan Zdziarski writes:

"It's essential to shutdown syslog while on battery power, because as long as syslog is running, system messages will be written to disk..."

he goes on to mention that these services are good candidate to shutdown while running on battery: crond, autofs, cups, pcmcia, syslog. additionally he give many other ideas for mobile linux use.

if you do a

chkconfig --list

you can see what's running, do a little research, and determine which services you want to turn off while on battery. once you have you list, you can configure the apm or acpi (which ever you use) configuration scripts to do this for you. or just write up a little script to shut them down when you unplug. something like:

battery-mode

then the script does it's duty and you get to work longer...lol.

hope that helps...
 
Old 08-15-2004, 10:35 AM   #4
Entropius
LQ Newbie
 
Registered: Apr 2004
Posts: 29

Rep: Reputation: 15
Just a thought from a newbie:

Would it be possible to redirect the syslog log file (and some of that other stuff) to a ramdrive while the system is on battery power and the disk wants to spin down?

Then, as soon as the disk comes back up or power is restored, you can just copy the log back from the ramdrive to the HD.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Something spinning my HD? tormented_one Slackware 5 02-09-2005 03:34 PM
CD just stops spinning during install mscbuck Mandriva 5 08-12-2004 11:35 PM
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 09:33 AM
why is my disk spinning up? mattl Linux - General 2 06-07-2004 03:58 PM
52x CD-RW drive spinning up and down messenjah Linux - Hardware 4 09-03-2003 10:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 11:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration