Re: Impact of changing default Screen depth on other XO Apps

2010-01-27 Thread shivaprasad javali
We are allocating a 32 bit buffer and then using the X server calls to blit
it to the 16 bit screen. Even this is slowing down the application as the
draw in the application is very intensive. We commented out parts of our
draw code to find out the part which was slowing it down and found that the
blit to the 16 bit screen ( using X server calls) was responsible for a
large chunk of the slowdown. When we changed the screen depth the
performance of the activity increased dramatically.

I was worried if some other activity on the XO making the opposite
assumption and optimizing their draw code for a 16 bit screen and then
suffering because we changed the default depth.

Thanks
Shivaprasad

2010/1/27 NoiseEHC noise...@freemail.hu

  Since you can only blit pictures on an X server and cannot get a direct
 pointer to the video memory, I do not know what your problem is. You can
 just allocate a 32 bit offscreen buffer in the address space of your
 application and blit it via the X server to the 16 bit video memory (draw).
 The XO-1 has bit depth converter hardware so it will not be slower in
 theory.
 Note that you cannot use the video overlay for this because it has only YUV
 and RGB-565 modes on the XO-1 and there is a bug in X that the overlay will
 be garbage after a suspend and it was not fixed last time I checked. (I have
 told that I would fix it but because I could not figure out how to compile
 stuff for the XO-1 - like recompiling the kernel and the X server - I did
 not fix that.)

 If you need it then I could search for the code I have used but it would
 take some time...

 shivaprasad javali wrote:

 Hi All,
 We are developing an Activity for the XO. During development we ran
 into an issue with the default screen depth on the XO. Our application
 assumes that the screen depth is 32 and does all the draw math. But as the
 screen depth on the XO is 16 we had to do constant 32 bit- 16 bit
 conversions which really hit performance. So we put in script to run after
 installing our activity which changes the default screen depth on the XO
 from 16 to 32 bit.

 I wanted to know how much of an issue this would be for other
 activities running on the XO. Would they be adversely affected by this
 change?

 Thanks
 Shivaprasad

 --

 ___
 Devel mailing listde...@lists.laptop.orghttp://lists.laptop.org/listinfo/devel



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


Impact of changing default Screen depth on other XO Apps

2010-01-26 Thread shivaprasad javali
Hi All,
We are developing an Activity for the XO. During development we ran
into an issue with the default screen depth on the XO. Our application
assumes that the screen depth is 32 and does all the draw math. But as the
screen depth on the XO is 16 we had to do constant 32 bit- 16 bit
conversions which really hit performance. So we put in script to run after
installing our activity which changes the default screen depth on the XO
from 16 to 32 bit.

I wanted to know how much of an issue this would be for other
activities running on the XO. Would they be adversely affected by this
change?

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


Performance hit while working with screen depth 16

2009-07-13 Thread shivaprasad javali
Hi All,

I have an activity for the XO, written in LabVIEW. I tried out
the activity on the XO and it turned out that the performance of the
activity was really bad, the drawing was too slow to be usable. I did some
investigation and found that the main bottleneck for performance was that
the screen depth of the XO was 16 and my application assumed everything was
in 32 bit. So it constantly converted pixels from 16 bit to 32 bit to do
alpha blending and then back to 16 for drawing the image on screen.

   To improve the performance on the XO I wrote a small script to be
used along with my activity. This script changed the screen depth of the XO
to 24 and restarted X. I wanted to know how appropriate is it for my
activity to do this( change the configuration of teh XO to improve
performance). Do you think doing this would adversely affect other
activities on the XO?

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


Re: Performance hit while working with screen depth 16

2009-07-13 Thread shivaprasad javali
Sorry, I didn't understand the question. If you are talking about where my
activity is for you to download, I am sorry I cannot provide you the
activity itself.

If you are asking which file I changed to get the screen depth of the XO to
be 24, it is the xorg.conf file present at /etc/X11.

Thanks
Shivaprasad

On Mon, Jul 13, 2009 at 1:58 PM, James Cameron qu...@laptop.org wrote:

 On Mon, Jul 13, 2009 at 12:28:37PM +0530, shivaprasad javali wrote:
  To improve the performance on the XO I wrote a small script to be used
  along with my activity. This script changed the screen depth of the XO
  to 24 and restarted X.

 Where is it?

 --
 James Cameronmailto:qu...@us.netrek.org http://quozl.netrek.org/
 ___
 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: Performance hit while working with screen depth 16

2009-07-13 Thread shivaprasad javali
@ James
I have attached my script to change the screen depth.

@Tomeu
Is there any possiblity of Sugar changing its default depth to 24  in the
feature? By what you say it seems like this is a problem with sugar. So is
it acceptable for my Activity to change the screen depth so that it runs
faster?

On Mon, Jul 13, 2009 at 3:10 PM, Tomeu Vizoso to...@sugarlabs.org wrote:

 On Mon, Jul 13, 2009 at 11:24, James Cameronqu...@laptop.org wrote:
  On Mon, Jul 13, 2009 at 02:08:13PM +0530, shivaprasad javali wrote:
  Sorry, I didn't understand the question. If you are talking about where
 my
  activity is for you to download, I am sorry I cannot provide you the
 activity
  itself.
 
  No, I wasn't asking about the activity.
 
  If you are asking which file I changed to get the screen depth of the XO
 to be
  24, it is the xorg.conf file present at /etc/X11.
 
  Yes, I was asking about your small script.  Can you provide your small
  script that changes teh screen depth and restarts X?

 Btw, the issue of depth transformations have been known in the Geode
 for quite some time. We didn't switched to 24bpp because of the amount
 of memory available.

 AFAIR the problem was that Cairo has no 16bit surfaces on which we
 could work, so we use 32 (or is it 24?) and those need to be converted
 by the X server. I have heard a rumour about someone (OpenMoko?
 Maemo?) having invested resources in adding 16bit surfaces to Qt so it
 ran properly on their hardware.

 Just found this after some googling:

 http://ariya.blogspot.com/2008/08/qt-44-and-maemo.html

 Regards,

 Tomeu

  --
  James Cameronmailto:qu...@us.netrek.org http://quozl.netrek.org/
  ___
  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



Setxoconfiguration.sh
Description: Bourne shell script
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Performance hit while working with screen depth 16

