Re: [Server-devel] [Sugar-devel] 32(+) XO-1's on Mesh Potato 2 as AP on XSCE

2014-04-17 Thread Ajay Garg
Perhaps the following links might be useful ::


https://bugs.freedesktop.org/show_bug.cgi?id=51501
http://www.mail-archive.com/telepathy@lists.freedesktop.org/msg05699.html

Also, I wrote a patch for Avahi, which allows to customize the TTL time,
after which the disconnected buddy actually gets removed from Avahi's
list ::

http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/common-patch-for-f14-and-f17/customize-avahi-default-ttl-values.patch


Thanks and Regards,
Ajay



On Thu, Apr 17, 2014 at 12:46 PM, James Cameron qu...@laptop.org wrote:

 As this is a question about Sugar, perhaps the Sugar developers should
 be involved.

 +CC sugar-devel@

 Problem description: 32 XO-1 laptops are booted and registered to a
 school server, and all 32 icons are visible in neighbourhood, but the
 icons persist after any XO leaves.  Sugar-0.96 (yes, really), on OLPC
 OS 12.1.0.

 Sorry, I don't know how the XO is being asked to leave; forced power
 off, shutdown request using power button, or shutdown using Sugar
 menu.  This would be something to investigate.

 My experience is that a shutdown request using power button is similar
 in effect to typing shutdown -h now via sshd, and this leaves the
 SSH client stranded without the connection clearing down.  Perhaps all
 that is required is time for the ejabberd connection to time out?

 Perhaps this is fixed in a later release of Sugar, and an upgrade or
 field change can be recommended?

 On Thu, Apr 17, 2014 at 06:58:40AM +, Tim Moody wrote:
  As far as I know the implementation of ejabberd on xsce was a straight
 port
  from xs 0.7, so I wouldn't have expected a bug to have been introduced,
 but it
  is speculation either way.  All we know is that what Nathan observes was
 not
  previously reported as a bug.
 
  Still, it is an annoyance.  So the question is, what is the event that
 causes
  sugar to remove an icon from the NN and how does it arise.  If it is a
 poll of
  ejabberd then we should investigate, regardless of whether it is a new
 bug or
  an old one.
 
   Date: Thu, 17 Apr 2014 15:09:16 +1000
   From: qu...@laptop.org
   To: support-g...@lists.laptop.org
   Subject: Re: [support-gang] 32(+) XO-1's on Mesh Potato 2 as AP on XSCE
  
   On Thu, Apr 17, 2014 at 12:54:30AM -0400, Nathan C. Riddle wrote:
Hopefully, later XSCE (ejabberd) version has corrected issue of
falsely persistent icons in neighborhood. Not AP model related
(same on TP Link).
  
   We don't know that this is an ejabberd problem yet, it could be a
   problem with Sugar. It would require deeper investigation.
  
Any comments by XSCE development team ?
  
   You can write to them at
   xsce-de...@googlegroups.com
  
   There's also
   server-devel@lists.laptop.org
  
   --
   James Cameron
   http://quozl.linux.org.au/
   ___
   support-gang mailing list
   support-g...@lists.laptop.org
   http://lists.laptop.org/listinfo/support-gang

  ___
  Server-devel mailing list
  Server-devel@lists.laptop.org
  http://lists.laptop.org/listinfo/server-devel


 --
 James Cameron
 http://quozl.linux.org.au/
 ___
 Sugar-devel mailing list
 sugar-de...@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel




-- 
Regards,
Ajay
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] Some queries regarding PATHAGAR workflows

2013-09-06 Thread Ajay Garg
Hi all.

I have been playing with the public book-server
http://108.171.173.65/latest/ that Sameer let me know some time back
(thanks a lot Sameer, again !!)

However, I have some queries regarding some workflows (and I found it best
to query all you guys, so that the maximum information could be shared) :)
::



1)
On the home page http://108.171.173.65/latest/, I only see a Log in
option.
However, how do users get registered/created at first place?

2)
What is the notion of a user in the book-server?
In other words, what can a user do after logging in, which cannot be done
without logging in?


Looking forward to some pointers :)





Thanks and Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] [XSCE] Some queries regarding PATHAGAR workflows

2013-09-06 Thread Ajay Garg
Thanks Aneesh for the pointers; I will keep them in mind when I start
playing with PATHAGAR in XSCE :)
Thanks again.


On Fri, Sep 6, 2013 at 3:09 PM, Aneesh Dogra lionane...@gmail.com wrote:


 On Sep 6, 2013 1:06 PM, Ajay Garg a...@activitycentral.com wrote:
 
  Hi all.
 
  I have been playing with the public book-server
 http://108.171.173.65/latest/ that Sameer let me know some time back
 (thanks a lot Sameer, again !!)
 
  However, I have some queries regarding some workflows (and I found it
 best to query all you guys, so that the maximum information could be
 shared) :)  ::
 
 
 
  1)
  On the home page http://108.171.173.65/latest/, I only see a Log in
 option.
  However, how do users get registered/created at first place?
 

 You can add users through the django_admin interface (command line)

  2)
  What is the notion of a user in the book-server?
  In other words, what can a user do after logging in, which cannot be
 done without logging in?
 

 User account in pathagar has rights to edit/add/delete the database
 entries I.e books.

 
  Looking forward to some pointers :)
 
 
 
 
 
  Thanks and Regards,
 
  Ajay Garg
  Dextrose Developer
  Activity Central: http://activitycentral.com




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Compiling thee kernel

2013-06-11 Thread Ajay Garg
Hi all.

I cloned the kernel source-code from git://dev.laptop.org/olpc-kernel, and
ran make from my Dell x86-based laptop. The compilation ran to completion
successfully.


However, I noticed that marvell module (in drivers/media/video) was not
compiled. As a very vague guess, the reason seems to be that compiling this
module requires the presence of I2C network-bus, which does not seem to be
the case with the x86-based Dell laptop (which used SMBus).

Is my reasoning correct?
Is there a way at all to (cross-)compile the marvell module on the x86
Dell laptop?

I will be grateful for any pointers :)


(I am sorry if I sound too stupid.)


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


Re: Compiling thee kernel

2013-06-11 Thread Ajay Garg
Hi James.
Thanks a ton for the reply 

Here are the steps I followed on my x86-based Dell laptop::

a)
cd ~


b)
git clone git://dev.laptop.org/olpc-kernel


c)
cd olpc-kernel


d)
make


e)
Wait many minutes (if not hours).
Everything runs to completion.


f)
Haphazardly edit drivers/media/video/ov7670.c.


g)
Now, run make again.

Because of the haphazard editing of the file in step f), the build should
break.
However, it doesn't, and it runs to completion as before.


h)
At any time, there is no object file (.o) or kernel-object (.ko) file
whatsoever in the directory drivers/media/video/marvell-ccic.


i)
Because of observation of step h), and the fact that ov7670.h is used in
the file drivers/media/video/marvell-ccic/mcam-core.c,
I doubt if the marvell module is being compiled at all.


j)
Moreover, the I2C VS SMBus has stemmed into my imagination, looking at
the file drivers/media/video/Kconfig :)


Note that following the steps f) and g) after haphazardly editing a
different file like drivers/media/video/tvaudio.c DOES break the build.
That means that I am at least following the right ways to break the build :P


James,
please let me know if you require any more info.

Thanks again for the help !!


On Tue, Jun 11, 2013 at 4:05 PM, James Cameron qu...@laptop.org wrote:

 G'day Ajay,

 I've never heard of such a restriction.  Can you tell us the name of
 the branch you compiled, and what method you used?  Perhaps share the
 output?

 --
 James Cameron
 http://quozl.linux.org.au/




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Compiling thee kernel

2013-06-11 Thread Ajay Garg
On Tue, Jun 11, 2013 at 6:25 PM, Paul Fox p...@laptop.org wrote:

 ajay wrote:
   Hi James.
   Thanks a ton for the reply 
  
   Here are the steps I followed on my x86-based Dell laptop::
  
   a)
   cd ~
  
  
   b)
   git clone git://dev.laptop.org/olpc-kernel
  
  
   c)
   cd olpc-kernel
  

 you left out:
 cp arch/x86/configs/xo_1.5_defconfig .config
 make oldconfig


Ohh ok..

Currently, I do not see any such file as  arch/x86/configs/xo_1.5_defconfig
:-\
Doing ls -l arch/x86/configs gives me ::

[ajay@localhost olpc-kernel]$ ls -l arch/x86/configs/
total 16
-rw-rw-r--. 1 ajay ajay 7511 Jun  9 05:37 i386_defconfig
-rw-rw-r--. 1 ajay ajay 7528 Jun  9 05:37 x86_64_defconfig


Paul,

a)
Are there some additional steps to generate the config file for XO-1.5?

b)
Secondly, is the marvell module generatable only on the XO-1.5? As far as
I know, the OmniVersion sensor works since the earliest series of laptops?



 paul

  
   d)
   make
  
  
   e)
   Wait many minutes (if not hours).
   Everything runs to completion.
  
  
   f)
   Haphazardly edit drivers/media/video/ov7670.c.
  
  
   g)
   Now, run make again.
  
   Because of the haphazard editing of the file in step f), the build
 should
   break.
   However, it doesn't, and it runs to completion as before.
  
  
   h)
   At any time, there is no object file (.o) or kernel-object (.ko) file
   whatsoever in the directory drivers/media/video/marvell-ccic.
  
  
   i)
   Because of observation of step h), and the fact that ov7670.h is used
 in
   the file drivers/media/video/marvell-ccic/mcam-core.c,
   I doubt if the marvell module is being compiled at all.
  
  
   j)
   Moreover, the I2C VS SMBus has stemmed into my imagination, looking at
   the file drivers/media/video/Kconfig :)
  
  
   Note that following the steps f) and g) after haphazardly editing a
   different file like drivers/media/video/tvaudio.c DOES break the
 build.
   That means that I am at least following the right ways to break the
 build :P
  
  
   James,
   please let me know if you require any more info.
  
   Thanks again for the help !!
  
  
   On Tue, Jun 11, 2013 at 4:05 PM, James Cameron qu...@laptop.org
 wrote:
  
G'day Ajay,
   
I've never heard of such a restriction.  Can you tell us the name of
the branch you compiled, and what method you used?  Perhaps share the
output?
   
--
James Cameron
http://quozl.linux.org.au/
   
  
  
  
   --
   Regards,
  
   Ajay Garg
   Dextrose Developer
   Activity Central: http://activitycentral.com
   part 2 text/plain 129
   ___
   Devel mailing list
   Devel@lists.laptop.org
   http://lists.laptop.org/listinfo/devel

 =-
  paul fox, p...@laptop.org
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Compiling thee kernel

2013-06-11 Thread Ajay Garg
On Tue, Jun 11, 2013 at 6:38 PM, Paul Fox p...@laptop.org wrote:

 ajay wrote:
   On Tue, Jun 11, 2013 at 6:25 PM, Paul Fox p...@laptop.org wrote:
  
ajay wrote:
  Hi James.
  Thanks a ton for the reply 
 
  Here are the steps I followed on my x86-based Dell laptop::
 
  a)
  cd ~
 
 
  b)
  git clone git://dev.laptop.org/olpc-kernel
 
 
  c)
  cd olpc-kernel
 
   
you left out:
cp arch/x86/configs/xo_1.5_defconfig .config
make oldconfig
   
  
   Ohh ok..

 oops.  you're probably still on master.  there's another missing step:
 git checkout x86-3.3


That did it !!!
(
 Also, sorry and thanks to James, since the branch was the first thing he
asked
).

I could compile the kernel by replacing the config-file, and also managed
to break it after haphazardly editing drivers/media/video/ov7670.c :)

Thanks again James and Paul !!!


 paul

  
   Currently, I do not see any such file as
  arch/x86/configs/xo_1.5_defconfig
   :-\
   Doing ls -l arch/x86/configs gives me ::
  
   [ajay@localhost olpc-kernel]$ ls -l arch/x86/configs/
   total 16
   -rw-rw-r--. 1 ajay ajay 7511 Jun  9 05:37 i386_defconfig
   -rw-rw-r--. 1 ajay ajay 7528 Jun  9 05:37 x86_64_defconfig
  
  
   Paul,
  
   a)
   Are there some additional steps to generate the config file for XO-1.5?
  
   b)
   Secondly, is the marvell module generatable only on the XO-1.5? As
 far as
   I know, the OmniVersion sensor works since the earliest series of
 laptops?
  
  
  
paul
   
 
  d)
  make
 
 
  e)
  Wait many minutes (if not hours).
  Everything runs to completion.
 
 
  f)
  Haphazardly edit drivers/media/video/ov7670.c.
 
 
  g)
  Now, run make again.
 
  Because of the haphazard editing of the file in step f), the build
should
  break.
  However, it doesn't, and it runs to completion as before.
 
 
  h)
  At any time, there is no object file (.o) or kernel-object (.ko)
 file
  whatsoever in the directory drivers/media/video/marvell-ccic.
 
 
  i)
  Because of observation of step h), and the fact that ov7670.h is
 used
in
  the file drivers/media/video/marvell-ccic/mcam-core.c,
  I doubt if the marvell module is being compiled at all.
 
 
  j)
  Moreover, the I2C VS SMBus has stemmed into my imagination,
 looking at
  the file drivers/media/video/Kconfig :)
 
 
  Note that following the steps f) and g) after haphazardly editing a
  different file like drivers/media/video/tvaudio.c DOES break the
build.
  That means that I am at least following the right ways to break the
build :P
 
 
  James,
  please let me know if you require any more info.
 
  Thanks again for the help !!
 
 
  On Tue, Jun 11, 2013 at 4:05 PM, James Cameron qu...@laptop.org
wrote:
 
   G'day Ajay,
  
   I've never heard of such a restriction.  Can you tell us the
 name of
   the branch you compiled, and what method you used?  Perhaps
 share the
   output?
  
   --
   James Cameron
   http://quozl.linux.org.au/
  
 
 
 
  --
  Regards,
 
  Ajay Garg
  Dextrose Developer
  Activity Central: http://activitycentral.com
  part 2 text/plain 129
  ___
  Devel mailing list
  Devel@lists.laptop.org
  http://lists.laptop.org/listinfo/devel
   
=-
 paul fox, p...@laptop.org
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel
   
  
  
  
   --
   Regards,
  
   Ajay Garg
   Dextrose Developer
   Activity Central: http://activitycentral.com

 =-
  paul fox, p...@laptop.org




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Transient-Issues with game-keys on XO-1.75

2013-04-16 Thread Ajay Garg
On Tue, Apr 16, 2013 at 2:49 AM, Paul Fox p...@laptop.org wrote:

 ajay wrote:
   On Tue, Apr 16, 2013 at 2:24 AM, Walter Bender walter.ben...@gmail.com
 wrote:
  
Sure it is not the hardware (misaligned buttons)?
   
  
   Don't think so :-\
  
   The results are not consistent, irrespective of whether I press the
 key(s)
   gently, or with force.
   The only consistent thing is the correct working of the square key.
  
   Anyhow, the best test for this issue is only if more than one person
 does a
   quick test for this :)

 have you tried the keyboard diagnostic from OFW?

 ok test /keyboard


Same results, the block corresponding to the  square key is highlighted
everytime I press the key, while for the other three, the corresponding
blocks sometime highlight, and sometime not.



 paul
 =-
  paul fox, p...@laptop.org




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Transient-Issues with game-keys on XO-1.75

2013-04-15 Thread Ajay Garg
Hi all.

I have a XO-1.75, SKU198, OLPC-CL1 model.
The firmware is Q4D28.

I seem to be having the game-keys (the X, tick, square, circle
keys) that sometime work and sometime not.

To have a more clear picture, I ran showkey -a, and pressed the keys
numeral times. I observed that ::


  * the square key was always grabbed.
  * rest of the 3 keys were sometimes grabbed, and sometimes not.


Has anyone else run into this issue? Could this be a firmware issue?
Or have my 3 out of 4 keys gone berserk at the same time? :P


Will be thankful for any opinions.


Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Transient-Issues with game-keys on XO-1.75

2013-04-15 Thread Ajay Garg
On Tue, Apr 16, 2013 at 2:24 AM, Walter Bender walter.ben...@gmail.comwrote:

 Sure it is not the hardware (misaligned buttons)?


Don't think so :-\

The results are not consistent, irrespective of whether I press the key(s)
gently, or with force.
The only consistent thing is the correct working of the square key.

Anyhow, the best test for this issue is only if more than one person does a
quick test for this :)



Thanks for the reply.






 -walter


 On Mon, Apr 15, 2013 at 4:50 PM, Ajay Garg a...@activitycentral.comwrote:

 Hi all.

 I have a XO-1.75, SKU198, OLPC-CL1 model.
 The firmware is Q4D28.

 I seem to be having the game-keys (the X, tick, square, circle
 keys) that sometime work and sometime not.

 To have a more clear picture, I ran showkey -a, and pressed the keys
 numeral times. I observed that ::


   * the square key was always grabbed.
   * rest of the 3 keys were sometimes grabbed, and sometimes not.


 Has anyone else run into this issue? Could this be a firmware issue?
 Or have my 3 out of 4 keys gone berserk at the same time? :P


 Will be thankful for any opinions.


 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com

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




 --
 Walter Bender
 Sugar Labs
 http://www.sugarlabs.org




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com


On Tue, Apr 16, 2013 at 2:24 AM, Walter Bender walter.ben...@gmail.comwrote:

 Sure it is not the hardware (misaligned buttons)?

 -walter


 On Mon, Apr 15, 2013 at 4:50 PM, Ajay Garg a...@activitycentral.comwrote:

 Hi all.

 I have a XO-1.75, SKU198, OLPC-CL1 model.
 The firmware is Q4D28.

 I seem to be having the game-keys (the X, tick, square, circle
 keys) that sometime work and sometime not.

 To have a more clear picture, I ran showkey -a, and pressed the keys
 numeral times. I observed that ::


   * the square key was always grabbed.
   * rest of the 3 keys were sometimes grabbed, and sometimes not.


 Has anyone else run into this issue? Could this be a firmware issue?
 Or have my 3 out of 4 keys gone berserk at the same time? :P


 Will be thankful for any opinions.


 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com

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




 --
 Walter Bender
 Sugar Labs
 http://www.sugarlabs.org




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


RAM in XO-1.75-models

2013-03-27 Thread Ajay Garg
Hi all.

As per http://wiki.laptop.org/go/XO-1.75, the RAM in XO-1.75 is

   DRAM memory: 512 MB or 1GB DDR3 dynamic
RAMhttp://en.wikipedia.org/wiki/DDR3_SDRAM;



Is there any specific criteria as to which models have 512 MB, and which
have 1 GB?
I, for example, have 512 MB of RAM, on a CL1 model.


Thanks in advance :)




Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


ip4-address and ip6-address fields in telepathy-salut/telepathy-gabble

2013-03-21 Thread Ajay Garg
Hi all.

I downloaded source-rpms for telepathy-salut-0.8.0, and
telepathy-gabble-0.16.5, and after a quick grepping, realised that
ip4-address/ip6-address fields is passed on as one of the
buddy-properties in telepathy-salut, but the same does not happen in
telepathy-gabble.


Has there been any particular  reason for this? Or is it just that the need
was never felt till date :P


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


Query regarding xorg-x11-drv-dove package, on XO-4

2013-02-21 Thread Ajay Garg
Hi all.

This is in relation to ticket http://bugs.sugarlabs.org/ticket/4438
Is there a way to know what are the changes  between version-8 (on XO-4
build 30) and version-7 (on XO-4 build 21) for xorg-x11-drv-dove-0.3.5?



Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Query regarding xorg-x11-drv-dove package, on XO-4

2013-02-21 Thread Ajay Garg
Thanks Martin for the quick reply.
Created the ticket at http://dev.laptop.org/ticket/12572

On Thu, Feb 21, 2013 at 10:59 PM, Martin Langhoff martin.langh...@gmail.com
 wrote:

 Thanks for the report! Jon Nettlelton is working on that particular
 driver, and there was a big overhaul that landed in OS29.

 Could you create a ticket on dev.laptop.org, against 13.1.0? This has
 nothing to do with Sugar itself...

 thanks!



 m

 On Thu, Feb 21, 2013 at 12:07 PM, Ajay Garg a...@activitycentral.com
 wrote:
  Hi all.
 
  This is in relation to ticket http://bugs.sugarlabs.org/ticket/4438
  Is there a way to know what are the changes  between version-8 (on XO-4
  build 30) and version-7 (on XO-4 build 21) for xorg-x11-drv-dove-0.3.5?
 
 
 
  Regards,
 
  Ajay Garg
  Dextrose Developer
  Activity Central: http://activitycentral.com
  ___
  Devel mailing list
  Devel@lists.laptop.org
  http://lists.laptop.org/listinfo/devel
 



 --
  martin.langh...@gmail.com
  mar...@laptop.org -- Software Architect - OLPC
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Is it possible to hack the rotate key?

2013-02-18 Thread Ajay Garg
Thanks Gary and Paul.
I tested Moon on build 28 on XO-4; and the rotation caused the canvas to
be redrawn appropriately.




Paul,

I have two queries ::

a)
In Moon's code (as already told by Gary), the size-changed signal is
used to call the callback that redraws the canvas.
So, in this case, is the size-changed signal a result of the
rotate-key-event (KEY_SWITCHVIDEOMODE), or size-changed signal is
generated via some another mechanism?

b)
Is the behaviour of olpc-kbdshim the same for a XO-1.75 and a XO-4 (as far
as that code is written to either run a command
attached to the event (currently /usr/bin/olpc-rotate), or pass the  event
through, but not both is concerned)?




On Mon, Feb 18, 2013 at 7:18 PM, Paul Fox p...@laptop.org wrote:

 ajay wrote:
   Hi all.
  
   Is it possible to hack the rotate key in XO?
  
   I wish to have the following working ::
  
* Press the rotate key. This will rotate the window.
* Just after that, have a callback function being called in sugar
   (this of course being possible  only if the rotate key could be
 hacked).
  

 as gary points out, the rotate key event (KEY_SWITCHVIDEOMODE) is
 caught by olpc-kbdshim.  that code is written to either run a command
 attached to the event (currently /usr/bin/olpc-rotate), or pass the
 event through, but not both.

 if there were consensus that running the command _and_ passing the
 event was safe and reasonable, maybe we could do that, though it
 doesn't feel right to me.

 but i also think gary's on the right track by suggesting you look at
 other window events to learn of the rotation changes -- after all,
 rotation doesn't require a button press.  it can be caused by manual
 xrandr invocation, or simply by someone typing olpc-rotate left.

 paul

  
  
   I will be thankful for any pointers.
  
  
  
   Regards,
  
   Ajay Garg
   Dextrose Developer
   Activity Central: http://activitycentral.com
   part 2 text/plain 129
   ___
   Devel mailing list
   Devel@lists.laptop.org
   http://lists.laptop.org/listinfo/devel

 =-
  paul fox, p...@laptop.org
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Is it possible to hack the rotate key?

2013-02-18 Thread Ajay Garg
On Mon, Feb 18, 2013 at 7:58 PM, Paul Fox p...@laptop.org wrote:

 ajay wrote:
   Thanks Gary and Paul.
   I tested Moon on build 28 on XO-4; and the rotation caused the canvas
 to
   be redrawn appropriately.
  

 okay.  was that unexpected?


No.. just wanted to state it explicitly that it worked :)





  
   Paul,
  
   I have two queries ::
  
   a)
   In Moon's code (as already told by Gary), the size-changed signal is
   used to call the callback that redraws the canvas.
   So, in this case, is the size-changed signal a result of the
   rotate-key-event (KEY_SWITCHVIDEOMODE), or size-changed signal is
   generated via some another mechanism?

 i don't know.


ok :)






  
   b)
   Is the behaviour of olpc-kbdshim the same for a XO-1.75 and a XO-4 (as
 far
   as that code is written to either run a command
   attached to the event (currently /usr/bin/olpc-rotate), or pass the
  event
   through, but not both is concerned)?

 yes.  and for XO-1 and XO-1.5 as well.


Great.. thanks !!!






 paul

  
  
  
  
   On Mon, Feb 18, 2013 at 7:18 PM, Paul Fox p...@laptop.org wrote:
  
