Re: [sugar] Display warnings in sugar

2008-07-17 Thread Tomeu Vizoso
On Thu, Jul 17, 2008 at 2:27 AM, C. Scott Ananian [EMAIL PROTECTED] wrote:
 2008/7/16 Eben Eliason [EMAIL PROTECTED]:
 Two answers:
 similar issues.  This is going to be handled by the notification system,
 which is in its infancy in the upcoming 8.2 release, but should mature and

 I hope our alert system will use the freedesktop.org standard:
  http://www.galago-project.org/specs/notification/index.php
 It is widely used in Gnome, and when I last reviewed it seems to be a
 solid and capable spec.

 I believe that was the plan of record in previous conversations; I
 hope I'm not mistaken.

What we have implemented now is some basic notifications generated and
consumed in the shell, so we haven't added any public API for now.

The interfaces in that spec look quite good, although perhaps would
benefit from a simpler, alternative API that also abstracts the D-Bus
stuff. Perhaps rainbow should do some rate limiting or permissions
checking, not sure.

Thanks for the comment,

Tomeu
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Display warnings in sugar

2008-07-17 Thread Emiliano Pastorino
Thanks for all your answers.
The thing is we're having some trouble here in Uruguay with xos that run out
of disk space. Kids download lots of activities, take lots of pictures and
videos and they manage to use all free space they have. When that happens,
it seems that sugar won't load in some cases or takes too long to do it.
That's why we want to give some kind of warning when they have used, I don't
know, 95% of disk space or so, so they can delete some stuff before
everything crashes.
We'll try to figure out something, but help will be appreciated!

On Thu, Jul 17, 2008 at 6:21 AM, Tomeu Vizoso [EMAIL PROTECTED] wrote:

 On Thu, Jul 17, 2008 at 2:27 AM, C. Scott Ananian [EMAIL PROTECTED]
 wrote:
  2008/7/16 Eben Eliason [EMAIL PROTECTED]:
  Two answers:
  similar issues.  This is going to be handled by the notification system,
  which is in its infancy in the upcoming 8.2 release, but should mature
 and
 
  I hope our alert system will use the freedesktop.org standard:
   http://www.galago-project.org/specs/notification/index.php
  It is widely used in Gnome, and when I last reviewed it seems to be a
  solid and capable spec.
 
  I believe that was the plan of record in previous conversations; I
  hope I'm not mistaken.

 What we have implemented now is some basic notifications generated and
 consumed in the shell, so we haven't added any public API for now.

 The interfaces in that spec look quite good, although perhaps would
 benefit from a simpler, alternative API that also abstracts the D-Bus
 stuff. Perhaps rainbow should do some rate limiting or permissions
 checking, not sure.

 Thanks for the comment,

 Tomeu
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel




-- 
Emiliano Pastorino
LATU - Plan Ceibal
Av. Italia 6201 CP: 11500, Montevideo, Uruguay
Tel: (598 2) 601 3724 int.: 469
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Display warnings in sugar

2008-07-17 Thread Tomeu Vizoso
Hi Emiliano,

we have this right now: http://wiki.laptop.org/go/Designs/Frame#03 So
in the 8.2.0 release you can trust to have an indication of how much
space is available.

About having a notification to popup when space runs low, you should
enter a enhancement request in trac. Perhaps too late to get in 8.2.0
but could be in a later release for sure.

Regards,

Tomeu

