Laptop Power Management

Laptop Power Management

Post by Bob Newe » Fri, 18 Nov 1994 14:13:29



On a Gateway Handbook 486 running Linux 1.1.62 with "noblink" patch, I'm
having trouble with disk power management.  Specifically, I've set
update/bdflush to a fairly long interval to supposedly cut down on disk
access to save on batteries.  However, when the disk shuts down, or tries to
do so, it immediately starts up again.  The behavior is as if hd.c receives
the interrupt, classes it as "unknown but ok", but someone is telling
update/bdflush to run because of the interrupt (which came from the apm
bios).

I'm not running the apmd daemon because it locks up the machine trying to do
an 'outb' to what I suppose should be the apm bios.

Can anyone email any help?  I'm baffled thus far.
thanks,
Bob Newell

 
 
 

Laptop Power Management

Post by Donald Beck » Wed, 23 Nov 1994 07:38:26




>On a Gateway Handbook 486 running Linux 1.1.62 with "noblink" patch, I'm
>having trouble with disk power management.  Specifically, I've set
>update/bdflush to a fairly long interval to supposedly cut down on disk
>access to save on batteries.

Don't do that.  If anything, you want bdflush to run more often so that that
dirty pages hit the disk ASAP rather than being slowly dribbled out.

Quote:>However, when the disk shuts down, or tries to
>do so, it immediately starts up again.  The behavior is as if hd.c receives
>the interrupt, classes it as "unknown but ok", but someone is telling
>update/bdflush to run because of the interrupt (which came from the apm
>bios).

Been there, done that.  Check /usr/adm/messages and you'll see the problem
is that the kernel is logging the power down interrupt as an unknown disk
event.  A solution is to change /etc/syslog.conf to not log those messages.
Alternatively you can get a new 1.1.6* kernel that ignores the disk spin
down interrupt.

Quote:>I'm not running the apmd daemon because it locks up the machine trying to do
>an 'outb' to what I suppose should be the apm bios.

I was never able to find a laptop where the apmd daemon would work.
I use my own APM interface code, but it's to grungy to release.  The APM
spec says that you have to call the APM BIOS in real mode to establish the
protected mode interface, and thereafter call it with both 16 and 32 bit
code segments.  Uhhhggg.  That means patches to boot/setup.S and
init/main.c, as well as hooks in a bunch of other files.  After all of this
the only thing I'm certain works correctly is the battery charge report in
/proc/apm.

--

USRA-CESDIS, Center of Excellence in Space Data and Information Sciences.
Code 930.5, Goddard Space Flight Center,  Greenbelt, MD.  20771
301-286-0882         http://cesdis.gsfc.nasa.gov/pub/people/becker/whoiam.html

 
 
 

1. laptop power management disabled by selection/Xfree86

My laptop (Sharp 6700, 386SLC25) has built-in power management that will turn
off the LCD display after a period of idle time. This works fine with DOS,
MS-Windows, and Linux without "selection". When selection is running in VC
mode, or when XFree86 is running, however, this feature is disabled.
I suspected that it has something to do with the trackball; but MS-windows
also uses trackball and has no problem.

Does anyone have similar problem, and/or know how to solve it? Thanks!
(I'm using Slackware 1.5 distribution, if this matters.)

--
   Eugene Ding                  Office: 4803 BH
   Computer Science Dept.       Tel: 310-206-2279
   UCLA                         Fax: 310-825-2273

2. Getting a Unique ID from hardware?

3. Laptop Power Management - a Start (Western Digital chips only)

4. Update the PC parallel port driver for new module API.

5. Laptop Power Management breaks X86

6. Reveal 4X GCDR540 CDROM Driver?

7. Laptop power management issues

8. Linux and system commander

9. laptop power management

10. Power Management: exiting minicom disables power management?

11. power management for TI Travelmate laptop?

12. Display power management on a laptop

13. Power management for TI Travelmate laptop?