ajay wrote:
  Hi all.
 
  Is it possible to hack the rotate key in XO?
 
  I wish to have the following working ::
 
   * Press the rotate key. This will rotate the window.
   * Just after that, have a callback function being called in
 sugar
  (this of course being possible  only if the rotate key could be
hacked).
 
   
as gary points out, the rotate key event (KEY_SWITCHVIDEOMODE) is
caught by olpc-kbdshim.  that code is written to either run a command
attached to the event (currently /usr/bin/olpc-rotate), or pass the
event through, but not both.
   
if there were consensus that running the command _and_ passing the
event was safe and reasonable, maybe we could do that, though it
doesn't feel right to me.
   
but i also think gary's on the right track by suggesting you look at
other window events to learn of the rotation changes -- after all,
rotation doesn't require a button press.  it can be caused by manual
xrandr invocation, or simply by someone typing olpc-rotate left.
   
paul
   
 
 
  I will be thankful for any pointers.
 
 
 
  Regards,
 
  Ajay Garg
  Dextrose Developer
  Activity Central: http://activitycentral.com
  part 2 text/plain 129
  ___
  Devel mailing list
  Devel@lists.laptop.org
  http://lists.laptop.org/listinfo/devel
   
=-
 paul fox, p...@laptop.org
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel
   
  
  
  
   --
   Regards,
  
   Ajay Garg
   Dextrose Developer
   Activity Central: http://activitycentral.com

 =-
  paul fox, p...@laptop.org
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Activating a XO-1.5

2013-02-18 Thread Ajay Garg
Hi all.

I have received a new XO-1.5.  When I  boot it, it shows activation lease
not found.

As per http://wiki.laptop.org/go/XO_1.5_B2, i tried the following steps ::

a)
Downloaded the signed-image
http://download.laptop.org/xo-1.5/os/candidate/13.1.0-21/31021o1.zd, and
copied it to the root-directory on my USB-drive.

b)
Downloaded the corresponding
http://download.laptop.org/xo-1.5/os/candidate/13.1.0-21/31021o1.zd.zsp.fs1.zip;
renamed it to fs.zip, and copied it to the root directory of my USB-drive.

c)
Inserted the USB-drive into the XO-1.5

d)
Powered on the  XO.

e)
Immediately, pressed the 4 game-keys.

f)
Upon seeing the message Release the game keys  to continue, unpressed the
keys.
Image installed successfully.

g)
A firmware was flashed.

h)
Removed the USB-drive.

i)
Rebooted the XO.

j)
Again, the message Activation lease not found was seen; the image failed
to boot into sugar :-( :-(



What step have I done wrong?

Looking forward to some  help, as I need to get the XO-1.5 running :-\





Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Activating a XO-1.5

2013-02-18 Thread Ajay Garg
Hi Ignacio.

But i need to boot the XO once at least, so as to obtain the developer key?

On Mon, Feb 18, 2013 at 9:28 PM, Ignacio Rodríguez nachoe...@gmail.comwrote:

 The xo is from Uruguay?
 ..
 Maybe you need a developer key.. See:
 http://wiki.laptop.org/go/Developer_key

 2013/2/18, Ajay Garg a...@activitycentral.com:
  Hi all.
 
  I have received a new XO-1.5.  When I  boot it, it shows activation
 lease
  not found.
 
  As per http://wiki.laptop.org/go/XO_1.5_B2, i tried the following steps
 ::
 
  a)
  Downloaded the signed-image
  http://download.laptop.org/xo-1.5/os/candidate/13.1.0-21/31021o1.zd, and
  copied it to the root-directory on my USB-drive.
 
  b)
  Downloaded the corresponding
 
 http://download.laptop.org/xo-1.5/os/candidate/13.1.0-21/31021o1.zd.zsp.fs1.zip
 ;
  renamed it to fs.zip, and copied it to the root directory of my
  USB-drive.
 
  c)
  Inserted the USB-drive into the XO-1.5
 
  d)
  Powered on the  XO.
 
  e)
  Immediately, pressed the 4 game-keys.
 
  f)
  Upon seeing the message Release the game keys  to continue, unpressed
 the
  keys.
  Image installed successfully.
 
  g)
  A firmware was flashed.
 
  h)
  Removed the USB-drive.
 
  i)
  Rebooted the XO.
 
  j)
  Again, the message Activation lease not found was seen; the image
 failed
  to boot into sugar :-( :-(
 
 
 
  What step have I done wrong?
 
  Looking forward to some  help, as I need to get the XO-1.5 running :-\
 
 
 
 
 
  Regards,
 
  Ajay Garg
  Dextrose Developer
  Activity Central: http://activitycentral.com
 


 --
 Saludos
 Juan Ignacio Rodríguez
 *CeibalJAM!*
 *Somos Azucar*




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Activating a XO-1.5

2013-02-18 Thread Ajay Garg
Thanks Ignacio :)
When I visit the link, it accepts the Laptop-Serial as SHC, but
doesn't accept anything for  Laptop-UUID.

Where can I find the laptop-UUID ? :P

On Mon, Feb 18, 2013 at 10:27 PM, Ignacio Rodríguez nachoe...@gmail.comwrote:

 No :P
 You can use: https://activation.laptop.org/devkey/post/

 2013/2/18, Ajay Garg a...@activitycentral.com:
  Hi Ignacio.
 
  But i need to boot the XO once at least, so as to obtain the developer
 key?
 
  On Mon, Feb 18, 2013 at 9:28 PM, Ignacio Rodríguez
  nachoe...@gmail.comwrote:
 
  The xo is from Uruguay?
  ..
  Maybe you need a developer key.. See:
  http://wiki.laptop.org/go/Developer_key
 
  2013/2/18, Ajay Garg a...@activitycentral.com:
   Hi all.
  
   I have received a new XO-1.5.  When I  boot it, it shows activation
  lease
   not found.
  
   As per http://wiki.laptop.org/go/XO_1.5_B2, i tried the following
 steps
  ::
  
   a)
   Downloaded the signed-image
   http://download.laptop.org/xo-1.5/os/candidate/13.1.0-21/31021o1.zd,
   and
   copied it to the root-directory on my USB-drive.
  
   b)
   Downloaded the corresponding
  
 
 http://download.laptop.org/xo-1.5/os/candidate/13.1.0-21/31021o1.zd.zsp.fs1.zip
  ;
   renamed it to fs.zip, and copied it to the root directory of my
   USB-drive.
  
   c)
   Inserted the USB-drive into the XO-1.5
  
   d)
   Powered on the  XO.
  
   e)
   Immediately, pressed the 4 game-keys.
  
   f)
   Upon seeing the message Release the game keys  to continue,
 unpressed
  the
   keys.
   Image installed successfully.
  
   g)
   A firmware was flashed.
  
   h)
   Removed the USB-drive.
  
   i)
   Rebooted the XO.
  
   j)
   Again, the message Activation lease not found was seen; the image
  failed
   to boot into sugar :-( :-(
  
  
  
   What step have I done wrong?
  
   Looking forward to some  help, as I need to get the XO-1.5 running :-\
  
  
  
  
  
   Regards,
  
   Ajay Garg
   Dextrose Developer
   Activity Central: http://activitycentral.com
  
 
 
  --
  Saludos
  Juan Ignacio Rodríguez
  *CeibalJAM!*
  *Somos Azucar*
 
 
 
 
  --
  Regards,
 
  Ajay Garg
  Dextrose Developer
  Activity Central: http://activitycentral.com
 


 --
 Saludos
 Juan Ignacio Rodríguez
 *CeibalJAM!*
 *Somos Azucar*




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Activating a XO-1.5

2013-02-18 Thread Ajay Garg
On Mon, Feb 18, 2013 at 10:43 PM, Ignacio Rodríguez nachoe...@gmail.comwrote:

 Start the XO with the -- key (In the screen) pressed.


Sorry Ignacio.
I am unable to understand.

Which key is this?





 2013/2/18, Ajay Garg a...@activitycentral.com:
  Thanks Ignacio :)
  When I visit the link, it accepts the Laptop-Serial as SHC,
 but
  doesn't accept anything for  Laptop-UUID.
 
  Where can I find the laptop-UUID ? :P
 
  On Mon, Feb 18, 2013 at 10:27 PM, Ignacio Rodríguez
  nachoe...@gmail.comwrote:
 
  No :P
  You can use: https://activation.laptop.org/devkey/post/
 
  2013/2/18, Ajay Garg a...@activitycentral.com:
   Hi Ignacio.
  
   But i need to boot the XO once at least, so as to obtain the developer
  key?
  
   On Mon, Feb 18, 2013 at 9:28 PM, Ignacio Rodríguez
   nachoe...@gmail.comwrote:
  
   The xo is from Uruguay?
   ..
   Maybe you need a developer key.. See:
   http://wiki.laptop.org/go/Developer_key
  
   2013/2/18, Ajay Garg a...@activitycentral.com:
Hi all.
   
I have received a new XO-1.5.  When I  boot it, it shows
 activation
   lease
not found.
   
As per http://wiki.laptop.org/go/XO_1.5_B2, i tried the following
  steps
   ::
   
a)
Downloaded the signed-image
   
 http://download.laptop.org/xo-1.5/os/candidate/13.1.0-21/31021o1.zd,
and
copied it to the root-directory on my USB-drive.
   
b)
Downloaded the corresponding
   
  
 
 http://download.laptop.org/xo-1.5/os/candidate/13.1.0-21/31021o1.zd.zsp.fs1.zip
   ;
renamed it to fs.zip, and copied it to the root directory of my
USB-drive.
   
c)
Inserted the USB-drive into the XO-1.5
   
d)
Powered on the  XO.
   
e)
Immediately, pressed the 4 game-keys.
   
f)
Upon seeing the message Release the game keys  to continue,
  unpressed
   the
keys.
Image installed successfully.
   
g)
A firmware was flashed.
   
h)
Removed the USB-drive.
   
i)
Rebooted the XO.
   
j)
Again, the message Activation lease not found was seen; the image
   failed
to boot into sugar :-( :-(
   
   
   
What step have I done wrong?
   
Looking forward to some  help, as I need to get the XO-1.5 running
:-\
   
   
   
   
   
Regards,
   
Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
   
  
  
   --
   Saludos
   Juan Ignacio Rodríguez
   *CeibalJAM!*
   *Somos Azucar*
  
  
  
  
   --
   Regards,
  
   Ajay Garg
   Dextrose Developer
   Activity Central: http://activitycentral.com
  
 
 
  --
  Saludos
  Juan Ignacio Rodríguez
  *CeibalJAM!*
  *Somos Azucar*
 
 
 
 
  --
  Regards,
 
  Ajay Garg
  Dextrose Developer
  Activity Central: http://activitycentral.com
 


 --
 Saludos
 Juan Ignacio Rodríguez
 *CeibalJAM!*
 *Somos Azucar*




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Activating a XO-1.5

2013-02-18 Thread Ajay Garg
Thanks a ton Ignacio
!!   :) :) :)

Just one last query :
A link has been generated, which says


Your developer key will be ready in 23 hours, 55 minutes.
Please check back later.


So, I visit the same link after 24 hours, right?


Thanks  again !!

On Mon, Feb 18, 2013 at 10:53 PM, Ignacio Rodríguez nachoe...@gmail.comwrote:

 http://www.ceibal.edu.uy/Articulos/PublishingImages/bot.JPG

  key

 2013/2/18, Ajay Garg a...@activitycentral.com:
  On Mon, Feb 18, 2013 at 10:43 PM, Ignacio Rodríguez
  nachoe...@gmail.comwrote:
 
  Start the XO with the -- key (In the screen) pressed.
 
 
  Sorry Ignacio.
  I am unable to understand.
 
  Which key is this?
 
 
 
 
 
  2013/2/18, Ajay Garg a...@activitycentral.com:
   Thanks Ignacio :)
   When I visit the link, it accepts the Laptop-Serial as
 SHC,
  but
   doesn't accept anything for  Laptop-UUID.
  
   Where can I find the laptop-UUID ? :P
  
   On Mon, Feb 18, 2013 at 10:27 PM, Ignacio Rodríguez
   nachoe...@gmail.comwrote:
  
   No :P
   You can use: https://activation.laptop.org/devkey/post/
  
   2013/2/18, Ajay Garg a...@activitycentral.com:
Hi Ignacio.
   
But i need to boot the XO once at least, so as to obtain the
developer
   key?
   
On Mon, Feb 18, 2013 at 9:28 PM, Ignacio Rodríguez
nachoe...@gmail.comwrote:
   
The xo is from Uruguay?
..
Maybe you need a developer key.. See:
http://wiki.laptop.org/go/Developer_key
   
2013/2/18, Ajay Garg a...@activitycentral.com:
 Hi all.

 I have received a new XO-1.5.  When I  boot it, it shows
  activation
lease
 not found.

 As per http://wiki.laptop.org/go/XO_1.5_B2, i tried the
 following
   steps
::

 a)
 Downloaded the signed-image

  http://download.laptop.org/xo-1.5/os/candidate/13.1.0-21/31021o1.zd,
 and
 copied it to the root-directory on my USB-drive.

 b)
 Downloaded the corresponding

   
  
 
 http://download.laptop.org/xo-1.5/os/candidate/13.1.0-21/31021o1.zd.zsp.fs1.zip
;
 renamed it to fs.zip, and copied it to the root directory of
 my
 USB-drive.

 c)
 Inserted the USB-drive into the XO-1.5

 d)
 Powered on the  XO.

 e)
 Immediately, pressed the 4 game-keys.

 f)
 Upon seeing the message Release the game keys  to continue,
   unpressed
the
 keys.
 Image installed successfully.

 g)
 A firmware was flashed.

 h)
 Removed the USB-drive.

 i)
 Rebooted the XO.

 j)
 Again, the message Activation lease not found was seen; the
 image
failed
 to boot into sugar :-( :-(



 What step have I done wrong?

 Looking forward to some  help, as I need to get the XO-1.5
 running
 :-\





 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com

   
   
--
Saludos
Juan Ignacio Rodríguez
*CeibalJAM!*
*Somos Azucar*
   
   
   
   
--
Regards,
   
Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
   
  
  
   --
   Saludos
   Juan Ignacio Rodríguez
   *CeibalJAM!*
   *Somos Azucar*
  
  
  
  
   --
   Regards,
  
   Ajay Garg
   Dextrose Developer
   Activity Central: http://activitycentral.com
  
 
 
  --
  Saludos
  Juan Ignacio Rodríguez
  *CeibalJAM!*
  *Somos Azucar*
 
 
 
 
  --
  Regards,
 
  Ajay Garg
  Dextrose Developer
  Activity Central: http://activitycentral.com
 


 --
 Saludos
 Juan Ignacio Rodríguez
 *CeibalJAM!*
 *Somos Azucar*




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Activating a XO-1.5

2013-02-18 Thread Ajay Garg
On Mon, Feb 18, 2013 at 11:11 PM, Ignacio Rodríguez nachoe...@gmail.comwrote:

 Yes.. 24 hours.. That's a long wait ..



hehe.. I would have been wandering many days without you :)

Thanks a ton again !




 2013/2/18, Ajay Garg a...@activitycentral.com:
  Thanks a ton Ignacio
  !!   :) :) :)
 
  Just one last query :
  A link has been generated, which says
 
  
  Your developer key will be ready in 23 hours, 55 minutes.
  Please check back later.
  
 
  So, I visit the same link after 24 hours, right?
 
 
  Thanks  again !!
 
  On Mon, Feb 18, 2013 at 10:53 PM, Ignacio Rodríguez
  nachoe...@gmail.comwrote:
 
  http://www.ceibal.edu.uy/Articulos/PublishingImages/bot.JPG
 
   key
 
  2013/2/18, Ajay Garg a...@activitycentral.com:
   On Mon, Feb 18, 2013 at 10:43 PM, Ignacio Rodríguez
   nachoe...@gmail.comwrote:
  
   Start the XO with the -- key (In the screen) pressed.
  
  
   Sorry Ignacio.
   I am unable to understand.
  
   Which key is this?
  
  
  
  
  
   2013/2/18, Ajay Garg a...@activitycentral.com:
Thanks Ignacio :)
When I visit the link, it accepts the Laptop-Serial as
  SHC,
   but
doesn't accept anything for  Laptop-UUID.
   
Where can I find the laptop-UUID ? :P
   
On Mon, Feb 18, 2013 at 10:27 PM, Ignacio Rodríguez
nachoe...@gmail.comwrote:
   
No :P
You can use: https://activation.laptop.org/devkey/post/
   
2013/2/18, Ajay Garg a...@activitycentral.com:
 Hi Ignacio.

 But i need to boot the XO once at least, so as to obtain the
 developer
key?

 On Mon, Feb 18, 2013 at 9:28 PM, Ignacio Rodríguez
 nachoe...@gmail.comwrote:

 The xo is from Uruguay?
 ..
 Maybe you need a developer key.. See:
 http://wiki.laptop.org/go/Developer_key

 2013/2/18, Ajay Garg a...@activitycentral.com:
  Hi all.
 
  I have received a new XO-1.5.  When I  boot it, it shows
   activation
 lease
  not found.
 
  As per http://wiki.laptop.org/go/XO_1.5_B2, i tried the
  following
steps
 ::
 
  a)
  Downloaded the signed-image
 
   http://download.laptop.org/xo-1.5/os/candidate/13.1.0-21/31021o1.zd,
  and
  copied it to the root-directory on my USB-drive.
 
  b)
  Downloaded the corresponding
 

   
  
 
 http://download.laptop.org/xo-1.5/os/candidate/13.1.0-21/31021o1.zd.zsp.fs1.zip
 ;
  renamed it to fs.zip, and copied it to the root directory
 of
  my
  USB-drive.
 
  c)
  Inserted the USB-drive into the XO-1.5
 
  d)
  Powered on the  XO.
 
  e)
  Immediately, pressed the 4 game-keys.
 
  f)
  Upon seeing the message Release the game keys  to continue,
unpressed
 the
  keys.
  Image installed successfully.
 
  g)
  A firmware was flashed.
 
  h)
  Removed the USB-drive.
 
  i)
  Rebooted the XO.
 
  j)
  Again, the message Activation lease not found was seen; the
  image
 failed
  to boot into sugar :-( :-(
 
 
 
  What step have I done wrong?
 
  Looking forward to some  help, as I need to get the XO-1.5
  running
  :-\
 
 
 
 
 
  Regards,
 
  Ajay Garg
  Dextrose Developer
  Activity Central: http://activitycentral.com
 


 --
 Saludos
 Juan Ignacio Rodríguez
 *CeibalJAM!*
 *Somos Azucar*




 --
 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com

   
   
--
Saludos
Juan Ignacio Rodríguez
*CeibalJAM!*
*Somos Azucar*
   
   
   
   
--
Regards,
   
Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
   
  
  
   --
   Saludos
   Juan Ignacio Rodríguez
   *CeibalJAM!*
   *Somos Azucar*
  
  
  
  
   --
   Regards,
  
   Ajay Garg
   Dextrose Developer
   Activity Central: http://activitycentral.com
  
 
 
  --
  Saludos
  Juan Ignacio Rodríguez
  *CeibalJAM!*
  *Somos Azucar*
 
 
 
 
  --
  Regards,
 
  Ajay Garg
  Dextrose Developer
  Activity Central: http://activitycentral.com
 


 --
 Saludos
 Juan Ignacio Rodríguez
 *CeibalJAM!*
 *Somos Azucar*




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Hacking onto the appearing and hiding of OSK

2013-02-18 Thread Ajay Garg
Hi all.

Just wanted to know that whether the signals used in the Write activity

 'size-allocate',
 'request-clear-area',
 'unset-clear-area',

are usable anywhere else too?



I can see that  these signals are being listened by class
DocumentView(Abi.Widget); however, the source of this signals is unknown
(or at least inconspicuous).

Is Abi.Widget the source of these signals? If yes, that would mean that
these signals cannot be used anywhere else on  a generic basis, right?


On Tue, Jan 29, 2013 at 6:10 PM, Gonzalo Odiard gonz...@laptop.org wrote:


 On Tue, Jan 29, 2013 at 2:17 AM, Ajay Garg a...@activitycentral.comwrote:

 I agree with Gonzalo and Gary; this is just a makeshift solution for the
 time-being, so that activities like Speak, Chat, Terminal are not rendered
 completely unusable in ebook-mode.


 In my opinion, in this case, your hack, is exposed to the user, in a way
 that is worst than do not have a solution at all. In fact we spent a lot of
 time trying to do terminal work with osk (right now, if the cursor is
 behind the osk, the text area is resized and scrolled), but need more work.
 Be prepared to invest time to do it right, a quick hack will not be a good
 solution. Another problem using the terminal with the osk you will find, is
 the lack of auto-completion and a few keys useful in the terminal but not
 in normal use.

 May be Speak can be best solved, if you move the text input to the top of
 the canvas, like we did in Record activity. Chat is a little more
 difficult, you can move the input to the top, but the history will be
 hidden. (Btw, I don't know why all the chat interfaces show the history
 from bottom to top instead of top to bottom)
 Anyway, these are suggestions, should be better have a agreement with the
 Design Team, Gary  Manuq.

 Gonzalo

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




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Hacking onto the appearing and hiding of OSK

2013-01-28 Thread Ajay Garg
Hi all.

A simple solution was found :)

I hacked the KP_Prior and KP_Next keys, and now they are used for
making-window-smaller and restoring-original-window-size respectively :)

All thanks to
   * /usr/share/X11/xkb/keycodes/evdev
   * sugar/src/jarabe/view/keyhandler.py



Just one thing I noticed when  I tried to have the above keys take effect
ONLY in ebook-mode (via the evtest --query test), that when I ran this
again and again via the suprocess module, the XO-4 behaved very
erratically. However, when I made the keys take effect irrespective of the
test of ebook-mode, things worked cool. However, I will keep on looking
into the reason.


Thanks a ton to all :)


On Thu, Jan 24, 2013 at 10:45 PM, Paul Fox p...@laptop.org wrote:

 gonzalo wrote:
   Write does not know what is the ebook switch state, that logic is in the
   osk.
  
   Looking in the wiki and sugar code, I could not find information about
 how
   read the switch,
   but in ticket http://dev.laptop.org/ticket/12326 found this:
  
   If you do:
  
   evtest --query /dev/input/event4 EV_SW SW_TABLET_MODE; echo $?
  
  
   If the xo is in ebook mode returns 10, if not, returns 0.
  
   There are any official doc about the switches I am missing? There are a
 way
   to catch a event when the switch is activated, using dbus or something
   similar?

 if you open the device and read it, you'll get a stream of struct
 input_event structures (/usr/include/linux/input.h) representing
 opening and closing of the SW_TABLET_MODE switch.  here's a C code
 snippet from olpc-switchd (part of powerd):

 void ebook_event()
 {
 struct input_event ev[1];

 if (read(ebk_fd, ev, sizeof(ev)) != sizeof(ev))
 die(bad read from ebook switch);

 dbg(3, ebk: ev sec %d usec %d type %d code %d value %d,
 ev-time.tv_sec, ev-time.tv_usec,
 ev-type, ev-code, ev-value);

 if (ev-type == EV_SW  ev-code == SW_TABLET_MODE) {
 if (ev-value)
 send_event(ebookclose, round_secs(ev), ebk_device);
 else
 send_event(ebookopen, round_secs(ev), ebk_device);
 }
 }


 perhaps there's an evdev to dbus gateway of some sort, but i don't know
 about it, if so.

 the evtest commandline example, above, uses an ioctl on the input
 device to determine current state.  here's snippet from the evtest source:
 (full source:  git://anongit.freedesktop.org/evtest)

 static int query_device(const char *device, const struct query_mode
 *query_mode
 {
 int fd;
 int r;
 unsigned long state[NBITS(query_mode-max)];

 fd = open(device, O_RDONLY);
 if (fd  0) {
 perror(open);
 return EXIT_FAILURE;
 }
 memset(state, 0, sizeof(state));
 r = ioctl(fd, query_mode-rq, state);
 close(fd);

 if (r == -1) {
 perror(ioctl);
 return EXIT_FAILURE;
 }

 if (test_bit(keycode, state))
 return 10; /* different from EXIT_FAILURE */
 else
 return 0;
 }



 paul


  
   Gonzalo
  
  
   On Thu, Jan 24, 2013 at 12:16 PM, Martin Langhoff 
 martin.langh...@gmail.com
wrote:
  
On Thu, Jan 24, 2013 at 10:13 AM, Paul Fox p...@laptop.org wrote:
 i believe sugar already has code to detect the two modes, since
 that's how it knows whether to present the OSK or not.
   
Yep. Ajay, I think Write shows you the way :-)
   
   
   
   
m
--
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
   

 =-
  paul fox, p...@laptop.org
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Hacking onto the appearing and hiding of OSK

2013-01-28 Thread Ajay Garg
On Mon, Jan 28, 2013 at 11:01 PM, Paul Fox p...@laptop.org wrote:

 ajay wrote:
   Hi all.
  
   A simple solution was found :)
  
   I hacked the KP_Prior and KP_Next keys, and now they are used for
   making-window-smaller and restoring-original-window-size respectively :)

 so sugar takes over those keys?  aren't those keys used by activities?
 they're certainly useful in a terminal -- page up and page down.


