From kenny@panix.com  Tue Jun 10 23:20:44 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.348721
Received: from mail.tuxonice.net (tuxonice.net [67.207.135.122])
	by crca.org.au (Postfix) with ESMTP id 8D6BA13808E
	for <tuxonice-devel@crca.org.au>; Tue, 10 Jun 2008 23:20:44 +0000 (UTC)
X-Bogosity: Ham, spamicity=0.061942
Received: from mail2.panix.com (mail2.panix.com [166.84.1.73])
	by mail.tuxonice.net (Postfix) with ESMTP id 7ED172311B8
	for <tuxonice-devel@lists.tuxonice.net>;
	Tue, 10 Jun 2008 23:20:43 +0000 (UTC)
Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89])
	by mail2.panix.com (Postfix) with ESMTP id EB6C134805
	for <tuxonice-devel@lists.tuxonice.net>;
	Tue, 10 Jun 2008 19:20:42 -0400 (EDT)
Received: from hp9800.local (nmd.sbx14005.costaca.wayport.net [98.96.79.230])
	by mailbackend.panix.com (Postfix) with ESMTP id A4B1B1DDF3
	for <tuxonice-devel@lists.tuxonice.net>;
	Tue, 10 Jun 2008 19:20:42 -0400 (EDT)
Date: Tue, 10 Jun 2008 16:20:36 -0700 (PDT)
From: Kenneth Crudup <kenny@panix.com>
To: tuxonice-devel@lists.tuxonice.net
Message-ID: <Pine.LNX.4.64.0806101554570.6723@hp9800.localdomain>
Errors-To: kenny@panix.com
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Subject: [TuxOnIce-devel] Gnome desktop screen's fade taking forever with
	ToI? Read this
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, 10 Jun 2008 23:20:44 -0000


This is all on an Ubuntu 8.04 ("Hardy") 64-bit box, but I suspect that
it'll apply to anyone who has the same problem I did where the screen-
saver fading out to black when you start to hibernate with ToI takes
nearly a *minute*, usually the 2nd time around.

Back when I was attempting to use ToI the first time, I'd run into a
couple of snags- (1) I'd hang on "Cleaning Up" on resume (which I solved
by switching my Firewire driver to the alternate kernel stack) and (2)
when the screensaver kicked in after you'd used the Gnome desktop to
initiate a hibernate or suspend-to-RAM it would fade very slowly, taking
a full *minute* before the hibernation process would kick in. I'd solved
that issue by switching to "xscreensaver" instead, but I missed having
the "dim screen on idle" that would happen when gnome-power-manager
would signal gnome-screensaver to do (via DBus).

I suspect that what was happening is that since the gnome-screensaver
is a seperate process, it was in the process of trying to fade the screen
long after Tux-On-Ice had taken control of the system and that's why
it was using 100% of the CPU, but that's only my guess.

I was about to go get the latest screensaver package and manually patch
it to disable fade-in/outs permanently, but since I've come to like
using package managers now (hey, it's nice to not have to keep up with
all the versions and dependencies!), I did a search for a PPA first.

Turns out that there's an alternate(?) repository for some of the gnome-
screensaver utils from Ted Gould; here's his PPA page:

  https://launchpad.net/~ted-gould/+archive

If you select the appropriate build/release and download his gnome-
screensaver packages (how you do that is up to you, but I've been
getting pretty comfortable with the Synaptics manager), you can take
advantage of a patch he's done, which disables fade-in/out on LTSP
machines. Move the file /usr/bin/gnome-screensaver to
/usr/bin/gnome-screensaver-orig, then put this in gnome-screensaver
instead:

----
#!/bin/bash
export LTSP_CLIENT=1
exec /usr/bin/gnome-screensaver-orig
----

Problem solved. If the screensaver thinks it's on one of those LTSP
machines (Linux Terminal Server Project) it won't attempt to fade (and
I think the fact that there's no option other than having to patch
the source to get what *should* be a checkbox-able option speaks to
the efficably of the gnome-screensaver development team ... :-\ )

Anyway, now I have "dim on idle" and the "supported" screensaver in
place (which means fewer hassles when an upgrade is pushed; I only
have to recreate this shell wrapper again).

	-Kenny

-- 
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

