Minimal sample custom devd.conf ( was Re: IBM T30 and suspend/resume capability )

Fabian Keil freebsd-listen at fabiankeil.de
Mon Aug 28 12:17:20 UTC 2006


Norberto Meijome <freebsd at meijome.net> wrote:

> On Thu, 24 Aug 2006 17:14:01 +0200
> Fabian Keil <freebsd-listen at fabiankeil.de> wrote:

> > BTW: what exactly does your devd script do?
> 
> Nothing major really... I was getting some crashes on resume, and the default
> acpi_ibm behaviours for the fn- keys weren't too much of my liking... so what I
> did (for the archives... hopefully it'll be useful for someone else)

It was indeed useful, thanks.

> 4) Created /home/betom/bin/do_acpi_suspend.sh as follows:
> ----
> #!/usr/local/bin/bash
> 
> # switch to first VC
> vidcontrol -s 1 < /dev/ttyv0
> 
> # make sure we sync all the disk buffers ... in case we die on resume, this
> minimises problems with fsck
> sync 
> sync
> sleep 3
> sync
> sync
> sleep 1
> sync
> zzz

Somehow this seems to fix the "Xorg frozen after resume" problem
that I experienced since the update from 5.X to 6.X.

Fabian
-- 
http://www.fabiankeil.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-mobile/attachments/20060828/371d64fd/signature.pgp


More information about the freebsd-mobile mailing list