Re: [TuxOnIce-devel] patch for 2.6.26

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kenneth Crudup
Date:  
CC: tuxonice-devel
Subject: Re: [TuxOnIce-devel] patch for 2.6.26
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