unfreeze DCON when Sugar UI is (almost) ready to show

Marco Pesenti Gritti wrote:

> we need to get the hardware-manager part of this in before, otherwise we
> will traceback on startup.

Sorry, I sent the patches in reverse order.  Did you get
the next one?

>> +        # Unfreeze the display when it's stable
>> +        get_hardware_manager().set_dcon_freeze(0)
>> +
>
> Is this actually working? You need something like:
>
> from hardware import hardwaremanager
> ....

Oh, and actually I had that part too, but I've lost this hunk
while copying them to the sandbox.  That's what you get for
editing code right on the target.

Updated patch attached.

From b7bfbb7cc628afe29734557f56d92044d2d336d4 Mon Sep 17 00:00:00 2001
From: Bernardo Innocenti <bernie@codewiz.org>
Date: Wed, 13 Jun 2007 19:56:22 -0400
Subject: [PATCH] unfreeze DCON when Sugar UI is (almost) ready to show
Organization: One Laptop Per Child

This is part of a masterplan to implement #621 .
This commit is contained in:
Bernardo Innocenti
2007-06-14 08:49:30 -04:00
committed by Marco Pesenti Gritti
parent e6e649419a
commit 5c884c1435
2 changed files with 11 additions and 0 deletions
+6
View File
@@ -69,6 +69,12 @@ class HardwareManager(object):
logging.error('Cannot mute the audio channel')
self._mixer.set_mute(self._master, mute)
def set_dcon_freeze(self, frozen):
if not self._service:
return
self._service.set_dcon_freeze(frozen)
def set_display_mode(self, mode):
if not self._service:
return