From owner-freebsd-questions@FreeBSD.ORG Wed Nov 9 00:23:58 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8D2D16A42C for ; Wed, 9 Nov 2005 00:23:58 +0000 (GMT) (envelope-from svein-freebsd-questions@theloosingend.net) Received: from signal.itea.ntnu.no (signal.itea.ntnu.no [129.241.190.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BDF243D45 for ; Wed, 9 Nov 2005 00:23:58 +0000 (GMT) (envelope-from svein-freebsd-questions@theloosingend.net) Received: from localhost (localhost [127.0.0.1]) by signal.itea.ntnu.no (Postfix) with ESMTP id CD36A33834 for ; Wed, 9 Nov 2005 01:23:56 +0100 (CET) Received: from maren.thelosingend.net (maren.math.ntnu.no [129.241.211.48]) by signal.itea.ntnu.no (Postfix) with SMTP for ; Wed, 9 Nov 2005 01:23:56 +0100 (CET) Received: (qmail 48012 invoked by uid 1001); 9 Nov 2005 01:23:55 +0100 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 9 Nov 2005 01:23:55 +0100 Date: Wed, 9 Nov 2005 01:23:55 +0100 (CET) From: Svein Halvor Halvorsen X-X-Sender: sveinhal@maren.thelosingend.net To: Ihsan Dogan In-Reply-To: <20051107132418.GA18485@dogan.ch> Message-ID: <20051109011958.N47613@maren.thelosingend.net> References: <48d803190511042350w3315444er34872cfcd1a6467e@mail.gmail.com> <20051105121723.152042d2@localhost> <48d803190511051652i36e5ab4dmedac4ba61f017c9@mail.gmail.com> <20051106133412.A36825@maren.thelosingend.net> <20051106152232.S44500@maren.thelosingend.net> <20051107132418.GA18485@dogan.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Cc: questions@freebsd.org Subject: Re: suspend works, but resume doesn't on Dell desktop X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2005 00:23:59 -0000 * Svein Halvor Halvorsen [2005-11-06 13:42 +0100] > > > When closing the lid on my laptop, while in X, and opening it again, the > > > ~50 topmost pixels are garbled and the entire view is shifted down. > > > Switching to console and back seem to fix it. Any takes? > > > > I fixed this by calling /etc/rc.lid trough devd and then calling > > vidcontrol in /etc/rc.lid. * Ihsan Dogan [2005-11-07 14:24 +0100] > Can you please provide me those entries? in /etc/devd.conf: notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; action "/etc/rc.lid $notify"; }; And /etc/rc.lid: #!/bin/sh sync && sync && sync if [ $1 = 0x00 ]; then logger -t Lid Close at `date +'%Y%m%d %H:%M:%S'` vidcontrol -s1