On Thu, Jul 17, 2008 at 3:27 PM, Emiliano Pastorino
[EMAIL PROTECTED] wrote:
 Thanks for all your answers.
 The thing is we're having some trouble here in Uruguay with xos that run out
 of disk space. Kids download lots of activities, take lots of pictures and
 videos and they manage to use all free space they have. When that happens,
 it seems that sugar won't load in some cases or takes too long to do it.
 That's why we want to give some kind of warning when they have used, I don't
 know, 95% of disk space or so, so they can delete some stuff before
 everything crashes.
 We'll try to figure out something, but help will be appreciated!

 On Thu, Jul 17, 2008 at 6:21 AM, Tomeu Vizoso [EMAIL PROTECTED] wrote:

 On Thu, Jul 17, 2008 at 2:27 AM, C. Scott Ananian [EMAIL PROTECTED]
 wrote:
  2008/7/16 Eben Eliason [EMAIL PROTECTED]:
  Two answers:
  similar issues.  This is going to be handled by the notification
  system,
  which is in its infancy in the upcoming 8.2 release, but should mature
  and
 
  I hope our alert system will use the freedesktop.org standard:
   http://www.galago-project.org/specs/notification/index.php
  It is widely used in Gnome, and when I last reviewed it seems to be a
  solid and capable spec.
 
  I believe that was the plan of record in previous conversations; I
  hope I'm not mistaken.

 What we have implemented now is some basic notifications generated and
 consumed in the shell, so we haven't added any public API for now.

 The interfaces in that spec look quite good, although perhaps would
 benefit from a simpler, alternative API that also abstracts the D-Bus
 stuff. Perhaps rainbow should do some rate limiting or permissions
 checking, not sure.

 Thanks for the comment,

 Tomeu
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel



 --
 Emiliano Pastorino
 LATU - Plan Ceibal
 Av. Italia 6201 CP: 11500, Montevideo, Uruguay
 Tel: (598 2) 601 3724 int.: 469
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Display warnings in sugar

2008-07-17 Thread Eben Eliason
On Thu, Jul 17, 2008 at 10:50 AM, Tomeu Vizoso [EMAIL PROTECTED]
wrote:

 Hi Emiliano,

 we have this right now: http://wiki.laptop.org/go/Designs/Frame#03 So
 in the 8.2.0 release you can trust to have an indication of how much
 space is available.

 About having a notification to popup when space runs low, you should
 enter a enhancement request in trac. Perhaps too late to get in 8.2.0
 but could be in a later release for sure.


Right, we absolutely need this.  Hopefully in the future this will improve
when we have robust backup/restore integrated with the Journal, so that old
and unused Journal entries can fall off the machine over time and keep
space free.  We'll still need the alert, of course; the notification system
just wasn't quite ready in time for 8.2.0.  A ticket would be appreciated
(assign to interface-design for now).  Thanks!

- Eben




 Regards,

 Tomeu

 On Thu, Jul 17, 2008 at 3:27 PM, Emiliano Pastorino
 [EMAIL PROTECTED] wrote:
  Thanks for all your answers.
  The thing is we're having some trouble here in Uruguay with xos that run
 out
  of disk space. Kids download lots of activities, take lots of pictures
 and
  videos and they manage to use all free space they have. When that
 happens,
  it seems that sugar won't load in some cases or takes too long to do it.
  That's why we want to give some kind of warning when they have used, I
 don't
  know, 95% of disk space or so, so they can delete some stuff before
  everything crashes.
  We'll try to figure out something, but help will be appreciated!
 
  On Thu, Jul 17, 2008 at 6:21 AM, Tomeu Vizoso [EMAIL PROTECTED]
 wrote:
 
  On Thu, Jul 17, 2008 at 2:27 AM, C. Scott Ananian [EMAIL PROTECTED]
  wrote:
   2008/7/16 Eben Eliason [EMAIL PROTECTED]:
   Two answers:
   similar issues.  This is going to be handled by the notification
   system,
   which is in its infancy in the upcoming 8.2 release, but should
 mature
   and
  
   I hope our alert system will use the freedesktop.org standard:
http://www.galago-project.org/specs/notification/index.php
   It is widely used in Gnome, and when I last reviewed it seems to be a
   solid and capable spec.
  
   I believe that was the plan of record in previous conversations; I
   hope I'm not mistaken.
 
  What we have implemented now is some basic notifications generated and
  consumed in the shell, so we haven't added any public API for now.
 
  The interfaces in that spec look quite good, although perhaps would
  benefit from a simpler, alternative API that also abstracts the D-Bus
  stuff. Perhaps rainbow should do some rate limiting or permissions
  checking, not sure.
 
  Thanks for the comment,
 
  Tomeu
  ___
  Devel mailing list
  Devel@lists.laptop.org
  http://lists.laptop.org/listinfo/devel
 
 
 
  --
  Emiliano Pastorino
  LATU - Plan Ceibal
  Av. Italia 6201 CP: 11500, Montevideo, Uruguay
  Tel: (598 2) 601 3724 int.: 469

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Display warnings in sugar

