Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Nov 2005 01:23:55 +0100 (CET)
From:      Svein Halvor Halvorsen <svein-freebsd-questions@theloosingend.net>
To:        Ihsan Dogan <ihsan@dogan.ch>
Cc:        questions@freebsd.org
Subject:   Re: suspend works, but resume doesn't on Dell desktop
Message-ID:  <20051109011958.N47613@maren.thelosingend.net>
In-Reply-To: <20051107132418.GA18485@dogan.ch>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

* 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 </dev/console
		# ( sleep 2 ; ataidle -s 0 0) & 
	else 
		logger -t Lid Open at `date +'%Y%m%d %H:%M:%S'` 
		vidcontrol -s9 </dev/console
	fi


ataidle don't compile on 6.0, so I've commented out that line.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051109011958.N47613>