2009-07-13 Thread shivaprasad javali
My original question still remains unanswered. Is it acceptable for my
activity to change the screen depth to increase its performance? Or do I
have to look at improving my code itself to get it to work better with 16
bit screen depth?( Which would be really painful for me to do:( )

On Mon, Jul 13, 2009 at 3:48 PM, Tomeu Vizoso to...@sugarlabs.org wrote:

 On Mon, Jul 13, 2009 at 11:56, shivaprasad javalijbs...@gmail.com wrote:
  @ James
  I have attached my script to change the screen depth.
 
  @Tomeu
  Is there any possiblity of Sugar changing its default depth to 24  in the
  feature? By what you say it seems like this is a problem with sugar. So
 is
  it acceptable for my Activity to change the screen depth so that it runs
  faster?

 It has nothing to do with Sugar but rather with how the system where
 Sugar runs is configured. If you run GNOME on the XO with the server
 at 16bits, you will notice the same effect.

 Regards,

 Tomeu

  On Mon, Jul 13, 2009 at 3:10 PM, Tomeu Vizoso to...@sugarlabs.org
 wrote:
 
  On Mon, Jul 13, 2009 at 11:24, James Cameronqu...@laptop.org wrote:
   On Mon, Jul 13, 2009 at 02:08:13PM +0530, shivaprasad javali wrote:
   Sorry, I didn't understand the question. If you are talking about
 where
   my
   activity is for you to download, I am sorry I cannot provide you the
   activity
   itself.
  
   No, I wasn't asking about the activity.
  
   If you are asking which file I changed to get the screen depth of the
   XO to be
   24, it is the xorg.conf file present at /etc/X11.
  
   Yes, I was asking about your small script.  Can you provide your small
   script that changes teh screen depth and restarts X?
 
  Btw, the issue of depth transformations have been known in the Geode
  for quite some time. We didn't switched to 24bpp because of the amount
  of memory available.
 
  AFAIR the problem was that Cairo has no 16bit surfaces on which we
  could work, so we use 32 (or is it 24?) and those need to be converted
  by the X server. I have heard a rumour about someone (OpenMoko?
  Maemo?) having invested resources in adding 16bit surfaces to Qt so it
  ran properly on their hardware.
 
  Just found this after some googling:
 
  http://ariya.blogspot.com/2008/08/qt-44-and-maemo.html
 
  Regards,
 
  Tomeu
 
   --
   James Cameronmailto:qu...@us.netrek.org
 http://quozl.netrek.org/
   ___
   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: Performance hit while working with screen depth 16

2009-07-13 Thread shivaprasad javali
I changed the screen depth while installing my activity. I couldn't install
my activity using only the .xo file because other things such as the OSS
sound module needed to be setup before running the activity. So I provided a
script to install the activity. I ran the commands from the script from
their as sudo.

On Tue, Jul 14, 2009 at 4:53 AM, Martin Langhoff
martin.langh...@gmail.comwrote:

 On Tue, Jul 14, 2009 at 7:28 AM, Benjamin M.
 Schwartzbmsch...@fas.harvard.edu wrote:
  On the other hand, if this is for private deployment under your control,
  then it's perfectly acceptable.

 U...

  - Restarting X kills the session, which means that it'll kill all the
 other open activities. So no, I don't think any user will consider
 this reasonable -- _unless this activity is the only one in the
 system_ or a ridiculously important one.

  - As Quozl points out, editing config files _must_ be atomic, and
 there better be a way to restore it back to normal.

  - Does the activity have root access? Can it bypass rainbow? How does
 it manage to rewrite xorg.conf and restart X?

 It's a real shame that xrandr dropped the switch colour depth goal
 midstream. Otherwise it'd be the recommended course of action. I'm of
 course intrigued by Tomeu's link re Maemo.

 Given the above notes... If a deployment considers your activity _so_
 important, then persuade them to ship with 24bpp in xorg.conf

 cheers,



 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- School Server Architect
  - 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: Application crashing with Bad Window error only on OLPC 767 build

2009-02-19 Thread shivaprasad javali
Some more progress. I had used libsugarize.so from this link
http://www.catmoran.com/olpc/libsugarize.so to sugarise my activity. When I
first started developing the activity, it wouldn't run on the XO unless I
preloaded this so. On a hunch I removed this preload and now my application
launches on the XO when run from the activity circle.

It works fine after this except for when I quit my application. If I don't
preload this so then when I close my application it doesn't close at once.
It goes to the activity icon blinking state for about half a minute before
it closes. When I had the preloaded the so on the older sugar builds, my
application would quit almost immediately after closing the application and
I wouldn't get that activity icon after closing. Can anybody help me figure
out how to solve this?

Thanks
jbsp72


On Wed, Feb 18, 2009 at 8:49 PM, shivaprasad javali jbs...@gmail.comwrote:

 Finally some more information about what is happening. The application that
 I am running previously didn't use any UI packages and worked directly with
 windows through X calls. I had to add a xulrunner based browser to it which
 accepted only a gtk window and couldn't work with an X window directly. So I
 added the code for just the browser to use gtk.

 I switched to the old code ( pre gtk) and it works fine on the XO with 767
 sugar build. Then I tried adding the gtk_init() call to the initialization
 sequence and it crashed immediately. I guess the problem has something to do
 with both gtk and X windows working together.( Although I don't get why the
 problem should persist only when I launch my app from the activity bar and
 not when I run it from the terminal) . Can anybody help me figure out what
 the problem might be?

 Thanks
 jbsp72


 On Wed, Feb 18, 2009 at 5:49 AM, S Page i...@skierpage.com wrote:

 (private response, but if you learn more re-send to OLPC devel list)

 Do you see anything in the logs after enabling warnings?
 See http://wiki.laptop.org/go/Attaching_Sugar_logs_to_tickets

 Then there's general debugging on Linux using strace, gdb, etc.  I don't
 see much on the wiki about that.


 shivaprasad javali wrote:

I am trying to port an application to OLPC. It has a xulrunner
 based browser which draws into a gtk window. It runs perfectly on OLPC
 builds 708 and 711 , but when I try to run it on 767 build it crashes with
 an error in a X window system error with error code 3( Bad Window).

Also the crash occurs only when I launch the activity from the
 Activity bar. If open the Terminal activity and run it from there it works
 fine. It crashes only when I run it from the Activity bar and on the 767
 build. Could any body tell me what changed from build 711 to 767 which made
 my application to crash?

 Thanks
 jbsp72



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


Re: Application crashing with Bad Window error only on OLPC 767 build

2009-02-18 Thread shivaprasad javali
Finally some more information about what is happening. The application that
I am running previously didn't use any UI packages and worked directly with
windows through X calls. I had to add a xulrunner based browser to it which
accepted only a gtk window and couldn't work with an X window directly. So I
added the code for just the browser to use gtk.

I switched to the old code ( pre gtk) and it works fine on the XO with 767
sugar build. Then I tried adding the gtk_init() call to the initialization
sequence and it crashed immediately. I guess the problem has something to do
with both gtk and X windows working together.( Although I don't get why the
problem should persist only when I launch my app from the activity bar and
not when I run it from the terminal) . Can anybody help me figure out what
the problem might be?

Thanks
jbsp72

On Wed, Feb 18, 2009 at 5:49 AM, S Page i...@skierpage.com wrote:

 (private response, but if you learn more re-send to OLPC devel list)

 Do you see anything in the logs after enabling warnings?
 See http://wiki.laptop.org/go/Attaching_Sugar_logs_to_tickets

 Then there's general debugging on Linux using strace, gdb, etc.  I don't
 see much on the wiki about that.


 shivaprasad javali wrote:

I am trying to port an application to OLPC. It has a xulrunner
 based browser which draws into a gtk window. It runs perfectly on OLPC
 builds 708 and 711 , but when I try to run it on 767 build it crashes with
 an error in a X window system error with error code 3( Bad Window).

Also the crash occurs only when I launch the activity from the
 Activity bar. If open the Terminal activity and run it from there it works
 fine. It crashes only when I run it from the Activity bar and on the 767
 build. Could any body tell me what changed from build 711 to 767 which made
 my application to crash?

 Thanks
 jbsp72


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


Application crashing with Bad Window error only on OLPC 767 build

2009-02-17 Thread shivaprasad javali
Hi ,

I am trying to port an application to OLPC. It has a xulrunner based
browser which draws into a gtk window. It runs perfectly on OLPC builds 708
and 711 , but when I try to run it on 767 build it crashes with an error in
a X window system error with error code 3( Bad Window).

Also the crash occurs only when I launch the activity from the
Activity bar. If open the Terminal activity and run it from there it works
fine. It crashes only when I run it from the Activity bar and on the 767
build. Could any body tell me what changed from build 711 to 767 which made
my application to crash?

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


Adding Activities installed to the Favorites view

2009-01-15 Thread shivaprasad javali
Hi,

   I have an activity running on the XO. I created the .xo package and it
installs properly from the .xo file by running the sugar-install-bundle
command. I wanted to know whether after installing the activity I can
automatically add my activity to the favorites list so that it shows up in
the Favorites view? If so how can I do it?

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


Re: Adding Activities installed to the Favorites view

2009-01-15 Thread shivaprasad javali
What if it is installed by running the sugar-install-bundle from a shell
script. My application has to do some things like add a .modules file so
that the snd-pcm-oss module which my application needs to play sound. So I
have a shell script installing the activity using sugar-install-bundle and
then setting up other things for the activity.

In this case would the activity be added to the Favorites list?

Thanks
jbsp72

On Thu, Jan 15, 2009 at 5:06 PM, Bert Freudenberg b...@freudenbergs.dewrote:

 On 15.01.2009, at 12:27, shivaprasad javali wrote:

  Hi,
 
 I have an activity running on the XO. I created the .xo package
  and it installs properly from the .xo file by running the sugar-
  install-bundle command. I wanted to know whether after installing
  the activity I can automatically add my activity to the favorites
  list so that it shows up in the Favorites view?

 No.

  If so how can I do it?


 Users typically install a bundle from the Journal. If they do so, I
 think it becomes a favorite automatically.

 - Bert -

 ___
 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


Activity not getting registered in the journal

2009-01-13 Thread shivaprasad javali
Hi,

  I have an activity written in c++. I have used catmoran's libsugarise
library to sugarise my activity and create the activity bundle. It runs fine
on the XO but when I run my activity it is not registered in the journal. I
have attached a copy of my activity.info file and sugarise script which
loads the libsugarise and calls my application. Can anyone figure out why
the activity is not registered in the journal?

  Also I wanted to ask one more thing. The applciation needs the home
path i.e. path to /home/olpc. But I cannot get this from the $HOME variable
as this will not be where the activity is installed when run from the
activity launcher. So I have hardcoded the path in my application to
/home/olpc. How safe do you think it is. Is it reasonable to assume that the
users home path will be this. Is there any other way I can get this path?

Thanks
jbsp72


activity.info
Description: Binary data


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


Flash plugin not recognised by Firefox on the OLPC

2009-01-06 Thread shivaprasad javali
Hi,

   I installed Firefox on my OLPC from the All activities page. And then
installed flash from the following link
http://wiki.laptop.org/go/Adobe_Flash#Installation . I don't have a Wi-Fi
router so I downloaded the .xo and rpm on my windows machine and then
transferred them over to the OLPC and installed them. I wanted to view some
flash content that I had so when I opened them in Firefox I got a message
saying Flash Player is not installed.

To double check I typed rpm -qa at the terminal and it showed that Flash
has been installed. The flash content works fine on the Browse activity but
not in flash. I tried uninstalling GNASH with the same result.

I know that the flash content works fine with firefox because it works
fine with firefox on my linux machine. So can any body tell me what else the
problem might be?

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


Fwd: Flash plugin not recognised by Firefox on the OLPC

2009-01-06 Thread shivaprasad javali
The Flash rpm given at that link will install flash plugin's for all
browser's including Firefox right? or do I need to install it seperately as
given in this link http://wiki.laptop.org/go/Firefox .

-- Forwarded message --
From: shivaprasad javali jbs...@gmail.com
Date: Tue, Jan 6, 2009 at 8:35 PM
Subject: Flash plugin not recognised by Firefox on the OLPC
To: OLPC Devel Devel@lists.laptop.org


Hi,

   I installed Firefox on my OLPC from the All activities page. And then
installed flash from the following link
http://wiki.laptop.org/go/Adobe_Flash#Installation . I don't have a Wi-Fi
router so I downloaded the .xo and rpm on my windows machine and then
transferred them over to the OLPC and installed them. I wanted to view some
flash content that I had so when I opened them in Firefox I got a message
saying Flash Player is not installed.

To double check I typed rpm -qa at the terminal and it showed that Flash
has been installed. The flash content works fine on the Browse activity but
not in flash. I tried uninstalling GNASH with the same result.

I know that the flash content works fine with firefox because it works
fine with firefox on my linux machine. So can any body tell me what else the
problem might be?

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


Fwd: Flash plugin not recognised by Firefox on the OLPC

2009-01-06 Thread shivaprasad javali
Ok. I tried installing from the link given in the Firefox page of the OLPC
wiki ( http://wiki.laptop.org/go/Firefox ) . It works fine if I install it
from a .tar.gz file but doesn't if it is installed from a .rpm file? Any
ideas?

-- Forwarded message --
From: shivaprasad javali jbs...@gmail.com
Date: Tue, Jan 6, 2009 at 9:20 PM
Subject: Fwd: Flash plugin not recognised by Firefox on the OLPC
To: OLPC Devel Devel@lists.laptop.org



The Flash rpm given at that link will install flash plugin's for all
browser's including Firefox right? or do I need to install it seperately as
given in this link http://wiki.laptop.org/go/Firefox .

-- Forwarded message --
From: shivaprasad javali jbs...@gmail.com
Date: Tue, Jan 6, 2009 at 8:35 PM
Subject: Flash plugin not recognised by Firefox on the OLPC
To: OLPC Devel Devel@lists.laptop.org


Hi,

   I installed Firefox on my OLPC from the All activities page. And then
installed flash from the following link
http://wiki.laptop.org/go/Adobe_Flash#Installation . I don't have a Wi-Fi
router so I downloaded the .xo and rpm on my windows machine and then
transferred them over to the OLPC and installed them. I wanted to view some
flash content that I had so when I opened them in Firefox I got a message
saying Flash Player is not installed.

To double check I typed rpm -qa at the terminal and it showed that Flash
has been installed. The flash content works fine on the Browse activity but
not in flash. I tried uninstalling GNASH with the same result.

I know that the flash content works fine with firefox because it works
fine with firefox on my linux machine. So can any body tell me what else the
problem might be?

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


Re: UDP broadcast from an XO

2009-01-02 Thread shivaprasad javali
Hi,
   Is there any way I can ask the OLPC to broadcast the UDP packets. I am
broadcasting the UDP packets by writing to the UDP port and setting the
destination address to 255.255.255.255 . I am using ports 61556 and 61557
for communication. So if the antenna of the OLPC ( and hence its wireless
connectivity) is functional wont it broadcast the UDP packets it receives
for broadcast?

Thanks
jbsp72

On Fri, Jan 2, 2009 at 1:30 PM, da...@lang.hm wrote:

 On Fri, 2 Jan 2009, qu...@laptop.org wrote:

  Visibility in Neighbourhood View is determined by access from the XO to
 the Jabber server.  The Jabber server does not relay these UDP packets
 for you.  Therefore visibility is not an indicator of ability to operate
 over UDP.

 A wireless router will relay the UDP packets.  The relay is being done
 by the router itself, and so any XO not associated with the router may
 not receive the UDP packets unless the packets are forwarded by the
 router to whatever router the other XO is associated with.

 Can you show me one of these UDP packets?


 remember that broadcast packets don't generally go through routers (they go
 through bridges, but not routers)

 so if the two XO's are on different subnets, broadcasts won't be seen by
 the other one.

 David Lang

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


UDP broadcast from an XO

2009-01-01 Thread shivaprasad javali
Hi,

I have an activity which broadcasts messages over UDP to all the systems
connected to the network. I ran into a problem while testing it out on the
XO. The messages broadcasted are received by other XO's if both of them are
connected to a common WiFi router. But when they are connected to the router
teh messages are not received by my activity on the other XO.

   Although the other XO is visible to my XO( in the neighbourhood view) the
UDP messages broadcast from my XO are not received by the other XO when they
are nto connected through a common router.

Will UDP messages be broadcast from one XO node to another. What else
may the cause be for the UDP messages not being picked up by the other XO?

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


Installing Flash on the OLPC

2008-12-29 Thread shivaprasad javali
Hi,
 I am trying to install Adobe Flash Player on my OLPC. I followed the
instructions on this page
http://wiki.laptop.org/go/Adobe_Flash#Installationto install the flash
player. According to it, I have to remove the GNASH
plugin which comes with the OLPC before I install Flash.

 I want to know whether this is necessary. Can I install Flash player
without uninstalling GNASH and which one will be used by the Browser and
other activities on the OLPC if I have both of them on the OLPC.

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


Re: Help runnning a script after Installing an activity from .xo

2008-12-18 Thread shivaprasad javali
I am using a tool to write the application. The sound will be played by this
tool itself and it uses OSS. Sorry I cannot provide more information as to
what the tool is and what is the application.
So I cannot change the way I play sound since this would require me to
change the underlying tool.

Then is asking the user to run a shell script which does all the work for me
the only way to ask the XO to load the OSS module? Isn't there any way else
to do it so that the user doen't have to download the script, login to the
terminal and then run this script.

Thanks
Shivaprasad

On Thu, Dec 18, 2008 at 7:08 AM, Wade Brainerd wad...@gmail.com wrote:

 One more thing-  If you are only using OSS to play sound, why not use
 pygame.mixer instead?  It's part of the core Sugar dependencies and offers
 very low latency playback and the ability to mix channels.

 Or, are you using some extended functionality of OSS that's not present in
 pygame.mixer?

 -Wade


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


Help runnning a script after Installing an activity from .xo

2008-12-16 Thread shivaprasad javali
Hi,

I am developing an activity for the XO. I have the .xo file ready to install
but I still have one problem. After Installing the activity I need to make
the XO run a script. I need to do this because the Application makes use of
the OSS module to render sound which is not loaded by default on the XO. So
I have to modify the /etc/sysconfig/modules/olpc-1.modules file so that I
ask the XO to load the OSS module when it boots.

As I understand it the .xo file is just a zip file and when you install it
will just be unzipped and put in the proper location. So is there any way I
can get it to run a script after installing and be in the super user mode
when I run the script. I also need to run the script so that the proper
localisation files suitable for the language of the XO to be copied to
proper locations. I dont want to create a different .xo file for each
language.

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


Loosing the Activity window after displaying a OpenFile dialog box

2008-12-16 Thread shivaprasad javali
Hi ,
  In the application that I am developing for the XO there is a Open button
which displays an Open File dialog box and lets you choose which file to
open in the activity. But when I click on the button and the dialog box is
displayed, I loose my application window and I come back to the Sugar home
screen after choosing  a file to open.

   The thing works perfectly on a normal Fedora machine and it's only when I
am running on the OLPC that I loose the application window. I can see that
the Activity is still running if I go to terminal activity and type in ps
-A, but there is no window for my application.

   Could anyone think of what the problem might be? Is the window manager
for sugar different from a normal Fedora distibution. If so how?

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


Loading the OSS modules on the XO

2008-08-13 Thread shivaprasad javali
Hi,

   I am porting a application to the XO. It uses the OSS sound Api's to
render sound. I found that the oss modules are not loaded on the xo by
default. I was able to load the oss modules by running modprobe snd-pcm-oss
which created the /dev/dsp and other device files required by the oss
modules and was able to run my application on the XO. But the problem is
every time I reboot the XO I will have to run the commands and load the oss
modules.

   Is there any way I can tell the XO to always load the oss modules? Even
if I have a script to run the commands on launching the application these
commands would require super user privileges which I wont have when I launch
the application from the activity bar. Any Ideas?

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


Sound on the OLPC

2008-08-11 Thread shivaprasad javali
Hi,

I am trying to port an application from a normal Fedora system to work
on the XO. The application uses OSS API's which read and write to /dev/dsp
to acheive sound functionality. While porting I found out that the XO does
not have a /dev/dsp but has a single /dev/snd file for sound device. I tried
creating a sym link to /dev/dsp from /dev/snd which didnt work. Can anybody
help me out and suggest how else can I get the sound to work on the XO.

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


Re: Sound on the OLPC

2008-08-11 Thread shivaprasad javali
Thanks for the information. I did a modprobe snd-pcm-oss and everything
started working perfectly well. Thank you very much.

Thanks
Shivaprasad

On Mon, Aug 11, 2008 at 6:52 PM, [EMAIL PROTECTED] wrote:

 hello shivaprasad:

   I am trying to port an application from a normal Fedora system to
 work
   on the XO. The application uses OSS API's which read and write to
 /dev/dsp
   to acheive sound functionality. While porting I found out that the XO
 does
   not have a /dev/dsp but has a single /dev/snd file for sound device. I
 tried
   creating a sym link to /dev/dsp from /dev/snd which didnt work. Can
 anybody
   help me out and suggest how else can I get the sound to work on the XO.

 you may need to modprobe snd-pcm-oss in order to install the
 OSS module, but i've never tried an OSS audio app on the XO, so i
 can't guarantee success after that.  sound on the XO uses the
 alsa audio system by default -- googling for OSS on alsa will probably
 get you some information that may be relevant.

 paul

  
   Thanks
   Shivaprasad

 =-
  paul fox, [EMAIL PROTECTED]

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


Fonts on the XO

2008-08-04 Thread shivaprasad javali
Hi,

   I had been struggling with trying to add fonts to my application on the
XO for weeks now and I was not able to add the fonts and use xset to set up
font path for the XServer. Then I found this OLPC bug report
http://dev.laptop.org/ticket/5775 about the same bug . I have been
experiencing the exact same problems while trying to add the fonts to OLPC.
I wanted to check whether this bug with OLPC has been fixed or not. If not
then I wanted to check if it will be fixed in the near future?

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


Adding new post script fonts to the OLPC

2008-07-31 Thread shivaprasad javali
Hi ,

I am trying to use an application which can use only postscript fonts
but not truetype fonts on the olpc. So I copied some postscript font files
from a normal fedora 7 machine onto the olpc under /usr/share/fonts/local
and then added the paths to xfs using chkfontpath command. Then restart the
Xserver . The application uses normal XWindows functions such as XListFonts
etc.. to list all the fonts available. After doing all this my application
could not recognise the new fonts.

   A similar approach worked for me on a normal fedora 7 machine but not on
the olpc. Abiwpord could recognise these fonts also on the OLPC. Could
anybody figure out why this could be so and what I need to do to get this
working.

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


Re: SuperUser permission for the Driver??

2008-06-25 Thread shivaprasad javali
I am new to programming on Linux, I just searched for Setuid() and found
that it sets the effective userid of my program to the userid I specify. So
can I just call setuid() in my program when I need superuser privileges and
have those privileges. To what part of my program are those privileges
confined to?

Thanks
Shivaprasad

On Wed, Jun 25, 2008 at 11:23 AM, James Cameron [EMAIL PROTECTED] wrote:

 So it is root UID you need for a user-space program, not a kernel
 driver, I see.  Have you considered setuid?

 --
 James Cameronmailto:[EMAIL PROTECTED] http://quozl.netrek.org/
 ___
 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: SuperUser permission for the Driver??

2008-06-25 Thread shivaprasad javali
Sorry for being naive before. Now I have got rules file in udev which grants
access for my usb driver to detach the usb device from the kernel and my
driver works fine without having to be super user. Thank you so much for all
your suggestions.

But I got one more question for you, now to install the activity and having
it running I have to copy the rules file into /etc/udev/rules.d folder. How
can I do this while installing the activity itself. ( I need to make sure
that when I unzip my activity .xo file the rules file lands in the
/etc/udev/rules.d folder)

On Wed, Jun 25, 2008 at 5:31 PM, Carl-Daniel Hailfinger 
[EMAIL PROTECTED] wrote:

 On 25.06.2008 08:07, Michael Stone wrote:
  We have an activity that wants superuser privilege in order to poke
  kernel memory.
 

 Hello? Please take the poor activity out back and shoot it. No activity
 has any business poking kernel memory.

  The real questions we should be attempting to address here include:
 
  * Who is granting privilege to this activity?
 

 Everybody who wants to ridicule the security model.

  * How are they doing so?
 
  * How should we record the decision?
 
   -  My tentative answer is that we should store activities with
  different security properties in well-known directory chains
  with appropriately restricted write access.
 
  * What kinds of abuse are these mechanisms vulnerable to?
 
  * Whose responsibility is it to handle the error condition that the
human operator does not, him-or-herself posess superuser privilege,
e.g. for theft-deterrence reasons?
 

 Just say no.

 Having an activity poke kernel memory is a really strong sign that the
 interface is totally broken.

 Regards,
 Carl-Daniel
 ___
 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: How USB's are enumerated on the XO

2008-06-24 Thread shivaprasad javali
The USB device that I am connecting is not a storage drive. so there is no
way I can copy a file containing a unique UUID on the device. I just need
one unique parameter for the device when it is connected to the system. On
the XO according to the /proc/bus/usb/devices file It is the port no. But If
have a normal fedora machine it is the bus no.

I just wanted to know If this is because of the way in which the USB
hardware is organised on the olpc/

On Tue, Jun 24, 2008 at 12:11 AM, Eben Eliason [EMAIL PROTECTED]
wrote:

 On Mon, Jun 23, 2008 at 2:36 PM, Carl-Daniel Hailfinger
 [EMAIL PROTECTED] wrote:
  On 23.06.2008 20:29, Jim Gettys wrote:
  While in theory, USB devices can/should send serial numbers, that part
  of the spec is honored mostly by it's absence (due to cost).
 
  As John said, unfortunately, with USB you have to go down to the device
  and see if they have something usable to distinguish devices.
 
 
  The easiest way to achieve this on USB flash disks is to store a file
  with a UUID on each disk upon first insertion.

 Note also that this suggestion is in alignment with an old idea to
 fingerprint drives with identity/colors, to make them function in the
 same identity system as laptops, activities, and objects.
 (http://dev.laptop.org/ticket/1848)

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


SuperUser permission for the Driver??

2008-06-24 Thread shivaprasad javali
Hi,

  I have USB devices (not storage devices, just some usb devices), which
I can use along with my application on the olpc. The driver for these USB
devices are third paty drivers so I have to detach the kernel usb driver so
that I can use my own driver for that USB device. For this I need to have
super user privileges while running my application.

 I am new to programming on Linux. Could anybody point me as to how I
can give superuser privileges to my driver code.

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


xo-get gives DBus No-reply for my .xo package

2008-06-24 Thread shivaprasad javali
Hi,

 I have created a .xo package for my application . When I try to install
it through the xo-get command I get a DBus No reply error message for my .xo
package. I also tried to install the activity through the Browser(By mailing
myself the xo) and the journal activity with the same result(It didnt give
me error message or anything simply didnt install). Can anybody please tell
me what the issue may be?

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


Re: SuperUser permission for the Driver??

2008-06-24 Thread shivaprasad javali
The problem is that when I launch the application from the activity
taskbar(the activity icons at the bottom of the screen) It will run under
normal user privileges(right??). But for the application to work properly
the USB driver has to run under superuser privileges. So I have to figure
out how to do this while the application as a whole still has normal user
privileges. It all works properly if I go to the terminal su from there and
then launch the application from that terminal.

Thanks
Shivaprasad

On Wed, Jun 25, 2008 at 10:07 AM, shivaprasad javali [EMAIL PROTECTED]
wrote:

 The USB HID device which works along with my application needs a third
 party driver(libhid). So I have to detach the device from the kernel  before
 I starting using my own drivers. So I need superuser permission for that to
 detach the USB device from the kernel. I call hid_force_open() (this is a
 libhid() call which detaches the USB device from the kernel and then start
 using its own driver)

 Hope this makes it clear as to what I am trying to do. :)

 Thanks
 Shivaprasad


 On Tue, Jun 24, 2008 at 9:29 PM, Deepak Saxena [EMAIL PROTECTED] wrote:

 On Jun 24 2008, at 17:35, shivaprasad javali was caught saying:
  Hi,
 
I have USB devices (not storage devices, just some usb devices),
 which
  I can use along with my application on the olpc. The driver for these
 USB
  devices are third paty drivers so I have to detach the kernel usb driver
 so
  that I can use my own driver for that USB device. For this I need to
 have
  super user privileges while running my application.
 
   I am new to programming on Linux. Could anybody point me as to how
 I
  can give superuser privileges to my driver code.

 See http://wiki.laptop.org/go/Su

 I am not completely sure I grok what you need. Are you trying to load
 a driver via insmod or run some installer for the driver?  Note that
 until two days ago, the USB driver was built into to the kernel, so
 you can't unload it. What specific device and driver is this?

 ~Deepak

 --
 Deepak Saxena [EMAIL PROTECTED]



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


How USB's are enumerated on the XO

2008-06-23 Thread shivaprasad javali
Hi,

  I have a usb device to be used with my application which does not have
any unique serial no. I noticed that when I connect two such devices to the
XO , In the /proc/bus/usb/devices file the Bus for the two remains the same
but the port no is different for the two. When I connect the same two
devices to a normal machine running fedora core 7, Its the Bus that changes
for the two and the port no remains the same.

  The XO that I have is relatively old. So I wanted to know whether this
is what is expected on the XO or Is it different on the later versions of
the XO.

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


Re: How USB's are enumerated on the XO

2008-06-23 Thread shivaprasad javali
I was trying to use the port no to which the usb device is connected to
differentiate between two usb devices of the same type connected in my
application. For that I wanted the variant field between the two usb devices
so that I can uniquely identify them.

P.S: The output of lshal -m wasnt of much help for me.

Thanks
Shivaprasad


On Mon, Jun 23, 2008 at 7:47 PM, Tomeu Vizoso [EMAIL PROTECTED] wrote:

 2008/6/23 shivaprasad javali [EMAIL PROTECTED]:
  Hi,
 
I have a usb device to be used with my application which does not
 have
  any unique serial no. I noticed that when I connect two such devices to
 the
  XO , In the /proc/bus/usb/devices file the Bus for the two remains the
 same
  but the port no is different for the two. When I connect the same two
  devices to a normal machine running fedora core 7, Its the Bus that
 changes
  for the two and the port no remains the same.
 
The XO that I have is relatively old. So I wanted to know whether
 this
  is what is expected on the XO or Is it different on the later versions of
  the XO.

 I didn't quite understood what you are trying to do, but something
 that may help you is to plug and unplug the usb sticks while lshal -m
 is running. That may tell you something interesting.

 Good luck,

 Tomeu

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


Need help creating .xo file

2008-06-04 Thread shivaprasad javali
Hi All ,
  I was wondering if you could help me out with this.

 I got the activity working fine on the OLPC. Now I want to create a
.xo file for my activity so that I can install the activity on other XO's.
My activity structure is as follows:
-activity --has the .info file and the icon
-bin  -- has a shell script and the exe which i have to run
-lib  -- has the libs which my application is dependent on
- MANIFEST file

There is a shell script in the bin folder which I have included in the exec
tag in activity.info.

I created the activity bundle according to the information in the post
http://olpcnews.com/forum/index.php?topic=1555.0 .
I have named my .xo file name.activity.xo

If I unzip the .xo in the Activities folder and then restart the X-server it
gets installed and I get the icon in the activity tray.

I tried installing it by copying the .xo to a thumb drive and then running
sugar-install-bundle on the XO but it gave me a DBUS timeout error. I also
tried to install it through the browse activity as given in
http://wiki.laptop.org/go/Activities#Manual_installation and through the
Journal without success.

Can you figure out where I am going wrong??

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


Re: Need help creating .xo file

2008-06-04 Thread shivaprasad javali
The Bundle installs correctly only when I unzip it manually and then restart
the X-server. I want to do this through sugar-install-bundle or through
browse activity or through Journal. None of which seem to work.

Anyway when I tried to install through the sugar-install-bundle command It
failed giving a DBus timeout. Here are the log files I got.

Thanks
Shivaprasad

P.S: I didnt which log file would really be useful to you guys so I attached
all of them which I thought had some relevant information.

On Wed, Jun 4, 2008 at 5:12 PM, Tomeu Vizoso [EMAIL PROTECTED] wrote:

 2008/6/4 shivaprasad javali [EMAIL PROTECTED]:
 
  Can you figure out where I am going wrong??

 What's your problem? The bundle seems to install correctly as its icon
 appears in the shell. Is the problem that the activity doesn't start?
 Logs will help in any case, as Bert said.

 Regards,

 Tomeu

1212594090.268322 INFO root: Starting Datastore /home/olpc/.sugar/default/datastore
1212594090.300597 DEBUG root: IndexManager.connect()
1212594090.333430 DEBUG root: IndexManager.flush: True 0
1212594098.207695 DEBUG root: IndexManager.connect()
1212594098.229774 ERROR root: Error while trying to load mount point /media/RED_DEVIL/.olpc.store: Db block overwritten - are there multiple writers?. Will try to renitialize and load again.
1212594098.247106 DEBUG root: IndexManager.connect()
1212594099.492161 DEBUG root: IndexManager.flush: True 0
1212594099.963942 DEBUG root: Content.suggestName: dbus.String(u'WeDo.activity.xo') 'xo'
1212594099.988344 DEBUG root: FileBackingStore._targetFile: '62f2e012-5c7e-4f72-95e9-56f2b1c7fe76' u'WeDo.activity.xo' None None
1212594101.686014 INFO org.sugar.datastore.xapianindex: created e67e8fd4-7cc6-43ef-a006-0ebb96bcd333:1.0
1212594101.688182 DEBUG root: IndexManager.flush: False 0
1212594101.982632 INFO org.sugar.datastore.xapianindex: updated e67e8fd4-7cc6-43ef-a006-0ebb96bcd333:1.0
1212594102.022779 DEBUG root: IndexManager.flush: False 1
1212594102.089718 INFO org.sugar.datastore.xapianindex: created 95900480-ec3c-495f-8176-276035b01085:1.0
1212594102.091860 DEBUG root: IndexManager.flush: False 2
1212594102.294715 INFO org.sugar.datastore.xapianindex: updated 95900480-ec3c-495f-8176-276035b01085:1.0
1212594102.297006 DEBUG root: IndexManager.flush: False 3
1212594102.505951 INFO org.sugar.datastore.xapianindex: created 7e2a419f-2ce7-47a1-8290-2b66d595c302:1.0
1212594102.509034 DEBUG root: IndexManager.flush: False 4
1212594102.617162 INFO org.sugar.datastore.xapianindex: updated 7e2a419f-2ce7-47a1-8290-2b66d595c302:1.0
1212594102.619336 DEBUG root: IndexManager.flush: False 5
1212594102.728013 INFO org.sugar.datastore.xapianindex: created 7843b2ed-4c8d-41bb-bdfd-99638e3c709b:1.0
1212594102.730134 DEBUG root: IndexManager.flush: False 6
1212594102.821709 INFO org.sugar.datastore.xapianindex: updated 7843b2ed-4c8d-41bb-bdfd-99638e3c709b:1.0
1212594102.823852 DEBUG root: IndexManager.flush: False 7
1212594102.962378 INFO org.sugar.datastore.xapianindex: created 507f7e86-0d97-4cd7-bcba-6c9aa46585a4:1.0
1212594102.964514 DEBUG root: IndexManager.flush: False 8
1212594103.032338 INFO org.sugar.datastore.xapianindex: updated 507f7e86-0d97-4cd7-bcba-6c9aa46585a4:1.0
1212594103.034422 DEBUG root: IndexManager.flush: False 9
1212594103.153525 INFO org.sugar.datastore.xapianindex: created 99937bd5-548c-476f-a3db-982fbba85513:1.0
1212594103.155660 DEBUG root: IndexManager.flush: False 10
1212594103.229656 INFO org.sugar.datastore.xapianindex: updated 99937bd5-548c-476f-a3db-982fbba85513:1.0
1212594103.232318 DEBUG root: IndexManager.flush: False 11
1212594103.310825 INFO org.sugar.datastore.xapianindex: created 2d2f3e8b-63a3-4575-9013-0493d595f27c:1.0
1212594103.312964 DEBUG root: IndexManager.flush: False 12
1212594103.367179 INFO org.sugar.datastore.xapianindex: updated 2d2f3e8b-63a3-4575-9013-0493d595f27c:1.0
1212594103.369309 DEBUG root: IndexManager.flush: False 13
1212594103.444890 INFO org.sugar.datastore.xapianindex: created 5e60098d-0228-46f5-9ab1-4ec4bf9c0aeb:1.0
1212594103.447130 DEBUG root: IndexManager.flush: False 14
1212594103.508198 INFO org.sugar.datastore.xapianindex: updated 5e60098d-0228-46f5-9ab1-4ec4bf9c0aeb:1.0
1212594103.510326 DEBUG root: IndexManager.flush: False 15
1212594103.595810 INFO org.sugar.datastore.xapianindex: created 3de8c1ae-010d-4a6a-9d16-40f992b15bd9:1.0
1212594103.597936 DEBUG root: IndexManager.flush: False 16
1212594103.695864 INFO org.sugar.datastore.xapianindex: updated 3de8c1ae-010d-4a6a-9d16-40f992b15bd9:1.0
1212594103.698615 DEBUG root: IndexManager.flush: False 17
1212594103.776684 INFO org.sugar.datastore.xapianindex: created a1d20289-075c-4309-a413-aad249027ad6:1.0
1212594103.778820 DEBUG root: IndexManager.flush: False 18
1212594103.847745 INFO org.sugar.datastore.xapianindex: updated a1d20289-075c-4309-a413-aad249027ad6:1.0
1212594103.849883 DEBUG root: IndexManager.flush: False 19
1212594103.908298 INFO org.sugar.datastore.xapianindex: created 64e33bd6-05b8

Re: Need help creating .xo file

2008-06-04 Thread shivaprasad javali
ok. I will try that.

Thanks
Shivaprasad

On Wed, Jun 4, 2008 at 8:05 PM, Tomeu Vizoso [EMAIL PROTECTED] wrote:

 So can you replace the proprietary code from the bundle, see if you
 have the same problem then upload?

 Tomeu

 On Wed, Jun 4, 2008 at 4:31 PM, shivaprasad javali [EMAIL PROTECTED]
 wrote:
  Sorry Tomeu. Its a propreitary product .So cannot upload the.xo.
 
  On Wed, Jun 4, 2008 at 7:51 PM, Tomeu Vizoso [EMAIL PROTECTED]
 wrote:
 
  Could you upload your .xo somewhere so I can give it a look?
 
  Thanks,
 
  Tomeu
 
  On Wed, Jun 4, 2008 at 3:07 PM, shivaprasad javali [EMAIL PROTECTED]
  wrote:
   The Bundle installs correctly only when I unzip it manually and then
   restart
   the X-server. I want to do this through sugar-install-bundle or
 through
   browse activity or through Journal. None of which seem to work.
  
   Anyway when I tried to install through the sugar-install-bundle
 command
   It
   failed giving a DBus timeout. Here are the log files I got.
  
   Thanks
   Shivaprasad
  
   P.S: I didnt which log file would really be useful to you guys so I
   attached
   all of them which I thought had some relevant information.
  
   On Wed, Jun 4, 2008 at 5:12 PM, Tomeu Vizoso [EMAIL PROTECTED]
   wrote:
  
   2008/6/4 shivaprasad javali [EMAIL PROTECTED]:
   
Can you figure out where I am going wrong??
  
   What's your problem? The bundle seems to install correctly as its
 icon
   appears in the shell. Is the problem that the activity doesn't start?
   Logs will help in any case, as Bert said.
  
   Regards,
  
   Tomeu
  
  
 
 

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


Need help installing an activity

2008-06-02 Thread shivaprasad javali
Hi,

 I prepared a .xo file for my application to be installed on the XO. I
created the .xo file by running the zip command on the activity folder. Now
if I have to install the activity through a thumb drive, I go to the
terminal move to Activities folder and then unzip the .xo file there. Then I
have to restart the xserver for my activity to show up on the home page.


Is there any way I can install the activity like this without having to
restart the xserver or restart the xserver implicitly??

Also can I do the installation through the journal if I have the .xo
file on a thumb drive??

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


Re: Need help installing an activity

2008-06-02 Thread shivaprasad javali
Hi Bert,

  I tried sugar-install-bundle its giving me an error timeout in the
network connection. Do i have to be connected in the network before I can
run that command??

 Also i tried Simon's suggestion in the follow up mail. When i try
to install it through the browse activity it just stays on that page for a
long time with a waiting mouse cursor and then abruptly quits without
installing the activity. Also i cannot find an entry for that download in
the journal

 Can you think of anything that i might be doing wrong??  When I use
unzip to unzip the .xo file in the appropriate directory and restart the
xserver it works fine.

On Mon, Jun 2, 2008 at 2:10 PM, Bert Freudenberg [EMAIL PROTECTED]
wrote:


 On 02.06.2008, at 10:29, shivaprasad javali wrote:

  Hi,

 I prepared a .xo file for my application to be installed on the XO. I
 created the .xo file by running the zip command on the activity folder. Now
 if I have to install the activity through a thumb drive, I go to the
 terminal move to Activities folder and then unzip the .xo file there. Then I
 have to restart the xserver for my activity to show up on the home page.


Is there any way I can install the activity like this without having to
 restart the xserver or restart the xserver implicitly??


 Yes. Use sugar-install-bundle /path/to/bundle.xo from the Terminal
 activity, which unzips the activity and tells the Sugar shell that it was
 installed.

 Also can I do the installation through the journal if I have the .xo
 file on a thumb drive??



 Yes. Clicking the .xo in the Journal view of your USB drive will install
 it.

 - Bert -



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


Re: Need help installing an activity

2008-06-02 Thread shivaprasad javali
Sorry didnt observe it properly. It is a D-BUS timeout. I am runing the
command from the terminal activity on an actual XO.

On Mon, Jun 2, 2008 at 4:06 PM, Bert Freudenberg [EMAIL PROTECTED]
wrote:

 Are you sure it is a network timeout, not a D-Bus timeout?

 Also, the script will not work from the console, only from the Terminal
 activity.

 If this does not work, please open a bug report.

 - Bert -



 On 02.06.2008, at 12:23, shivaprasad javali wrote:

  Hi Bert,

  I tried sugar-install-bundle its giving me an error timeout in
 the network connection. Do i have to be connected in the network before I
 can run that command??

 Also i tried Simon's suggestion in the follow up mail. When i try
 to install it through the browse activity it just stays on that page for a
 long time with a waiting mouse cursor and then abruptly quits without
 installing the activity. Also i cannot find an entry for that download in
 the journal

 Can you think of anything that i might be doing wrong??  When I use
 unzip to unzip the .xo file in the appropriate directory and restart the
 xserver it works fine.

 On Mon, Jun 2, 2008 at 2:10 PM, Bert Freudenberg [EMAIL PROTECTED]
 wrote:

 On 02.06.2008, at 10:29, shivaprasad javali wrote:

 Hi,

I prepared a .xo file for my application to be installed on the XO. I
 created the .xo file by running the zip command on the activity folder. Now
 if I have to install the activity through a thumb drive, I go to the
 terminal move to Activities folder and then unzip the .xo file there. Then I
 have to restart the xserver for my activity to show up on the home page.


   Is there any way I can install the activity like this without having to
 restart the xserver or restart the xserver implicitly??

 Yes. Use sugar-install-bundle /path/to/bundle.xo from the Terminal
 activity, which unzips the activity and tells the Sugar shell that it was
 installed.


   Also can I do the installation through the journal if I have the .xo
 file on a thumb drive??


 Yes. Clicking the .xo in the Journal view of your USB drive will install
 it.

 - Bert -







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


Re: Need help installing an activity

2008-06-02 Thread shivaprasad javali
My directory structure for the activity is:
-activity --has the .info file and the icon
-bin  -- has a shell script and the exe which i have to run
-lib  -- has the libs which my application is dependent on
- MANIFEST file

I used the information in this link : http://www.catmoran.com/olpc/#sugxterm
to sugarize my activity.

Is there any problem with the structure of this bundle??

Also I am relatively new to development on the XO. Is there any command
where I can know the version of my sugar so that I can provide that
information to you??

Thanks Shivaprasad

On Mon, Jun 2, 2008 at 4:22 PM, Tomeu Vizoso [EMAIL PROTECTED] wrote:

 2008/6/2 shivaprasad javali [EMAIL PROTECTED]:
  Sorry didnt observe it properly. It is a D-BUS timeout. I am runing the
  command from the terminal activity on an actual XO.

 Which version of the software are you using? Some old versions would
 give you that error if the bundle was malformed.

 As always, logs would help:

 http://wiki.laptop.org/go/Attaching_Sugar_Logs_to_Tickets

 Regards,

 Tomeu

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


Re: Creating a non-python activity

2008-05-22 Thread shivaprasad javali
Hi.

 The app that i am trying to run must be run as super user for it to run
properly. So i tried using su -c app_name in the shell script described in
the link http://olpcnews.com/forum/index.php?topic=1555.0

  Now the activity just says starting in the home ring and doesnt
launch.

Any Suggestions??

On Wed, May 21, 2008 at 7:48 PM, Bert Freudenberg [EMAIL PROTECTED]
wrote:


 On 21.05.2008, at 15:46, shivaprasad javali wrote:

  Thanks to all of you .
 
  I finally got the app working thanks to this link
  http://olpcnews.com/forum/index.php?topic=1555.0


 Interesting, thanks. In that post, CatMoran made a script that
 combines Albert's libsugarize.so and my shell script for launching
 activities to create a launcher bundle, works with many X apps:

 http://www.catmoran.com/olpc/sug

 usage:

 http://www.catmoran.com/olpc/#sugxterm

 Might be useful to some :)

 - Bert -


 ___
 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: Creating a non-python activity