2008-07-17 Thread C. Scott Ananian
On Thu, Jul 17, 2008 at 5:21 AM, Tomeu Vizoso [EMAIL PROTECTED] wrote:
 On Thu, Jul 17, 2008 at 2:27 AM, C. Scott Ananian [EMAIL PROTECTED] wrote:
 I hope our alert system will use the freedesktop.org standard:
  http://www.galago-project.org/specs/notification/index.php
 It is widely used in Gnome, and when I last reviewed it seems to be a
 solid and capable spec.

 The interfaces in that spec look quite good, although perhaps would
 benefit from a simpler, alternative API that also abstracts the D-Bus
 stuff. Perhaps rainbow should do some rate limiting or permissions
 checking, not sure.

Sure, wrap the actual DBus calls with a simplied sugar/python method
if you like, but *please* let's implement a listener for that API so
that unmodified applications can interact sensibly with Sugar, and so
that our system tools  activities can interoperate with non-Sugar
window managers.

Similarly, we should really implement that standard freedesktop.org
startup notification spec, so we can get sensible notifications and
icons for 'ordinary' applications.
 --scott

-- 
 ( http://cscott.net/ )
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Display warnings in sugar

2008-07-17 Thread Emiliano Pastorino
Thanks, Michael!
I was just trying that, but I was missing the XAUTHORITY variable.
I think that's going to do the job by now.


On Thu, Jul 17, 2008 at 4:39 PM, Michael Stone [EMAIL PROTECTED] wrote:

 On Thu, Jul 17, 2008 at 10:27:21AM -0300, Emiliano Pastorino wrote:

 Emiliano,

 I'm not sure of the right way to help you in the long term, but if you
 want a quick hack, you might try something like:

  1. Install a cronjob that runs every few minutes.  2. When it runs, it
 should check the available space.  3. If it concludes that space is low, pop
 up a warning.

 Warnings can be simple X or pygtk programs (see the 'dialog' Linux
 scripts for ideas). To get this hooked up to the running X display,
 you'll need to set some environment variables:

  DISPLAY=:0
  XAUTHORITY=/home/olpc/.Xauthority

 Ask if you need more help.

 Michael




-- 
Emiliano Pastorino
LATU - Plan Ceibal
Av. Italia 6201 CP: 11500, Montevideo, Uruguay
Tel: (598 2) 601 3724 int.: 469
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Display warnings in sugar

2008-07-17 Thread Tomeu Vizoso
On Thu, Jul 17, 2008 at 9:44 PM, C. Scott Ananian [EMAIL PROTECTED] wrote:
 On Thu, Jul 17, 2008 at 5:21 AM, Tomeu Vizoso [EMAIL PROTECTED] wrote:
 On Thu, Jul 17, 2008 at 2:27 AM, C. Scott Ananian [EMAIL PROTECTED] wrote:
 I hope our alert system will use the freedesktop.org standard:
  http://www.galago-project.org/specs/notification/index.php
 It is widely used in Gnome, and when I last reviewed it seems to be a
 solid and capable spec.

 The interfaces in that spec look quite good, although perhaps would
 benefit from a simpler, alternative API that also abstracts the D-Bus
 stuff. Perhaps rainbow should do some rate limiting or permissions
 checking, not sure.

 Sure, wrap the actual DBus calls with a simplied sugar/python method
 if you like, but *please* let's implement a listener for that API so
 that unmodified applications can interact sensibly with Sugar, and so
 that our system tools  activities can interoperate with non-Sugar
 window managers.

 Similarly, we should really implement that standard freedesktop.org
 startup notification spec, so we can get sensible notifications and
 icons for 'ordinary' applications.

Yes, what you asked for is what we aim for ;)

Regards,

Tomeu
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Display warnings in sugar