Hmm.. Well a simple grepping showed that the Read activity is the only
activity that explicitly makes use of the KP_Home and KP_End keys; but
none seemed to make use of KP_Prior and KP_Next.



 paul

  
   All thanks to
  * /usr/share/X11/xkb/keycodes/evdev
  * sugar/src/jarabe/view/keyhandler.py
  
  
  
   Just one thing I noticed when  I tried to have the above keys take
 effect
   ONLY in ebook-mode (via the evtest --query test), that when I ran this
   again and again via the suprocess module, the XO-4 behaved very
   erratically. However, when I made the keys take effect irrespective of
 the
   test of ebook-mode, things worked cool. However, I will keep on looking
   into the reason.
  
  
   Thanks a ton to all :)
  
  
   On Thu, Jan 24, 2013 at 10:45 PM, Paul Fox p...@laptop.org wrote:
  
gonzalo wrote:
  Write does not know what is the ebook switch state, that logic is
 in the
  osk.
 
  Looking in the wiki and sugar code, I could not find information
 about
how
  read the switch,
  but in ticket http://dev.laptop.org/ticket/12326 found this:
 
  If you do:
 
  evtest --query /dev/input/event4 EV_SW SW_TABLET_MODE; echo $?
 
 
  If the xo is in ebook mode returns 10, if not, returns 0.
 
  There are any official doc about the switches I am missing? There
 are a
way
  to catch a event when the switch is activated, using dbus or
 something
  similar?
   
if you open the device and read it, you'll get a stream of struct
input_event structures (/usr/include/linux/input.h) representing
opening and closing of the SW_TABLET_MODE switch.  here's a C code
snippet from olpc-switchd (part of powerd):
   
void ebook_event()
{
struct input_event ev[1];
   
if (read(ebk_fd, ev, sizeof(ev)) != sizeof(ev))
die(bad read from ebook switch);
   
dbg(3, ebk: ev sec %d usec %d type %d code %d value %d,
ev-time.tv_sec, ev-time.tv_usec,
ev-type, ev-code, ev-value);
   
if (ev-type == EV_SW  ev-code == SW_TABLET_MODE) {
if (ev-value)
send_event(ebookclose, round_secs(ev), ebk_device);
else
send_event(ebookopen, round_secs(ev), ebk_device);
}
}
   
   
perhaps there's an evdev to dbus gateway of some sort, but i don't
 know
about it, if so.
   
the evtest commandline example, above, uses an ioctl on the input
device to determine current state.  here's snippet from the evtest
 source:
(full source:  git://anongit.freedesktop.org/evtest)
   
static int query_device(const char *device, const struct
 query_mode
*query_mode
{
int fd;
int r;
unsigned long state[NBITS(query_mode-max)];
   
fd = open(device, O_RDONLY);
if (fd  0) {
perror(open);
return EXIT_FAILURE;
}
memset(state, 0, sizeof(state));
r = ioctl(fd, query_mode-rq, state);
close(fd);
   
if (r == -1) {
perror(ioctl);
return EXIT_FAILURE;
}
   
if (test_bit(keycode, state))
return 10; /* different from EXIT_FAILURE */
else
return 0;
}
   
   
   
paul
   
   
 
  Gonzalo
 
 
  On Thu, Jan 24, 2013 at 12:16 PM, Martin Langhoff 
martin.langh...@gmail.com
   wrote:
 
   On Thu, Jan 24, 2013 at 10:13 AM, Paul Fox p...@laptop.org
 wrote:
i believe sugar already has code to detect the two modes, since
that's how it knows whether to present the OSK or not.
  
   Yep. Ajay, I think Write shows you the way :-)
  
  
  
  
   m
   --
martin.langh...@gmail.com
mar...@laptop.org -- Software Architect - OLPC
- ask interesting questions
- don't get distracted with shiny stuff  - working code first
- http://wiki.laptop.org/go/User:Martinlanghoff
  
   
=-
 paul fox, p...@laptop.org
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel
   
  
  
  
   --
   Regards,
  
   Ajay Garg
   Dextrose Developer
   Activity

Re: [Sugar-devel] Hacking onto the appearing and hiding of OSK

2013-01-28 Thread Ajay Garg
I agree with Gonzalo and Gary; this is just a makeshift solution for the
time-being, so that activities like Speak, Chat, Terminal are not rendered
completely unusable in ebook-mode.

Ideally, the best solution would be to have the OSK-appearance-and
window-shrinkage on automatic and tied-together basis (without needing
any manual intervention).



On Tue, Jan 29, 2013 at 9:17 AM, Gary Martin garycmar...@googlemail.comwrote:

 On 28 Jan 2013, at 18:33, Gonzalo Odiard gonz...@laptop.org wrote:

 
 
  On Mon, Jan 28, 2013 at 2:50 PM, Ajay Garg a...@activitycentral.com
 wrote:
 
 
  On Mon, Jan 28, 2013 at 11:01 PM, Paul Fox p...@laptop.org wrote:
  ajay wrote:
Hi all.
   
A simple solution was found :)
   
I hacked the KP_Prior and KP_Next keys, and now they are used for
making-window-smaller and restoring-original-window-size respectively
 :)
 
  so sugar takes over those keys?  aren't those keys used by activities?
  they're certainly useful in a terminal -- page up and page down.
 
  Hmm.. Well a simple grepping showed that the Read activity is the
 only activity that explicitly makes use of the KP_Home and KP_End keys;
 but none seemed to make use of KP_Prior and KP_Next.
 
 
  A simple grep is not good enough. Gtk already uses these keys, for
 example in a textview.
 
  I can't understand what you are trying to do. The user should press the
 key to enlarge/shrink the activity window? Does not look like a good
 solution.

 +1

 OSK behaviour should be automatic, no user intervention (other than
 perhaps some manual view scrolling when there is no active focus to get
 into view). If we are missing cases (and we are currently), then these are
 bugs to be fixed and/or features to be landed (often GTK3 related upstream
 targets, but occasionally Sugar/Activity related patches). We made great
 progress in 13.1.0, hopefully we can finish off this effort ready for
 13.2.0.

 Regards,
 --Gary

  Gonzalo
 
 
 
 
  paul
 
   
All thanks to
   * /usr/share/X11/xkb/keycodes/evdev
   * sugar/src/jarabe/view/keyhandler.py
   
   
   
Just one thing I noticed when  I tried to have the above keys take
 effect
ONLY in ebook-mode (via the evtest --query test), that when I ran
 this
again and again via the suprocess module, the XO-4 behaved very
erratically. However, when I made the keys take effect irrespective
 of the
test of ebook-mode, things worked cool. However, I will keep on
 looking
into the reason.
   
   
Thanks a ton to all :)
   
   
On Thu, Jan 24, 2013 at 10:45 PM, Paul Fox p...@laptop.org wrote:
   
 gonzalo wrote:
   Write does not know what is the ebook switch state, that logic
 is in the
   osk.
  
   Looking in the wiki and sugar code, I could not find information
 about
 how
   read the switch,
   but in ticket http://dev.laptop.org/ticket/12326 found this:
  
   If you do:
  
   evtest --query /dev/input/event4 EV_SW SW_TABLET_MODE; echo $?
  
  
   If the xo is in ebook mode returns 10, if not, returns 0.
  
   There are any official doc about the switches I am missing?
 There are a
 way
   to catch a event when the switch is activated, using dbus or
 something
   similar?

 if you open the device and read it, you'll get a stream of struct
 input_event structures (/usr/include/linux/input.h) representing
 opening and closing of the SW_TABLET_MODE switch.  here's a C code
 snippet from olpc-switchd (part of powerd):

 void ebook_event()
 {
 struct input_event ev[1];

 if (read(ebk_fd, ev, sizeof(ev)) != sizeof(ev))
 die(bad read from ebook switch);

 dbg(3, ebk: ev sec %d usec %d type %d code %d value %d,
 ev-time.tv_sec, ev-time.tv_usec,
 ev-type, ev-code, ev-value);

 if (ev-type == EV_SW  ev-code == SW_TABLET_MODE) {
 if (ev-value)
 send_event(ebookclose, round_secs(ev),
 ebk_device);
 else
 send_event(ebookopen, round_secs(ev), ebk_device);
 }
 }


 perhaps there's an evdev to dbus gateway of some sort, but i don't
 know
 about it, if so.

 the evtest commandline example, above, uses an ioctl on the input
 device to determine current state.  here's snippet from the evtest
 source:
 (full source:  git://anongit.freedesktop.org/evtest)

 static int query_device(const char *device, const struct
 query_mode
 *query_mode
 {
 int fd;
 int r;
 unsigned long state[NBITS(query_mode-max)];

 fd = open(device, O_RDONLY);
 if (fd  0) {
 perror(open);
 return EXIT_FAILURE;
 }
 memset(state, 0, sizeof(state

Re: [Sugar-devel] Hacking onto the appearing and hiding of OSK

2013-01-24 Thread Ajay Garg
On Thu, Jan 24, 2013 at 5:50 PM, Walter Bender walter.ben...@gmail.comwrote:

 On Thu, Jan 24, 2013 at 3:22 AM, Ajay Garg a...@activitycentral.com
 wrote:
  Thanks Walter and Gary for your replies.
 
  Well, what I am trying to achieve is, is just a simple and consistent
  (fixed) behaviour across every activity - make the window-size smaller.
  This serves two advantages ::
 
 * Works everywhere :)
 * Is consistent across everywhere :)
 

 I applaud these goals.


Thanks :)





  Please find attached a sample screenshot of the Speak activity; the
 window
  has been resized to 0.7 of the original size (the screenshot doesn't
 show a
  keyboard yet,  as it was done on  sugar-build).

 Question: Do all activities behave properly when the screen is scaled
 that way? (I don't know that all activities are paying attention to
 resizing events. One quick way to check is to look at what happens
 when activities are rotated.)


I will be receiving my XO-4 Touch in a couple of days; will answer  this
question then, after testing it in real-time :)






 
 
  If the above seems ok, then all that is needed is a way to figure out
  instances when the OSK appears, and when it disappears, so that the
 window
  resizing can be done at those strategic points.
 
  (
  P.S. :: I see that exporting GTK_IM_MODULE=Maliit is all that is
  required to start using the Maliit OSK, but I could not find any
way to hack onto every appearence/disappearance of the OSK.
  )
 
 
 
  On Wed, Jan 23, 2013 at 9:32 PM, Gary Martin garycmar...@googlemail.com
 
  wrote:
 
  On 23 Jan 2013, at 15:29, Walter Bender walter.ben...@gmail.com
 wrote:
 
   On Wed, Jan 23, 2013 at 1:20 AM, Ajay Garg a...@activitycentral.com
   wrote:
   Hi all.
  
   I wish to fix the bug, where some activities (Chat, Terminal, Speak
 for
   instance) are rendered unusable in the ebook-mode, due to the OSK
   covering
   the area of text-input.
   I have figured out a generic working solution for this - the idea is
 to
   minimize the activity windows when the OSK appears, and move back to
   the
   normal size when the OSK disappears.
  
   I thought we had a different approach under development: to scroll the
   window up in the case of the text view being occluded by the OSK?
 
  Yes, there are patches in GTK3 and Sugar for this, though with some
 issues
  still needing worked through. One activity that we managed to push hard
 to
  get polished was Write, it needed to be a special case as it doesn't use
  normal gtk widgets. My (rough) understanding of the implementation is
 that
  GTK first looks for a scrolled view and tries to scroll it so that the
  cursor/focus rect is kept in view [1], if no scrolled view is found it
  scrolls the canvas [2].
 
  [1] the Write behaviour here is not ideal as the abiword widget
  implementation for the text area didn't allow for extra padding at the
  bottom of the view, so the text being edited is hard up next to the OSK
  rather than with some extra space so the text selection handles stay
  visible.
 
  [2] I think there were patches in GTK3 Sugar so that the activity canvas
  area was automatically placed in a scroll view, so the toolbars are
  guaranteed to stay in view, but not sure if this landed.
 
   This
   should be doable for activities that have scrolling windows, such as
   terminal and chat. Speak, which doesn't scroll could be refactored to
   put the textview on the top instead of the bottom of the screen. (I
   suspect that whatever solution we have will involve some intervention
   in some activities.)
 
  Yes some intervention in activities will still be needed, and the first
  thing to do if you want any of this auto scrolling support is make sure
 your
  activity is ported to GTK3! ;) FOr activities like Speak I'd posted
 mockup
  images to a previous mail list thread showing how moving the text input
 area
  to the top of the UI would work well (the eyes will just peek over the
 top
  of the keyboard and the OSK can be hidden when the text is submitted for
  speaking).
 
  
   I have tested the re-sizing the windows; however, to make the fix
  work
   everywhere, I was thinking of the following algorithm ::
  
   What does resizing the window do? What other activities have you
 tested
   it on?
 
  Some activities will become quite unusable if auto shrunk, scrolling I
  think is better, we're lucky if the original developer planned for
 landscape
  and portrait aspect ratios...
 
  Regards,
  --Gary
 
  
  
   a)
   Just before/after the OSK appears, make the current window smaller.
  
   b)
   Just after/before the OSK disappears, revert the current  window to
 its
   original size (if not already).
  
  
   This requires a way to know when and how the
 appeareance/disappearance
   of
   the OSK is triggered.
  
   How can this be done? I am sure there must be some gobject-signal for
   this -
   I just can't seem to figure it  out by manually

Re: [Sugar-devel] Hacking onto the appearing and hiding of OSK

2013-01-24 Thread Ajay Garg
On Thu, Jan 24, 2013 at 6:45 PM, Gonzalo Odiard gonz...@laptop.org wrote:

  Please find attached a sample screenshot of the Speak activity; the
 window

   has been resized to 0.7 of the original size (the screenshot doesn't
 show a
  keyboard yet,  as it was done on  sugar-build).

 Question: Do all activities behave properly when the screen is scaled
 that way? (I don't know that all activities are paying attention to
 resizing events. One quick way to check is to look at what happens
 when activities are rotated.)


 I will be receiving my XO-4 Touch in a couple of days; will answer  this
 question then, after testing it in real-time :)


 XO-4 does not support rotate the screen yet. You should try with other
 models.


Ok, thanks for the info :)






 Just figured out one thing via Nitika's XO-4-Touch (thanks to Nitika for
 bearing my brunt of the testing-questions !!), that pressing all 4
 game-keys at once, does toggle the appearance of the OSK !!

 So, I guess, we DO have a point, wherein we can hack resizing of the
 window.

 So, now I have another question ::
 Where is the code for handling game keys handled (as far as appearance
 and disappearance of the OSK is concerned) ?
 In Firmware? In Sugar? Elsewhere?


 The keyboard appear because you pressed a key (you don't need press the 4
 at once, any key will show it)

 Detecting osk show/hide. is more complicate than should be, in my point of
 view. Probably, because the idea behind this is the osk should appear and
 hide in a automatic way based in the widgets needs.

 I think you should check the class DocumentView in widgets.py in Write
 activity, to see how the signals are used. Carlos Garnacho worked on this.


Ahh.. that's a nice pointer Gonzalo :)

It seems that only size-allocate and request-clear-area are the signals
to be considered (not sure though; again, can only  verify after a couple
of days).

If these signals are in fact emitted when the OSK appears/disappears by
pressing a game key, I think we should be done. We would have found a hack
:)

Keeping fingers crossed, and waiting eagerly for my XO-4-Touch to arrive.





 Gonzalo






 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com

 ___
 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




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Hacking onto the appearing and hiding of OSK

2013-01-24 Thread Ajay Garg
On Thu, Jan 24, 2013 at 7:04 PM, Ajay Garg a...@activitycentral.com wrote:



 On Thu, Jan 24, 2013 at 6:45 PM, Gonzalo Odiard gonz...@laptop.orgwrote:

  Please find attached a sample screenshot of the Speak activity; the
 window

   has been resized to 0.7 of the original size (the screenshot doesn't
 show a
  keyboard yet,  as it was done on  sugar-build).

 Question: Do all activities behave properly when the screen is scaled
 that way? (I don't know that all activities are paying attention to
 resizing events. One quick way to check is to look at what happens
 when activities are rotated.)


 I will be receiving my XO-4 Touch in a couple of days; will answer  this
 question then, after testing it in real-time :)


 XO-4 does not support rotate the screen yet. You should try with other
 models.


 Ok, thanks for the info :)






 Just figured out one thing via Nitika's XO-4-Touch (thanks to Nitika for
 bearing my brunt of the testing-questions !!), that pressing all 4
 game-keys at once, does toggle the appearance of the OSK !!

 So, I guess, we DO have a point, wherein we can hack resizing of the
 window.

 So, now I have another question ::
 Where is the code for handling game keys handled (as far as appearance
 and disappearance of the OSK is concerned) ?
 In Firmware? In Sugar? Elsewhere?


 The keyboard appear because you pressed a key (you don't need press the 4
 at once, any key will show it)

 Detecting osk show/hide. is more complicate than should be, in my point
 of view. Probably, because the idea behind this is the osk should appear
 and hide in a automatic way based in the widgets needs.

 I think you should check the class DocumentView in widgets.py in Write
 activity, to see how the signals are used. Carlos Garnacho worked on this.


 Ahh.. that's a nice pointer Gonzalo :)

 It seems that only size-allocate and request-clear-area are the
 signals to be considered (not sure though; again, can only  verify after a
 couple of days).

 If these signals are in fact emitted when the OSK appears/disappears by
 pressing a game key, I think we should be done. We would have found a hack
 :)

 Keeping fingers crossed, and waiting eagerly for my XO-4-Touch to arrive.



Gonzalo,

another thing Nitika and me found,  are the following ::

a)
Ensure that the XO is in normal-mode, and no activity is turned on.

b)
Turn to ebook-mode.

c)
Open Speak activity.

d)
OSK appears automatically this time.

e)
Now, pressing the game-key does not cause the OSK to go away :-\
It is only when the keyboard key is  pressed, does  the OSK disappear.

f)
If the game-key is pressed again, the OSK appears.


Gist :: Game-key works fine and consistently, when the OSK is required to
be made appeared.
  BUT, it does NOT WORK, if the OSK has been launched automatically.


So, it seems that just hacking onto the game-key won't help :(








 Gonzalo






 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com

 ___
 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




 --
 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Hacking onto the appearing and hiding of OSK

2013-01-24 Thread Ajay Garg
On Thu, Jan 24, 2013 at 7:36 PM, Gonzalo Odiard gonz...@laptop.org wrote:

 

 So, it seems that just hacking onto the game-key won't help :(


 No. Will not work, because the osk will appear if you touch over a input
 widget.
 The game keys are not the expected way to show the osk.


Hmm.. which brings us back to square one :(




 Gonzalo




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Hacking onto the appearing and hiding of OSK

2013-01-24 Thread Ajay Garg
On Thu, Jan 24, 2013 at 7:37 PM, Ajay Garg a...@activitycentral.com wrote:



 On Thu, Jan 24, 2013 at 7:36 PM, Gonzalo Odiard gonz...@laptop.orgwrote:

 

 So, it seems that just hacking onto the game-key won't help :(


 No. Will not work, because the osk will appear if you touch over a input
 widget.
 The game keys are not the expected way to show the osk.


 Hmm.. which brings us back to square one :(



Let's try another way :P

Is there a way, so that we may know whether we are in ebook-mode, or
normal-mode?

If yes, we can at least make the windows smaller for newly launched
activity-windows.








 Gonzalo




 --
 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Hacking onto the appearing and hiding of OSK

2013-01-24 Thread Ajay Garg
On Thu, Jan 24, 2013 at 8:20 PM, Jerry Vonau je...@laptop.org.au wrote:



 On 24 January 2013 08:11, Ajay Garg a...@activitycentral.com wrote:



 On Thu, Jan 24, 2013 at 7:37 PM, Ajay Garg a...@activitycentral.comwrote:



 On Thu, Jan 24, 2013 at 7:36 PM, Gonzalo Odiard gonz...@laptop.orgwrote:

 

 So, it seems that just hacking onto the game-key won't help :(


 No. Will not work, because the osk will appear if you touch over a
 input widget.
 The game keys are not the expected way to show the osk.


 Hmm.. which brings us back to square one :(



 Let's try another way :P

 Is there a way, so that we may know whether we are in ebook-mode, or
 normal-mode?


 Yes, there is a ebook switch event:

 Jan 24 01:14:28 xo-1e-89-0d kernel: OLPC XO-1.75 lid and ebook switches
 Jan 24 01:14:28 xo-1e-89-0d kernel: input: OLPC lid switch as
 /devices/virtual/input/input3
 Jan 24 01:14:28 xo-1e-89-0d kernel: input: OLPC ebook switch as
 /devices/virtual/input/input4


Great !!

Now a good weekend exercise, to bring this message from kernel to user
space :)


 Jan 24 01:14:49 xo-1e-89-0d olpc-kbdshim-udev[484]: olpc-kbdshim-udev:
 starting olpc-kbdshim-udev version 29
 Jan 24 01:14:49 xo-1e-89-0d olpc-kbdshim-udev[484]: olpc-kbdshim-udev: fd
 4: found touchscreen (zForce touchscreen) /dev/input/event8 (18:00:00)
 Jan 24 01:14:49 xo-1e-89-0d olpc-kbdshim-udev[484]: olpc-kbdshim-udev: fd
 6: found keyboard (AT Translated Set 2 keyboard) /dev/input/event5
 (11:01:01)
 Jan 24 01:14:49 xo-1e-89-0d olpc-kbdshim-udev[484]: olpc-kbdshim-udev: fd
 7: found touchpad (FSPPS/2 Sentelic FingerSensingPad) /dev/input/event9
 (11:02:0f)

 Jan 24 01:14:49 xo-1e-89-0d olpc-kbdshim-udev[484]: olpc-kbdshim-udev: fd
 8: found ebook switch

 Jerry



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




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Hacking onto the appearing and hiding of OSK

2013-01-24 Thread Ajay Garg
On Thu, Jan 24, 2013 at 8:46 PM, Martin Langhoff
martin.langh...@gmail.comwrote:

 On Thu, Jan 24, 2013 at 10:13 AM, Paul Fox p...@laptop.org wrote:
  i believe sugar already has code to detect the two modes, since
  that's how it knows whether to present the OSK or not.

 Yep. Ajay, I think Write shows you the way :-)


Great.. Thanks !!!

So the candle lights again in my heart; again waiting eagerly for my
XO-4-Touch to arrive in a couple of days :)








 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- Software Architect - OLPC
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Hacking onto the appearing and hiding of OSK

2013-01-22 Thread Ajay Garg
Hi all.

I wish to fix the bug, where some activities (Chat, Terminal, Speak for
instance) are rendered unusable in the ebook-mode, due to the OSK covering
the area of text-input.
I have figured out a generic working solution for this - the idea is to
minimize the activity windows when the OSK appears, and move back to the
normal size when the OSK disappears.

I have tested the re-sizing the windows; however, to make the fix  work
everywhere, I was thinking of the following algorithm ::

a)
Just before/after the OSK appears, make the current window smaller.

b)
Just after/before the OSK disappears, revert the current  window to its
original size (if not already).


This requires a way to know when and how the appeareance/disappearance of
the OSK is triggered.

How can this be done? I am sure there must be some gobject-signal for this
- I just can't seem to figure it  out by manually browsing the code, since
I don't personally  have a  XO4-Touch with me :-(



Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Difference in behaviour of telepathy-gabble, when ejabberd is used with CentOS and Debian-6

