* 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.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to