Re: Video sleep on dell d600 (6.1-release)

Ulrich Spoerlein <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
Rich Winkel wrote:
> Sorry I've lost track of the attributions :)
> 
> > I think in the OP's case these are the same - I think (and he'll have to 
> > clarify) that he just wanted the screen to turn off when he closed the 
> > lid, right before it goes to sleep, and have the screen come on when he 
> > opens the lid.  Sounds like S1 is working fine for him otherwise (which 
> > I do believe to be true for D600's).
> 
> Correct, I just want the display to turn off when I close the lid.
> Browsing the web, it appears at least one person has gotten this
> working, but he didn't post the specifics.  I need to hunt up his address.

Well,

here's the solution I'm using:

/boot/loader.conf:
acpi_video_load="YES"

/etc/sysctl.conf:
hw.acpi.lid_switch_state=NONE
hw.acpi.video.lcd0.active=1

/etc/devd.conf:
notify 10 {
        match   "system"          "ACPI";
        match   "subsystem"       "Lid";
        action  "/sbin/sysctl hw.acpi.video.lcd0.active=$notify";
};

hth,
Ulrich Spoerlein
-- 
 PGP Key ID: 20FEE9DD				Encrypted mail welcome!
Fingerprint: AEC9 AF5E 01AC 4EE1 8F70  6CBD E76E 2227 20FE E9DD
Which is worse: ignorance or apathy?
Don't know. Don't care.
signature.asc (application/pgp-signature, 187 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQFElbVo524iJyD+6d0RAkGXAKCO0jLwLHdnSO4eMbZrXmsjorX4IQCeOxwb
9/kFcNOXzS4dTi4aCo6dENI=
=SLPx
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.