Re: keyboard handling (was Re: OLPC where to go development advice.)

2009-02-02 Thread david
at the OS level the brightness and volume keys are just the standard 
F9-F12 keys


if you look at the 'keyboard shortcuts' page on the wiki they are even 
documented that way (or at least I think they were at one point)


it's Sugar that decides to monkey with the brightness and volume when 
those keys are pressed.


the other distros setup the mapping using the specific tools for that 
desktop. but they all boil down to setting up something to look for those 
keys and then running the appropriate script.


David Lang

On Mon, 2 Feb 2009, Carol Farlow Lerche wrote:


It seems that the implementations for volume and brightness keys are handled
separately from the remainder of the keyboard in most laptops.  I have
recently been installing Linux in various older laptops, some with gnome,
some with xfce, and have found the laptop "special keys" scripts in
/etc/acpi.  Is this a debian/ubuntu-ism?

On Mon, Feb 2, 2009 at 3:47 PM,  wrote:


s wrote:
> Summary: I updated
> 
> 
> and several other pages, but mysteries remain.
>
> p...@laptop.org usefully responded:
>
>>> I have zero clue where to find the keymapping
>>> file or configuration utility.
>>
>> i just booted ubuntu to see how they do it -- turns out it's easy.
>> they use a program called "xbindkeys" to bind all of the "special" XO
>> keys.  the configuration for that is in /home/olpc/.xbindkeysrc --
you'll
>> see an entry in there that invokes /usr/bin/rotate_screen.py.
>
> I added this to
> 
> Folks, this is the page where distros note their tweaks for the benefit
> of humanity.
>
> I think Sugar doesn't use that technique.  ...

but i've been wondering if perhaps it should.

given that sugar is now multi-platform, does it make sense for
sugar itself to be managing the special XO keyboard keys?  seems like
pulling that support out would let it be reused by non-sugar
distros more readily.

what happens when you press F9 through F12 when running SoaS?
(i think those are the volume and brightness keys on the XO.)

paul
=-
 paul fox, p...@laptop.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: keyboard handling (was Re: OLPC where to go development advice.)

2009-02-02 Thread Carol Farlow Lerche
It seems that the implementations for volume and brightness keys are handled
separately from the remainder of the keyboard in most laptops.  I have
recently been installing Linux in various older laptops, some with gnome,
some with xfce, and have found the laptop "special keys" scripts in
/etc/acpi.  Is this a debian/ubuntu-ism?

On Mon, Feb 2, 2009 at 3:47 PM,  wrote:

> s wrote:
>  > Summary: I updated
>  > 
>  > 
>  > and several other pages, but mysteries remain.
>  >
>  > p...@laptop.org usefully responded:
>  >
>  > >> I have zero clue where to find the keymapping
>  > >> file or configuration utility.
>  > >
>  > > i just booted ubuntu to see how they do it -- turns out it's easy.
>  > > they use a program called "xbindkeys" to bind all of the "special" XO
>  > > keys.  the configuration for that is in /home/olpc/.xbindkeysrc --
> you'll
>  > > see an entry in there that invokes /usr/bin/rotate_screen.py.
>  >
>  > I added this to
>  > 
>  > Folks, this is the page where distros note their tweaks for the benefit
>  > of humanity.
>  >
>  > I think Sugar doesn't use that technique.  ...
>
> but i've been wondering if perhaps it should.
>
> given that sugar is now multi-platform, does it make sense for
> sugar itself to be managing the special XO keyboard keys?  seems like
> pulling that support out would let it be reused by non-sugar
> distros more readily.
>
> what happens when you press F9 through F12 when running SoaS?
> (i think those are the volume and brightness keys on the XO.)
>
> paul
> =-
>  paul fox, p...@laptop.org
> ___
> Devel mailing list
> Devel@lists.laptop.org
> http://lists.laptop.org/listinfo/devel
>



-- 
"Don't think for a minute that power concedes. We have to work like our
future depends on it."  -- Barack Obama
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: keyboard handling (was Re: OLPC where to go development advice.)

2009-02-02 Thread pgf
s wrote:
 > Summary: I updated
 > 
 > 
 > and several other pages, but mysteries remain.
 > 
 > p...@laptop.org usefully responded:
 > 
 > >> I have zero clue where to find the keymapping 
 > >> file or configuration utility.
 > > 
 > > i just booted ubuntu to see how they do it -- turns out it's easy.
 > > they use a program called "xbindkeys" to bind all of the "special" XO
 > > keys.  the configuration for that is in /home/olpc/.xbindkeysrc -- you'll
 > > see an entry in there that invokes /usr/bin/rotate_screen.py.
 > 
 > I added this to 
 >  
 > Folks, this is the page where distros note their tweaks for the benefit 
 > of humanity.
 > 
 > I think Sugar doesn't use that technique.  ...

but i've been wondering if perhaps it should.

