From owner-freebsd-stable Sat May 2 17:33:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA13679 for freebsd-stable-outgoing; Sat, 2 May 1998 17:33:05 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from cesit1.unifi.it (cesit1.unifi.it [150.217.1.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA13673 for ; Sat, 2 May 1998 17:32:57 -0700 (PDT) (envelope-from ugo@dsi.UNIFI.IT) Received: from aguirre.dsi.unifi.it by CESIT1.UNIFI.IT (PMDF V5.1-10 #23168) with SMTP id <01IWKX28SR3E0000PV@CESIT1.UNIFI.IT> for stable@FreeBSD.ORG; Sun, 3 May 1998 02:33:23 MET Received: from dsi.unifi.it (com4.unifi.it) by aguirre.dsi.unifi.it (4.1/SMI-4.1) id AA00704; Fri, 01 May 1998 00:27:12 +0200 Received: from pegasus.home.net (pegasus.home.net [192.168.1.3]) by dsi.unifi.it (8.8.8/8.8.8) with ESMTP id OAA27429; Fri, 01 May 1998 14:30:08 +0200 (MET DST envelope-from ugo) Received: (from ugo@localhost) by pegasus.home.net (8.8.8/8.8.7) id OAA00869; Fri, 01 May 1998 14:30:08 +0200 (MET DST) Date: Fri, 01 May 1998 14:30:08 +0200 (MET DST) From: Ugo Paternostro Subject: RE: apm In-reply-to: <19980427101124.A28649@matrix.42.org> To: Stefan `Sec` Zehl Cc: stable@FreeBSD.ORG Message-id: Organization: Not an organization MIME-version: 1.0 X-Mailer: XFMail 1.2 [p0] on FreeBSD Content-type: multipart/mixed; boundary="_=XFMail.1.2.p0.FreeBSD:980501143008:230=_" X-Priority: 3 (Normal) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk This message is in MIME format --_=XFMail.1.2.p0.FreeBSD:980501143008:230=_ Content-Type: text/plain; charset=us-ascii [moved from -mobile to -stable as I think no mobile computer has an ATX M/B :-)] On 27-Apr-98 Stefan `Sec` Zehl wrote about "apm": > I just bought a new Computer with an ATX Board inside. This board > supports apm. I installed 2.2.6-STABLE and enabled apm and all worked > fine, so far. However "halt -p" doesn't work, and i found no possibility It is not suppoted on -STABLE. You may want to try my patches, that implement "shutdown -h" soft power off (attached below). This requires an APM BIOS and an ATX M/B+PS. I'm running with this patches since 26th, and I found no problems. To apply the patches, cd /usr/src and issue a "patch for setting the 'power up on timer' feature, which i can access when > booting. Isn't that feature a BIOS related one? I mean: don't you have to instruct the BIOS about the time on which the machine will be powered on? I have a section on my BIOS that does that, but I didn't try it yet. BTW, my M/B is an ASUS SP98AGP-X, with Award BIOS. > Last, but not least, would it be better if I switched to 3.0 when doing > someting in that area ? Yes: I grabbed the soft power off code directly from -current... :-) > Sec Bye, UP --_=XFMail.1.2.p0.FreeBSD:980501143008:230=_ Content-Disposition: attachment; filename="apm-power-off.diff" Content-Transfer-Encoding: base64 Content-Description: apm-power-off.diff Content-Type: application/octet-stream; name=apm-power-off.diff; SizeOnDisk=2928 SW5kZXg6IHN5cy9pMzg2L2FwbS9hcG0uYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvbW50L3hjaGFu Z2VfMi9uY3ZzL3NyYy9zeXMvaTM4Ni9hcG0vYXBtLmMsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEu NDkuMi4yCmRpZmYgLXUgLXIxLjQ5LjIuMiBhcG0uYwotLS0gYXBtLmMJMTk5Ny8xMS8xMCAxNDo0 MDo0MAkxLjQ5LjIuMgorKysgYXBtLmMJMTk5OC8wNC8yNiAxNzo0NTo0NwpAQCAtMjI5LDYgKzIy OSwyMSBAQAogCXJldHVybiAwOwogfQogCisvKgorICogVHVybiBvZmYgdGhlIGVudGlyZSBzeXN0 ZW0uCisgKi8KK3ZvaWQKK2FwbV9wb3dlcl9vZmYodm9pZCkKK3sKKwl1X2xvbmcgZWF4LCBlYngs IGVjeDsKKworCWlmICghYXBtX3NvZ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CJUaGUgb3BlcmF0 aW5nIHN5c3RlbSBoYXMgaGFsdGVkLlxuIik7CiAJCXByaW50ZigiUGxlYXNlIHByZXNzIGFueSBr ZXkgdG8gcmVib290LlxuXG4iKTsK --_=XFMail.1.2.p0.FreeBSD:980501143008:230=_-- End of MIME message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message