2013-01-20 Thread Ajay Garg
Any ideas, please?  :)


On Fri, Jan 18, 2013 at 2:03 PM, Ajay Garg a...@activitycentral.com wrote:

 Hi all.

 I have been trying to get buddies visible in the neighborhood-view, when
 XOs are communicating via ejabberd-server (via telepathy-gabble).
 Following are the two cases ::


 i)
 Client  :: Sugar (Fedora-18 based)
 Server :: ejabberd on CentOS (XS-0.7)

 In this case, I am able to register the users on the server; and receive
 the  members changed signals (as per the attached
 PASS_telepathy_gabble.log).
 Of course, the buddies are able to see each other too :)


 ii)
 Client  :: Sugar (Fedora-18 based)
 Server :: ejabberd on Debian-6

 In this case, I am able to register the users on the server; but DO NOT
 receive the members changed signals (as per the attached
 FAIL_telepathy_gabble.log).
 Hence, buddies are not able to see each other.



 Some additional notes ::
 ==

 a)
 Both servers are running with the same  ejabberd.cfg file, as attached.


 b)
 On CentOS, following are effective, before starting ejabberd ::

setenforce 0
service iptables stop
service ip6tables stop


 On Debian-6, following are effective, before starting ejabberd ::

setenforce 0
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
ip6tables -F
ip6tables -X
ip6tables -t mangle -F
ip6tables -t mangle -X



 c)
 Both servers are running the same ejabberd codebase (the patched version
 of 2.1.10), containing all the patches in

 http://dev.laptop.org/xs/repos/stable/olpc/xs-0.7/source/ejabberd-2.1.10-1.el6.olpc1.src.rpm
 (Thanks again Jerry).

 More  importantly, the issue of
 https://support.process-one.net/browse/EJAB-1533 is fixed via the
 persist-all-pubsub.patch (Thanks Daniel Drake).
 The buddy-properties are persisted, as seen via ejabberdctl dump db.txt
 (as seen on both CentOS and Debian).



 
 However, very surprisingly, the __get_members_ready_cb still receives
 NOTHING in the failure-debian case  (see FAIL-shell.log),

   but receives the buddy-properties in pass-CentOScase (see
 PASS-shell.log).

 #



 d)
 Most importantly, on both the servers, the Send XML Stream log is seen
 in /var/log/ejabberd/ejabberd.log; however, the members-changed signal is
 seen only in the CentOS-ejabberd case, but not in Debian-6-ejabberd case.


 For brevity, I am also pasting the  Send XML Stream message (which
 happens to be the same on both the  servers) ::

 ==


 =INFO REPORT 2013-01-17 23:46:45 ===
 D(0.360.0:ejabberd_c2s:1561) : Send XML on stream = message from='
 5ccefd7c37c12600296e0505ad3be79c0476e...@schoolserver.mazaq.org' to='
 5ccefd7c37c12600296e0505ad3be79c0476e...@schoolserver.mazaq.org/sugar'
 type='headline'event xmlns='http://jabber.org/protocol/pubsub#event'items
 node='http://laptop.org/xmpp/buddy-properties'item
 id='54E6D08D69C42'properties xmlns='
 http://laptop.org/xmpp/buddy-properties'property name='color'
 type='str'#00A0FF,#9A5200/propertyproperty name='key'
 type='bytes'QUFBQUIzTnphQzFrYzNNQUFBQ0JBTHl2Ly9HUGJ2V3QwaXNQeUJWWmU4aUZ1aDlRUHFaVDQrd0tzOUMwek9kc0g5QlpqVVV4QVNMeEVuUE9lMnJNSjlZL2EvTTBEZmw2SnhKdDEyWTZMdm5JQlV6Rkd1YjBuS1pEQTlpT1BkK1JVMGZEUUxLd1czV3RiNGE5S0s4ZkZsYWtNT092QW5ZTG9VZExjN0ZQZmxjMUFnVDlLU0wwdEptZ1lEekVKTi9UQUFBQUZRQ0hzU093TThtcEFtS0k5U1Y3azNhMzVVR2xMUUFBQUlCWTFQU0ExZUhWN2pFYUZERFZSVHBiQVdhYWVmQ3JCVVJLUFVxam56bDIxR09PQ0xRWWVRR0lYNnpOYlArSUlFaW1QN0E0b3o4cmFyblNIYnNiQjdtNGE3amtWbUpTdTBVYW53TUVWS3VBQnk2bE5oVXVremM2THRiMnJhaXJFcmNQNENzcGNoRk1KOTByWTFXLzVjNWlabXR2NUpFbjBnRmVLWnlibjhIVGJ3QUFBSUVBcXlWdzMzM09GSU83TmRsY1lIVzZoZzVHY0hTUXJBblZmdWY3QWx0L1Z6bHp5cHRQTnN3NlRxN1RIWVcwOEEvVEUzUzd2dlU5WFNHVkhkY3R3Wm9yNmt3elRDYk83WSttUU1pdzViRmc4ZUNYeTcvZENPbHMzUmVhRmc3QVlobDlRR3hjS1ppUmNGRnJwOHVKVlIyQTl5YzZPSEt4Mjh4UmtBRjlkOUN5TDljPQ==/property/properties/item/items/eventaddresses
 xmlns='http://jabber.org/protocol/address'address type='replyto' jid='
 5ccefd7c37c12600296e0505ad3be79c0476e...@schoolserver.mazaq.org/sugar'/http://5ccefd7c37c12600296e0505ad3be79c0476e...@schoolserver.mazaq.org/sugar%27

Re: Difference in behaviour of telepathy-gabble, when ejabberd is used with CentOS and Debian-6

2013-01-20 Thread Ajay Garg
On Mon, Jan 21, 2013 at 12:11 AM, Jerry Vonau jvo...@shaw.ca wrote:

 On Sun, 2013-01-20 at 13:44 +0530, Ajay Garg wrote:
  Any ideas, please?  :)
 
 

 Ok, how about a couple of questions. What version of erlang is
 installed? Did you create the *online* group?


Oops... that was it !! :)

Creating the group did it :) :)


Thanks (yet again) Jerry !!! :) :)




 Jerry


  On Fri, Jan 18, 2013 at 2:03 PM, Ajay Garg a...@activitycentral.com
  wrote:
  Hi all.
 
  I have been trying to get buddies visible in the
  neighborhood-view, when XOs are communicating via
  ejabberd-server (via telepathy-gabble).
  Following are the two cases ::
 
 
  i)
  Client  :: Sugar (Fedora-18 based)
  Server :: ejabberd on CentOS (XS-0.7)
 
  In this case, I am able to register the users on the server;
  and receive the  members changed signals (as per the
  attached PASS_telepathy_gabble.log).
  Of course, the buddies are able to see each other too :)
 
 
  ii)
  Client  :: Sugar (Fedora-18 based)
  Server :: ejabberd on Debian-6
 
  In this case, I am able to register the users on the server;
  but DO NOT receive the members changed signals (as per the
  attached FAIL_telepathy_gabble.log).
  Hence, buddies are not able to see each other.
 
 
 
  Some additional notes ::
  ==
 
  a)
  Both servers are running with the same  ejabberd.cfg file,
  as attached.
 
 
  b)
  On CentOS, following are effective, before starting
  ejabberd ::
 
 setenforce 0
 service iptables
  stop
 service ip6tables
  stop
 
 
  On Debian-6, following are effective, before starting
  ejabberd ::
 
 setenforce 0
 iptables -F
 iptables -X
 iptables -t nat -F
 iptables -t nat
  -X
 iptables -t mangle
  -F
 iptables -t mangle
  -X
 ip6tables -F
 ip6tables -X
 ip6tables -t mangle
  -F
 ip6tables -t mangle
  -X
 
 
 
  c)
  Both servers are running the same ejabberd codebase (the
  patched version of 2.1.10), containing all the patches in
 
 http://dev.laptop.org/xs/repos/stable/olpc/xs-0.7/source/ejabberd-2.1.10-1.el6.olpc1.src.rpm
  (Thanks again Jerry).
 
  More  importantly, the issue of
  https://support.process-one.net/browse/EJAB-1533 is fixed via
  the persist-all-pubsub.patch (Thanks Daniel Drake).
  The buddy-properties are persisted, as seen via ejabberdctl
  dump db.txt (as seen on both CentOS and Debian).
 
 
 
 
  However, very surprisingly, the __get_members_ready_cb still
  receives NOTHING in the failure-debian case  (see
  FAIL-shell.log),
 
  but receives the buddy-properties in pass-CentOScase (see
  PASS-shell.log).
 
 #
 
 
 
  d)
  Most importantly, on both the servers, the Send XML Stream
  log is seen in /var/log/ejabberd/ejabberd.log; however, the
  members-changed signal is seen only in the CentOS-ejabberd
  case, but not in Debian-6-ejabberd case.
 
 
  For brevity, I am also pasting the  Send XML Stream message
  (which happens to be the same on both the  servers) ::
 
 ==
 
 
  =INFO REPORT 2013-01-17 23:46:45 ===
  D(0.360.0:ejabberd_c2s:1561) : Send XML on stream =
  message
  from='
 5ccefd7c37c12600296e0505ad3be79c0476e...@schoolserver.mazaq.org' to='
 5ccefd7c37c12600296e0505ad3be79c0476e...@schoolserver.mazaq.org/sugar'
 type='headline'event xmlns='http://jabber.org/protocol/pubsub#event'items
 node='http://laptop.org/xmpp/buddy-properties'item
 id='54E6D08D69C42'properties xmlns='
 http://laptop.org/xmpp/buddy-properties'property name='color'
 type='str'#00A0FF,#9A5200/propertyproperty name='key'
 type

Re: [Server-devel] Difference in behaviour of telepathy-gabble, when ejabberd is used with CentOS and Debian-6

2013-01-20 Thread Ajay Garg
Any ideas, please?  :)


On Fri, Jan 18, 2013 at 2:03 PM, Ajay Garg a...@activitycentral.com wrote:

 Hi all.

 I have been trying to get buddies visible in the neighborhood-view, when
 XOs are communicating via ejabberd-server (via telepathy-gabble).
 Following are the two cases ::


 i)
 Client  :: Sugar (Fedora-18 based)
 Server :: ejabberd on CentOS (XS-0.7)

 In this case, I am able to register the users on the server; and receive
 the  members changed signals (as per the attached
 PASS_telepathy_gabble.log).
 Of course, the buddies are able to see each other too :)


 ii)
 Client  :: Sugar (Fedora-18 based)
 Server :: ejabberd on Debian-6

 In this case, I am able to register the users on the server; but DO NOT
 receive the members changed signals (as per the attached
 FAIL_telepathy_gabble.log).
 Hence, buddies are not able to see each other.



 Some additional notes ::
 ==

 a)
 Both servers are running with the same  ejabberd.cfg file, as attached.


 b)
 On CentOS, following are effective, before starting ejabberd ::

setenforce 0
service iptables stop
service ip6tables stop


 On Debian-6, following are effective, before starting ejabberd ::

setenforce 0
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
ip6tables -F
ip6tables -X
ip6tables -t mangle -F
ip6tables -t mangle -X



 c)
 Both servers are running the same ejabberd codebase (the patched version
 of 2.1.10), containing all the patches in

 http://dev.laptop.org/xs/repos/stable/olpc/xs-0.7/source/ejabberd-2.1.10-1.el6.olpc1.src.rpm
 (Thanks again Jerry).

 More  importantly, the issue of
 https://support.process-one.net/browse/EJAB-1533 is fixed via the
 persist-all-pubsub.patch (Thanks Daniel Drake).
 The buddy-properties are persisted, as seen via ejabberdctl dump db.txt
 (as seen on both CentOS and Debian).



 
 However, very surprisingly, the __get_members_ready_cb still receives
 NOTHING in the failure-debian case  (see FAIL-shell.log),

   but receives the buddy-properties in pass-CentOScase (see
 PASS-shell.log).

 #



 d)
 Most importantly, on both the servers, the Send XML Stream log is seen
 in /var/log/ejabberd/ejabberd.log; however, the members-changed signal is
 seen only in the CentOS-ejabberd case, but not in Debian-6-ejabberd case.


 For brevity, I am also pasting the  Send XML Stream message (which
 happens to be the same on both the  servers) ::

 ==


 =INFO REPORT 2013-01-17 23:46:45 ===
 D(0.360.0:ejabberd_c2s:1561) : Send XML on stream = message from='
 5ccefd7c37c12600296e0505ad3be79c0476e...@schoolserver.mazaq.org' to='
 5ccefd7c37c12600296e0505ad3be79c0476e...@schoolserver.mazaq.org/sugar'
 type='headline'event xmlns='http://jabber.org/protocol/pubsub#event'items
 node='http://laptop.org/xmpp/buddy-properties'item
 id='54E6D08D69C42'properties xmlns='
 http://laptop.org/xmpp/buddy-properties'property name='color'
 type='str'#00A0FF,#9A5200/propertyproperty name='key'
 type='bytes'QUFBQUIzTnphQzFrYzNNQUFBQ0JBTHl2Ly9HUGJ2V3QwaXNQeUJWWmU4aUZ1aDlRUHFaVDQrd0tzOUMwek9kc0g5QlpqVVV4QVNMeEVuUE9lMnJNSjlZL2EvTTBEZmw2SnhKdDEyWTZMdm5JQlV6Rkd1YjBuS1pEQTlpT1BkK1JVMGZEUUxLd1czV3RiNGE5S0s4ZkZsYWtNT092QW5ZTG9VZExjN0ZQZmxjMUFnVDlLU0wwdEptZ1lEekVKTi9UQUFBQUZRQ0hzU093TThtcEFtS0k5U1Y3azNhMzVVR2xMUUFBQUlCWTFQU0ExZUhWN2pFYUZERFZSVHBiQVdhYWVmQ3JCVVJLUFVxam56bDIxR09PQ0xRWWVRR0lYNnpOYlArSUlFaW1QN0E0b3o4cmFyblNIYnNiQjdtNGE3amtWbUpTdTBVYW53TUVWS3VBQnk2bE5oVXVremM2THRiMnJhaXJFcmNQNENzcGNoRk1KOTByWTFXLzVjNWlabXR2NUpFbjBnRmVLWnlibjhIVGJ3QUFBSUVBcXlWdzMzM09GSU83TmRsY1lIVzZoZzVHY0hTUXJBblZmdWY3QWx0L1Z6bHp5cHRQTnN3NlRxN1RIWVcwOEEvVEUzUzd2dlU5WFNHVkhkY3R3Wm9yNmt3elRDYk83WSttUU1pdzViRmc4ZUNYeTcvZENPbHMzUmVhRmc3QVlobDlRR3hjS1ppUmNGRnJwOHVKVlIyQTl5YzZPSEt4Mjh4UmtBRjlkOUN5TDljPQ==/property/properties/item/items/eventaddresses
 xmlns='http://jabber.org/protocol/address'address type='replyto' jid='
 5ccefd7c37c12600296e0505ad3be79c0476e...@schoolserver.mazaq.org/sugar'/http://5ccefd7c37c12600296e0505ad3be79c0476e...@schoolserver.mazaq.org/sugar%27

Location for source-rpm of ejabberd, being used in XS-0.7

2013-01-15 Thread Ajay Garg
Hi all.

I am wanting to share the sugar-activities, via gabble protocol.

As a first step, I installed
http://dev.laptop.org/xs/OLPC-School-Server-0.7-i386.iso on a VirtualBox,
and did the xs-setup example.org  step.
(As the second step, I chose manual networking, to configure the
virtual-image as per my network. After the networking was set, I could use
the Chat activity between two XOs fine :) :)


Now, I wish to have this sharing done, with only ejabberd running (in other
words, without installing all the other components that come along packaged
with the XS).
The ejabberd version (as shown by rpm -qa | grep ejabberd) is
ejabberd-2.1.10.el6.olpc1.i686

Regarding this, I wanted to know the source of the ejabberd rpm being used
::

(i)
Is it the vanilla Fedora rpm that is being used?

(ii)
Or some OLPC-specific patches come along (which would mean there must
be a corresponding OLPC src-rpm for the same :) )



I will be thankful for any pointers :)


Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Location for source-rpm of ejabberd, being used in XS-0.7

2013-01-15 Thread Ajay Garg
On Tue, Jan 15, 2013 at 9:33 PM, Jerry Vonau jvo...@shaw.ca wrote:

 On Tue, 2013-01-15 at 18:54 +0530, Ajay Garg wrote:
  Hi all.
 
  I am wanting to share the sugar-activities, via gabble protocol.
 
  As a first step, I installed
  http://dev.laptop.org/xs/OLPC-School-Server-0.7-i386.iso on a
  VirtualBox, and did the xs-setup example.org  step.
  (As the second step, I chose manual networking, to configure the
  virtual-image as per my network. After the networking was set, I could
  use the Chat activity between two XOs fine :) :)
 
 
  Now, I wish to have this sharing done, with only ejabberd running (in
  other words, without installing all the other components that come
  along packaged with the XS).
  The ejabberd version (as shown by rpm -qa | grep ejabberd) is
  ejabberd-2.1.10.el6.olpc1.i686
 
  Regarding this, I wanted to know the source of the ejabberd rpm being
  used ::
 
  (i)
  Is it the vanilla Fedora rpm that is being used?
 
  (ii)
  Or some OLPC-specific patches come along (which would mean there
  must be a corresponding OLPC src-rpm for the same :) )
 
 

 It's patched, have a look in:
 http://dev.laptop.org/xs/repos/stable/olpc/xs-0.7/source/


Thanks Jerry; as  usual you were on the spot :)
I could build and install the rpm on Fedora :)


Just one more question:
===

I still see that there are some differences (mainly related to the served
domain names, and allowed clients that could register fields) between
the XS-0.7's ejabberd.cfg, and the one I just installed on Fedora.

Although I know the steps to change these settings to make ejabberd work,
but I still wonder whether the ejabberd-installed-after-building-
http://dev.laptop.org/xs/repos/stable/olpc/xs-0.7/source/ejabberd-2.1.10-1.el6.olpc1.src.rpmshould
be the same as
ejabberd-found-on-XS-0.7-just-after-the-XS-has-been-installed (i.e., the
XS-ejabberd's snapshot just before xs-setup example.org is run).


Anyways, thanks a ton !!!





 Jerry






-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Locations for bitfrost src-rpm packages

2012-12-20 Thread Ajay Garg
Thanks Paul, Jerry, Peter.

All three of your answers provided me the maximum cumulative information
possible.
Thanks a ton !! :)

On Thu, Dec 20, 2012 at 11:15 AM, Peter Robinson pbrobin...@gmail.comwrote:

 On Wed, Dec 19, 2012 at 10:48 PM, Jerry Vonau jvo...@shaw.ca wrote:
  On Thu, 2012-12-20 at 03:37 +0530, Ajay Garg wrote:
  Hi all.
 
  Where can I find the corresponding source-rpm packages, for ::
 
   *
  http://rpmdropbox.laptop.org/f18/bitfrost-1.0.18-1.fc18.armv7hl.rpm
AND
   *
 
 http://rpmdropbox.laptop.org/f18/bitfrost-sugar-1.0.18-1.fc18.armv7hl.rpm
 
 
 
  These are in Fedora proper for i686 but looks like not in fedora's ARM
  repo.
 
 
 http://mirrors.kernel.org/fedora/updates/testing/18/SRPMS/bitfrost-1.0.18-1.fc18.src.rpm

 They are the same, there's no separation between ARM and i686 when it
 comes to the Fedora src.rpm

 Peter




Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Locations for bitfrost src-rpm packages

2012-12-19 Thread Ajay Garg
Hi all.

Where can I find the corresponding source-rpm packages, for ::

 *
http://rpmdropbox.laptop.org/f18/bitfrost-1.0.18-1.fc18.armv7hl.rpm
  AND
 *
http://rpmdropbox.laptop.org/f18/bitfrost-sugar-1.0.18-1.fc18.armv7hl.rpm




Thanks in advance !! :)



Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Server-devel] Re-register an XO on XS schoolserver

2012-12-07 Thread Ajay Garg
Hi Vanessa.


Does the following help ?

a)
gconftool-2 --set /desktop/sugar/show_register --type bool True

b)
Reboot.


Now the Register option should be available via right-click.



On Fri, Dec 7, 2012 at 5:40 PM, vanessa ramos da cruz 
v.ramosdac...@gmail.com wrote:

 Halo,

 I am Vanessa, I am working in Angola with this project and have a little
 concern:

 I had a server with XS 0.6, I registered on it some XO’s just for tests.
 Now I have a new machine on witch I installed the XS 0.7. I want to
 register the XO's in the new Machine, but the right click register
 option disappears when a register the XO's at the first time.

 Can you please help me?

 I tried this on terminal to restore the right click register option:
 gconftool-2 --get /desktop/sugar/show_register

 Returned the following message:
 no value defined for:  /desktop/sugar/show_register

 Then i tried this:
 gconftool-2 --toggle /desktop/sugar/show_register

 Returned: no value found for key  /desktop/sugar/show_register

 What else can i do?


 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel




Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


XO-hang on 1.75-touch

2012-11-28 Thread Ajay Garg
Hi all.

Testing http://build.laptop.org/13.1.0/os14/xo-1.75/31014o2.zd on a XO-1.75
touch, I note the following ::


a)
After the image is flashed, the XO works fine in general; more importantly,
as long as all the work is being done via touchpad-pointer (and not through
finger-touches), things work perfect.


b)
Working through finger-touches also work well, as long as c) does not
happen.


c)
At some RANDOM point in time, doing Finger-touch on Home-View XO-icon ==
Finger-touch on My-Settings causes the settings-window to NOT open.
Thereafter, all clicks (via finger-touch, and touchpad-window) stop
working.


Anybody hit by this spuriously? (I am being hit fairly regularly, to the
extent of having the XO-1.75-touch unusable).





Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] XO-hang on 1.75-touch

2012-11-28 Thread Ajay Garg
On Wed, Nov 28, 2012 at 6:18 PM, Paul Fox p...@laptop.org wrote:

 ajay wrote:
  
   Please find attached the logs.
  

 probably better to record the data associated
 with bug reports in a trac ticket.


Thanks.
Done at http://bugs.sugarlabs.org/ticket/4278




 paul

  
  
   
Gonzalo
   
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel
   
   
  
  
   Regards,
  
   Ajay Garg
   Dextrose Developer
   Activity Central: http://activitycentral.com
   part 5 text/plain 153
   ___
   Sugar-devel mailing list
   sugar-de...@lists.sugarlabs.org
   http://lists.sugarlabs.org/listinfo/sugar-devel

 =-
  paul fox, p...@laptop.org
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel




-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] XO-hang on 1.75-touch

2012-11-28 Thread Ajay Garg
Thanks Jerry.

1)
I suspected that power-management could be   an issue.
However, the issue  occurs irrespective of whether power-management  is
enabled or not.

2)
I just realized that build-15 is also out, and there are some
log-differences (at least in shell.log).
So, better to download  os15 image,  and update with the tracing results
on os15.

WIll do that, and update accordingly.

Thanks Jerry again.

On Wed, Nov 28, 2012 at 8:08 PM, Jerry Vonau jvo...@shaw.ca wrote:

 On Wed, 2012-11-28 at 18:26 +0530, Ajay Garg wrote:
 
 
  On Wed, Nov 28, 2012 at 6:18 PM, Paul Fox p...@laptop.org wrote:
  ajay wrote:
   
Please find attached the logs.
   
 
 
  probably better to record the data associated
  with bug reports in a trac ticket.
 
  Thanks.
  Done at http://bugs.sugarlabs.org/ticket/4278
 

 Ajay,

 I can't recreate this, but your log does look a bit strange, there is no
 dcon feedback noted.

 Can you edit /sbin/powerd and change line 454 from
 # tracing=1
 to
 tracing=1

 That will create /var/log/powerd.trace with the full cycle of events for
 powerd. Please reboot and see if you can recreate this issue, when the
 hang occurs include powerd.tracing along with the other logs you posted
 the previous time.

 Thanks

 Jerry











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





Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Major bugs for Software-Update

2012-11-27 Thread Ajay Garg
Hi all.

I have raised the following two tickets, which seem to be major ones for
Software Update ::

http://bugs.sugarlabs.org/ticket/4274
[Selecting/Deselecting particular activities doesn't work in Software
Update]

http://bugs.sugarlabs.org/ticket/4275
[Activity-Group URLS cannot be modified]

I have also listed the links for the patches for  the above two tickets.

It will be nice if these could be included for 0.98 cycle (they surely fit
into the regressions category :P ).



Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Re: Re: [Sugar-devel] [TRANSIENT ISSUE] 3G-Modem not being recognised

2012-11-23 Thread Ajay Garg
Hi all.

*
I tested on XO-1.75 with os14; the frame appeared fine (booting-up with the
USB-flash drive, and USB-modem inserted) !!!

*
Pulling off my hair, I re-tested on XO-1.75 with os11 (booting-up with the
USB-flash drive, and USB-modem inserted) ; thankfully, the frame-icon did
not appear (as before).

*
I then tested on XO-1.75 with the os12 (booting up with the USB-flash
drive, and USB-modem inserted); the frame-icon appeared FINE here too.


I compared the packages-difference between os11 and os12; os12 has an
updated version of usb_modeswitch and usb_modeswitch_data. Also, in os12,
there is no more the error

usb_modeswitch_dispatcher: *** glibc detected ***
usb_modeswitch_dispatcher: double free or corruption (!prev):
0x00081fe0 ***

that was happening in os11 (in the culprit case, that is).


So, bad news   : Things are happening without us  knowing the root-cause :-\
 good news  : Seems like http://dev.laptop.org/ticket/12340 can  be
closed :D


Thanks everyone for the help (especially James).



On Sat, Nov 24, 2012 at 10:31 AM, RJV jv.ravichand...@gmail.com wrote:

 Thanks, James/Tony. But that works, too, fine. The mobile icon plus the
 frame presence is ok.

 Another thing, though, that I have noticed is,

 With the 3G USB stick in, after Disconnec-ting and Remove-ing (with PM
 off) when I select Shut Down, it does not shut down normally. I have to
 Power off the system.

 XO 1.75 - 3.1, 12.1, 0.96, Build 21,

 Regards,

 Jv


 On Sat, Nov 24, 2012 at 10:28 AM, James Cameron qu...@laptop.org wrote:

 On Sat, Nov 24, 2012 at 10:14:41AM +0530, RJV wrote:
  Hi James,
 
   I agree that the frame icon for the modem may not be present if power
  managament was enabled,
 
  The frame does work with the Power Management option unchecked. What
 does the
  frame icon for the modem mean?

 http://wiki.sugarlabs.org/go/Features/3G_Support
 An icon will be added to the frame when a modem is connected, and the
 user will be able to connect and disconnect from there.

 Also known as the GSM device palette.
 http://wiki.sugarlabs.org/go/Features/3G_Support/Share

 Since these mockups the icon has changed to a symbol for a mobile
 telephone.

 The palette has not changed much, if at all.

 
  Jv
 
 
 
  On Sat, Nov 24, 2012 at 2:51 AM, James Cameron qu...@laptop.org
 wrote:
 
  That's not what Ajay said here:
  http://lists.laptop.org/pipermail/devel/2012-November/036409.html
 
  Ajay, can you confirm in the above posting that all power management
  was disabled?
 
  I agree that the frame icon for the modem may not be present if
 power
  managament was enabled, but I see that as a separate problem now.
 
  On Fri, Nov 23, 2012 at 05:20:45PM +0530, RJV wrote:
   As Jerry mentioned, the trick is to uncheck Power Management
 option under
  the
   Power options of the laptop. Otherwise, the scenarios outlined by
 Ajay
  can be
   reproduced.
  
   It seems the power supply to the USB ports do make a difference.
  
   Regards,
  
   Ravichandran J.V.
  
  
   On Fri, Nov 23, 2012 at 1:52 PM, fors...@ozonline.com.au wrote:
  
   USB flash drive
  
On Fri, Nov 23, 2012 at 06:08:26PM +1100,
 fors...@ozonline.com.au
  wrote:
 I repeated these tests
   
Thanks!
   
 XO-1.75 and XO-4
 OS14
 Huawei E160E modem
 Imation 8GB memory stick
   
Is this actually a Memory Stick or do you mean a USB flash
 drive?
http://en.wikipedia.org/wiki/Memory_Stick
   
Ajay said pen-drive, and I took that to mean a USB flash
 drive.
   
 I was unable to replicate the fault described by Ajay,
 the modem
 appeared in the frame, both plugged in after boot and
 before boot

 but for both laptops

 In the first test, memory stick and modem plugged in
 after boot,
  the
 frame never got past displaying connecting, even though I
 could
 browse the net ok
   
Yes, this is SL #4255.
   
 In the second test, memory stick and modem plugged in
 before
  boot, I
 got to the connected display in the frame but the upload
 and
 download kB counters never updated past 0 even though I
 was
 browsing, the connected time did update ok.
   
Interesting, thanks.  Updated SL #4255.  I've never seen
 data
  counters
in 13.1.0 builds.
   
 I did not try without the memory stick.
   
I think your tests show that Ajay's problem is likely to be
 unique
  to
the pen-drive in use.  Thanks for that.
   
--
James Cameron
http://quozl.linux.org.au/

Re: [Sugar-devel] [TRANSIENT ISSUE] 3G-Modem not being recognised

2012-11-21 Thread Ajay Garg
Hi all.

I tested on os11, with all power-management disabled.

0.
Insert a pen-drive.

a)
Inserted modem in another slot; the modem is detected.

b)
Reboot.

c)
Modem is NOT detected.

d)
Remove modem.

e)
Insert modem;  the modem is detected.


I tried the above steps 5 times; and the results were same.


Also, please find attached a sample  python script, which lists all the
detected network-devices.
When this script is run as python nm_test.py in step c), the modem-device
is not detected by this script as well; whereas in other cases, this
script  detects the device.









Another sequence ::


0.
Ensure that there is no pen-drive inserted in any of the USB slots.

a)
Inserted modem; the modem is detected.

b)
Reboot.

c)
Modem is detected.

d)
Remove modem.

e)
Insert modem;  the modem is detected.


I tried the above steps 5 times; and the results were same.


===


I will try the  same  steps with os12, once I am finished downloading it.


===


I don't have a XO-1.5; so can't try on it :-\






