From owner-freebsd-mobile Mon Nov 13 18:27: 3 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from hand.dotat.at (sfo-gw.covalent.net [207.44.198.62]) by hub.freebsd.org (Postfix) with ESMTP id D502C37B4C5; Mon, 13 Nov 2000 18:26:59 -0800 (PST) Received: from fanf by hand.dotat.at with local (Exim 3.15 #3) id 13vVnm-0004sh-00; Tue, 14 Nov 2000 02:26:26 +0000 Date: Tue, 14 Nov 2000 02:26:26 +0000 From: Tony Finch To: John Baldwin Cc: Michael Lucas , mobile@FreeBSD.org Subject: Re: laptop recommendations Message-ID: <20001114022626.H25050@hand.dotat.at> References: <20001110131753.A62744@blackhelicopters.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: Organization: Covalent Technologies, Inc Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org John Baldwin wrote: > >[Dell Inspiron 5000e] One known problem is that apm support won't >work under FreeBSD because of a bug in the BIOS. :-( Is this the same as the bug in the Latitude CPx that locks up the machine when suspending from X? I have a work-around for that. Tony. -- en oeccget g mtcaa f.a.n.finch v spdlkishrhtewe y dot@dotat.at eatp o v eiti i d. fanf@covalent.net /* * zzz.c: a wrapper around apm(8) that works on my dodgy laptop * * (C) 2000 Tony Finch */ static const char *const cvsid = "$Header: /cvs/fanf/zzz/zzz.c,v 1.1.1.1 2000/06/22 08:43:37 fanf Exp $"; #include #include #include #include #include #include #include int main() { int fd, vt, status; fd = open("/dev/vga", O_RDONLY); if(fd < 0) err(1, "open /dev/vga"); if(ioctl(fd, VT_GETACTIVE, &vt) < 0) err(1, "ioctl VT_GETACTIVE"); if(ioctl(fd, VT_ACTIVATE, 1) < 0) err(1, "ioctl VT_ACTIVATE"); switch(fork()) { case -1: err(1, "fork"); case 0: execl("/usr/sbin/apm", "apm", "-z", NULL); err(1, "exec apm -z"); default: wait(&status); if(!WIFEXITED(status) || WEXITSTATUS(status)) errx(1, "apm -z failed"); } sleep(3); if(ioctl(fd, VT_ACTIVATE, vt) < 0) err(1, "ioctl VT_ACTIVATE"); exit(0); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message