[Sugar-devel] [PATCH] Make initial DCON unfreeze conditional on the presence of a DCON.
Sascha Silbe
sascha-ml-ui-sugar-devel at silbe.org
Sun Jun 27 15:38:49 EDT 2010
Excerpts from Daniel Drake's message of Sun Jun 27 18:30:02 +0200 2010:
> On 27 June 2010 11:21, Sascha Silbe <sascha-ml-ui-sugar-devel at silbe.org> wrote:
> > Does anyone use (or is going to use) OHM with Sugar > 0.88? If not, we should
> > just throw out this code - powerd doesn't provide the OHM API.
> powerd could implement it trivially, and should. (with a simple binary
> using dbus activation)
> The lack of this functionality causes the XO-1 bootup sequence to be
> uncomfortably interrupted with a black screen when powerd unfreezes
> too early.
No disagreement here. But if we touch the code (on the Sugar side), it
should be to make it more hardware-agnostic, not less. While OHM itself
is XO-specific, any software can implement its API. Adding a check for a
sysfs file restricts the functionality to the XO hardware.
For reference:
Gnome-session (version 2.30) sends a SessionRunning signal [2] to the
D-Bus session bus [1].
Ubuntu 10.04 uses GDM scripts to emit an Upstart signal:
root at elaine:/# tail -n 1 /etc/gdm/PreSession/Default
/sbin/initctl -q emit desktop-session-start DISPLAY_MANAGER=gdm
Sascha
[1] http://live.gnome.org/SessionManagement/GnomeSession#Relationship_to_D-Bus_Session_Bus
[2] http://people.gnome.org/~mccann/gnome-session/docs/gnome-session.html#org.gnome.SessionManager::SessionRunning
[3] http://ubuntuforums.org/archive/index.php/t-1299587.html
--
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100627/bc7cdd5c/attachment.pgp
More information about the Sugar-devel
mailing list