2008-05-22 Thread shivaprasad javali
My app uses its own drivers for the USB-HID device. So i will have to detach
the existing driver before I can use my own drivers. So I need root
permission to do this.

On Fri, May 23, 2008 at 12:15 AM, Michael Stone [EMAIL PROTECTED] wrote:

 On Thu, May 22, 2008 at 11:50:17AM +0530, shivaprasad javali wrote:
  Hi.
 
   The app that i am trying to run must be run as super user for it to
 run
  properly. So i tried using su -c app_name in the shell script described
 in
  the link http://olpcnews.com/forum/index.php?topic=1555.0
 
Now the activity just says starting in the home ring and doesnt
  launch.

 The reason why your script fails is that general activities are run with
 low privilege and are not permitted to exercise the privileges of the
 human operator.

 See

  http://wiki.laptop.org/go/Rainbow
  http://dev.laptop.org/git?p=security;a=blob;f=bitfrost.txt;hb=HEAD

 for some details.

 Now, what are you actually trying to accomplish?

 Michael

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


Creating a non-python activity

2008-05-20 Thread shivaprasad javali
Hi,

I have a C++ activity which i want to use on the olpc. I tried to
sugarize my activity based on the info  i found on the olpc wiki
http://wiki.laptop.org/go/Sugarizing  .

 The code for sugarizing in that page didnt work for me. I was only
able to launch my process as a separate application to my python script so
that there were two processes running for my one application.

   I could not figure out how to tie my application's window to the
blank window provided for the python script.

  Any help in this regard would be much appreciated.


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