given that sugar is now multi-platform, does it make sense for
sugar itself to be managing the special XO keyboard keys?  seems like
pulling that support out would let it be reused by non-sugar
distros more readily.

what happens when you press F9 through F12 when running SoaS?
(i think those are the volume and brightness keys on the XO.)

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


keyboard handling (was Re: OLPC where to go development advice.)

2009-02-02 Thread S Page
Summary: I updated


and several other pages, but mysteries remain.

p...@laptop.org usefully responded:

>> I have zero clue where to find the keymapping 
>> file or configuration utility.
> 
> i just booted ubuntu to see how they do it -- turns out it's easy.
> they use a program called "xbindkeys" to bind all of the "special" XO
> keys.  the configuration for that is in /home/olpc/.xbindkeysrc -- you'll
> see an entry in there that invokes /usr/bin/rotate_screen.py.

I added this to 
 
Folks, this is the page where distros note their tweaks for the benefit 
of humanity.

I think Sugar doesn't use that technique.  The same page points to 

 
, but what hooks this code to keyboard events?

BTW, keyhandler.py also lists some nifty undocumented equivalents for 
some of the XO's buttons and keys:
   # the following are intended for emulator users
 'f'  : 'frame',
 'q'  : 'quit_emulator',
 'o'  : 'open_search',
 'r'  : 'rotate',
 's'  : 'say_text'
and indeed, f/o/r work on my XO in 8.2.0.  I couldn't find 
any documentation for these, so I added them to the table in 
http://wiki.laptop.org/go/Keyboard_shortcuts and mentioned them in 
http://wiki.laptop.org/go/Emulating_the_XO/Help_and_tips#How_to

Tomeu wrote
> It's sugar who listens for the keycode 0xEB and asks xrandr to rotate
> the screen.

According to 
http://wiki.laptop.org/go/Ec_specification#KeyCodes_for_Buttons , the 
keycode for rotate are make=0x69, break=0xE9.  How do these become 0xEB?

I tried all the xkb* command-line programs to find the keymap, it seems that
   xmodmap -pk
shows it.  But it doesn't show anything relevant to the special buttons 
around the screen, I guess because they aren't part of the keyboard itself.

