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

2010-01-27 Thread shivaprasad javali
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

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

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

Re: Performance hit while working with screen depth 16

2009-07-13 Thread shivaprasad javali
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

Re: Performance hit while working with screen depth 16

2009-07-13 Thread shivaprasad javali
? 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

Re: Performance hit while working with screen depth 16

2009-07-13 Thread shivaprasad javali
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

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

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

2009-02-19 Thread shivaprasad javali
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

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

2009-02-18 Thread shivaprasad javali
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

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).

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

Re: Adding Activities installed to the Favorites view

2009-01-15 Thread shivaprasad javali
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

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

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

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

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

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

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

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

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.

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

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

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

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.

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

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

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

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

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

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

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

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

Re: SuperUser permission for the Driver??

2008-06-24 Thread shivaprasad javali
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

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

Re: How USB's are enumerated on the XO

2008-06-23 Thread shivaprasad javali
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

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

Re: Need help creating .xo file

2008-06-04 Thread shivaprasad javali
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

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

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.

Re: Need help installing an activity

2008-06-02 Thread shivaprasad javali
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

Re: Need help installing an activity

2008-06-02 Thread shivaprasad javali
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

Re: Need help installing an activity

2008-06-02 Thread shivaprasad javali
, 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

Re: Creating a non-python activity

2008-05-22 Thread shivaprasad javali
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

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

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