2008-07-17 Thread C. Scott Ananian
On Thu, Jul 17, 2008 at 5:01 PM, Tomeu Vizoso [EMAIL PROTECTED] wrote:
 On Thu, Jul 17, 2008 at 9:44 PM, C. Scott Ananian [EMAIL PROTECTED] wrote:
 On Thu, Jul 17, 2008 at 5:21 AM, Tomeu Vizoso [EMAIL PROTECTED] wrote:
 On Thu, Jul 17, 2008 at 2:27 AM, C. Scott Ananian [EMAIL PROTECTED] wrote:
 I hope our alert system will use the freedesktop.org standard:
  http://www.galago-project.org/specs/notification/index.php
 It is widely used in Gnome, and when I last reviewed it seems to be a
 solid and capable spec.

 The interfaces in that spec look quite good, although perhaps would
 benefit from a simpler, alternative API that also abstracts the D-Bus
 stuff. Perhaps rainbow should do some rate limiting or permissions
 checking, not sure.

 Sure, wrap the actual DBus calls with a simplied sugar/python method
 if you like, but *please* let's implement a listener for that API so
 that unmodified applications can interact sensibly with Sugar, and so
 that our system tools  activities can interoperate with non-Sugar
 window managers.

 Similarly, we should really implement that standard freedesktop.org
 startup notification spec, so we can get sensible notifications and
 icons for 'ordinary' applications.

 Yes, what you asked for is what we aim for ;)

Yay!
   --scott

