From owner-freebsd-mobile@FreeBSD.ORG Tue May 29 06:10:06 2007 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D7F4B16A478 for ; Tue, 29 May 2007 06:10:06 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from gaia.nimnet.asn.au (nimbin.lnk.telstra.net [139.130.45.143]) by mx1.freebsd.org (Postfix) with ESMTP id 561B513C487 for ; Tue, 29 May 2007 06:10:04 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (smithi@localhost) by gaia.nimnet.asn.au (8.8.8/8.8.8R1.5) with SMTP id QAA03087; Tue, 29 May 2007 16:09:58 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Tue, 29 May 2007 16:09:57 +1000 (EST) From: Ian Smith To: Norberto Meijome In-Reply-To: <20070529140309.2a89dced@localhost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-mobile@freebsd.org Subject: Re: Working quite well : xorg7.2, DRI, suspend, Radeon Mobility X600 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2007 06:10:06 -0000 On Tue, 29 May 2007, Norberto Meijome wrote: > On Mon, 28 May 2007 22:38:33 +1000 > Norberto Meijome wrote: > > > Suspend and resume work fine, with DRI inclusive - it is a single core CPU ( I > > believe there are still issues with suspend/resume with dual cores. > > Ian Smith reminded me of some previous postings I made on this (august 2006). > with xorg 7.2 I made some slight changes to the my suspend script, basically i > dont switch back to VT1 before sending zzz - it works fine. Resuming on text > mode seemed to be corrupting video RAM too (more tests needed). > > relevant sysctls that are working ok currently > > --- > # Should prevent freezing in X when doing suspend > ## for TOSHIBA A2, NOT THINKPAD > ## hw.syscons.sc_no_suspend_vtswitch=1 > > # Fixes resume on RELENG_6 > hw.acpi.reset_video=1 > --- FWIW: for my T23 (6.1-R, xorg 6.9) to work reliably with suspend/resume from either a vty or from X I needed hw.syscons.sc_no_suspend_vtswitch=1 hw.acpi.reset_video=0 but with no mods to rc.{suspend,resume} however after quitting X the screen was (and still sometimes? is) blank, as you described elsewhere recently; things 'work' but with no video. In my case loading VESA helped, as setting any of the vtys with (say) vidcontrol 80x30 meant that vty would later display correctly (and after selecting that one, so would the others still at the default 80x24) but if I'd neglected to do that before starting X (I use startx), running this particularly weird script works to restore the text mode vtys: % cat ~/bin/fixme #!/bin/sh # strangely enough, this invalid mode restores vttyX with the error message: # vidcontrol: cannot activate raster display: Inappropriate ioctl for device vidcontrol VESA_800x600 At least I can reliably type 'fixme' blind .. there's bound to be a more elegant fix, but this gets me back on the road .. Cheers, Ian