From kenny@panix.com  Tue Jul 15 22:46:52 2008
Return-Path: <kenny@panix.com>
X-Original-To: tuxonice-devel@crca.org.au
Delivered-To: tuxonice-devel@crca.org.au
X-Bogosity: Ham, spamicity=0.000000
Received: from mail.tuxonice.net (tuxonice.net [67.207.135.122])
	by crca.org.au (Postfix) with ESMTP id A9924138004
	for <tuxonice-devel@crca.org.au>; Tue, 15 Jul 2008 22:46:52 +0000 (UTC)
X-Bogosity: Ham, spamicity=0.000000
Received: from mail2.panix.com (mail2.panix.com [166.84.1.73])
	by mail.tuxonice.net (Postfix) with ESMTP id 04E51230C2C
	for <tuxonice-devel@lists.tuxonice.net>;
	Tue, 15 Jul 2008 22:46:51 +0000 (UTC)
Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89])
	by mail2.panix.com (Postfix) with ESMTP id C16513480C
	for <tuxonice-devel@lists.tuxonice.net>;
	Tue, 15 Jul 2008 18:46:51 -0400 (EDT)
Received: from 99-203-87-67.area1.spcsdns.net (99-203-87-67.area1.spcsdns.net
	[99.203.87.67])
	by mailbackend.panix.com (Postfix) with ESMTP id 120BFDB96
	for <tuxonice-devel@lists.tuxonice.net>;
	Tue, 15 Jul 2008 18:46:50 -0400 (EDT)
Date: Tue, 15 Jul 2008 15:46:55 -0700 (PDT)
From: Kenneth Crudup <kenny@panix.com>
cc: tuxonice-devel@lists.tuxonice.net
In-Reply-To: <1216157653.17202.7.camel@nigel-laptop>
Message-ID: <Pine.LNX.4.64.0807151436190.28533@hp9800.localdomain>
References: <20080715194823.GA11717@dose.home.local> 
	<b637ec0b0807151258g20cf0e73u8a0b168f11878b12@mail.gmail.com> 
	<20080715202124.GA2549@x61>
	<Pine.LNX.4.64.0807151343250.28533@hp9800.localdomain>
	<1216157653.17202.7.camel@nigel-laptop>
Errors-To: kenny@panix.com
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Subject: Re: [TuxOnIce-devel] patch for 2.6.26
X-BeenThere: tuxonice-devel@lists.tuxonice.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TuxOnIce Development Discussion <tuxonice-devel.lists.tuxonice.net>
List-Unsubscribe: <http://lists.tuxonice.net/mailman/listinfo/tuxonice-devel>, 
	<mailto:tuxonice-devel-request@lists.tuxonice.net?subject=unsubscribe>
List-Archive: <http://lists.tuxonice.net/pipermail/tuxonice-devel>
List-Post: <mailto:tuxonice-devel@lists.tuxonice.net>
List-Help: <mailto:tuxonice-devel-request@lists.tuxonice.net?subject=help>
List-Subscribe: <http://lists.tuxonice.net/mailman/listinfo/tuxonice-devel>,
	<mailto:tuxonice-devel-request@lists.tuxonice.net?subject=subscribe>
X-List-Received-Date: Tue, 15 Jul 2008 22:46:52 -0000

On Wed, 16 Jul 2008, Nigel Cunningham wrote:

> UseEvents true? How did you find out about that?

Reading thru the .../usr/share/doc/README.txt file that comes with each
unpacked NVidia driver (I'm currently up to 177.13). I do that every now
and then, and found this:

----
Option "UseEvents" "boolean"

    Enables the use of system events in some cases when the X driver is
    waiting for the hardware. The X driver can briefly spin through a tight
    loop when waiting for the hardware. With this option the X driver instead
    sets an event handler and waits for the hardware through the 'poll()'
    system call. Default: the use of the events is disabled.
----

Before 2.6.26-rc8(? I think that's the first GIT I'd started using),
this didn't work, ending up with a black, unresponsive screen on resume.

There's a few other things you can put (or try; it depends on your
BIOS, NVidia card and Xorg version) in your xorg to speed things up or
make them more power efficient; here's what I use:

-----
Section "Device"
    Identifier     "Configured Video Device"
    Driver         "nvidia"
    Option         "PixmapCacheSize" "2500000"
    Option         "AddARGBGLXVisuals" "True"
    Option         "TripleBuffer" "True" # Experimental
    Option         "BackingStore" "True" # Experimental
    Option         "UseEvents" "True"
    Option         "Coolbits" "1"
    Option         "OnDemandVBlankInterrupts" "True"
EndSection
----

"AddARGBGLXVisuals", "TripleBuffer" and "BackingStore" were recommended
by some folks in the NVnews Linux forum[1], "CoolBits" allows some extra
stuff (i.e. over/underclocking) to be enabled in the NVidia Control
Panel- like "OnDemandVBlankInterrupts" which is nice for laptops, 'cause
if you have compiz' Vblank Sync" turned off as well, you generate 60 fewer
C3/C4 sleep-waking IRQ wakeups/sec, useful when running on battery.

	-Kenny

[1] - http://www.nvnews.net/vbulletin/forumdisplay.php?f=14
-- 
Kenneth R. Crudup  Sr. SW Engineer, Scott County Consulting, Los Angeles
O: 3630 S. Sepulveda Blvd. #138, L.A., CA 90034-6809      (888) 454-8181

