Thanks, but no joy for now.
I compiled apmd for pentium and put it in an extension but it does not detect the power button. PC just halts without giving any chance to OS to shutdown. I also tried all combination of apm= without luck (apm=on apm=power-off apm=smp apm=realmode-power-off). The machine does not have an ACPI BIOS so APM is the only option. It is strange because I'm almost sure the old slackware installation was able to shut it down.
wrt detecting power button hit:
Reading on the internet, people suggest that it depends on BIOS how the power button behaves. I obviously need to play with the bios options to see if anything can be changed. Unfortunately I see only one suspicious option - running windows 95 which is already enabled. If there is no way to cahnge power button behavior from BIOS I guess I'm out of luck because BIOS is not sending an APM event but just shuts down
I can't remember how the previous slackware installation handled that... and not doing to reinstall
Attaching apm.tcz 3.2.2 built for pentium arch if anybody needs it. Should work with any version of TC because binaries are static.
Here's how to build:
- download sources from debian (google for: apmd debian)
- extract sources, debian patch didn't apply cleanly so didin't use it
- vi Makefile and change PREFIX=/urs/local/ and DESTDIR=/tmp/apm and PROXY_DIR=$(PREFIX)/etc
- in the Makefile apply standard CFLAGS=-march=486 -mtune=686 -Os -pipe
- make && make install
- cd /tmp/apm
- mksquashfs ./ ../apm.tcz -all-root
- /tmp/apm.tcz is the package
You still need an apmd_proxy script though, you may take one from some distro like debian but it expects scripts in /etc/ instead of /usr/local/etc but sed does just fine
The attached package does not contain a proxy script. I crafted a simple script manually just to check how apmd calls it but before I have the power button event propagated as an APM event, apmd is useless to me.
P.S. it's incredibly easy to create a TC package, very nice!
[EDIT]: Removed attachment due to forum policy violation. Rich