The olpc keyboard mappings in /usr/share/X11/xkb/*/olpc do map several 
XO keys to keysyms, e.g.
   key  { [ XF86TaskPane ] }; // frame key (the top-right key)

but I think Sugar doesn't use the keysym, it looks directly for the key 
or its keystroke equivalent.  It seems the olpc X11 keyboard mappings 
are to make the XO-1's keys mean something when running other desktop 
environments than Sugar.

Keyboard handling is spread across lots of subsystems and pages, I'll 
improve them with any information I receive.

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


Re: OLPC where to go development advice.

2009-02-01 Thread K. K. Subramaniam
On Saturday 31 Jan 2009 11:24:55 am Mikus Grinbergs wrote:
> But I have *not* been able to assign a static ip address when a
> "real" network was involved - Network Manager intervenes and
> "destroys" whatever setup I've configured.
Network Manager does not handle interfaces which have an entry 
in /etc/network/interfaces. Just stick a "auto " entry in there if you 
wish to handle it directly through ifconfig commands. e.g.

--
auto eth1
iface eth1 inet static
address 192.168.1.11
netmask 255.255.255.0
gateway 192.168.1.1


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


Re: OLPC where to go development advice.

2009-02-01 Thread pgf
i wrote:
 > 
 > i just booted ubuntu to see how they do it -- turns out it's easy.
 > they use a program called "xbindkeys" to bind all of the "special" XO

to be clear, "they" isn't ubuntu.  "they" is the person (who goes
by the moniker "teapot") who put together binary release you
downloaded.  a pure ubuntu would probably not be using xbindkeys.

in that vein -- if you need much more help with your release, you're
welcome to hang out here and ask for help, but you may get more help
from the folks over on http://www.olpcnews.com/forum -- people over
there probably have more experience with teapot's ubuntu than
people here.

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


Re: OLPC where to go development advice.

2009-02-01 Thread pgf
paul wrote:
 > 
 > >this will be different under ubuntu-on-XO,
 > 
 > I want to write some code that runs in "Tablet" mode and I need one more key.
 > So I want to disable the screen rotation.
 > Currently even under ubuntu it rotates the screen.
 > I'm a linux newbee so I have zero clue where to find the keymapping 
 > file or configuration utility.

you're doing pretty well for a newbie.

i just booted ubuntu to see how they do it -- turns out it's easy.
they use a program called "xbindkeys" to bind all of the "special" XO
keys.  the configuration for that is in /home/olpc/.xbindkeysrc -- you'll
see an entry in there that invokes /usr/bin/rotate_screen.py.  all you
need to do is change that to point at your own script or program.

 > 
 > > "dpkg -S gio.h" on my thinkpad install of ubuntu intrepid implies
 > 
 > If I include that path it is now looking for glibconfig.h and
 > dpkg -S glibconfi.h responds with
 > 
 > libglib2.0.dev: /usr/lib/glib-2.0/include/glibconfig.h
 > 
 > A dierectory that does not exist.
 > 
 > So this probably means I need to install the
 > 
 > libglib2.0.dev  package right??

yes.  though you meant "libglib2.0-dev".  in general on debian
and ubuntu, to development of a program that needs a library,
you'll need to have the "-dev" package for that library installed.

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


Re: OLPC where to go development advice.

2009-02-01 Thread Paul Breed

>this will be different under ubuntu-on-XO,

I want to write some code that runs in "Tablet" mode and I need one more key.
So I want to disable the screen rotation.
Currently even under ubuntu it rotates the screen.
I'm a linux newbee so I have zero clue where to find the keymapping 
file or configuration utility.

"dpkg -S gio.h" on my thinkpad install of ubuntu intrepid implies

If I include that path it is now looking for glibconfig.h and
dpkg -S glibconfi.h responds with

libglib2.0.dev: /usr/lib/glib-2.0/include/glibconfig.h

A dierectory that does not exist.

So this probably means I need to install the

libglib2.0.dev  package right??

Again thanks for the help

Paul

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


Re: OLPC where to go development advice.

2009-02-01 Thread pgf
paul wrote:
 > Thanks for all the advice, I've gotten ubuntu installed.
 > 
 > One OLPC question and one GTK question
 > 
 > OLPC: where exactly is the keyboard mapping file that would let me
 > change the behavior of the screen orientation button?

this will be different under ubuntu-on-XO, i believe.  are you
trying to get it to rotate?  or to do something else?  there
seem to be some tips, and a start on the "how to get it to rotate"
topic here:
http://www.olpcnews.com/forum/index.php?topic=2240.0

 > 
 > 
 > Its missing the gio headers.
 > 
 > specifically #include

"dpkg -S gio.h" on my thinkpad install of ubuntu intrepid implies
that gio.h should be /usr/include/glib-2.0/gio/gio.h, and comes
from libglib2.0-dev.

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


Re: OLPC where to go development advice.

2009-02-01 Thread Tomeu Vizoso
On Sun, Feb 1, 2009 at 17:08, Chris Ball  wrote:
> Hi Paul,
>
>   > OLPC: where exactly is the keyboard mapping file that would let me
>   > change the behavior of the screen orientation button?
>
> I don't think there's a way to stop the button from trying to perform a
> rotate (though I might be wrong), however you can register to receive a
> signal when the rotation happens.  The signal is delivered over HAL's
> dbus method -- you can watch it happen with "lshal --monitor".

It's sugar who listens for the keycode 0xEB and asks xrandr to rotate
the screen.

So you can modify sugar to not do that (see keyhandler.py) or you can
run other desktop environment.

Regards,

Tomeu

>   > specifically #include
>
> Ubuntu has a website that allows you to search for packages containing
> part of a filename:
>
> http://packages.ubuntu.com/search?searchon=contents&keywords=gio%2Fgio.h&mode=exactfilename&suite=intrepid&arch=any
>
> Hope that helps,
>
> - Chris.
> --
> Chris Ball   
> ___
> 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: OLPC where to go development advice.

2009-02-01 Thread Chris Ball
Hi Paul,

   > OLPC: where exactly is the keyboard mapping file that would let me
   > change the behavior of the screen orientation button?

I don't think there's a way to stop the button from trying to perform a
rotate (though I might be wrong), however you can register to receive a
signal when the rotation happens.  The signal is delivered over HAL's
dbus method -- you can watch it happen with "lshal --monitor".

   > specifically #include

Ubuntu has a website that allows you to search for packages containing
part of a filename:

http://packages.ubuntu.com/search?searchon=contents&keywords=gio%2Fgio.h&mode=exactfilename&suite=intrepid&arch=any

Hope that helps,

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


Re: OLPC where to go development advice.

2009-02-01 Thread Paul Breed
Thanks for all the advice, I've gotten ubuntu installed.

One OLPC question and one GTK question

OLPC: where exactly is the keyboard mapping file that would let me
change the behavior of the screen orientation button?


GTK Development::

gcc works (IE I can compile hello world)

python and pygtk works.

I can't get the c/c++ gtk stuff to compile.

Its missing the gio headers.

specifically #include


There is a gio-unix-2.0, but no gio.h under that.

I've searched in the synaptic package manager and no luck finding a 
package that looks like gio ???

Also the add-remove applications area (where I installed glade, that 
seems to work) .

Should I go hunting for a GTK list?


Thanks again,

Paul







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


Re: OLPC where to go development advice.

2009-01-31 Thread Daniel Drake
2009/1/31 Mikus Grinbergs :
> I do realize that 'ifconfig' only shows interfaces that are up --
> and that it is 'ifconfig  up ' that would be used to
> configure a static ip address (and bring  up).
>
> The problem was that when I tried to assign a static address, the
> 'ifconfig  up' was returning ": unknown interface: No
> such device".

Strange. I can't reproduce this. In fact, I bring NM down to apply
manual settings to interfaces quite often. The interface goes down but
never disappears from "ifconfig -a"

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


Re: OLPC where to go development advice.

2009-01-31 Thread Mikus Grinbergs
>> But I have *not* been able to assign a static ip address when a "real"
 >> network was involved - Network Manager intervenes and "destroys"
 >> whatever setup I've configured.  [And if I stop Network manager,
 >> the XO manages to 'vanish' the *hardware* device to which I would be
 >> assigning my static-address communications interface.]
>
> 
> A little OT, a hint for you: I think you need to learn about more
> about interface state. By default, the kernel boots with interfaces
> down, and something in userspace (e.g. networkmanager) has to bring
> them up. It kinda makes sense for networkmanager to bring them down
> when it exits as well.
> 
> By default, ifconfig only shows interfaces that are up. When you say
> that they are vanishing, I guess you mean that they do not appear in
> ifconfig output. You can use "ifconfig -a" to show all interfaces,
> regardless of whether they are up or down. And you can use "ifconfig
>  up" and "ifconfig  down" to change the state.


I do realize that 'ifconfig' only shows interfaces that are up -- 
and that it is 'ifconfig  up ' that would be used to 
configure a static ip address (and bring  up).

The problem was that when I tried to assign a static address, the 
'ifconfig  up' was returning ": unknown interface: No 
such device".  I even wrote this up (more than a year ago) as #5854, 
which I eventually closed myself because rather than continue to 
struggle with assigning a static ip address, I bypassed that problem 
by setting up a server to automatically assign a dynamic address. 
[There still exists ticket #8387 for "no static ip addresses".]


mikus

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


Re: OLPC where to go development advice.

2009-01-31 Thread Daniel Drake
2009/1/31 Mikus Grinbergs :
>  [And if I stop Network
> manager, the XO manages to 'vanish' the *hardware* device to which I
> would be assigning my static-address communications interface.]

A little OT, a hint for you: I think you need to learn about more
about interface state. By default, the kernel boots with interfaces
down, and something in userspace (e.g. networkmanager) has to bring
them up. It kinda makes sense for networkmanager to bring them down
when it exits as well.

By default, ifconfig only shows interfaces that are up. When you say
that they are vanishing, I guess you mean that they do not appear in
ifconfig output. You can use "ifconfig -a" to show all interfaces,
regardless of whether they are up or down. And you can use "ifconfig
 up" and "ifconfig  down" to change the state.

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


Re: OLPC where to go development advice.

2009-01-31 Thread quozl
Re: static IP, the method that I use on a stripped down debxo is to run
a script from /etc/rc.local ...

/usr/local/bin/quozl-network-persist:

#!/bin/sh
while true; do
/sbin/iwconfig eth0 essid quozl.linux.org.au mode managed channel 6
sleep 1
/sbin/ifconfig eth0 10.0.0.199 netmask 255.255.255.0
sleep 60
done
EOF

And the trigger in /etc/rc.local is:

/usr/local/bin/quozl-network-persist < /dev/null > /dev/null 2> /dev/null &

This has proved adequate for my purposes so far.

-- 
James Cameronmailto:qu...@us.netrek.org http://quozl.netrek.org/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC where to go development advice.

2009-01-30 Thread Mikus Grinbergs
> You can configure a static ip address using ifconfig from the command
> line. You'll need to be root.

Unfortunately, the OLPC has Network Manager, which "knows better".

[I *have* been able to use ifconfig to assign a _mesh_ address on a 
F10 Joyride (which otherwise has mesh support broken).]

But I have *not* been able to assign a static ip address when a 
"real" network was involved - Network Manager intervenes and 
"destroys" whatever setup I've configured.  [And if I stop Network 
manager, the XO manages to 'vanish' the *hardware* device to which I 
would be assigning my static-address communications interface.]

The rest of my ethernet LAN uses static ip addresses.  But I had to 
explicitly provide a DHCP server on my ethernet, just so I could let 
Network Manager "do its thing" to connect my XO to the ethernet.

mikus

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


Re: OLPC where to go development advice.

2009-01-30 Thread david
On Fri, 30 Jan 2009, Carol Farlow Lerche wrote:

> Here is a good current Ubuntu (Intrepid 8.10) to try with installation
> instructions, together with a page that collects the answers to a lot of
> questions that others have come up with:
>
> http://www.olpcnews.com/forum/index.php?topic=40
>
> To install it, you will have to buy an SD card (I just put an 8GB Transcend
> SD in each of my 5 XOs so they would dual boot this and they all work
> beautifully).

other options include Fedora 10 (I don't know where to find a build for it 
as I don't use it)

for debian you can use debxo, which you can run on a USB, SD card, or load 
to the internal flash of the XO

http://wiki.laptop.org/go/DebXOhttp://wiki.laptop.org/go/DebXO
http://lunge.mit.edu/~dilinger/debxo-latest/
it's available with a variety of desktops, or as a plain OS for you to add 
whatever you want on top.

it has a file to define the keys (it's in the images or available 
seperatly at 
http://lunge.mit.edu/~dilinger/debxo-latest/30-keymap-olpc.fdi)

 




   
 
 
   0x65:kp9 

   0x66:kp3 

   0x67:kp7 

   0x68:kp1 


   0xe065:kp8 

   0xe066:kp2 

   0xe067:kp4 

   0xe068:kp6 


   0x73:prog1 

   0x43:brightnessdown 
   0x44:brightnessup 
   0x57:volumedown 
   0x58:volumeup 

   0x59:fn 


   0xe043:f9 

   0xe044:f10 

   0xe057:f11 

   0xe058:f12 


   0xe079:search 
   0xe06e:chat 


   input.keymap

 
   



David Lang


> In particular, there is an explanation for how to bind all the keys to
> something rational in the regular Ubuntu Linux desktop.
>
> Many people have used USB keyboards successfully with the XO, though I have
> not personally tried this.  I routinely use my USB mouse with my XOs.
>
> Regards,
>
> Carol Lerche
>
>
>
> 2009/1/30 david 
>
>> Paul, for your purposes you may be better off using one of the 'normal'
>> linux distros on the XO laptop.
>>
>> then programming would be just the same as on any other linux box, and the
>> buttons map to keystrokes.
>>
>> you can either use them as-is (default mappings), or alter the mappings to
>> change them to what you would like them to be.
>>
>>
>> David Lang
>>
>> On Fri, 30 Jan 2009, Paul Breed wrote:
>>
>>> Date: Fri, 30 Jan 2009 16:42:13 -0800
>>> From: Paul Breed 
>>> To: devel@lists.laptop.org
>>> Subject: OLPC where to go development advice.
>>>
>>> I subscribed to the dev list for some development advice for the OLPC.
>>>
>>> My reason for using the OLPC is not to help in the developing world,
>>> it because I'm working on a long term project in the Mojave Desert and
>>> unit is robust and the display can be read in the noon day mojave sun.
>>>
>>> The project is a Rocket. My 22yr old son and I are  working on it
>> together.
>>>
>>> See:
>>> http://www.youtube.com/watch?v=dacpVhUnEXw&feature=channel_page
>>>
>>>
>>> I'm a very skilled embedded C/C++ programmer. (Full bare metal
>>> custom, not linux/uclinux see www.netburner.com)
>>>
>>> I also used to make my living doing professional custom UI's in mfc
>>> /windows 98/xp/nt etc...
>>>
>>> I love working on the command line, but am weak in the linux
>>> configuration area.
>>>
>>> My son does webserver python stuff buy has ZERO gui experience, I
>>> have lots of GUI experience but exactly 2 days of python experience.
>>>
>>>
>>> I basically want the OLPC to be a front panel for the headless
>>> embedded computers that
>>> run the rocket.
>>>
>>> My telemetry system and the main computer on the rocket are all
>>> communicating with UDP
>>> packets. Where needed the acknowledgement occurs at the application
>>> layer, not the network layer ala tcp.
>>> I do this for better control of the real time latency where it matters.
>>>
>>> The operational communications is all advisory and tuning, we have
>>> separate hardware radio abort systems.
>>> The setup and configuration operations are not real time, but we
>>> still use the UDP
>>> system so we don't have two different comm prototcols.
>>>
>>> So I need to setup to send/receive UDP packets based on some buttons,
>>> combo boxes and spin controls.
>>> Draw a few simple graphs/2d plots etc
>>> I've already written the apps I need i

Re: OLPC where to go development advice.

2009-01-30 Thread Carol Farlow Lerche
Here is a good current Ubuntu (Intrepid 8.10) to try with installation
instructions, together with a page that collects the answers to a lot of
questions that others have come up with:

http://www.olpcnews.com/forum/index.php?topic=40

To install it, you will have to buy an SD card (I just put an 8GB Transcend
SD in each of my 5 XOs so they would dual boot this and they all work
beautifully).

In particular, there is an explanation for how to bind all the keys to
something rational in the regular Ubuntu Linux desktop.

Many people have used USB keyboards successfully with the XO, though I have
not personally tried this.  I routinely use my USB mouse with my XOs.

Regards,

Carol Lerche



2009/1/30 david 

> Paul, for your purposes you may be better off using one of the 'normal'
> linux distros on the XO laptop.
>
> then programming would be just the same as on any other linux box, and the
> buttons map to keystrokes.
>
> you can either use them as-is (default mappings), or alter the mappings to
> change them to what you would like them to be.
>
>
> David Lang
>
> On Fri, 30 Jan 2009, Paul Breed wrote:
>
> > Date: Fri, 30 Jan 2009 16:42:13 -0800
> > From: Paul Breed 
> > To: devel@lists.laptop.org
> > Subject: OLPC where to go development advice.
> >
> > I subscribed to the dev list for some development advice for the OLPC.
> >
> > My reason for using the OLPC is not to help in the developing world,
> > it because I'm working on a long term project in the Mojave Desert and
> > unit is robust and the display can be read in the noon day mojave sun.
> >
> > The project is a Rocket. My 22yr old son and I are  working on it
> together.
> >
> > See:
> > http://www.youtube.com/watch?v=dacpVhUnEXw&feature=channel_page
> >
> >
> > I'm a very skilled embedded C/C++ programmer. (Full bare metal
> > custom, not linux/uclinux see www.netburner.com)
> >
> > I also used to make my living doing professional custom UI's in mfc
> > /windows 98/xp/nt etc...
> >
> > I love working on the command line, but am weak in the linux
> > configuration area.
> >
> > My son does webserver python stuff buy has ZERO gui experience, I
> > have lots of GUI experience but exactly 2 days of python experience.
> >
> >
> > I basically want the OLPC to be a front panel for the headless
> > embedded computers that
> > run the rocket.
> >
> > My telemetry system and the main computer on the rocket are all
> > communicating with UDP
> > packets. Where needed the acknowledgement occurs at the application
> > layer, not the network layer ala tcp.
> > I do this for better control of the real time latency where it matters.
> >
> > The operational communications is all advisory and tuning, we have
> > separate hardware radio abort systems.
> > The setup and configuration operations are not real time, but we
> > still use the UDP
> > system so we don't have two different comm prototcols.
> >
> > So I need to setup to send/receive UDP packets based on some buttons,
> > combo boxes and spin controls.
> > Draw a few simple graphs/2d plots etc
> > I've already written the apps I need in windows/mfc and total time
> > invested on the PC side is about 2 weeks.
> > So I want to recreate them here.
> > I've been playing with the pygtk both on a windows PC and the OLPC
> > and it seems like I can write
> > what I need to.
> >
> > My questions are going to be a mix of both pyGTK /Python and linux on
> > OLPC questions.
> > So I'm looking for the right venue to ask.
> >
> > I have several specific questions right now:
> >
> > I can't use the WiFi as 2.4Ghz is already used and I don't want
> interference.
> > I've ordered a Ethernet USB dongle that is supposed to be OLPC
> compatible.
> >
> > If I just plug that in will the OLPC  recognize it and use it?
> >
> >
> > How do I configure that network port with a static IP configuration?
> >
> >
> > How do I tell pygtk on the PC to open with a window the same size
> > (pixel wise) as it will be on the OLPC?
> >
> >
> > Can I plug in something that looks like an external USB keyboard and
> > have it recognized?
> >
> > How hard is it to modify the pygtk keyboard focus navigation stuff so
> > I could use the OLPC in tablet mode
> > rather than laptop mode?
> >
> > Is there any simple way to reclaim the OLPC key that changes display
> > orientation so I could have
> > one more ui button in tablet mo

Re: OLPC where to go development advice.

2009-01-30 Thread Walter Bender
On Fri, Jan 30, 2009 at 7:42 PM, Paul Breed  wrote:
> I subscribed to the dev list for some development advice for the OLPC.

This is probably the best list. There is also irc.freenode.net #olpc-devel

> My reason for using the OLPC is not to help in the developing world,
> it because I'm working on a long term project in the Mojave Desert and
> unit is robust and the display can be read in the noon day mojave sun.
>
> The project is a Rocket. My 22yr old son and I are  working on it together.
>
> See:
> http://www.youtube.com/watch?v=dacpVhUnEXw&feature=channel_page
>
>
> I'm a very skilled embedded C/C++ programmer. (Full bare metal
> custom, not linux/uclinux see www.netburner.com)
>
> I also used to make my living doing professional custom UI's in mfc
> /windows 98/xp/nt etc...
>
> I love working on the command line, but am weak in the linux
> configuration area.
>
> My son does webserver python stuff buy has ZERO gui experience, I
> have lots of GUI experience but exactly 2 days of python experience.
>
>
> I basically want the OLPC to be a front panel for the headless
> embedded computers that
> run the rocket.
>
> My telemetry system and the main computer on the rocket are all
> communicating with UDP
> packets. Where needed the acknowledgement occurs at the application
> layer, not the network layer ala tcp.
> I do this for better control of the real time latency where it matters.
>
> The operational communications is all advisory and tuning, we have
> separate hardware radio abort systems.
> The setup and configuration operations are not real time, but we
> still use the UDP
> system so we don't have two different comm prototcols.
>
> So I need to setup to send/receive UDP packets based on some buttons,
> combo boxes and spin controls.
> Draw a few simple graphs/2d plots etc
> I've already written the apps I need in windows/mfc and total time
> invested on the PC side is about 2 weeks.
> So I want to recreate them here.
> I've been playing with the pygtk both on a windows PC and the OLPC
> and it seems like I can write
> what I need to.
>
> My questions are going to be a mix of both pyGTK /Python and linux on
> OLPC questions.
> So I'm looking for the right venue to ask.
>
> I have several specific questions right now:
>
> I can't use the WiFi as 2.4Ghz is already used and I don't want interference.
> I've ordered a Ethernet USB dongle that is supposed to be OLPC compatible.
>
> If I just plug that in will the OLPC  recognize it and use it?

If it is one of the ones listed in the wiki, it should probably just work.

> How do I configure that network port with a static IP configuration?

You can configure a static ip address using ifconfig from the command
line. You'll need to be root.

> How do I tell pygtk on the PC to open with a window the same size
> (pixel wise) as it will be on the OLPC?

I don't know what window manager you are using on the PC (or what
operating system), but the emulators will try to run at 1200x900 if
they can.

>
> Can I plug in something that looks like an external USB keyboard and
> have it recognized?

yes.

> How hard is it to modify the pygtk keyboard focus navigation stuff so
> I could use the OLPC in tablet mode
> rather than laptop mode?

Should just work. There are some examples of using the buttons on the
screen in the Sugar Almanac in the OLPC wiki.
>
> Is there any simple way to reclaim the OLPC key that changes display
> orientation so I could have
> one more ui button in tablet mode?
>

I don't recall off the top of my head where it is defined, but it is
simply a matter of changing a table entry.

> I need three different apps, Configruation, PRelaunch
> checklist/countdown and Fligth status.
>
> I need to be able to quickly switch between all three
> One Big app with notebook/tab style pages?
> Or three apps, if so how do I switch quickly on the OLPC?

Alt-Tab

>
> Do I want to leave the stock OLPC software in place or would I find a
> more traditional linux installation more friendly.
> (Or at least less wierd)
>
> Where could I go and get a linux image that will just run on the OLPC.

There is a stock Fedora image available. http://fedoraproject.org/wiki/OLPC

> If I went to a traditional Linux distro could I do GTK UI's in C/C++
> on this machine?

Yes.
>
>
>
>
> Thanks for any help on what is really an off topic post
>
>
> Paul
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ___
> Devel mailing list
> Devel@lists.laptop.org
> http://lists.laptop.org/listinfo/devel
>



-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC where to go development advice.

2009-01-30 Thread david
Paul, for your purposes you may be better off using one of the 'normal' 
linux distros on the XO laptop.

then programming would be just the same as on any other linux box, and the 
buttons map to keystrokes.

you can either use them as-is (default mappings), or alter the mappings to 
change them to what you would like them to be.


David Lang

On Fri, 30 Jan 2009, Paul Breed wrote:

> Date: Fri, 30 Jan 2009 16:42:13 -0800
> From: Paul Breed 
> To: devel@lists.laptop.org
> Subject: OLPC where to go development advice.
> 
> I subscribed to the dev list for some development advice for the OLPC.
>
> My reason for using the OLPC is not to help in the developing world,
> it because I'm working on a long term project in the Mojave Desert and
> unit is robust and the display can be read in the noon day mojave sun.
>
> The project is a Rocket. My 22yr old son and I are  working on it together.
>
> See:
> http://www.youtube.com/watch?v=dacpVhUnEXw&feature=channel_page
>
>
> I'm a very skilled embedded C/C++ programmer. (Full bare metal
> custom, not linux/uclinux see www.netburner.com)
>
> I also used to make my living doing professional custom UI's in mfc
> /windows 98/xp/nt etc...
>
> I love working on the command line, but am weak in the linux
> configuration area.
>
> My son does webserver python stuff buy has ZERO gui experience, I
> have lots of GUI experience but exactly 2 days of python experience.
>
>
> I basically want the OLPC to be a front panel for the headless
> embedded computers that
> run the rocket.
>
> My telemetry system and the main computer on the rocket are all
> communicating with UDP
> packets. Where needed the acknowledgement occurs at the application
> layer, not the network layer ala tcp.
> I do this for better control of the real time latency where it matters.
>
> The operational communications is all advisory and tuning, we have
> separate hardware radio abort systems.
> The setup and configuration operations are not real time, but we
> still use the UDP
> system so we don't have two different comm prototcols.
>
> So I need to setup to send/receive UDP packets based on some buttons,
> combo boxes and spin controls.
> Draw a few simple graphs/2d plots etc
> I've already written the apps I need in windows/mfc and total time
> invested on the PC side is about 2 weeks.
> So I want to recreate them here.
> I've been playing with the pygtk both on a windows PC and the OLPC
> and it seems like I can write
> what I need to.
>
> My questions are going to be a mix of both pyGTK /Python and linux on
> OLPC questions.
> So I'm looking for the right venue to ask.
>
> I have several specific questions right now:
>
> I can't use the WiFi as 2.4Ghz is already used and I don't want interference.
> I've ordered a Ethernet USB dongle that is supposed to be OLPC compatible.
>
> If I just plug that in will the OLPC  recognize it and use it?
>
>
> How do I configure that network port with a static IP configuration?
>
>
> How do I tell pygtk on the PC to open with a window the same size
> (pixel wise) as it will be on the OLPC?
>
>
> Can I plug in something that looks like an external USB keyboard and
> have it recognized?
>
> How hard is it to modify the pygtk keyboard focus navigation stuff so
> I could use the OLPC in tablet mode
> rather than laptop mode?
>
> Is there any simple way to reclaim the OLPC key that changes display
> orientation so I could have
> one more ui button in tablet mode?
>
>
> I need three different apps, Configruation, PRelaunch
> checklist/countdown and Fligth status.
>
> I need to be able to quickly switch between all three
> One Big app with notebook/tab style pages?
> Or three apps, if so how do I switch quickly on the OLPC?
>
>
> Do I want to leave the stock OLPC software in place or would I find a
> more traditional linux installation more friendly.
> (Or at least less wierd)
>
> Where could I go and get a linux image that will just run on the OLPC.
>
> If I went to a traditional Linux distro could I do GTK UI's in C/C++
> on this machine?
>
>
>
>
>
> Thanks for any help on what is really an off topic post
>
>
> Paul
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ___
> 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


OLPC where to go development advice.

2009-01-30 Thread Paul Breed
I subscribed to the dev list for some development advice for the OLPC.

My reason for using the OLPC is not to help in the developing world,
it because I'm working on a long term project in the Mojave Desert and
unit is robust and the display can be read in the noon day mojave sun.

The project is a Rocket. My 22yr old son and I are  working on it together.

See:
http://www.youtube.com/watch?v=dacpVhUnEXw&feature=channel_page


I'm a very skilled embedded C/C++ programmer. (Full bare metal 
custom, not linux/uclinux see www.netburner.com)

I also used to make my living doing professional custom UI's in mfc 
/windows 98/xp/nt etc...

I love working on the command line, but am weak in the linux 
configuration area.

My son does webserver python stuff buy has ZERO gui experience, I 
have lots of GUI experience but exactly 2 days of python experience.


I basically want the OLPC to be a front panel for the headless 
embedded computers that
run the rocket.

My telemetry system and the main computer on the rocket are all 
communicating with UDP
packets. Where needed the acknowledgement occurs at the application 
layer, not the network layer ala tcp.
I do this for better control of the real time latency where it matters.

The operational communications is all advisory and tuning, we have 
separate hardware radio abort systems.
The setup and configuration operations are not real time, but we 
still use the UDP
system so we don't have two different comm prototcols.

So I need to setup to send/receive UDP packets based on some buttons, 
combo boxes and spin controls.
Draw a few simple graphs/2d plots etc
I've already written the apps I need in windows/mfc and total time 
invested on the PC side is about 2 weeks.
So I want to recreate them here.
I've been playing with the pygtk both on a windows PC and the OLPC 
and it seems like I can write
what I need to.

My questions are going to be a mix of both pyGTK /Python and linux on 
OLPC questions.
So I'm looking for the right venue to ask.

I have several specific questions right now:

I can't use the WiFi as 2.4Ghz is already used and I don't want interference.
I've ordered a Ethernet USB dongle that is supposed to be OLPC compatible.

If I just plug that in will the OLPC  recognize it and use it?


How do I configure that network port with a static IP configuration?


How do I tell pygtk on the PC to open with a window the same size 
(pixel wise) as it will be on the OLPC?


Can I plug in something that looks like an external USB keyboard and 
have it recognized?

How hard is it to modify the pygtk keyboard focus navigation stuff so 
I could use the OLPC in tablet mode
rather than laptop mode?

Is there any simple way to reclaim the OLPC key that changes display 
orientation so I could have
one more ui button in tablet mode?


I need three different apps, Configruation, PRelaunch 
checklist/countdown and Fligth status.

I need to be able to quickly switch between all three
One Big app with notebook/tab style pages?
Or three apps, if so how do I switch quickly on the OLPC?


Do I want to leave the stock OLPC software in place or would I find a 
more traditional linux installation more friendly.
(Or at least less wierd)

Where could I go and get a linux image that will just run on the OLPC.

If I went to a traditional Linux distro could I do GTK UI's in C/C++ 
on this machine?





Thanks for any help on what is really an off topic post


Paul
































































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