From owner-freebsd-questions@FreeBSD.ORG Wed Jul 7 18:19:09 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2550B16A4CE for ; Wed, 7 Jul 2004 18:19:09 +0000 (GMT) Received: from mynah.mail.pas.earthlink.net (mynah.mail.pas.earthlink.net [207.217.120.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15A3C43D46 for ; Wed, 7 Jul 2004 18:19:09 +0000 (GMT) (envelope-from welchsm@earthlink.net) Received: from [66.173.16.116] (helo=NitroPhys.welchsmnet.net) by mynah.mail.pas.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1BiH0d-0001kW-Hj; Wed, 07 Jul 2004 11:19:09 -0700 Received: from NitroPhys.welchsmnet.net (localhost [127.0.0.1]) i67IIXZC027259; Wed, 7 Jul 2004 13:18:33 -0500 (CDT) (envelope-from welchsm@localhost.welchsmnet.net) Received: (from welchsm@localhost)i67IIWB2027258; Wed, 7 Jul 2004 13:18:32 -0500 (CDT) (envelope-from welchsm) Date: Wed, 7 Jul 2004 13:18:32 -0500 From: Sean Welch To: duanewinner@att.net Message-ID: <20040707181832.GA27234@NitroPhys.welchsmnet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-ELNK-Trace: 15d86f98c8ef8acad780f4a490ca69564776905774d2ac4b33dc29cf8e80c0db4a70679ae7b3bac8350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.173.16.116 cc: freebsd-questions@FreeBSD.org Subject: APM and DRI lockups when suspending X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sean_Welch@alum.wofford.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jul 2004 18:19:09 -0000 Duane, there have always been issues with this aspect of APM. I have found it sufficient to run two X servers to handle the issue. Most of my software runs in an X session without DRI enabled and then when I want to run accelerated 3D I just start up another X session with DRI enabled. For example, this can be done by running the following command from an xterm in the first (normal, non-DRI session): startx -- :1 -xf86config XF86Config.dri & I've got DRI enabled in the XF86Config.dri file (which just resides under /etc/X11 along side the default config file) and this command starts up an X session on ttyv9 (alt-ctrl-F10). Be sure that you use a different window manager in your .xinitrc if you use either Gnome or KDE!! When I want to suspend, I just shut down the accelerated X session and then when I resume I can start it back up again without ill effects. I hope this helps! Sean > Does anybody know if there is a workaround for the problem with DRI > and > APM within X? > > If I load the DRI module in my XF86Config file, and attempt to > suspend > my laptop, the system freezes on resume, then reboots. > > If I comment out the line "Load dri" out of the Module section in > /etc/X11/XF86Config, all is well. > > But now I don't have direct rendering capability, correct? I don't > think > I have any apps yet that need direct rendering, so it probably isn't > a > huge deal (yet), but I would like to have it enable if possible. > > Does anybody know of a solution or simple workaround for this > problem? > > Thanks, > Duane Winner