-- 
 ( http://cscott.net/ )
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Display warnings in sugar

2008-07-17 Thread Gary C Martin
On 17 Jul 2008, at 20:39, Michael Stone wrote:

 On Thu, Jul 17, 2008 at 10:27:21AM -0300, Emiliano Pastorino wrote:

 Emiliano,

 I'm not sure of the right way to help you in the long term, but if you
 want a quick hack, you might try something like:

   1. Install a cronjob that runs every few minutes.
   2. When it runs, it should check the available space.
   3. If it concludes that space is low, pop up a warning.

  Warnings can be simple X or pygtk programs (see the 'dialog'  
 Linux
  scripts for ideas). To get this hooked up to the running X  
 display,
  you'll need to set some environment variables:

   DISPLAY=:0
   XAUTHORITY=/home/olpc/.Xauthority

 Ask if you need more help.

Just out of interest, where is the code that raises the AP network  
authentication name/pass request? That feels like a pretty close  
template fit to such a critical warning.

I must just say I'm not 100% convinced about how successful a warning  
will be (but it is better than nothing). I've hit the issue a couple  
of times and it was not some slow incremental case where I could take  
sensible action. Both times, as I recall, I was downloading some  
~large library or binary which maxed out the space in one go before I  
realised the size.

--Gary

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Display warnings in sugar

2008-07-17 Thread Marco Pesenti Gritti
On Fri, Jul 18, 2008 at 2:53 AM, Gary C Martin [EMAIL PROTECTED] wrote:
 Just out of interest, where is the code that raises the AP network
 authentication name/pass request? That feels like a pretty close
 template fit to such a critical warning.

sugar/src/hardware/keydialog.py

Marco
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Display warnings in sugar

2008-07-16 Thread Erik Garrison
This is a problem that all XOs face.

Ultimately we should produce a shared solution and push the fix into
Sugar.  I believe there has been some discussion of this?

The problem is getting that fix back out to deployed laptops may not be
easy...

My 2c.  Maybe the XO character in the home view could flash when
something this serious is wrong.

On Wed, Jul 16, 2008 at 04:53:00PM -0300, Emiliano Pastorino wrote:
 Hi, everyone!
 
 I was wondering if is there a way to open a popup or something like that in
 sugar, we want to use that or something similar to give warnings to the
 user, like 95% of disk space used.
 
 Thanks!
 
 -- 
 Emiliano Pastorino
 LATU - Plan Ceibal
 Av. Italia 6201 CP: 11500, Montevideo, Uruguay
 Tel: (598 2) 601 3724 int.: 469

 ___
 Sugar mailing list
 [EMAIL PROTECTED]
 http://lists.laptop.org/listinfo/sugar

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Display warnings in sugar

2008-07-16 Thread Eben Eliason
Two answers:
1.  We absolutely need stronger feedback (actually, feedback at all) for
system state, such as disk space, battery level, network failures, and other
similar issues.  This is going to be handled by the notification system,
which is in its infancy in the upcoming 8.2 release, but should mature and
actually be taken advantage of by the following one.  For more information,
see http://wiki.laptop.org/go/Designs/Frame#12.  We may later extend the
notification system so that activities, too, can notify the user when
necessary, even if they aren't presently focused.

2. We do already have some facilities in place to replace standard
dialogs.  There is an Alert class (and a few subclasses) defined which
activities can use to show non-modal alerts and prompt for feedback.  There
are also going to be modal alerts (like the control panel, the object
chooser, and others), but I'm not sure those have been wrapped up into a
class for activities to use at this point.  Cloning code from one of those
modal alerts might be a fair short term solution in extreme cases (such as
running out of disk space).

- Eben


On Wed, Jul 16, 2008 at 4:13 PM, Erik Garrison [EMAIL PROTECTED] wrote:

 This is a problem that all XOs face.

 Ultimately we should produce a shared solution and push the fix into
 Sugar.  I believe there has been some discussion of this?

 The problem is getting that fix back out to deployed laptops may not be
 easy...

 My 2c.  Maybe the XO character in the home view could flash when
 something this serious is wrong.

 On Wed, Jul 16, 2008 at 04:53:00PM -0300, Emiliano Pastorino wrote:
  Hi, everyone!
 
  I was wondering if is there a way to open a popup or something like that
 in
  sugar, we want to use that or something similar to give warnings to the
  user, like 95% of disk space used.
 
  Thanks!
 
  --
  Emiliano Pastorino
  LATU - Plan Ceibal
  Av. Italia 6201 CP: 11500, Montevideo, Uruguay
  Tel: (598 2) 601 3724 int.: 469

  ___
  Sugar mailing list
  [EMAIL PROTECTED]
  http://lists.laptop.org/listinfo/sugar

 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Display warnings in sugar

2008-07-16 Thread Greg Smith
Hi Emliano,

Thanks a lot for your input and questions.

The next release is called 8.2.0 and the features in it are being slowly 
documented at:
http://wiki.laptop.org/go/Release_Notes/8.2.0

That page is subject to change and may contain errors. However, it has 
some good links and pictures of coming GUI changes.

Take a look at that and let us know if it is close to what you need or 
if you have any suggestions or questions.

Eben's link has a lot of good info but not all the screen shots will be 
implemented in 8.2.0. Make sure to check back before assuming everything 
is in.

Let us know what is important to you, what you like and what you don't 
like. Uruguay is our biggest deployment right now so we will act as 
quickly as possible on your feedback.

Thanks,

Greg Smith
OLPC Product Manager

PS Lo siento que no nos conocimos cuando usted estuvo en Cambridge. 
Estoy a su servicio en qualquier que necesita.

***

From: Eben Eliason [EMAIL PROTECTED]
Subject: Re: [sugar] Display warnings in sugar
To: Erik Garrison [EMAIL PROTECTED]
Cc: devel@lists.laptop.org, [EMAIL PROTECTED]
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain; charset=iso-8859-1

Two answers:
1.  We absolutely need stronger feedback (actually, feedback at all) for
system state, such as disk space, battery level, network failures, and other
similar issues.  This is going to be handled by the notification system,
which is in its infancy in the upcoming 8.2 release, but should mature and
actually be taken advantage of by the following one.  For more information,
see http://wiki.laptop.org/go/Designs/Frame#12.  We may later extend the
notification system so that activities, too, can notify the user when
necessary, even if they aren't presently focused.

2. We do already have some facilities in place to replace standard
dialogs.  There is an Alert class (and a few subclasses) defined which
activities can use to show non-modal alerts and prompt for feedback.  There
are also going to be modal alerts (like the control panel, the object
chooser, and others), but I'm not sure those have been wrapped up into a
class for activities to use at this point.  Cloning code from one of those
modal alerts might be a fair short term solution in extreme cases (such as
running out of disk space).

- Eben


On Wed, Jul 16, 2008 at 4:13 PM, Erik Garrison [EMAIL PROTECTED] wrote:

   This is a problem that all XOs face.
  
   Ultimately we should produce a shared solution and push the fix into
   Sugar.  I believe there has been some discussion of this?
  
   The problem is getting that fix back out to deployed laptops may not be
   easy...
  
   My 2c.  Maybe the XO character in the home view could flash when
   something this serious is wrong.
  
   On Wed, Jul 16, 2008 at 04:53:00PM -0300, Emiliano Pastorino wrote:
Hi, everyone!
   
I was wondering if is there a way to open a popup or something 
like that
   in
sugar, we want to use that or something similar to give warnings 
to the
user, like 95% of disk space used.
   
Thanks!
   
--
Emiliano Pastorino
LATU - Plan Ceibal
Av. Italia 6201 CP: 11500, Montevideo, Uruguay
Tel: (598 2) 601 3724 int.: 469
  
___
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel