Home
Forum
Help
Login
Register
XO Laptop Shop
Forum Staff
OLPC News
OLPC News Forum
»
XO Laptop
»
XO Hacks
»
Other Operating Systems
»
Ubuntu 8.10 (Intrepid) for XO
Welcome,
Guest
. Please
login
or
register
.
Get your own OLPC -
Buy an XO laptop on eBay
!
Pages:
1
...
40
41
42
[
43
]
44
45
46
...
50
« previous
next »
Print
Author
Topic: Ubuntu 8.10 (Intrepid) for XO (Read 558647 times)
#630
Re: Ubuntu 8.10 (Intrepid) for XO
metal.lunchbox
Senior Contributor
Posts: 149
November 06, 2009, 02:19:50 PM
I knew there was a simple solution to this, it just took me forever to figure out what switch to throw. It wasn't the eurosign on 5 layout that I was after but without your tip Mavrothal I would have continued running in circles with this. It just took a little understanding of xkb and a peek inside /usr/share/X11/xkb/symbols/us. The olpc keyboard layout is a part of the X11 package common to most systems using X. To start using it all you need to do is type the following at the command prompt:
Code:
setxkbmap "us(olpc)"
if you like that you can make it load this layout every time by adding the following line about a third the way into your /etc/X11/xorg.conf under the line that reads "Option XkbLayout.."
Code:
Option "XkbVariant" "olpc"
This makes things alot easier if you ever use accents or the other special characters present on the olpc keyboard. I think the next encarnation of ubuntu for the XO should have this set by default. Thanks mavrothal.
Logged
xoxoxoxoxo
#631
Re: Ubuntu 8.10 (Intrepid) for XO
mavrothal
Administrator
OLPC News Forum Expert
Posts: 1289
November 07, 2009, 12:43:50 AM
Nice!
Have you tested if it generates any conflicts with teapot's function key assignments? specifically volume, dimming, B&W screen, rotation, and game keys.
Also, I would guess if one does not want to mess with xorg.config the
setxkbmap "us(olpc)"
line could be added in
/usr/lib/xfce4/scripts/xfce4_startup
Logged
XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or
XOpup
)
#632
Re: Ubuntu 8.10 (Intrepid) for XO
metal.lunchbox
Senior Contributor
Posts: 149
November 08, 2009, 04:09:23 PM
I've modified my ubuntu install so heavily from teapot's original that I can't be sure that things would still work perfectly on it with a different keyboard but at least on my system the volume up/down, brightness, keys and screen rotation are defined in ~/.xbindkeysrc . The appropriate actions are linked to the keycodes not the symbols matched to them by the xkb layout.
I stripped my ubuntu install down, removing xfce, gdm, x, and all x applications. Then I reinstalled x and some other important packages and started using dwm as my window manager. It is extremely fast and lightweight so I have more resources for my applications. I find everything runs better and the tiling window manager makes much more efficient use of the small screen. I've also upgraded to jaunty but I couldn't tell you what if any advantage that gives me. It does use more HD space though. and I have not been able to upgrade the kernel.
Logged
xoxoxoxoxo
#633
Re: Ubuntu 8.10 (Intrepid) for XO
anthill
Contributor
Posts: 55
November 08, 2009, 06:22:59 PM
Just wanted to thank Teapot for a great customized Ubuntu. My only wish list is game keys and touchpad rotation to match the screen orientation.
Logged
#634
Re: Ubuntu 8.10 (Intrepid) for XO
metal.lunchbox
Senior Contributor
Posts: 149
November 09, 2009, 05:10:44 PM
of course, the gamekeys should rotate too! looking at /usr/bin/rotate_screen.py it looks like the script is intended to do this already and it seems that it is just rotating the keys backwards. I have no understanding of python though it looks like its not anything a kid couldn't learn. its reading the normal keysettings from /etc/rotate_screen/olpckeys and adjusting them accordingly but I can't read exactly what is going on where or I could fix it. Until someone who understands python can fix this. You can use the following, much simpler system. This is mostly from a
buried thread on this forum
, but fixed.
create a new rotate script from the termina called xrandr_rotate.sh:
Code:
#!/bin/bash
current=$( xrandr | grep connected | awk '{print $4}')
if [ $current == '(normal' ]; then val="left"
elif [ $current == 'left' ]; then val="inverted"
elif [ $current == 'inverted' ]; then val="right"
elif [ $current == 'right' ]; then val="normal"
fi
xrandr -o $val
xmodmap $HOME/.xmodmap/gamekeys$val
now move the script to /usr/bin/ and make the keymap files:
Code:
sudo mv xrand_rotate.sh /usr/bin/
mkdir ~/.xmodmap
cd ~/.xmodmap
the first one is called gamekeysnormal :
Code:
keycode 80 = KP_Up
keycode 85 = KP_Right
keycode 88 = KP_Down
keycode 83 = KP_Left
keycode 81 = KP_Prior
keycode 79 = KP_Home
keycode 89 = KP_Next
keycode 87 = KP_End
then gamekeysleft:
Code:
keycode 83 = KP_Up
keycode 80 = KP_Right
keycode 85 = KP_Down
keycode 88 = KP_Left
keycode 79 = KP_Prior
keycode 89 = KP_Home
keycode 87 = KP_Next
keycode 81 = KP_End
now gamekeysinverted:
Code:
keycode 88 = KP_Up
keycode 83 = KP_Right
keycode 80 = KP_Down
keycode 85 = KP_Left
keycode 89 = KP_Prior
keycode 87 = KP_Home
keycode 81 = KP_Next
keycode 79 = KP_End
finally gamekeysright:
Code:
keycode 85 = KP_Up
keycode 88 = KP_Right
keycode 83 = KP_Down
keycode 80 = KP_Left
keycode 87 = KP_Prior
keycode 81 = KP_Home
keycode 79 = KP_Next
keycode 89 = KP_End
now just change .xbindkeysrc from /usr/bin/rotate_screen.py... to /usr/bin/xrandr_rotate.sh , and update the keybindings by running xbindkeys
that should do it.
Logged
xoxoxoxoxo
#635
Re: Ubuntu 8.10 (Intrepid) for XO
Walter Neff
Commenter
Posts: 6
November 09, 2009, 10:12:13 PM
Has anyone had any luck installing the Dev version of Google Chrome for Linux -- available at
http://dev.chromium.org/getting-involved/dev-channel
-- on Teapot's Ubuntu? How about on any other OLPC operating system? I tried installing it on Teapot's Ubuntu, but the installation won't complete, citing conflicts. I'm too much of a Linux novice to figure out what the problem is. Anyone else have better luck?
Logged
#636
Re: Ubuntu 8.10 (Intrepid) for XO
tor
Commenter
Posts: 7
November 10, 2009, 01:56:29 AM
Quote from: Walter Neff on November 09, 2009, 10:12:13 PM
Has anyone had any luck installing the Dev version of Google Chrome for Linux -- available at
http://dev.chromium.org/getting-involved/dev-channel
-- on Teapot's Ubuntu? How about on any other OLPC operating system? I tried installing it on Teapot's Ubuntu, but the installation won't complete, citing conflicts. I'm too much of a Linux novice to figure out what the problem is. Anyone else have better luck?
I'm using Chrome with Teapot's Ubuntu and it works perfectly. I installed the same version you are linking to - at first I was worried because the website claims that you need Pentium 4, Athlon 64 or a later CPU, implying that SSE2 is required. The Geode does not support SSE instructions.
It's a while since I installed, but I can't recall doing anything out of the ordinary to make it work. Most likely I installed it by just double clicking the .deb file and using the default package installer (gdebi). Chrome works fine and updates through APT's update mechanisms. (The .deb package automatically adds the Chrome package repository to the APT sources configuration)
Maybe someone can help if you list the exact conflicts you are getting?
«
Last Edit: November 10, 2009, 02:03:53 AM by tor
»
Logged
#637
Re: Ubuntu 8.10 (Intrepid) for XO
anthill
Contributor
Posts: 55
November 10, 2009, 02:02:33 PM
Quote from: metal.lunchbox on November 09, 2009, 05:10:44 PM
of course, the gamekeys should rotate too! looking at /usr/bin/rotate_screen.py it looks like the script is intended to do this already and it seems that it is just rotating the keys backwards. I have no understanding of python though it looks like its not anything a kid couldn't learn. its reading the normal keysettings from /etc/rotate_screen/olpckeys and adjusting them accordingly
Thanks metal.lunchbox, I think I figured it out. Teapot's method calls the /usr/bin/rotate_screen.py script to read the four KP_Up/right/down/left keycodes listed in /etc/rotate_screen/olpckeys and re-order them according to the screen rotation. The script looks for a double newline (\n\n) break in the olpckeys file to read the four game keys. I added six lines to my /etc/rotate_screen/olpckeys file as follows:
Code:
83 = KP_Left
80 = KP_Up
85 = KP_Right
88 = KP_Down
81 = KP_Prior
87 = KP_End
89 = KP_Next
79 = KP_Home
The order of the four game keys in the last section is important to get the right rotation behavior
[WITH STOCK GEODE DRIVERS]
.
[EDIT]
the
new Geode graphics drivers
fix it so the screen rotates counterclockwise. That means your file needs to read:
Code:
83 = KP_Left
88 = KP_Down
85 = KP_Right
80 = KP_Up
81 = KP_Prior
79 = KP_Home
89 = KP_Next
87 = KP_End
Has anyone found a solution for rotating the X/Y axis of the touchpad to match the screen rotation? The kbdshim Fedora solution would be good, but I like Teapot's Ubuntu...
«
Last Edit: December 01, 2009, 11:14:13 AM by anthill
»
Logged
#638
Re: Ubuntu 8.10 (Intrepid) for XO
Walter Neff
Commenter
Posts: 6
November 11, 2009, 08:02:01 PM
Thanks for the inspiration, Tor. I tried installing it again, and this time everything went smoothly. (Don't know what I did differently this time -- nothing, seemingly -- but this time it installed without complaining of any conflicts.)
Google Chrome seems to run beautifully on teapot's Ubuntu so far, which is particularly surprising given this isn't even a beta version yet. I highly recommend that anyone using teapot's Ubuntu try Google Chrome, from the link in my previous post. It's very fast, elegant and easy-to-use -- better (for my purposes at least) than either Firefox or Opera.
Logged
#639
Re: Ubuntu 8.10 (Intrepid) for XO
anthill
Contributor
Posts: 55
November 12, 2009, 08:51:26 AM
Tor, Walter, thanks for letting me know about Google Chrome - I started a new thread about it
here
I've been looking through Teapot's power management scripts, trying to figure out if there's a quick way to add USB keyboard idle detection. From what I can see, teapot's /usr/bin/xo-pm-interrupts-monitor is already looking in the right place: /proc/interrupts. The problem that I see is that the USB subsystem sends chatty intterupts, even when idle.
Typing ' watch cat /proc/interrupts', I see Interrupt 10 is responding to ohci_hcd:usb1 and ehci_hcd:usb2. I assume those have something to do with Human Computer Interaction (or device?). When my USB keyboard is not plugged in, I see the interrupt count increasing at about 1-3 interrupts per second. With the USB keyboard plugged in, there's no change in the rate. But if I type on the USB keyboard at a 30wpm pace, interrupt #10's count increases about 10-30 interrupts per second. So there is a signal in /proc/interrupts, it's just a matter of interpreting it.
I don't know how a script could judge how quickly the USB interrupts are increasing, or what the decision criteria should be to decide that the keyboard is idle. Also, this definitely wouldn't work for waking the computer up on a USB keyboard keypress.
But it would be a slight improvement for the laptop not to fall asleep as I'm typing on it. At least it would be like a game of
"Write or Die"...
Logged
#640
Re: Ubuntu 8.10 (Intrepid) for XO
Xain
Commenter
Posts: 6
November 19, 2009, 06:31:40 PM
I dunno if anyone has posted a video of Ubuntu Intrepid (optimized) running off this little laptop yet.. It'd be great to see how well it runs before I attempt this installation.
If anyone can upload a few vids on youtube of ya'll booting up and running different apps, it'd be great. thanks
Logged
#641
Re: Ubuntu 8.10 (Intrepid) for XO
mavrothal
Administrator
OLPC News Forum Expert
Posts: 1289
November 20, 2009, 03:47:25 PM
Quote from: Xain on November 19, 2009, 06:31:40 PM
I dunno if anyone has posted a video of Ubuntu Intrepid (optimized) running off this little laptop yet.. It'd be great to see how well it runs before I attempt this installation.
If anyone can upload a few vids on youtube of ya'll booting up and running different apps, it'd be great. thanks
Teapot had posted 2 videos here
http://abelits.livejournal.com/38661.html#cutid1
Is from the Hardy version but Intrepid is equally fast (or slow
) but more user friendly
Logged
XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or
XOpup
)
#642
Re: xfce4-panel vanished ------ how to permanently disable wireless network
grey-haired-xo-user
Commenter
Posts: 8
November 28, 2009, 02:40:10 AM
Hi mavrothal, thanks alot for your help..
Quote from: mavrothal on October 25, 2009, 03:28:41 PM
Quote from: grey-haired-xo-user on October 25, 2009, 01:35:18 PM
1. how do i reset the xfce4 panels back to its original states?
If they are ersed they are gone... You can only reinstall from the original or remake them (right click-> add to panel.)
i moved the XFCE4 panel settings so they would be automatically remade. worked quite fine, just the looks is different (xfce4-standard, but good looking either):
Code:
mv .config/xfce4 .config/xfce4-old
mv .config/xfce4-session .config/xfce4-session-old
(pushing Alt+F2 (4th key from top left, (friends view)) and entering xfce4-terminal in the field -> run, was necessary to get to the command line)
I also had to use solution post
http://www.olpcnews.com/forum/index.php?topic=4053.msg28195#msg28195
(reinstate your battery monitor).
The network manager icon was gone either, i used your next step - check out, check in - to add it again:
Quote
Quote
2. is there a way to disable wireless networking on startup?
(and, if you find the time:)
Menu->Settings->Startup applications
but this only disables the network manager icon, not the wi-fi. i still have to do that manually, via right click on the icon.
Any ideas?
«
Last Edit: November 28, 2009, 03:02:01 AM by grey-haired-xo-user
»
Logged
#643
Solution Post MOVING FILES ON THE DESKTOP -> wrong link!
grey-haired-xo-user
Commenter
Posts: 8
November 28, 2009, 02:50:18 AM
the Solution Post
Code:
MOVING FILES ON THE DESKTOP
Just in case you are wondering why you do not get the "expected" behavior look here
http://www.olpcnews.com/forum/index.php?topic=4053.msg27482#msg27482
at
http://www.olpcnews.com/forum/index.php?topic=4057.msg28211#msg28211
leads to the wrong page.. anyone know how to fix the issue?
thanks alot in advance, im really enjoying my teapot-system!
Logged
#644
Re: Solution Post MOVING FILES ON THE DESKTOP -> wrong link!
mavrothal
Administrator
OLPC News Forum Expert
Posts: 1289
November 28, 2009, 05:22:09 AM
Quote from: grey-haired-xo-user on November 28, 2009, 02:50:18 AM
the Solution Post
Code:
MOVING FILES ON THE DESKTOP
Just in case you are wondering why you do not get the "expected" behavior look here
http://www.olpcnews.com/forum/index.php?topic=4053.msg27482#msg27482
at
http://www.olpcnews.com/forum/index.php?topic=4057.msg28211#msg28211
leads to the wrong page.. anyone know how to fix the issue?
thanks alot in advance, im really enjoying my teapot-system!
Fixed.
Logged
XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or
XOpup
)
Pages:
1
...
40
41
42
[
43
]
44
45
46
...
50
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
OLPC G1G1 Information
-----------------------------
=> G1G1 Introduction
===> First Impressions
===> G1G1 Europe
===> XO Shipping - USA
===> XO Shipping - Canada
===> XO Shipping - Problems
=> XO User Groups
===> OLPC Canada
===> OLPC Learning Club DC
===> XO Europe User Group
===> Assistive Technology Group
=> OLPC Publicity
-----------------------------
XO Laptop
-----------------------------
=> XO Laptop Help
===> User Guide
===> Internet & Mesh Networking
===> Sugar & Linux
===> Battery & Power
===> T-Mobile HotSpot
=> XO 1.5 Laptop
=> XO Activities
===> Activities Development
===> Games!
===> eBooks
===> Music & Radio
===> Jabber & Chat
=> XO Hacks
===> Hardware Modifications
===> Other Operating Systems
=> XO Accessories
===> USB Memory Sticks & SD Cards
===> USB Adapters & Attachments
=> XO Problemo
===> Hardware Trouble
===> Keyboard
=> XO MISC
-----------------------------
OLPC Outreach
-----------------------------
=> Press & Blogs
=> Your Opinion
=> Promoting OLPC to Schools
-----------------------------
Other Devices
-----------------------------
=> Asus Eee PC
=> Classmate and 2go PC
=> Other 4P Computers
Stats
Members
Total Members: 2406
Latest:
sembik
Stats
Total Posts: 31943
Total Topics: 3843
Online Today: 30
Online Ever: 238
(April 18, 2011, 09:48:50 PM)
Users Online
Users: 0
Guests: 13
Total: 13
Loading...