Thanks for the tip about hdparm -Y, looks like I had an old manpage sitting around.. OK, so I'm doing three things now in /etc/apm/event.d. One is 00hwclock (comes with apm). The second is xset dpms force suspend (this turns off the monitor if I type it by hand, for some reason it does nothing when the script runs it, although both are running as root (I think) and I do set the DISPLAY before running it in the script! The third is /sbin/hdparm -Y /dev/hda. Here's what the logs say when I type apm -s.
Sep 8 17:50:11 mi apmd[1744]: User Suspend Sep 8 17:50:13 mi kernel: apm: busy: Unable to enter requested state Sep 8 17:50:18 mi kernel: apm: busy: Unable to enter requested state Sep 8 17:50:21 mi kernel: hda: irq timeout: status=0xd0 { Busy } Sep 8 17:50:23 mi kernel: apm: busy: Unable to enter requested state Sep 8 17:50:24 mi kernel: ide0: reset: master: error (0x00?) What happens is, the disk shuts down (woo!), the screen fails to blank (suck..) and about two seconds later the disk, and everything else, starts up again. Any ideas? -chris On Fri, 8 Sep 2000, Julio Merino wrote: > On Fri, Sep 08, 2000 at 09:27:56AM -0700, Krzys Majewski wrote: > > > > Try installing the apm daemon (apmd), but I think it won't do these > > > things. > > > > Yeah I got the apm daemon, it's the debian/unstable version though, maybe > > I should get the latest sources? > > Don't know. apmd (as I know) is able to suspend and standby the > computer, but I don't notice any difference between both options. > > > > > > > The apm options I've configured are: > > > > > > [snip] > > > > > > > Ok, very close to my configuration... But when I simply suspend and I > > > try to reuse my computer, it COMPLETLY hangs. > > > > Correction: it randomly hangs. I remember that the last time I tried > this it "worked". I listened my computer beeping three times, but it > only closed the screen... > > > What's your configuration? > > CONFIG_APM=y > # CONFIG_APM_IGNORE_USER_SUSPEND is not set > # CONFIG_APM_DO_ENABLE is not set > # CONFIG_APM_CPU_IDLE is not set > CONFIG_APM_DISPLAY_BLANK=y > CONFIG_APM_IGNORE_SUSPEND_BOUNCE=y > CONFIG_APM_RTC_IS_GMT=y > # CONFIG_APM_ALLOW_INTS is not set > # CONFIG_APM_REAL_MODE_POWER_OFF is not set > > I'm running on an Asus P2L97 AGP motherboard, with PII processor. > > > > > When I type apm -s, one of two things happens: > > > > - The command pauses briefly, then decides to ignore me and returns to > > the command prompt. > > Doesn't happened to me. > > > > > - The system does indeed seem to stop. But the machine doesn't sound any > > quieter. The fan is still going and the hd's probably also. > > That's what happens to me... It shuts down the screen, but disks and > fans are still working... > > > > > > I tried to stop a drive (not the root linux one) and then I was unable > > > to wake it up and the system crashed... > > > > How did you try to do it? I've got /usr/sbin/hdparm -S 60 /dev/hda > > I think I did: hdparm -Y /dev/hdb > and I listened how the drive went down. But another time: I was unable > to wake it up again. > > > in /etc/rc.boot/ and the machine hasn't hung yet; then again I haven't > > really > > noticed the HD stopping either. Is there a test program which will > > stop the HD right away? > > > > In other news, my machine was hanging like crazy yesterday morning, > > but maybe this is because I was trying out the 2.4-test7 kernel and > > acpi. > > Don't know... I still use 2.2.16. > > Thanks! > > > > > -chris > > > > > > > > > > -- > > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null > > -- > Juli-Manel Merino Vidal > > Email: [EMAIL PROTECTED] > Homepage: http://jmmv.cjb.net >