On Wed, Nov 21, 2012 at 3:18 PM, Richard A. Smith rich...@laptop.orgwrote:

 On 11/21/2012 01:07 AM, Jerry Vonau wrote:


 Dropping the power to the usb bus is making the modem play peek-a-boo
 with the kernel: 
 http://dev.laptop.org/ticket/**10708http://dev.laptop.org/ticket/10708
 .
 http://dev.laptop.org/ticket/**10708http://dev.laptop.org/ticket/10708
 


 And just to be clear its more than just a power dropping problem.  Both
 1.75 and XO-4 both have the ability to keep the USB bus powered during
 suspend (with an EC firmware change) but on resume the kernel resets the
 USB bus.  I don't know if the kernel has an option not to do that.


 --
 Richard A. Smith  rich...@laptop.org
 One Laptop per Child
 __**_
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/**listinfo/develhttp://lists.laptop.org/listinfo/devel



Regards,
Ajay


nm_test.py
Description: Binary data
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] [TRANSIENT ISSUE] 3G-Modem not being recognised

2012-11-21 Thread Ajay Garg
I just compared the case_*_messages files, and it seems that the reason
of the modem not being listed/detected/appearing in case 1, is because the
cdc_ether driver doesn't start upon boot.


On Thu, Nov 22, 2012 at 11:31 AM, James Cameron qu...@laptop.org wrote:

 That's very interesting.  So it is the pen drive causing the problem.
 Does a pen drive of a different manufacturer also cause the problem?

 (I see a similar problem on XO-4 B1 with 13.1.0 os12, ... if any pen
 drive is attached the modem is detected by the kernel, not shown by
 frame, and not shown by nmcli dev, but as I know the USB host has
 power design problems, I'm not sure how reliable this fact is.)

 #12340

 --
 James Cameron
 http://quozl.linux.org.au/




Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


[TRANSIENT ISSUE] 3G-Modem not being recognised

2012-11-20 Thread Ajay Garg
Hi all.

I have been facing transient issues in getting the 3G-Modem recognised (via
the appearence of the corresponding icon in the bottom-tray).

There really is no fixed pattern; sometimes the icon appears when the modem
is inserted; sometimes not.
Same is the case when the XO is rebooted, while the modem is inserted. Upon
booting, sometimes the icon appears; sometimes not.

I don't remember such issues in 12.1.0; there, the icon appeared whenever
it ought to.


Is someone else too facing such transient issues; or am I the only one hit?



Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] [TRANSIENT ISSUE] 3G-Modem not being recognised

2012-11-20 Thread Ajay Garg
On Wed, Nov 21, 2012 at 11:54 AM, James Cameron qu...@laptop.org wrote:

 On Wed, Nov 21, 2012 at 05:07:20PM +1100, Jerry Vonau wrote:
  Dropping the power to the usb bus is making the modem play peek-a-boo
 with the
  kernel: http://dev.laptop.org/ticket/10708.

 Is that all it is?  How boring.  Nothing new.

 Ajay, can you confirm your problem goes away if you turn off automatic
 power management?



Martin, James :

I am downloading os12 for XO-1.75 so that I can update with the results on
the latest image.
Please provide me about 5-6 hours (I have 56KBPS download-speed
connection).



 --
 James Cameron
 http://quozl.linux.org.au/




Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


[FEATURE-BROKEN] Send to Friend feature not working in os11

2012-11-16 Thread Ajay Garg
Hi all.

On XO-1.75s, os11 image, the Send to Friend feature isn't working.

Is it a known issue?
Doing a simple textual send to search on bugs.sugarlabs.org did not yield
anything useful.


Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [FEATURE-BROKEN] Send to Friend feature not working in os11

2012-11-16 Thread Ajay Garg
:-)
Done at http://bugs.sugarlabs.org/ticket/4242


Thanks for the reply :-)


On Sat, Nov 17, 2012 at 12:00 PM, Martin Langhoff martin.langh...@gmail.com
 wrote:

 How about filing a bug? :-)


 m

 On Fri, Nov 16, 2012 at 12:26 PM, Ajay Garg a...@activitycentral.com
 wrote:
  Hi all.
 
  On XO-1.75s, os11 image, the Send to Friend feature isn't working.
 
  Is it a known issue?
  Doing a simple textual send to search on bugs.sugarlabs.org did not
 yield
  anything useful.
 
 
  Regards,
 
  Ajay Garg
  Dextrose Developer
  Activity Central: http://activitycentral.com
 
  ___
  Devel mailing list
  Devel@lists.laptop.org
  http://lists.laptop.org/listinfo/devel
 



 --
  martin.langh...@gmail.com
  mar...@laptop.org -- Software Architect - OLPC
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff




Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Software Update section

2012-10-29 Thread Ajay Garg
Hi all.

How is the Software Update section
(/usr/share/sugar/extensions/cpsection/updater) installed in
http://build.laptop.org/13.1.0/os7/xo-1.75/ done?

As I see, the contents of extensions/cpsection/updater present on the
build; and on the sugar-mainline (http://git.sugarlabs.org/sugar/mainline)
are different.


Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Software Update section

2012-10-29 Thread Ajay Garg
On Tue, Oct 30, 2012 at 1:38 AM, Jerry Vonau jvo...@shaw.ca wrote:

 On Tue, 2012-10-30 at 01:13 +0530, Ajay Garg wrote:
  Hi all.
 
  How is the Software Update section
  (/usr/share/sugar/extensions/cpsection/updater) installed in
  http://build.laptop.org/13.1.0/os7/xo-1.75/ done?
 
  As I see, the contents of extensions/cpsection/updater present on
  the build; and on the sugar-mainline
  (http://git.sugarlabs.org/sugar/mainline) are different.


 See http://build.laptop.org/13.1.0/os7/xo-1.75/31007o2.packages.txt

 sugar-0.97.8-1.fc18.noarch
 sugar-artwork-0.97.7-1.fc18.armv7hl
 sugar-base-0.96.0-2.fc18.armv7hl
 sugar-cp-datetime-0.97.8-1.fc18.noarch
 sugar-cp-frame-0.97.8-1.fc18.noarch
 sugar-cp-language-0.97.8-1.fc18.noarch
 sugar-cp-modemconfiguration-0.97.8-1.fc18.noarch
 sugar-cp-network-0.97.8-1.fc18.noarch
 sugar-cp-power-0.97.8-1.fc18.noarch
 sugar-datastore-0.97.1-1.fc18.armv7hl
 sugar-presence-service-0.90.2-2.fc18.noarch
 sugar-toolkit-0.97.1-2.fc18.armv7hl
 sugar-toolkit-gtk3-0.97.7-1.fc18.armv7hl
 sugar-update-control-0.26-1.fc18.noarch



Great .. !!

So.. the next question, should not everything in
extensions/cpsection/updater  in sugar repository be deleted?
I understand that since as of  now, sugar-update-control has a dependency
over sugar, so the over-writing is done; but this does not seem the right
way.


Seems more like a design/architecture issue, rather than a problematic one
:D


Thanks again Jerry !!


 and the latest src rpm for sugar[1] and note the cp section of the spec
 file. Observe that sugar-update-control is present above while
 sugar-cp-control is absent. You can get the src rpm for
 sugar-update-control from OLPC[2].

 Jerry

 1. http://mirrors.kernel.org/fedora/updates/testing/18/SRPMS/
 2. http://rpmdropbox.laptop.org/f18/






Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Peers in Neighborhood-View, on sugar-build.

2012-10-17 Thread Ajay Garg
Ping :)

On Mon, Oct 15, 2012 at 12:26 AM, Ajay Garg a...@activitycentral.comwrote:

 Hi all.

 Do we have to do anything special, for the peers to appear in the
 Neighborhood-View of sugar-build on F17?

 I have already done ::
* sudo seteenforce 0
* sudo service iptables stop
* sudo service ip6tables stop

 Doing the above causes the peers to appear on F14, but not on F17 (on
 sugar-build that is).


 Will be grateful for any pointers :)



 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com




Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Peers in Neighborhood-View, on sugar-build.

2012-10-17 Thread Ajay Garg
Thanks Gonzalo.

Filed the ticket at http://bugs.sugarlabs.org/ticket/4048
Should I file a still upstream ticket, at OLPC tracker too?

On Wed, Oct 17, 2012 at 7:53 PM, Gonzalo Odiard gonz...@laptop.org wrote:

 I can't see other xos in the neighborhood view either.
 Please fill a ticket.

 Gonzalo

 On Wed, Oct 17, 2012 at 11:17 AM, Ajay Garg a...@activitycentral.comwrote:

 Ping :)


 On Mon, Oct 15, 2012 at 12:26 AM, Ajay Garg a...@activitycentral.comwrote:

 Hi all.

 Do we have to do anything special, for the peers to appear in the
 Neighborhood-View of sugar-build on F17?

 I have already done ::
* sudo seteenforce 0
* sudo service iptables stop
* sudo service ip6tables stop

 Doing the above causes the peers to appear on F14, but not on F17 (on
 sugar-build that is).


 Will be grateful for any pointers :)



 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com




 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com

 ___
 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




Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Peers in Neighborhood-View, on sugar-build.

2012-10-17 Thread Ajay Garg
On Wed, Oct 17, 2012 at 8:42 PM, Gonzalo Odiard gonz...@laptop.org wrote:

 No. For sugar and activities issues, upstream is sugarlabs.


Okies :)





 Gonzalo


 On Wed, Oct 17, 2012 at 11:38 AM, Ajay Garg a...@activitycentral.comwrote:

 Thanks Gonzalo.

 Filed the ticket at http://bugs.sugarlabs.org/ticket/4048
 Should I file a still upstream ticket, at OLPC tracker too?


 On Wed, Oct 17, 2012 at 7:53 PM, Gonzalo Odiard gonz...@laptop.orgwrote:

 I can't see other xos in the neighborhood view either.
 Please fill a ticket.

 Gonzalo

 On Wed, Oct 17, 2012 at 11:17 AM, Ajay Garg a...@activitycentral.comwrote:

 Ping :)


 On Mon, Oct 15, 2012 at 12:26 AM, Ajay Garg 
 a...@activitycentral.comwrote:

 Hi all.

 Do we have to do anything special, for the peers to appear in the
 Neighborhood-View of sugar-build on F17?

 I have already done ::
* sudo seteenforce 0
* sudo service iptables stop
* sudo service ip6tables stop

 Doing the above causes the peers to appear on F14, but not on F17 (on
 sugar-build that is).


 Will be grateful for any pointers :)



 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com




 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com

 ___
 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








Regards

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [POSSIBLY BROKEN FEATURE] Do 3G-Modem connections work in http://build.laptop.org/13.1.0/os5/xo-1.75/31005o2.zd ?

2012-10-14 Thread Ajay Garg
Well, I don't know what it is, but it's working now.

One point to note, is that I had to modify the code  FROM


#
  self._connection_timestamp = time.time() - \
 connection.get_settings('connection')['timestamp']

#


TO


#

  # Introspect the settings's keys once; else
sometimes

  # the key 'timestamp' gets missed.
  connection.get_settings('connection').keys()

  self._connection_timestamp = time.time() - \
 connection.get_settings('connection')['timestamp']

#

in sugar/extensions/deviceicon/network.py.



Sorry for the bother :-\






On Sun, Oct 14, 2012 at 1:05 AM, Ajay Garg a...@activitycentral.com wrote:



 On Sun, Oct 14, 2012 at 1:00 AM, RJV jv.ravichand...@gmail.com wrote:

 I am not sure about 13.1 but this download worked for me -
 http://wiki.laptop.org/go/Release_notes/12.1.0#XO-1.75 on 0.96 Sugar XO
 1.75 C2 Build 21.


 Yep JV, that works at my side too :)

 Thanks for the reply anyways.




 Jv

 On Sat, Oct 13, 2012 at 10:43 PM, Ajay Garg a...@activitycentral.comwrote:

 Kinda raising the priority of the issue.
 Just want to know, that does this feature work in general on
 http://build.laptop.org/13.1.0/os5/xo-1.75/31005o2.zd (or later) ?


 On Fri, Oct 12, 2012 at 7:59 PM, Ajay Garg a...@activitycentral.comwrote:

 Hi all.

 I have been trying to get my 3G Idea Cellular modem working on
 http://build.laptop.org/13.1.0/os5/xo-1.75/31005o2.zd, and have not
 been successful.
 Please find attached the error message I get; and /var/log/messages
 file.


 Some notes ::

 a)
 I experience the exact same failure steps, while working on the
 sugar-build on Fedora-17, based on NM-0.9, on my laptop..


 b)
 The modem DOES WORK FINE, in Gnome on Fedora-17, based on NM-0.9, on my
 laptop.


 c)
 The modem DOES WORK FINE, on a sugar-jhbuild on Fedora-14, based on
 NM-0.8, on my laptop.



 Please let me know if any other info is required.



 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com

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




 --
 Regards,

 Ravichandran Jv
 http://ravichandranjv.blogspot.com





Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Peers in Neighborhood-View, on sugar-build.

2012-10-14 Thread Ajay Garg
Hi all.

Do we have to do anything special, for the peers to appear in the
Neighborhood-View of sugar-build on F17?

I have already done ::
   * sudo seteenforce 0
   * sudo service iptables stop
   * sudo service ip6tables stop

Doing the above causes the peers to appear on F14, but not on F17 (on
sugar-build that is).


Will be grateful for any pointers :)



Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


[POSSIBLY BROKEN FEATURE] Do 3G-Modem connections work in http://build.laptop.org/13.1.0/os5/xo-1.75/31005o2.zd ?

2012-10-13 Thread Ajay Garg
Kinda raising the priority of the issue.
Just want to know, that does this feature work in general on
http://build.laptop.org/13.1.0/os5/xo-1.75/31005o2.zd (or later) ?

On Fri, Oct 12, 2012 at 7:59 PM, Ajay Garg a...@activitycentral.com wrote:

 Hi all.

 I have been trying to get my 3G Idea Cellular modem working on
 http://build.laptop.org/13.1.0/os5/xo-1.75/31005o2.zd, and have not been
 successful.
 Please find attached the error message I get; and /var/log/messages file.


 Some notes ::

 a)
 I experience the exact same failure steps, while working on the
 sugar-build on Fedora-17, based on NM-0.9, on my laptop..


 b)
 The modem DOES WORK FINE, in Gnome on Fedora-17, based on NM-0.9, on my
 laptop.


 c)
 The modem DOES WORK FINE, on a sugar-jhbuild on Fedora-14, based on
 NM-0.8, on my laptop.



 Please let me know if any other info is required.



Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [POSSIBLY BROKEN FEATURE] Do 3G-Modem connections work in http://build.laptop.org/13.1.0/os5/xo-1.75/31005o2.zd ?

2012-10-13 Thread Ajay Garg
On Sun, Oct 14, 2012 at 1:00 AM, RJV jv.ravichand...@gmail.com wrote:

 I am not sure about 13.1 but this download worked for me -
 http://wiki.laptop.org/go/Release_notes/12.1.0#XO-1.75 on 0.96 Sugar XO
 1.75 C2 Build 21.


Yep JV, that works at my side too :)

Thanks for the reply anyways.




 Jv

 On Sat, Oct 13, 2012 at 10:43 PM, Ajay Garg a...@activitycentral.comwrote:

 Kinda raising the priority of the issue.
 Just want to know, that does this feature work in general on
 http://build.laptop.org/13.1.0/os5/xo-1.75/31005o2.zd (or later) ?


 On Fri, Oct 12, 2012 at 7:59 PM, Ajay Garg a...@activitycentral.comwrote:

 Hi all.

 I have been trying to get my 3G Idea Cellular modem working on
 http://build.laptop.org/13.1.0/os5/xo-1.75/31005o2.zd, and have not
 been successful.
 Please find attached the error message I get; and /var/log/messages
 file.


 Some notes ::

 a)
 I experience the exact same failure steps, while working on the
 sugar-build on Fedora-17, based on NM-0.9, on my laptop..


 b)
 The modem DOES WORK FINE, in Gnome on Fedora-17, based on NM-0.9, on my
 laptop.


 c)
 The modem DOES WORK FINE, on a sugar-jhbuild on Fedora-14, based on
 NM-0.8, on my laptop.



 Please let me know if any other info is required.



 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com

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




 --
 Regards,

 Ravichandran Jv
 http://ravichandranjv.blogspot.com




Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [FATAL] No popup appears, to ask for secrets when connecting to Wifi-Network in Neighborhood-View

2012-10-09 Thread Ajay Garg
Oops..
Just applied the fix, as per
http://lists.sugarlabs.org/archive/sugar-devel/2012-October/040187.html,
and the popup appears now !!

Thanks !!!

On Tue, Oct 9, 2012 at 11:22 AM, Ajay Garg a...@activitycentral.com wrote:

 Seems that the same issue happens on XO-1 as well, as reported at
 http://lists.sugarlabs.org/archive/sugar-devel/2012-October/040173.html


 On Mon, Oct 8, 2012 at 10:05 PM, Ajay Garg a...@activitycentral.comwrote:

 Steps to reproduce ::

 1)
 Flash the image http://build.laptop.org/13.1.0/os4/xo-1.75/31004o2.zd,
 via ::

  devalias fsdisk ext:0
  fs-update u:\31004o2.zd


 2)
 Reboot.


 3)
 Disable all Power-Management in My Settings - Power.


 4)
 Reboot.


 5)
 Try connecting to a protected Wifi-network via Neighborhood-View.
 NO SECRETS-popup appears.


 Please find attached ~/.sugar/default/logs/shell.log; and
 /var/log/messages.

 Also note that this is a persistentlt, consistent issue.


 Please let me know if any other information is required.




 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com




 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com




Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [FATAL] No popup appears, to ask for secrets when connecting to Wifi-Network in Neighborhood-View

2012-10-09 Thread Ajay Garg
Yes Simon,

already acknowledged that fix (after testing) in the previous mail :)

On Tue, Oct 9, 2012 at 7:04 PM, Simon Schampijer si...@schampijer.dewrote:

 On 10/09/2012 07:52 AM, Ajay Garg wrote:

 Seems that the same issue happens on XO-1 as well, as reported at
 http://lists.sugarlabs.org/**archive/sugar-devel/2012-**
 October/040173.htmlhttp://lists.sugarlabs.org/archive/sugar-devel/2012-October/040173.html


 Likely fixed with http://lists.sugarlabs.org/**archive/sugar-devel/2012-**
 October/040187.htmlhttp://lists.sugarlabs.org/archive/sugar-devel/2012-October/040187.html

 Will be in next build. If you do a test before, would be as well
 appreciated.

 Thanks,
Simon
 __**_
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/**listinfo/develhttp://lists.laptop.org/listinfo/devel




Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [FATAL] No popup appears, to ask for secrets when connecting to Wifi-Network in Neighborhood-View

2012-10-08 Thread Ajay Garg
Seems that the same issue happens on XO-1 as well, as reported at
http://lists.sugarlabs.org/archive/sugar-devel/2012-October/040173.html

On Mon, Oct 8, 2012 at 10:05 PM, Ajay Garg a...@activitycentral.com wrote:

 Steps to reproduce ::

 1)
 Flash the image http://build.laptop.org/13.1.0/os4/xo-1.75/31004o2.zd,
 via ::

  devalias fsdisk ext:0
  fs-update u:\31004o2.zd


 2)
 Reboot.


 3)
 Disable all Power-Management in My Settings - Power.


 4)
 Reboot.


 5)
 Try connecting to a protected Wifi-network via Neighborhood-View.
 NO SECRETS-popup appears.


 Please find attached ~/.sugar/default/logs/shell.log; and
 /var/log/messages.

 Also note that this is a persistentlt, consistent issue.


 Please let me know if any other information is required.




 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com




Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Query regarding bootfw.zip for upgrading-firmware on XO-1.75

2012-10-03 Thread Ajay Garg
Hi all.

As per http://wiki.laptop.org/go/Upgrading_firmware, we need the bootfw.zip
for upgrading firmware (for XO-1.75 too I guess).
However, when I look into the links (for eg.
http://dev.laptop.org/pub/firmware/q4d18/), I do not see any bootfw.zip.

Any ideas what I am doing wrong?


Will be grateful for a reply.


Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Query regarding bootfw.zip for upgrading-firmware on XO-1.75

2012-10-03 Thread Ajay Garg
On Thu, Oct 4, 2012 at 4:28 AM, Martin Langhoff
martin.langh...@gmail.comwrote:

 On Wed, Oct 3, 2012 at 1:49 PM, Ajay Garg a...@activitycentral.com
 wrote:
  As per http://wiki.laptop.org/go/Upgrading_firmware, we need the
 bootfw.zip
  for upgrading firmware (for XO-1.75 too I guess).
  However, when I look into the links (for eg.
  http://dev.laptop.org/pub/firmware/q4d18/), I do not see any bootfw.zip.
 
  Any ideas what I am doing wrong?

 Get it from the rpms that appear in rpmdropbox.laptop.org .


Thanks Martin, that was what was needed :)




 However,

  - it gets re-build by OOB when it is signed
  - the scheme is changing to have bootfw-number.zip to allow unified
 XO-1.75/XO-4 builds in the future


Thanks for the info !!! :)





 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- Software Architect - OLPC
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff




Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Full-Duplex-(Sound)-mode in XO-1.75

2012-10-02 Thread Ajay Garg
Hi all.

When I run

 arecord | aplay

on an XO-1, things work fine; I am able to hear back my own recorded sound
(as expected) :)



However, when I repeat the process on an XO-1.75, I do not hear back any
sound.

Music files (and other already recorded sounds) play well in general on the
XO-1.75.
It is only when the recording is done simultaneously, that the sound is not
heard.


Is it due to the lack of full-duplex-(sound)-mode in XO-1.75?
If yes, is there a plan to activate it? Or may be some other way to have it
working?


Will be grateful for any lights on this :)




Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Full-Duplex-(Sound)-mode in XO-1.75

2012-10-02 Thread Ajay Garg
On Tue, Oct 2, 2012 at 3:19 PM, Martin Langhoff
martin.langh...@gmail.comwrote:

 On Tue, Oct 2, 2012 at 4:04 AM, Ajay Garg a...@activitycentral.com
 wrote:
  However, when I repeat the process on an XO-1.75, I do not hear back any
  sound.

 This is a current limitation of XO-1.75 audio drivers. We are working
 hard to address it.



Thanks Martin for the info.

Please keep me posted on the development regarding this.
I think it would be REALLY interesting to see the solution for this, as it
would provide a great insight into the differences between processor
architectures.





 cheers,


 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- Software Architect - OLPC
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel





Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Problems starting the XO

2012-09-04 Thread Ajay Garg
Yup, I had the missing updated sugar-toolkit package.

But I have to say, that there wasn't any hint of any error-log  anywhere :-\
May be this could be improved sometime in the future :)


Thanks Jerry, Gonzalo and Ruben.


Thanks and Regards,
Ajay



On Sun, Sep 2, 2012 at 9:38 AM, Gonzalo Odiard gonz...@laptop.org wrote:

 I don't know what rpms are you using in dx,
 but if you want use the last code in sugar, should update sugar-toolkit
 too.

 yum update sugar

 should be a better option.

 Gonzalo


 On Sun, Sep 2, 2012 at 12:19 AM, Ajay Garg a...@activitycentral.comwrote:

 Also, for brevity, I am attaching the python files of the culprit
 src/jarabe/journal folder, as this could help in reproducing the issue.

 I am sorry for bothering everyone on the weekend; but this does not seem
 to show any hints of the solution to the path :-\


 Regards,
 Ajay




 On Sat, Sep 1, 2012 at 11:44 PM, Ajay Garg a...@activitycentral.comwrote:

 Hi Martin.

 Thanks for the reply.

 On Sat, Sep 1, 2012 at 11:12 PM, Martin Langhoff 
 martin.langh...@gmail.com wrote:

 On Sat, Sep 1, 2012 at 4:25 PM, Ajay Garg a...@activitycentral.com
 wrote:
  Thanks Chris and Mikus for the replies.

 Hi Ajay,

 please ansert cjb's question. It has a good chance of leading to your
 answer. What deps are you ignoring? Why --force?


 I am sorry I did not give the full info :(
 Usually, for development testing, I use this method,  as long as only
 sugar changes  are involved.

 When I first  came across the issue, I followed the normal way, and
 installed the sugar-control-frame and sugar-control-accessibility
 packages too (dependencies of sugar). I installed all the three packages
 without --force then.

 However, there came to be no difference in behaviour (as long as XO-boot
 was concerned). :(






 Also -- /var/log/olpc-dm* logs are likely to have important info.
 Please post them.



 Please find attached the entire /var/log/ directory, of the
 failed-to-launch-X-server boot on the XO-1.

 Note that the names of the files are capitalized and shortened - it so
 happened when I copied the var/log/ directory onto my pen-drive, from
 the shell login on the XO.


 Thanks and Regards,
 Ajay






 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- Software Architect - OLPC
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff
 ___
 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



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


Re: [Sugar-devel] Problems starting the XO

2012-09-01 Thread Ajay Garg
Hi Gonzalo.

Thanks for the reply.

On Sat, Sep 1, 2012 at 10:51 AM, Gonzalo Odiard gonz...@laptop.org wrote:

 Any information in shell.log?


Nothing. That file does not even exist.

The only file in /home/olpc/.sugar/default/logs/ is datastore.log, but
it is empty :-\


Thanks again.

Regards,
Ajay



 Gonzalo

 On Sat, Sep 1, 2012 at 1:57 AM, Ajay Garg a...@activitycentral.comwrote:

 Hi all.

 I flashed an image on an XO-1, after building it from osbuilder; and
 booted the machine. The process went fine.

 Therafter, I upgraded the sugar package, via
   sudo rpm --force
 --nodeps --upgrade sugar-0.94.1-31.dx3.rpm


 After that, when I reboot, the sugar-session does not start :-\


 I have

 * looked at /var/log/messages, but nothing sugar specific logs are
 there.
 * tried out with the serial debugger; nothing specific here too.



 For brevity, here are the last few logs of /var/log/messages ::

 
 Sep  1 04:47:04 xo-05-2a-1f kernel: [   67.336082] dcon_freeze_store: 0
 Sep  1 04:47:11 xo-05-2a-1f kernel: [   74.967408] init: prefdm main
 process endd
 ed, respawning
 Sep  1 04:47:12 xo-05-2a-1f kernel: [   75.065137] dcon_freeze_store: 0
 Sep  1 04:47:16 xo-05-2a-1f rtkit-daemon[1026]: Successfully made thread
 1295 off
  process 1295 (/usr/bin/pulseaudio) owned by '500' high priority at nice
 level --
 11.
 Sep  1 04:47:26 xo-05-2a-1f kernel: [   89.818075] init: prefdm main
 process endd
 ed, respawning
 Sep  1 04:47:26 xo-05-2a-1f kernel: [   89.890318] dcon_freeze_store: 0
 Sep  1 04:47:31 xo-05-2a-1f rtkit-daemon[1026]: Successfully made thread
 1425 off
  process 1425 (/usr/bin/pulseaudio) owned by '500' high priority at nice
 level --
 11.
 Sep  1 04:47:41 xo-05-2a-1f kernel: [  104.561223] init: prefdm
 respawning too ff
 ast, stopped
 Sep  1 04:47:41 xo-05-2a-1f kernel: [  104.638658] dcon_freeze_store: 0
 



 Any ideas, as to where I can catch the point of failure?


 I will be grateful for any help.


 Thanks and Regards,
 Ajay




 ___
 Sugar-devel mailing list
 sugar-de...@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel



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


Re: [Sugar-devel] Problems starting the XO

2012-09-01 Thread Ajay Garg
Thanks Chris and Mikus for the replies.

Well, I seem to have close down on the cause; but not close enough :(   The
solution is still not in sight.


I have been making some changes in the sugar-code, to have the Transfer to
Many feature working.
Things work fine on sugar-emulator; however, when I replace the files in
src/jarabe/journal folder on the XO, I fail to get the XO booting.


Now, the code is fairly big in amount; and it will take many days to
pin-point the issue (without any log info).
But one thing is sure, only when the files in src/jarabe/journal are
updated, does the XO fail to boot.


I tried one thing - I removed the directory /home/olpc/.sugar, and
rebooted, but the XO still failed to boot.
One thing I did notice, is that on reboot, the directory
/home/olpc/.sugar gets re-created, with the journal re-indexed info; but
unfortunately, there still is NO /home/olpc/.sugar/default/shell.log :(


So, answers to the following two queries will help in nailing the issue ::

   a)
   Is it possible to (temporarily) stop the
re-indexing of the journal on reboot?
   If yes, that could give some hints as to
if this is where the problem occurs.

   b)
   Better still, is it possible to have
shell.log created as the first file after the directory
/home/sugar/.sugar is created?



Any further help will be highly appreciated :)


Thanks and Regards,
Ajay


On Sat, Sep 1, 2012 at 5:15 PM, Mikus Grinbergs mi...@bga.com wrote:

 On 09/01/2012 12:21 AM, Gonzalo Odiard wrote:

 Sep  1 04:47:41 xo-05-2a-1f kernel: [  104.561223] init: prefdm respawning
 too ffast, stopped


 I can't help you - but I've run into such a situation before.

 X (the display) is crashing - and is being automatically restarted, only
 to crash again (and again, and again. and ...).  I used to know how to stop
 these automatic restarts by commenting out something in /etc -- but things
 have changed an I don't know any longer.

 You being able to capture /var/log/messages implies that these automatic
 restarts were NOT interfering with you looking at the system.  [And it
 implies to me that you might manually patch kernel files to correct
 whatever is causing the crash.]


 What you did capture does not show the actual problem.  You will need to
 do additional looking - for instance, /var/log/Xorg.0.log  and
 /home/olpc/.sugar/default/**logs/shell.log  Perhaps capture 'dmesg'


 Wish you luck,  mikus


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


Re: Problems starting the XO

2012-09-01 Thread Ajay Garg
On Sat, Sep 1, 2012 at 11:53 PM, Jerry Vonau jvo...@shaw.ca wrote:

 On Sat, 2012-09-01 at 10:27 +0530, Ajay Garg wrote:
  Hi all.
 
  I flashed an image on an XO-1, after building it from osbuilder; and
  booted the machine. The process went fine.
 
  Therafter, I upgraded the sugar package, via
sudo rpm
  --force --nodeps --upgrade sugar-0.94.1-31.dx3.rpm
 
 

 Why didn't you just build the image with the new rpm?


Well, the code changes need to be tested on an XO first (as I said, that
things work fine on the sugar-emulator).
Only after the testing is passed on the XO, would the changes be comitted,
(fresh) rpms generated to the repos, which would then be pulled into the
image built from osbuilder.

If there is a way to pull the rpms directly into the image, I will  be more
than happy to do it. Please let me know if you have ideas regarding this :)




 Anyway, I got
 burnt building a test image with the latest DX3 rpms, you introduced a
 change in sugar that requires a newer version of sugar-toolkit but
 sugar's rpm Requires: are not set in to enforce a minimum version of
 sugar-toolkit.


Hmm.. my bad.
But

   * I guess sugar-toolkit (latest version) is also present in
the repos, which should have been pulled.

   * I think this is not the cause of the problem I am facing.


Thanks and Regards,
Ajay




 Jerry


 
  After that, when I reboot, the sugar-session does not start :-\
 
 
  I have
 
  * looked at /var/log/messages, but nothing sugar specific logs
  are there.
  * tried out with the serial debugger; nothing specific here too.
 
 
 
  For brevity, here are the last few logs of /var/log/messages ::
 
  
  Sep  1 04:47:04 xo-05-2a-1f kernel: [   67.336082] dcon_freeze_store:
  0
  Sep  1 04:47:11 xo-05-2a-1f kernel: [   74.967408] init: prefdm main
  process endd
  ed, respawning
  Sep  1 04:47:12 xo-05-2a-1f kernel: [   75.065137] dcon_freeze_store:
  0
  Sep  1 04:47:16 xo-05-2a-1f rtkit-daemon[1026]: Successfully made
  thread 1295 off
   process 1295 (/usr/bin/pulseaudio) owned by '500' high priority at
  nice level --
  11.
  Sep  1 04:47:26 xo-05-2a-1f kernel: [   89.818075] init: prefdm main
  process endd
  ed, respawning
  Sep  1 04:47:26 xo-05-2a-1f kernel: [   89.890318] dcon_freeze_store:
  0
  Sep  1 04:47:31 xo-05-2a-1f rtkit-daemon[1026]: Successfully made
  thread 1425 off
   process 1425 (/usr/bin/pulseaudio) owned by '500' high priority at
  nice level --
  11.
  Sep  1 04:47:41 xo-05-2a-1f kernel: [  104.561223] init: prefdm
  respawning too ff
  ast, stopped
  Sep  1 04:47:41 xo-05-2a-1f kernel: [  104.638658] dcon_freeze_store:
  0
  
 
 
 
  Any ideas, as to where I can catch the point of failure?
 
 
  I will be grateful for any help.
 
 
  Thanks and Regards,
  Ajay
 
 
 
  ___
  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


Problems starting the XO

2012-08-31 Thread Ajay Garg
Hi all.

I flashed an image on an XO-1, after building it from osbuilder; and booted
the machine. The process went fine.

Therafter, I upgraded the sugar package, via
  sudo rpm --force
--nodeps --upgrade sugar-0.94.1-31.dx3.rpm


After that, when I reboot, the sugar-session does not start :-\


I have

* looked at /var/log/messages, but nothing sugar specific logs are
there.
* tried out with the serial debugger; nothing specific here too.



For brevity, here are the last few logs of /var/log/messages ::


Sep  1 04:47:04 xo-05-2a-1f kernel: [   67.336082] dcon_freeze_store: 0
Sep  1 04:47:11 xo-05-2a-1f kernel: [   74.967408] init: prefdm main
process endd
ed, respawning
Sep  1 04:47:12 xo-05-2a-1f kernel: [   75.065137] dcon_freeze_store: 0
Sep  1 04:47:16 xo-05-2a-1f rtkit-daemon[1026]: Successfully made thread
1295 off
 process 1295 (/usr/bin/pulseaudio) owned by '500' high priority at nice
level --
11.
Sep  1 04:47:26 xo-05-2a-1f kernel: [   89.818075] init: prefdm main
process endd
ed, respawning
Sep  1 04:47:26 xo-05-2a-1f kernel: [   89.890318] dcon_freeze_store: 0
Sep  1 04:47:31 xo-05-2a-1f rtkit-daemon[1026]: Successfully made thread
1425 off
 process 1425 (/usr/bin/pulseaudio) owned by '500' high priority at nice
level --
11.
Sep  1 04:47:41 xo-05-2a-1f kernel: [  104.561223] init: prefdm respawning
too ff
ast, stopped
Sep  1 04:47:41 xo-05-2a-1f kernel: [  104.638658] dcon_freeze_store: 0




Any ideas, as to where I can catch the point of failure?


I will be grateful for any help.


Thanks and Regards,
Ajay
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Git Repo for Software Update

2012-08-18 Thread Ajay Garg
Hi all.

Kindly let know the location of the git repo, for the code that is used in
Software Update section.

I will be grateful.



Thanks and Regards,
Ajay
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Thanks Buddy !!!

2012-08-17 Thread Ajay Garg
On Fri, Aug 17, 2012 at 11:35 PM, Anish Mangal an...@activitycentral.comwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Thx, for the kind words, I really appreciate it!

 Although, I'm not going away from Sugar/OLPC anytime soon :-P,


Of course !!! We never said a goodbye :P





 just my
 involvement will be more as a volunteer with whatever time I can find.


That will be MORE THAN useful 
No doubt about that.




 Cheers and Happy hacking!
 Anish



Regards,
Ajay




 On Friday 17 August 2012 03:05 AM, Ajay Garg wrote:
 
 
  On Thu, Aug 16, 2012 at 8:28 PM, Chris Leonard
  cjlhomeaddr...@gmail.com mailto:cjlhomeaddr...@gmail.com
  wrote:
 
  On Thu, Aug 16, 2012 at 3:34 AM, Ajay Garg
  a...@activitycentral.com mailto:a...@activitycentral.com
  wrote:
  I would like to take this opportunity, in front of all the
  members
  of our
  small family ( well.. ok, not so small a family :P ), to thank
  the
  person,
  who has been responsible for my rejuvenation, and is the reason
  for my today's well-being state. He is, of course, Anish.
 
 
  A year back, Anish was the one who picked me up when I was
  completely, morally and mentally devastated. He said just one
  thing :: Ajay,
  please
  come back on track. I know your abilities. That was the thing
  that gave me
  the kick; and today, here I am -- lucky to be coding for
  inevitable, core
  requirements; and fully enjoying my work here at AC.
 
 
  I would also like to thank you all, for providing me the support,
  and (specifically AC) treating me so well.
 
 
  But as I say, the lion's share of my thanks, has to go to Anish
  :)
 
 
  Today, as Anish goes away to pursure his Masters, I recall all
  those fun
  moments we had in college, and thereafter. Lately, our weekly
  meet-up at our office at a Cafe Coffee Day
  outlet in
  Delhi, had become a topic of fun and laughter amongst ourselves,
  and friends
  :D I will surely miss those weekly fun moments ... !!!
 
 
  Thanks Anish for everything ... Congratulations again for another
  feather in the cap ... And lastly - the most important thing -
  have fun :D :D :D
 
 
 
  Regards, Ajay
 
 
 
 
  Ajay,
 
  You're story reminds me of another told by a character on an
  American television drama called West Wing:
 
  This guy's walking down the street when he falls in a hole. The
  walls are so steep he can't get out. A doctor passes by and the guy
  shouts up, 'Hey you. Can you help me out?' The doctor writes a
  prescription, throws it down in the hole and moves on. Then a
  priest comes along and the guy shouts up, 'Father, I'm down in this
  hole can you help me out?' The priest writes out a prayer, throws
  it down in the hole and moves on Then a friend walks by, 'Hey, Joe,
  it's me can you help me out?' And the friend jumps in the hole. Our
  guy says, 'Are you stupid? Now we're both down here.' The friend
  says, 'Yeah, but I've been down here before and I know the way
  out.'
 
  Anish sounds like that sort of friend that will jump down into
  that hole and lead you out, which is a good friend indeed.
 
 
  Indeed. A great friend !!
 
 
 
 
  We seldom take enough time to acknowledge the mutual support we
  provide to each other as a community, I'm glad Ajay has taken the
  time to tell his story.
 
  Anish,
 
  It has been a great pleasure to work with you on improving the
  i18n/L10n of Dextrose, and I know your studies will command all of
  your attention; however, I will not say good bye, but only au
  revoir and best of luck in your new endeavour.
 
 
  Indeed. A goodbye has a tendency to cause forgetfulness. But Anish
  can never be forgotten.
 
  Phir milenge .. :)
 
 
 
  Regards, Ajay
 
 
 
 
 
 
  cjl Sugar Labs Translation Team Coordinator
 
 


 - --
 Anish Mangal
 Dextrose Project Manager
 Activity Central
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iQEcBAEBAgAGBQJQLof2AAoJEBoxUdDHDZVpbeEH+QFBV8IrtfyokJ3HettGMj9X
 C1EuNSIOpoQ55UCQMfq8jbUC/osE16fZBQ0ey/wRtfskWxIW3meVl2JkyBqf0vzG
 1oRV5UucodyemMCowXR+9DF8vKKN2F8ZuD+fULtDt5vM/IEU2KHXKuzivlIupaqo
 Pl8RPVhvyzzW7R7xWlp71uJPLdbflt57yfkRG/vcJqXr6X30BGrmBK5PlgAafeSY
 uWMoBVnAiGNk5AvyBfCgWbEmxorrAbCQvrnBIzcUG7svMyyhsra8P/lF+3LXcr2v
 RSWE/p1awL7DB1M7kbPBUJbNYIe89OnillSWFKkY5z2789t45kxkQ2yaPPk6l+c=
 =okes
 -END PGP SIGNATURE-

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


Thanks Buddy !!!

2012-08-16 Thread Ajay Garg
I would like to take this opportunity, in front of all the members of our
small family ( well.. ok, not so small a family :P ), to thank the person,
who has been responsible for my rejuvenation, and is the reason for my
today's well-being state. He is, of course, Anish.


A year back, Anish was the one who picked me up when I was completely,
morally and mentally devastated. He said just one thing :: Ajay, please
come back on track. I know your abilities. That was the thing that gave me
the kick; and today, here I am -- lucky to be coding for inevitable, core
requirements; and fully enjoying my work here at AC.


I would also like to thank you all, for providing me the support, and
(specifically AC) treating me so well.


But as I say, the lion's share of my thanks, has to go to Anish :)


Today, as Anish goes away to pursure his Masters, I recall all those fun
moments we had in college, and thereafter.
Lately, our weekly meet-up at our office at a Cafe Coffee Day outlet in
Delhi, had become a topic of fun and laughter amongst ourselves, and
friends :D
I will surely miss those weekly fun moments ... !!!


Thanks Anish for everything ...
Congratulations again for another feather in the cap ...
And lastly - the most important thing - have fun :D :D :D



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


Re: Thanks Buddy !!!

2012-08-16 Thread Ajay Garg
On Thu, Aug 16, 2012 at 8:28 PM, Chris Leonard cjlhomeaddr...@gmail.comwrote:

 On Thu, Aug 16, 2012 at 3:34 AM, Ajay Garg a...@activitycentral.com
 wrote:
  I would like to take this opportunity, in front of all the members of our
  small family ( well.. ok, not so small a family :P ), to thank the
 person,
  who has been responsible for my rejuvenation, and is the reason for my
  today's well-being state. He is, of course, Anish.
 
 
  A year back, Anish was the one who picked me up when I was completely,
  morally and mentally devastated. He said just one thing :: Ajay, please
  come back on track. I know your abilities. That was the thing that gave
 me
  the kick; and today, here I am -- lucky to be coding for inevitable, core
  requirements; and fully enjoying my work here at AC.
 
 
  I would also like to thank you all, for providing me the support, and
  (specifically AC) treating me so well.
 
 
  But as I say, the lion's share of my thanks, has to go to Anish :)
 
 
  Today, as Anish goes away to pursure his Masters, I recall all those fun
  moments we had in college, and thereafter.
  Lately, our weekly meet-up at our office at a Cafe Coffee Day outlet in
  Delhi, had become a topic of fun and laughter amongst ourselves, and
 friends
  :D
  I will surely miss those weekly fun moments ... !!!
 
 
  Thanks Anish for everything ...
  Congratulations again for another feather in the cap ...
  And lastly - the most important thing - have fun :D :D :D
 
 
 
  Regards,
  Ajay
 



 Ajay,

 You're story reminds me of another told by a character on an American
 television drama called West Wing:

 This guy's walking down the street when he falls in a hole. The
 walls are so steep he can't get out.
 A doctor passes by and the guy shouts up, 'Hey you. Can you help
 me out?' The doctor writes a prescription, throws it down in the hole
 and moves on.
 Then a priest comes along and the guy shouts up, 'Father, I'm down
 in this hole can you help me out?' The priest writes out a prayer,
 throws it down in the hole and moves on
 Then a friend walks by, 'Hey, Joe, it's me can you help me out?'
 And the friend jumps in the hole. Our guy says, 'Are you stupid? Now
 we're both down here.' The friend says, 'Yeah, but I've been down here
 before and I know the way out.'

 Anish sounds like that sort of friend that will jump down into that
 hole and lead you out, which is a good friend indeed.


Indeed. A great friend !!




 We seldom take enough time to acknowledge the mutual support we
 provide to each other as a community, I'm glad Ajay has taken the time
 to tell his story.

 Anish,

 It has been a great pleasure to work with you on improving the
 i18n/L10n of Dextrose, and I know your studies will command all of
 your attention; however, I will not say good bye, but only au
 revoir and best of luck in your new endeavour.


Indeed. A goodbye has a tendency to cause forgetfulness.
But Anish can never be forgotten.

Phir milenge .. :)



Regards,
Ajay






 cjl
 Sugar Labs Translation Team Coordinator

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


What is the difference between 'buddy-joined' and 'buddy-joined-activity' signals, with-respect-to activity-collaboration ?

2012-07-25 Thread Ajay Garg
Hi all.

Under what circumstances, is the buddy-joined signal used; and in what
circumstances is the buddy-joined-activity signal used?
I ask this, because a simple grep on the activities-code-directories,
lists these two signals, which hint at the processing required for
buddies-joining-activities.

Just a simple explanation of the difference between the two signals will
do; comprehending code will then be a lot easier :P


Thanks and Regards,
Ajay
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: What is the difference between 'buddy-joined' and 'buddy-joined-activity' signals, with-respect-to activity-collaboration ?

2012-07-25 Thread Ajay Garg
I would actually want to add the 'joined' signal too, in my list of queries.
So, I am now confused, as to what is the difference between ::


buddy-joined
buddy-joined-activity
joined


Regards,
Ajay


On Wed, Jul 25, 2012 at 4:05 PM, Ajay Garg a...@activitycentral.com wrote:

 Hi all.

 Under what circumstances, is the buddy-joined signal used; and in what
 circumstances is the buddy-joined-activity signal used?
 I ask this, because a simple grep on the activities-code-directories,
 lists these two signals, which hint at the processing required for
 buddies-joining-activities.

 Just a simple explanation of the difference between the two signals will
 do; comprehending code will then be a lot easier :P


 Thanks and Regards,
 Ajay

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


Re: [Sugar-devel] glibc-devel F14 package for armv5tel

2012-07-15 Thread Ajay Garg
On Sat, Jul 14, 2012 at 5:53 PM, Jerry Vonau jvo...@shaw.ca wrote:

 On Sat, 2012-07-14 at 15:56 +0530, Ajay Garg wrote:
  Thanks Jerry, Anish.
 
  That was it.
  Removing the glibc-devel package from /etc/yum/olpc-exclude did
  the trick.
 
  But me just curious, why is /etc/yum/olpc-exclude needed?
 

 The olpc released rpms may be a fork of the fedora code and a newer rpm
 from fedora's updates repo may undo the changes introduced by forked
 package. The kernel and firmware packages install paths won't match
 where the files really live on the XO due to OOB's modifications to
 the /boot directory.

 
  [
  Also, on a side-note, my original issue of compiling avahi on ARM
  still remains unsolved ::
  http://lists.freedesktop.org/archives/avahi/2012-July/002167.html
  ]
 

 Think something maybe missing from your build environment, have you met
 all the BuildRequires dependencies from the spec file? There maybe a
 undeclared BuildRequires, have you tried yum groupinstall devel*tools

and/or yum groupinstall devel*libs?



Thanks Champ.

yum groupinstall devel*tools proved to be enough !!



The ARM RPMS have been uploaded (after full testing) at ::
http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/platforms/f14/RPMS/armv5tel/
http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/platforms/f17/RPMS/armv7hl/



Note that the F17 packages were built on the image, downloaded from
http://download.laptop.org/xo-1.75/os/candidate/12.1.0-18/21018o2.zd, and
installed on XO-1.75.



Again, a big thanks to Jerry !!




Thanks and Regards,
Ajay






 Jerry


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


Re: [Sugar-devel] glibc-devel F14 package for armv5tel

2012-07-14 Thread Ajay Garg
Thanks Jerry, Anish.

That was it.
Removing the glibc-devel package from /etc/yum/olpc-exclude did the
trick.

But me just curious, why is /etc/yum/olpc-exclude needed?


[
Also, on a side-note, my original issue of compiling avahi on ARM still
remains unsolved ::
http://lists.freedesktop.org/archives/avahi/2012-July/002167.html
]


Regards,
Ajay



On Fri, Jul 13, 2012 at 2:27 AM, Jerry Vonau je...@laptop.org.au wrote:

 Most likely that is it, the exclude= list is created from the list of rpms
 that are not found in fedora's/koji's repos.

 Jerry


 On 12 July 2012 15:50, Anish Mangal an...@sugarlabs.org wrote:

 could it be a problem with mirros?

 http://download.sugarlabs.org/dextrose/testing/dx3/rpms/i386/os/

 btw, there are a few g libc rpm's present there ^^ (dx repo) but i386
 arch. I have to check why they were created. Don't think they should
 be blocking the update though.

 On Fri, Jul 13, 2012 at 2:11 AM, Ajay Garg a...@activitycentral.com
 wrote:
  Jon,
 
  Doing sudo yum clean all, followed by sudo yum list glibc* has the
 same
  result.
 
  Also, all packages at
  http://mock.laptop.org/repos/koji.dist-f14-armv5tel/RPMS are 0 bytes.
 
 
 
  On Fri, Jul 13, 2012 at 1:57 AM, Jon Nettleton jon.nettle...@gmail.com
 
  wrote:
 
  On Thu, Jul 12, 2012 at 10:09 PM, Ajay Garg a...@activitycentral.com
  wrote:
   Thanks Jon for the reply.
  
   Here is the output ::
  
  
  
  
 #
   [olpc@xo-c5-b9-6c rpmbuild]$ sudo yum list glibc*
  
   Loaded plugins: downloadonly
   Installed Packages
   glibc.armv5tel 2.13-2.1   @koji.dist-f14-armv5tel/$releasever
   glibc-common.armv5tel  2.13-2.1   @koji.dist-f14-armv5tel/$releasever
  
  
 #
  
 
  Oh that is very strange because the package does exist there.
  http://mock.laptop.org/repos/koji.dist-f14-armv5tel/RPMS
 
  perhaps you should try a sudo yum clean all, then sudo yum list
 'glibc*'
 
  -Jon
 
 
 
  ___
  Sugar-devel mailing list
  sugar-de...@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 



 --
 Anish | an...@sugarlabs.org
 ___
 Sugar-devel mailing list
 sugar-de...@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel



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


glibc-devel F14 package for armv5tel

2012-07-12 Thread Ajay Garg
Hi all.

I am trying to build avahi on my XO-1.75.

Building avahi requires glibc-devel as one of its dependent packages.

Very, very surprisingly, there is no glibc-devel present in the ARM repos
(for armv5tel/armv7tel) !!


I have tried building the glibc packages from the source-rpm, but even
that fails,  with no error message :\
Heck, building glibc packages fail even on x86 !!


So,
I would request everyone, if someone could point-me-to/give-me a
glibc-devel rpm for ARM, being used in the OLPC/sugar ecosystem, as I
believe that glibc-devel is a very fundamental package (or at least that
is what the glibc.spec file says).




For brevity,

a)
[olpc@xo-c5-b9-6c rpmbuild]$ rpm -qa | grep glibc

glibc-common-2.13-2.1.armv5tel
glibc-2.13-2.1.armv5tel




b)
[olpc@xo-c5-b9-6c rpmbuild]$ uname -a

Linux xo-c5-b9-6c.localdomain 3.0.19_xo1.75-20120321.1512.olpc.1398916 #1
PREEMPT Wed Mar 21 16:04:14 EDT 2012 armv7l armv7l armv7l GNU/Linux






Thanks in advance..


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


Re: [Sugar-devel] glibc-devel F14 package for armv5tel

2012-07-12 Thread Ajay Garg
On Fri, Jul 13, 2012 at 12:39 AM, Peter Robinson pbrobin...@gmail.comwrote:

 On Thu, Jul 12, 2012 at 12:47 PM, Ajay Garg a...@activitycentral.com
 wrote:
  Hi all.
 
  I am trying to build avahi on my XO-1.75.
 
  Building avahi requires glibc-devel as one of its dependent packages.
 
  Very, very surprisingly, there is no glibc-devel present in the ARM
 repos
  (for armv5tel/armv7tel) !!
 
 
  I have tried building the glibc packages from the source-rpm, but even
  that fails,  with no error message :\
  Heck, building glibc packages fail even on x86 !!
 
 
  So,
  I would request everyone, if someone could point-me-to/give-me a
  glibc-devel rpm for ARM, being used in the OLPC/sugar ecosystem, as I
  believe that glibc-devel is a very fundamental package (or at least
 that
  is what the glibc.spec file says).
 
 
 
 
  For brevity,
 
  a)
  [olpc@xo-c5-b9-6c rpmbuild]$ rpm -qa | grep glibc
 
  glibc-common-2.13-2.1.armv5tel
  glibc-2.13-2.1.armv5tel
 
 
 
 
  b)
  [olpc@xo-c5-b9-6c rpmbuild]$ uname -a
 
  Linux xo-c5-b9-6c.localdomain 3.0.19_xo1.75-20120321.1512.olpc.1398916 #1
  PREEMPT Wed Mar 21 16:04:14 EDT 2012 armv7l armv7l armv7l GNU/Linux
 
 
 
 
 
 
  Thanks in advance..

 Have you tried yum install glibc-devel? Have you enabled the fedora
 repositories in the yum config if they're not?


Of course yes.

If you have the glibc-devel package that I need, please provide it to me.


Thanks and Regards,
Ajay




 Peter

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


Re: [Sugar-devel] glibc-devel F14 package for armv5tel

2012-07-12 Thread Ajay Garg
Peter,

Could you let me know which repo will solve the purpose?

ls /etc/yum.repos.d says ::

dextrose-freeworld.rep
dextrose-next.repo
dextrose.repo
fedora.rep
fedora-updates.repo
fedora-updates-testing.repo
olpc-f14.repp
olpc-f14-xo1.75.repo

On Fri, Jul 13, 2012 at 1:14 AM, Peter Robinson pbrobin...@gmail.comwrote:

 On Thu, Jul 12, 2012 at 8:16 PM, Ajay Garg a...@activitycentral.com
 wrote:
 
 
  On Fri, Jul 13, 2012 at 12:39 AM, Peter Robinson pbrobin...@gmail.com
  wrote:
 
  On Thu, Jul 12, 2012 at 12:47 PM, Ajay Garg a...@activitycentral.com
  wrote:
   Hi all.
  
   I am trying to build avahi on my XO-1.75.
  
   Building avahi requires glibc-devel as one of its dependent
   packages.
  
   Very, very surprisingly, there is no glibc-devel present in the ARM
   repos
   (for armv5tel/armv7tel) !!
  
  
   I have tried building the glibc packages from the source-rpm, but
 even
   that fails,  with no error message :\
   Heck, building glibc packages fail even on x86 !!
  
  
   So,
   I would request everyone, if someone could point-me-to/give-me a
   glibc-devel rpm for ARM, being used in the OLPC/sugar ecosystem, as
 I
   believe that glibc-devel is a very fundamental package (or at least
   that
   is what the glibc.spec file says).
  
  
  
  
   For brevity,
  
   a)
   [olpc@xo-c5-b9-6c rpmbuild]$ rpm -qa | grep glibc
  
   glibc-common-2.13-2.1.armv5tel
   glibc-2.13-2.1.armv5tel
  
  
  
  
   b)
   [olpc@xo-c5-b9-6c rpmbuild]$ uname -a
  
   Linux xo-c5-b9-6c.localdomain 3.0.19_xo1.75-20120321.1512.olpc.1398916
   #1
   PREEMPT Wed Mar 21 16:04:14 EDT 2012 armv7l armv7l armv7l GNU/Linux
  
  
  
  
  
  
   Thanks in advance..
 
  Have you tried yum install glibc-devel? Have you enabled the fedora
  repositories in the yum config if they're not?
 
 
  Of course yes.
 
  If you have the glibc-devel package that I need, please provide it to me.

 It's in the fedora repositories.

 Peter

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


Re: [Sugar-devel] glibc-devel F14 package for armv5tel

2012-07-12 Thread Ajay Garg
Thanks Jon for the reply.

Here is the output ::


#
[olpc@xo-c5-b9-6c rpmbuild]$ sudo yum list glibc*

Loaded plugins: downloadonly
Installed Packages
glibc.armv5tel 2.13-2.1   @koji.dist-f14-armv5tel/$releasever
glibc-common.armv5tel  2.13-2.1   @koji.dist-f14-armv5tel/$releasever
#


I will be happy to carry out any more tests :)


Thanks and Regards,
Ajay



On Fri, Jul 13, 2012 at 1:30 AM, Jon Nettleton jon.nettle...@gmail.comwrote:

 On Thu, Jul 12, 2012 at 9:44 PM, Peter Robinson pbrobin...@gmail.com
 wrote:
  On Thu, Jul 12, 2012 at 8:16 PM, Ajay Garg a...@activitycentral.com
 wrote:
 
 
  On Fri, Jul 13, 2012 at 12:39 AM, Peter Robinson pbrobin...@gmail.com
  wrote:
 
  On Thu, Jul 12, 2012 at 12:47 PM, Ajay Garg a...@activitycentral.com
  wrote:
   Hi all.
  
   I am trying to build avahi on my XO-1.75.
  
   Building avahi requires glibc-devel as one of its dependent
   packages.
  
   Very, very surprisingly, there is no glibc-devel present in the ARM
   repos
   (for armv5tel/armv7tel) !!
  
  
   I have tried building the glibc packages from the source-rpm, but
 even
   that fails,  with no error message :\
   Heck, building glibc packages fail even on x86 !!
  
  
   So,
   I would request everyone, if someone could point-me-to/give-me a
   glibc-devel rpm for ARM, being used in the OLPC/sugar ecosystem,
 as I
   believe that glibc-devel is a very fundamental package (or at least
   that
   is what the glibc.spec file says).
  
  
  
  
   For brevity,
  
   a)
   [olpc@xo-c5-b9-6c rpmbuild]$ rpm -qa | grep glibc
  
   glibc-common-2.13-2.1.armv5tel
   glibc-2.13-2.1.armv5tel
  
  
  
  
   b)
   [olpc@xo-c5-b9-6c rpmbuild]$ uname -a
  
   Linux xo-c5-b9-6c.localdomain
 3.0.19_xo1.75-20120321.1512.olpc.1398916
   #1
   PREEMPT Wed Mar 21 16:04:14 EDT 2012 armv7l armv7l armv7l GNU/Linux
  
  
  
  
  
  
   Thanks in advance..
 
  Have you tried yum install glibc-devel? Have you enabled the fedora
  repositories in the yum config if they're not?
 
 
  Of course yes.
 
  If you have the glibc-devel package that I need, please provide it to
 me.
 
  It's in the fedora repositories.

 Please verify your date and time are up to date.  Having an incorrect
 system time can cause
 the SSL verification on the yum repo get to fail.  Also if you can not
 install glibc-devel via yum
 please post the output of yum list 'glibc*' so we can evaluate it.  We
 obviously want to fix this
 if it is a problem.

 -Jon

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


Re: [Sugar-devel] glibc-devel F14 package for armv5tel

2012-07-12 Thread Ajay Garg
Jon,

Doing sudo yum clean all, followed by sudo yum list glibc* has the same
result.

Also, all packages at
http://mock.laptop.org/repos/koji.dist-f14-armv5tel/RPMS are 0 bytes.


On Fri, Jul 13, 2012 at 1:57 AM, Jon Nettleton jon.nettle...@gmail.comwrote:

 On Thu, Jul 12, 2012 at 10:09 PM, Ajay Garg a...@activitycentral.com
 wrote:
  Thanks Jon for the reply.
 
  Here is the output ::
 
 
 
 #
  [olpc@xo-c5-b9-6c rpmbuild]$ sudo yum list glibc*
 
  Loaded plugins: downloadonly
  Installed Packages
  glibc.armv5tel 2.13-2.1   @koji.dist-f14-armv5tel/$releasever
  glibc-common.armv5tel  2.13-2.1   @koji.dist-f14-armv5tel/$releasever
 
 #
 

 Oh that is very strange because the package does exist there.
 http://mock.laptop.org/repos/koji.dist-f14-armv5tel/RPMS

 perhaps you should try a sudo yum clean all, then sudo yum list 'glibc*'

 -Jon

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


Re: Patch written for Presence not updated, when client disconencts from telepathy-salut

2012-07-10 Thread Ajay Garg
More update (from Avahi) :
http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01896.html

Also. updated the upstream bug-id ::
https://bugs.freedesktop.org/show_bug.cgi?id=51501#c11


Regards,
Ajay


On Tue, Jul 10, 2012 at 10:05 AM, Ajay Garg a...@activitycentral.comwrote:

 Heard back from Avahi at ::
 http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01893.html

 Nothing very useful I guess; anyways I gave a reply with my viewpoint ::
 http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01895.html



 Regards,
 Ajay



 On Mon, Jul 9, 2012 at 10:44 PM, Ajay Garg a...@activitycentral.comwrote:

 Thanks Martin.

 Passed on the info to Avahi guys at
 http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01892.html

 Thanks and Regards,
 Ajay



 http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01892.html


 On Mon, Jul 9, 2012 at 10:16 PM, Martin Langhoff 
 martin.langh...@gmail.com wrote:

 On Mon, Jul 9, 2012 at 12:30 PM, Ajay Garg a...@activitycentral.com
 wrote:
  Just sent them a notification :)

 Ok, that's a start.

  Reason is that, because avahi-daemon requires avahi-core to
 complete its
  linking process, whereas avahi-core would need avahi-daemon to
 complete
  its linking process (since the two values will be read from the
 context of
  avahi-daemon).
 
  That puts us in a catch-22 situation.

 Valid concern. I'd say do ask about that to the Avahi developers.

 My practical concern is that it may be tricky for your patch, as it is
 today, to land upstream. The sooner we hear from avahi devs, the
 better..




 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- Software Architect - OLPC
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff




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


Re: [Dextrose] Patch written for Presence not updated, when client disconencts from telepathy-salut

2012-07-10 Thread Ajay Garg
On Tue, Jul 10, 2012 at 7:26 PM, Martin Langhoff
martin.langh...@gmail.comwrote:

 On Tue, Jul 10, 2012 at 4:18 AM, Ajay Garg a...@activitycentral.com
 wrote:
  More update (from Avahi) :
  http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01896.html

 So perhaps Telepathy-Salut should be told to contact its known nodes
 regularly, and prune stale entries?



Don't know if that would make a difference, because either ways, a machine
would send a (polling) signal to all the machines on the network, all of
which are known to it. That is, if there are N machines connected to a
(wifi) telepathy-salut network, each machine would be seeing the other N-1
machines; and each machine would be sending the (polling) signal to each of
the N-1 machines, be it in client-mode or server-mode.








 As they state, mDNS  DNS-SD are in use in fairly large networks with
 lots of nodes, so they have to be rather careful in not being too
 chatty.

 In our application of Telepathy/Salut, which in turn (mis?)uses
 mDNS/DNS-SD, we *know* that it only works passably with a small number
 of nodes,

so we are prepared to make it a bit chattier. It's only a
 shade more of chatty.


+1.
Especially more so, if we would be solving a major use-case :)





 cheers,


 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- Software Architect - OLPC
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff
 ___
 Dextrose mailing list
 dextr...@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/dextrose





Thanks and Regards,
Ajay
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Dextrose] Patch written for Presence not updated, when client disconencts from telepathy-salut

2012-07-10 Thread Ajay Garg
I am sorry for being pompous.

Posted to Avahi ::
http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01898.html


Regards,
Ajay

On Tue, Jul 10, 2012 at 8:28 PM, Martin Langhoff
martin.langh...@gmail.comwrote:

 On Tue, Jul 10, 2012 at 10:13 AM, Ajay Garg a...@activitycentral.com
 wrote:
  So perhaps Telepathy-Salut should be told to contact its known nodes
  regularly, and prune stale entries?

  Don't know if that would make a difference, because either ways, a
 machine
  would send a (polling) signal to all the machines on the network, all of

 It would constrain the mess to our use case, and leave everyone else's
 code and use cases alone.

 A multicast I'm here would also do it, perhaps with less noise.
 Either way, we need to nag Salut devs on this.

 cheers,


 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- Software Architect - OLPC
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff

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


Patch written for Presence not updated, when client disconencts from telepathy-salut

2012-07-09 Thread Ajay Garg
Hi all.

I have written a patch for Avahi, that solves the bugs

[UPSTREAM] http://bugs.sugarlabs.org/ticket/3748
[DOWNSTREAM]   http://dev.laptop.org.au/issues/1332



###


For brevity, I am specifying the use-case ::

a)
XO-1 connects to telepathy-salut.

b)
XO-2 connects to telepathy-salut. Both XO-1,and XO-2, are able to see each
other in the neighborhood-view.

c)
XO-1 disconnects. XO-2 is now no more seen in XO-1's neighborhhod-view, BUT
XO-1 IS CONTINUED TO BE SEEN IN XO-2'S NEIGHBORHOOD-VIEW.


The expected behaviour is that XO-1 should also disappear from XO-2's
neighborhood-view after some time.


###


The upstream bug id is ::

https://bugs.freedesktop.org/process_bug.cgi


###


The patch is located at ::

http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/common-patch-for-f14-and-f17/customize-avahi-default-ttl-values.patch




For brevity, I am pasting the patch description


Please refer https://bugs.freedesktop.org/show_bug.cgi?id=51501

History ::
===

As pointed out by Simon McVittie in
https://bugs.freedesktop.org/show_bug.cgi?id=51501#c4,
https://tools.ietf.org/html/draft-cheshire-dnsext-multicastdns-15#section-10
suggests that the Time-To-Live (TT) of the mDNS record is likely to be
120 seconds.

However, for all purposes, in whatever testing I came across Avahi,
the TTL in effect was
75 minutes , which seemed a bit too late a notification of
buddy-going-disconnected.



Fix ::
==
Decrease the Time-To-Live (TTL).



Solution ::
===

Obviously, the easiest solution is to set the appropriate values in
  #define AVAHI_DEFAULT_TTL_HOST_NAME
  #define AVAHI_DEFAULT_TTL

However, this has the following caveats ::

(i)
It needs a re-compilation/re-packaging of avahi rpms, for every
change in the values. This is a major deployment headache.

(ii)
Also, there is no ideal TTL values.

The lesses the TTL values, more frequent multicast DNS packets will be exchanged
between a pair of peers, thus leading to more traffic.

However, too large a TTL value, would mean that the peer gets too late
a notification
of the buddy going disconnected.

Thus, ideal values can only be found out by testing in real-field.
This requires easy configuration of the TTL values, without needing to
re-compile the rpms.



Solution-Implementation ::
==

The cutomized TTL values will be read during avahi-daemon startup.

1.
AVAHI_DEFAULT_TTL_HOST_NAME will be set to the value, contained in the
file /etc/avahi/avahi-default-ttl-host-name.conf.

Default value is the same as before, i.e. 120 (seconds).


2.
AVAHI_DEFAULT_TTL will be set to the value, contained in the
file /etc/avahi/avahi-default-ttl.conf.

Default value is the same as before, i.e. 4500 (seconds), which is equal to
75 minutes.



How to customize ::
===

a)
sudo service avahi-daemon stop

b)
Change the values in the corresponding conf files.

c)
sudo service avahi-daemon start




AUTHOR: Ajay Garg a...@activitycentral.com


Thanks to ::

Will Thompsonwill.thomp...@collabora.co.uk
Simon McVittie   simon.mcvit...@collabora.co.uk
Xavier Claessens xclae...@gmail.com


###


The pre-compiled RPMS (patched), both for F14 and F17, are available at ::

http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/platforms/f14/RPMS/
http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/platforms/f17/RPMS/


###


I have done the preliminary testings, and things seem to work as expected.
In particular, now the XO-2 disapplears from XO-1's neighborhood view,
after the number of seconds specified in the file
/etc/avahi/avahi-default-ttl.conf.


###



Kindly test and review the patch, as this solves a pretty important issue :)



Thanks and Regards,
Ajay
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Patch written for Presence not updated, when client disconencts from telepathy-salut

2012-07-09 Thread Ajay Garg
Hi Martin.

The patch link was embedded later into the email ::
http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/common-patch-for-f14-and-f17/customize-avahi-default-ttl-values.patch


Also, updating the tickets with the patch.. (sorry about not doing that
before..).


Also, the details are like this ::

a)
The patch is applied to Avahi, and the patched (avahi) rpms upgraded.

The (required 6) pre-compiled rpms are present at ::
http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/platforms/f14/RPMS/
http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/platforms/f17/RPMS/


b)
This patch IS responsible for adding two files to /etc/avahi ::

* /etc/avahi/avahi-default-ttl.conf
* /etc/avahi/avahi-default-ttl-host-name.conf


c)
As per the usecase, the XO-2 disapplears from XO-1's neighborhood view,
after the number of seconds specified in the file
/etc/avahi/avahi-default-ttl.conf.


d)
I was not able to any observable difference between the two #defines -
AVAH-DEFAULT-TTL, and AVAHI-DEFAULT-TTL-HOST-NAME.
So, for all purposes, they may be configured the same value (via the two
conf files).


e)
Actually specifying the values in the two conf files, would have to be done
at the OOB stage (as correctly identified by Martin).
A value of about 20 seconds (for each) would be good.



Thanks and Regards,
Ajay





On Mon, Jul 9, 2012 at 7:56 PM, Martin Langhoff
martin.langh...@gmail.comwrote:

 On Mon, Jul 9, 2012 at 8:33 AM, Ajay Garg a...@activitycentral.com
 wrote:
  I have written a patch for Avahi, that solves the bugs
 
  [UPSTREAM] http://bugs.sugarlabs.org/ticket/3748
  [DOWNSTREAM]   http://dev.laptop.org.au/issues/1332

 Thanks for working on this.

 Neither link has a patch. Where is the patch, as a text file?

 Reading the description, first you talk about a patch to avahi, but
 then you say it's configurable via files in /etc, so I'd expect a
 patch to OOB.

 If it is tweakable from telepathy or Sugar, then maybe a patch to
 Sugar, where it sets up the properties of the telepathy connection...?

 cheers,



 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- Software Architect - OLPC
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff

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


Re: Patch written for Presence not updated, when client disconencts from telepathy-salut

2012-07-09 Thread Ajay Garg
On Mon, Jul 9, 2012 at 9:38 PM, Martin Langhoff
martin.langh...@gmail.comwrote:

 On Mon, Jul 9, 2012 at 10:49 AM, Ajay Garg a...@activitycentral.com
 wrote:
  The patch link was embedded later into the email ::
 
 http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/common-patch-for-f14-and-f17/customize-avahi-default-ttl-values.patch

 Ah, thanks! Have you shown this patch to Avahi hackers?



Just sent them a notification :)







 Avahi-daemon has /etc/avahi/avahi-daemon.conf, which is read by
 load_config_file() in main.c . Perhaps that is better than

 -#define AVAHI_DEFAULT_TTL_HOST_NAME (120)
 +#define AVAHI_DEFAULT_TTL_HOST_NAME get_avahi_default_ttl_host_name()



Bang on 

That was the first thing I had tried.

The #defines are needed in all the avahi-modules (avahi-core,
avahi-daemon, etc.), so it needs to have itself pre-processed from the
common avahi-common module. Thankfully, the two #defines are present in
avahi-common/defs.h.

This avahi-common is the basic common module, which is linked to other
modules (avahi-core, avahi-daemon, etc)

So far, so good.


But.. the problem starts now..

If the two additional values are read from the static int
load_config_file(DaemonConfig *c) method in avahi-daemon/main.c (via
/etc/avahi/avahi-daemon.conf), that does not work out.
Reason is that, because avahi-daemon requires avahi-core to complete
its linking process, whereas avahi-core would need avahi-daemon to
complete its linking process (since the two values will be read from the
context of avahi-daemon).

That puts us in a catch-22 situation.

So, actually, the right place to load the complete config is in
avahi-common module; but as of now, even in F17, the static int
load_config_file(DaemonConfig *c) method resides in the avahi-daemon
module :\

Anyways, I loaded the two required variables (without needing the methods
of avahi-daemon module) from the context of avahi-common.



 ?

 cheers,



 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- Software Architect - OLPC
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff





Thanks and Regards,
Ajay
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Patch written for Presence not updated, when client disconencts from telepathy-salut

2012-07-09 Thread Ajay Garg
The notification link (to avahi)  ::

http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01891.html


Regards,
Ajay

On Mon, Jul 9, 2012 at 10:00 PM, Ajay Garg a...@activitycentral.com wrote:

 On Mon, Jul 9, 2012 at 9:38 PM, Martin Langhoff martin.langh...@gmail.com
  wrote:

 On Mon, Jul 9, 2012 at 10:49 AM, Ajay Garg a...@activitycentral.com
 wrote:
  The patch link was embedded later into the email ::
 
 http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/common-patch-for-f14-and-f17/customize-avahi-default-ttl-values.patch

 Ah, thanks! Have you shown this patch to Avahi hackers?



 Just sent them a notification :)







 Avahi-daemon has /etc/avahi/avahi-daemon.conf, which is read by
 load_config_file() in main.c . Perhaps that is better than

 -#define AVAHI_DEFAULT_TTL_HOST_NAME (120)
 +#define AVAHI_DEFAULT_TTL_HOST_NAME get_avahi_default_ttl_host_name()



 Bang on 

 That was the first thing I had tried.

 The #defines are needed in all the avahi-modules (avahi-core,
 avahi-daemon, etc.), so it needs to have itself pre-processed from the
 common avahi-common module. Thankfully, the two #defines are present in
 avahi-common/defs.h.

 This avahi-common is the basic common module, which is linked to other
 modules (avahi-core, avahi-daemon, etc)

 So far, so good.


 But.. the problem starts now..

 If the two additional values are read from the static int
 load_config_file(DaemonConfig *c) method in avahi-daemon/main.c (via
 /etc/avahi/avahi-daemon.conf), that does not work out.
 Reason is that, because avahi-daemon requires avahi-core to complete
 its linking process, whereas avahi-core would need avahi-daemon to
 complete its linking process (since the two values will be read from the
 context of avahi-daemon).

 That puts us in a catch-22 situation.

 So, actually, the right place to load the complete config is in
 avahi-common module; but as of now, even in F17, the static int
 load_config_file(DaemonConfig *c) method resides in the avahi-daemon
 module :\

 Anyways, I loaded the two required variables (without needing the methods
 of avahi-daemon module) from the context of avahi-common.



 ?

 cheers,



 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- Software Architect - OLPC
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff





 Thanks and Regards,
 Ajay


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


Re: Patch written for Presence not updated, when client disconencts from telepathy-salut

2012-07-09 Thread Ajay Garg
Thanks Martin.

Passed on the info to Avahi guys at
http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01892.html

Thanks and Regards,
Ajay



http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01892.html

On Mon, Jul 9, 2012 at 10:16 PM, Martin Langhoff
martin.langh...@gmail.comwrote:

 On Mon, Jul 9, 2012 at 12:30 PM, Ajay Garg a...@activitycentral.com
 wrote:
  Just sent them a notification :)

 Ok, that's a start.

  Reason is that, because avahi-daemon requires avahi-core to complete
 its
  linking process, whereas avahi-core would need avahi-daemon to
 complete
  its linking process (since the two values will be read from the context
 of
  avahi-daemon).
 
  That puts us in a catch-22 situation.

 Valid concern. I'd say do ask about that to the Avahi developers.

 My practical concern is that it may be tricky for your patch, as it is
 today, to land upstream. The sooner we hear from avahi devs, the
 better..




 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- Software Architect - OLPC
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff

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


Re: Patch written for Presence not updated, when client disconencts from telepathy-salut

2012-07-09 Thread Ajay Garg
Heard back from Avahi at ::
http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01893.html

Nothing very useful I guess; anyways I gave a reply with my viewpoint ::
http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01895.html



Regards,
Ajay


On Mon, Jul 9, 2012 at 10:44 PM, Ajay Garg a...@activitycentral.com wrote:

 Thanks Martin.

 Passed on the info to Avahi guys at
 http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01892.html

 Thanks and Regards,
 Ajay



 http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01892.html


 On Mon, Jul 9, 2012 at 10:16 PM, Martin Langhoff 
 martin.langh...@gmail.com wrote:

 On Mon, Jul 9, 2012 at 12:30 PM, Ajay Garg a...@activitycentral.com
 wrote:
  Just sent them a notification :)

 Ok, that's a start.

  Reason is that, because avahi-daemon requires avahi-core to
 complete its
  linking process, whereas avahi-core would need avahi-daemon to
 complete
  its linking process (since the two values will be read from the context
 of
  avahi-daemon).
 
  That puts us in a catch-22 situation.

 Valid concern. I'd say do ask about that to the Avahi developers.

 My practical concern is that it may be tricky for your patch, as it is
 today, to land upstream. The sooner we hear from avahi devs, the
 better..




 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- Software Architect - OLPC
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff



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


Re: [Sugar-devel] How to disable Authentication Required By Wireless Network popup in Fedora 17

2012-06-23 Thread Ajay Garg
Thanks Jerry and Kevin.

That was it !!!


Thanks and Regards,
Ajay


On Fri, Jun 22, 2012 at 10:22 PM, Jerry Vonau jvo...@shaw.ca wrote:

 On Fri, 2012-06-22 at 19:16 +0530, Ajay Garg wrote:
  Forgot to tell the link in the previous mail.
  I used http://download.laptop.org/xo-1/os/candidate/885/, to download
  the .img, .crc and .fs.zip.
 
 

 The F17 based series is called 12.1.0 with the latest image in:

 http://download.laptop.org/xo-1/os/candidate/12.1.0-15/


 Jerry



  Regards,
  Ajay
 
  On Fri, Jun 22, 2012 at 7:14 PM, Ajay Garg ajaygargn...@gmail.com
  wrote:
  Hi.
 
  1)
  I downloaded .img, .crc, and .fs.zip.
 
  2)
  Renamed os885.img.fs.zip to fs.zip.
 
  3)
  Installed the image on XO-1, by pressing the game keys.
 
 
  However, searching for NM rpm, gives the following info ::
 
  [olpc@xo-05-2a-1f ~]$ rpm -qa | grep anager
 
  NetworkManager-0.8.5.92-1.git20110927.fc14.i686
  ModemManager-0.4.998-1.git20110706.fc14.i686
  NetworkManager-glib-0.8.5.92-1.git20110927.fc14.i686
  NetworkManager-gnome-0.8.5.92-1.git20110927.fc14.i686
 
  Is this expected?
  If yes, where can I get a F17/NM0.9 based XO-1 image?
 
  Thanks and Regards,
  Ajay
 
 
 
 
 
  On Fri, Jun 22, 2012 at 11:00 AM, Anish Mangal
  an...@sugarlabs.org wrote:
  OLPC regularly releases (and announces on the
  olpc-devel mailing list)
  development images on download.laptop.org
 
  I think the release candidate version of their
  f17/0.96 builds is
  available here:
  http://download.laptop.org/xo-1/os/candidate/
 
  Hope this helps.
 
  On Fri, Jun 22, 2012 at 10:56 AM, Ajay Garg
  ajaygargn...@gmail.com wrote:
   Hi all.
  
   (Sorry if I am asking a very stupid question)
  
   Is there a link of an image (in .img + .crc
  format, for XO-1), that is
   based on F17, and contains sugar with NM 0.9?
   I tried at http://download.sugarlabs.org/images/,
  but apparently could not
   find anything useful.
  
   Alternatively, a OS builder for the same end-results
  would also be good.
  
   Thanks and Regards,
   Ajay
  
  
   On Thu, Jun 21, 2012 at 11:22 PM, Ajay Garg
  ajaygargn...@gmail.com wrote:
  
  
  
   On Thu, Jun 21, 2012 at 8:37 PM, Jon Nettleton
  jon.nettle...@gmail.com
   wrote:
  
   On Thu, Jun 21, 2012 at 3:52 PM, Ajay Garg
  ajaygargn...@gmail.com
   wrote:
   
   
On Thu, Jun 21, 2012 at 9:23 AM, James Cameron
  qu...@laptop.org
wrote:
   
On Wed, Jun 20, 2012 at 11:29:37PM -0400, Paul
  Fox wrote:

 ajay wrote:
   Hi Paul.
  
   Well, I am doing development on
  sugar-jhbuild F17.
  
   So, after I launch sugar-emulator, I wish
  to have the sugar
   network-authentication popup pop up (if at
  all), and not the
 gnome
 one.

 ah.  sugar vs.  gnome.  now that i understand
  your problem, i find i
 can be of no help whatsoever.  sorry!
   
Indeed, I have no idea either.  Running GNOME
  at the same time as
Sugar means NetworkManager might behave
  differently, as it has
multiple clients.  So I never wanted to try
  that.  Because it would
not be representative of the typical usage.
   
   
Exactly 
  
   This functionality was just introduced in F17,
  NetworkManager 0.9.x.
   Previously you could only have one client
  connected to the
   NetworkManager daemon at a time.  Now the behavior
  has changed
   to make it work better with fast-user-switching.
  
   This new connection sharing also causes secrets

Re: [Sugar-devel] How to disable Authentication Required By Wireless Network popup in Fedora 17

2012-06-22 Thread Ajay Garg
Hi.

1)
I downloaded .img, .crc, and .fs.zip.

2)
Renamed os885.img.fs.zip to fs.zip.

3)
Installed the image on XO-1, by pressing the game keys.


However, searching for NM rpm, gives the following info ::

[olpc@xo-05-2a-1f ~]$ rpm -qa | grep anager

NetworkManager-0.8.5.92-1.git20110927.fc14.i686
ModemManager-0.4.998-1.git20110706.fc14.i686
NetworkManager-glib-0.8.5.92-1.git20110927.fc14.i686
NetworkManager-gnome-0.8.5.92-1.git20110927.fc14.i686

Is this expected?
If yes, where can I get a F17/NM0.9 based XO-1 image?

Thanks and Regards,
Ajay




On Fri, Jun 22, 2012 at 11:00 AM, Anish Mangal an...@sugarlabs.org wrote:

 OLPC regularly releases (and announces on the olpc-devel mailing list)
 development images on download.laptop.org

 I think the release candidate version of their f17/0.96 builds is
 available here:
 http://download.laptop.org/xo-1/os/candidate/

 Hope this helps.

 On Fri, Jun 22, 2012 at 10:56 AM, Ajay Garg ajaygargn...@gmail.com
 wrote:
  Hi all.
 
  (Sorry if I am asking a very stupid question)
 
  Is there a link of an image (in .img + .crc format, for XO-1), that
 is
  based on F17, and contains sugar with NM 0.9?
  I tried at http://download.sugarlabs.org/images/, but apparently could
 not
  find anything useful.
 
  Alternatively, a OS builder for the same end-results would also be good.
 
  Thanks and Regards,
  Ajay
 
 
  On Thu, Jun 21, 2012 at 11:22 PM, Ajay Garg ajaygargn...@gmail.com
 wrote:
 
 
 
  On Thu, Jun 21, 2012 at 8:37 PM, Jon Nettleton jon.nettle...@gmail.com
 
  wrote:
 
  On Thu, Jun 21, 2012 at 3:52 PM, Ajay Garg ajaygargn...@gmail.com
  wrote:
  
  
   On Thu, Jun 21, 2012 at 9:23 AM, James Cameron qu...@laptop.org
   wrote:
  
   On Wed, Jun 20, 2012 at 11:29:37PM -0400, Paul Fox wrote:
   
ajay wrote:
  Hi Paul.
 
  Well, I am doing development on sugar-jhbuild F17.
 
  So, after I launch sugar-emulator, I wish to have the sugar
  network-authentication popup pop up (if at all), and not the
gnome
one.
   
ah.  sugar vs.  gnome.  now that i understand your problem, i
 find i
can be of no help whatsoever.  sorry!
  
   Indeed, I have no idea either.  Running GNOME at the same time as
   Sugar means NetworkManager might behave differently, as it has
   multiple clients.  So I never wanted to try that.  Because it would
   not be representative of the typical usage.
  
  
   Exactly 
 
  This functionality was just introduced in F17, NetworkManager 0.9.x.
  Previously you could only have one client connected to the
  NetworkManager daemon at a time.  Now the behavior has changed
  to make it work better with fast-user-switching.
 
  This new connection sharing also causes secrets to be handled
  differently.  Previously everything was stored in your gnome-keyring,
  now by default secrets are stored at the system level.  A client
  can register to be a secrets provider however I don't know if this has
  been implemented in sugar yet.
 
 
  
  
   When I was last testing Sugar and NetworkManager interaction, I did
 it
   on a system, such as an XO, without GNOME running.  I edited the
   source files live and restarted Sugar to see the changes.  When I
 had
   finished, I copied my changes out of the target and into git using
   ssh.
  
  
   Well, that would indeed work. Thanks for the idea .. :D :D
 
  I may have more information about this this weekend.  I currently
  have an unstable network connection and the NetworkManager
  password popups are annoying me.  If I find anything interesting
  I will update everyone.
 
 
 
  Waiting for anything interesting, whole heartedly !! :)
 
 
  Regards,
  Ajay
 
 
 
  -Jon
 
 
 
 
  ___
  Sugar-devel mailing list
  sugar-de...@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 



 --
 Anish | an...@sugarlabs.org

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


Re: [Sugar-devel] How to disable Authentication Required By Wireless Network popup in Fedora 17

2012-06-22 Thread Ajay Garg
Forgot to tell the link in the previous mail.
I used http://download.laptop.org/xo-1/os/candidate/885/, to download the
.img, .crc and .fs.zip.


Regards,
Ajay

On Fri, Jun 22, 2012 at 7:14 PM, Ajay Garg ajaygargn...@gmail.com wrote:

 Hi.

 1)
 I downloaded .img, .crc, and .fs.zip.

 2)
 Renamed os885.img.fs.zip to fs.zip.

 3)
 Installed the image on XO-1, by pressing the game keys.


 However, searching for NM rpm, gives the following info ::

 [olpc@xo-05-2a-1f ~]$ rpm -qa | grep anager

 NetworkManager-0.8.5.92-1.git20110927.fc14.i686
 ModemManager-0.4.998-1.git20110706.fc14.i686
 NetworkManager-glib-0.8.5.92-1.git20110927.fc14.i686
 NetworkManager-gnome-0.8.5.92-1.git20110927.fc14.i686

 Is this expected?
 If yes, where can I get a F17/NM0.9 based XO-1 image?

 Thanks and Regards,
 Ajay





 On Fri, Jun 22, 2012 at 11:00 AM, Anish Mangal an...@sugarlabs.orgwrote:

 OLPC regularly releases (and announces on the olpc-devel mailing list)
 development images on download.laptop.org

 I think the release candidate version of their f17/0.96 builds is
 available here:
 http://download.laptop.org/xo-1/os/candidate/

 Hope this helps.

 On Fri, Jun 22, 2012 at 10:56 AM, Ajay Garg ajaygargn...@gmail.com
 wrote:
  Hi all.
 
  (Sorry if I am asking a very stupid question)
 
  Is there a link of an image (in .img + .crc format, for XO-1), that
 is
  based on F17, and contains sugar with NM 0.9?
  I tried at http://download.sugarlabs.org/images/, but apparently could
 not
  find anything useful.
 
  Alternatively, a OS builder for the same end-results would also be good.
 
  Thanks and Regards,
  Ajay
 
 
  On Thu, Jun 21, 2012 at 11:22 PM, Ajay Garg ajaygargn...@gmail.com
 wrote:
 
 
 
  On Thu, Jun 21, 2012 at 8:37 PM, Jon Nettleton 
 jon.nettle...@gmail.com
  wrote:
 
  On Thu, Jun 21, 2012 at 3:52 PM, Ajay Garg ajaygargn...@gmail.com
  wrote:
  
  
   On Thu, Jun 21, 2012 at 9:23 AM, James Cameron qu...@laptop.org
   wrote:
  
   On Wed, Jun 20, 2012 at 11:29:37PM -0400, Paul Fox wrote:
   
ajay wrote:
  Hi Paul.
 
  Well, I am doing development on sugar-jhbuild F17.
 
  So, after I launch sugar-emulator, I wish to have the sugar
  network-authentication popup pop up (if at all), and not the
gnome
one.
   
ah.  sugar vs.  gnome.  now that i understand your problem, i
 find i
can be of no help whatsoever.  sorry!
  
   Indeed, I have no idea either.  Running GNOME at the same time as
   Sugar means NetworkManager might behave differently, as it has
   multiple clients.  So I never wanted to try that.  Because it would
   not be representative of the typical usage.
  
  
   Exactly 
 
  This functionality was just introduced in F17, NetworkManager 0.9.x.
  Previously you could only have one client connected to the
  NetworkManager daemon at a time.  Now the behavior has changed
  to make it work better with fast-user-switching.
 
  This new connection sharing also causes secrets to be handled
  differently.  Previously everything was stored in your gnome-keyring,
  now by default secrets are stored at the system level.  A client
  can register to be a secrets provider however I don't know if this has
  been implemented in sugar yet.
 
 
  
  
   When I was last testing Sugar and NetworkManager interaction, I
 did it
   on a system, such as an XO, without GNOME running.  I edited the
   source files live and restarted Sugar to see the changes.  When I
 had
   finished, I copied my changes out of the target and into git using
   ssh.
  
  
   Well, that would indeed work. Thanks for the idea .. :D :D
 
  I may have more information about this this weekend.  I currently
  have an unstable network connection and the NetworkManager
  password popups are annoying me.  If I find anything interesting
  I will update everyone.
 
 
 
  Waiting for anything interesting, whole heartedly !! :)
 
 
  Regards,
  Ajay
 
 
 
  -Jon
 
 
 
 
  ___
  Sugar-devel mailing list
  sugar-de...@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 



 --
 Anish | an...@sugarlabs.org



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


Re: [Sugar-devel] How to disable Authentication Required By Wireless Network popup in Fedora 17

2012-06-21 Thread Ajay Garg
On Thu, Jun 21, 2012 at 9:23 AM, James Cameron qu...@laptop.org wrote:

 On Wed, Jun 20, 2012 at 11:29:37PM -0400, Paul Fox wrote:
 
  ajay wrote:
Hi Paul.
   
Well, I am doing development on sugar-jhbuild F17.
   
So, after I launch sugar-emulator, I wish to have the sugar
network-authentication popup pop up (if at all), and not the gnome
 one.
 
  ah.  sugar vs.  gnome.  now that i understand your problem, i find i
  can be of no help whatsoever.  sorry!

 Indeed, I have no idea either.  Running GNOME at the same time as
 Sugar means NetworkManager might behave differently, as it has
 multiple clients.  So I never wanted to try that.  Because it would
 not be representative of the typical usage.


Exactly 








 When I was last testing Sugar and NetworkManager interaction, I did it
 on a system, such as an XO, without GNOME running.  I edited the
 source files live and restarted Sugar to see the changes.  When I had
 finished, I copied my changes out of the target and into git using ssh.


Well, that would indeed work. Thanks for the idea .. :D :D



Regards,
Ajay





 Still, I think it sucks that I had to restart Sugar to see the
 changes.  Waste of time.

 --
 James Cameron
 http://quozl.linux.org.au/
 ___
 Sugar-devel mailing list
 sugar-de...@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel

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


  1   2   >