Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jan 2004 05:33:16 +0000
From:      Randy Bush <randy@psg.com>
To:        James Green <jim@thebadger.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: API to turn off the display
Message-ID:  <E1Amnkq-000BMN-OW@psg.com>
References:  <1075401074.2660.106.camel@mobius.int.thebadger.org> <bvbnk1$56h$1@sea.gmane.org> <1075418369.2662.170.camel@mobius.int.thebadger.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> I have found that too. I did most of my testing over ssh, until I setup
> a serial login console (boot -h, and appropriate line in /etc/ttys) , so
> I could see any messages that I might be missing... and I could not
> reproduce the hang. Suspended without any problem at all. Tried booting 
> with the -h and I could reproduce the hang every time.
> 
> Recompiled the kernel with:
> options SC_NO_SUSPEND_VTYSWITCH
> 
> and now it all works!
> 
> I added to rc.suspend:
> 
> xset -display :0 dpms force off
> sleep 3
> sysctl hw.acpi.video.lcd0.active=0
> sleep 1
> sysctl hw.acpi.cpu.throttle_state=1
> 
> and to rc.resume:
> 
> sysctl hw.acpi.cpu.throttle_state=8
> xset -display :0 dpms force on
> sysctl hw.acpi.video.lcd0.active=1
> 
> The order of DPMS and ACPI is important. This works on both the console
> and in X. Next up is to add in ataidle...

this helps a LOT.  but ...

i can suspend once and resume once.  after that, it will not suspend
with lid or button.

randy



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1Amnkq-000BMN-OW>