Re: acpi_video without suspending

From: Brad Davis <so14k_at_so14k.com>
Date: Fri, 16 Jul 2004 21:12:36 -0600
On Friday 16 July 2004 8:57 pm, Eric Anderson wrote:
> Brad Davis wrote:
> >On Friday 16 July 2004 6:56 am, Eric Anderson wrote:
> >>Brad Davis wrote:
> >>>Hi,
> >>>
> >>>I have a Dell Inspirion 5150 running current from a few weeks ago and
> >>> I'd like to set it up so when I close the lid it doesn't go into
> >>> suspend but just turns off the display. I have set
> >>>
> >>>hw.acpi.lid_switch_state=S0
> >>>
> >>>Which effectively stops the machine from suspending. But since the
> >>> display doesn't go off its putting out quite a bit of heat into a very
> >>> small inclosed space.
> >>
> >>You could use devd, like this:
> >>
> >>Put this in /etc/devd.conf (or change as necessary):
> >>notify 10 {
> >>        match "system"          "ACPI";
> >>        match "subsystem"       "Lid";
> >>        action                  "/etc/rc.lid $notify";
> >>};
> >>
> >>
> >>and have /etc/rc.lid contain:
> >>sync && sync && sync
> >>
> >>if [ $1 = 0x00 ]; then
> >>        logger -t Lid Close at `date +'%Y%m%d %H:%M:%S'`
> >>        ( sleep 2 ; ataidle -s 0 0) &
> >>        sysctl hw.acpi.video.lcd0.active=0
> >>else
> >>        logger -t Lid Open at `date +'%Y%m%d %H:%M:%S'`
> >>        sysctl hw.acpi.video.lcd0.active=1
> >>fi
> >>
> >>Make sure your lid state is '1' on bootup.. You can just force it to 1
> >>if you need to in sysctl.conf or something..
> >>
> >>Eric
> >
> >Hi Eric,
> >
> >I have done this, but nothing happens. I don't get any entries into syslog
> >after running devd -dD I get this:
> >
> >hole# devd -dD
> >Parsing /etc/devd.conf
> >ethernet-nic-regex=(an|ar|ath|aue|awi|bfe|bge|cm|cnw|cs|cue|dc|de|ed|el|em
> >|ep|
> > ex|fe|fxp|gem|gx|hme|ie|kue|lge|lnc|my|nge|pcn|ray|re|rl|rue|sf|sis|sk|sn
> >| snc|ste|ti|tl|tx|txp|vr|vx|wb|wi|xe|xl)[0-9]+
> >scsi-controller-regex=(adv|advw|aic|aha|ahb|ahc|ahd|bt|ct|iir|isp|mly|mpt|
> >ncv| nsp|stg|sym|wds)[0-9]+
> >Parsing files in /etc/devd
> >Parsing files in /usr/local/etc/devd
> >
> >How would I enable devd on boot? I didn't see anything in the /etc/rc*
> >scripts. I also don't see anything when I unplug the power to my laptop or
> >close the lid from the debug output of devd.
>
> Woops - forgot that step.. try adding this to /etc/rc.conf:
>
> devd_enable="YES"
>
> Does that help?

That works, not sure why it didn't show up in my grep. But my monitior doesn't 
shut off when I close the lid and nothing happens when I unplug the power 
cable. Nothing in the logs or anything that I can tell that devd is actually 
doing something. 


Regards,
Brad Davis
Received on Sat Jul 17 2004 - 01:12:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:02 UTC