User:JohnSullivan

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Zhone)
(Replicating my install)
Line 261: Line 261:
 
# export DISTCC_HOSTS="whatever"
 
# export DISTCC_HOSTS="whatever"
 
# ./get_e.sh
 
# ./get_e.sh
 +
# Put .xsession file from above in place over default one (copy the default out of the way if you want first)
 +
# /etc/init.d/nodm restart
 
# make a swap file
 
# make a swap file
  

Revision as of 16:31, 30 January 2009

Contents

State of the 'Runner

I'm using a FreeRunner, with Qt-Extended on the flash but mainly using Debian on the microSD. Currently I'm experimenting with SHR as well.

I'm in Boston.

If you have a question or suggestion for me, feel free to leave it on the talk page here or contact me by email and more. I'm also in #openmoko, #openmoko-cdevel, and #openmoko-debian as johnsu01.

Blogging and Writing

I'm blogging a bit about my experiences and hacking on the FreeRunner at http://journal.wjsullivan.net. Posts tagged with "freerunner" are syndicated to http://planet.openmoko.org.

I started a microblogging group for FreeRunner users at identi.ca.

Related articles I've written for the FSF include:

Highlights

Hardware

  • GTA02
  • Altec Lansing 2.5mm headphones (which have a mic too, though I don't know if it works)
  • 8GB microSD card

Booting

I'm using Qi. This was installed from here with:

 dfu-util -a u-boot -R -D qi-s3c2442-master_a2d11c4dd18c9517.udfu

The kernel then needs to be renamed/linked to /boot/boot/uImage-GTA02.bin.

We also need a /boot/boot/append-GTA02 file containing:

 root=/dev/mmcblk0p2 console=tty0 loglevel=8 rootdelay=1

Debian

I'm experimenting with the andy-tracking kernel.

The kernel version in the Debian repositories is 2.6.24, and I'm starting to suspect that it is responsible for some of my wifi and bluetooth issues. andy-tracking is 2.6.28 and might help.

However, with 2.6.28, if I have e17 set to restore screen rotation on login, then I get a blank white screen. Leaving it in portrait works.

Uses

I'm currently using it without a SIM with:

  • e17 and Illume
  • TangoGPS
  • Emacs for text editing
  • subversion for pulling in my home directory

Audio

  • gmpc/mpc/mpd/mpdscribble as a scrobbling music player
  • I have gotten a Nokia bluetooth headset to pair, and to make the beep that it should make when calls start and stop, but there is no sound other than hissing.
  • I'm working on getting A2DP going, but haven't had success yet.
  • I tried gpodder as a podcasting application, and it works okay but for some reason it doesn't like the URL for the main podcast I want to listen to, which is Wait Wait Don't Tell Me. Do I really want a dedicated podcast app anyway?

Connectivity

  • Tethered via bluetooth to my Nokia E61, which gets it a T-mobile EDGE connection.
  • wifi-radar for connecting to wifi networks
Wifi

I was having trouble with wifi recently -- I could get an address, and do dns lookups, but couldn't reliably ping any host including the gateway. If I left ping running long enough, it would eventually get a few successful ones, but overall it was unusable. I tried a few things including setting the rate with iwconfig and making sure power management was off, but that didn't help. I installed Wmiconfig and did:

 wmiconfig -i eth0 --power maxperf

Now things seem to be working again.

To disable wifi:

 wmiconfig -i eth0 --wlan disable
Bluetooth

I'm using bluez 4.27 compiled from source, and bluetooth-gnome 1.8 also compiled from source.

Display

I'm using xserver-xglamo.

The illume theme was using the default ugly X crosshairs mouse cursor. I installed the crystalcursors package and made sure via update-alternatives that it was in use, but it didn't work in e17 until I went into Settings => Look => Mouse Cursor. I selected "Use X cursor", "Show cursor", and changed the cursor size to 16px (under Advanced). Now it's a more pleasant arrow.

The default font size in illume was far, far too small. To increase it, go to Settings => Look => Scaling => Advanced. Set custom scaling on, and then increase the personal scaling factor. Mine is currently set at 2.3. You'll need to restart in order for things to fully settle.

E-mail

Claws (apt-get install claws-mail) is working well for e-mail. It has a small screen setting that is very usable.

Sending mail didn't work at first. Turns out you have to create a queue folder in order for that to work -- go to File => Add Mailbox and make a local mailbox called Queue. Then under Configuration => Edit Current Account => Advanced under Folder, check the "Put queued messages in" and then select that folder.

Games

  • Xboard seems to work for chess.
  • I tried Gnubik, but the software OpenGL is just too slow.
  • Enigma was not playable
  • Nethack works in the terminal :)
  • linball is a little pinball game, start with ./linball -f

Input

Stylus
  • I use a PaperMate PhD Multi pen, which has a pen, pencil, and stylus. It also happens to be the same kind of pen I've used for years anyway -- I just switched the multi version when I got the FreeRunner.
  • This Cowon stylus looks interesting, and the idea of having something attached to the device is appealing.
Softkeyboards
  • The illume keyboard is quite usable, especially rotated horizontally. To get it to use the full available space after rotating the screen, go to settings, turn the keyboard off and back on again. Or, just check the "Restore after login" box in the screen rotation settings. Then you don't have to toggle the keyboard.
  • I change the the "small" dictionary (by clicking the upper left corner of the keyboard) -- I find the full dictionary to be too slow.
  • How do I make the font size on the keys and for the guessed words to choose from be larger? I assume it's somewhere in the illume theme file.
  • I'm now using this layout. It can be extracted on Debian with ar x, and then tar on the data.tar.gz file. See the screenshot from Shashank Bharadwaj who designed it.
  • cellwriter won't work easily with illume, because it shows up as a separate window rather than what the illume keyboard does.
FrogPad
  • The FrogPad works well, but if frameworkd is in charge of the screen blanking, the screen will go blank while you're typing. I solved this by commenting out the "Idleness Brightness Handling" section of /etc/freesmartphone/oevents/rules.yaml file. Now screen blanking is just handled by X, and so it stays on while I'm typing.

Phone

Paroli

Zhone

Zhone is currently segfaulting. The symptoms seem to be like this issue, but that solution doesn't work for me. I have libevas-0.9.9.050a-engines installed, and it's still segfaulting. Ticket

Zhone requires python bindings, from https://svn.enlightenment.org/svn/e/trunk/BINDINGS/python ? Installing this requires python-setuptools. The default path should also be changed because it tries to install things to /root/usr...

Build deps

These are packages I needed to install in order to build Zhone. apt-get build-dep zhone didn't work -- no source package available.

  • cython

Reading

This is proving difficult. epdfview reports a .gz pdf file as "encrypted" and asks for a password. I guess it doesn't handle gzipped files. After gunzipping it, I was able to open the file, but as soon as I try to go to the next page with Page Down, it segfaults. Trying to read the same PDF (the Debian Policy Guide) with evince results in an error about not being able to allocate sufficient resources. xpdf crashes as well. Is this PDF just too big?

Time

Install ntp to have accurate time. Otherwise, the clock drifts way off.

I haven't found a good alarm clock app yet.

Time is displayed in small analog clock form in the e17 toolbar. It's not ideal but it's okay for now.

Web browsing

Iceweasel configuration
  • Set my home page to http://delicious.com/johnsu01/mobile, which will have frequently used bookmarks.
  • Remove the search from the navigation toolbar. (Right-click, customize toolbar, drag the search box to the dialog.)
  • Disable autocompletion in the address bar -- makes typing impossible. I had to do this (and other iceweasel configuration) over X forwarded ssh, because iceweasel config windows keep coming up larger than the screen.
  • Probably need to install Adblock and add a filter to block all of these javascript form field suggesting scripts (like google.com or youtube.com) -- they really slow things down and make typing frustrating.

I tried the delicious extension but it seems to make things too slow. I might try again. The reason I'm using iceweasel instead of midori is because I'm hoping that one of the mouse gesture extensions will be useful.

Performance

Boot time with u-boot was about 3 minutes. Switching to Qi has brought it down to about 2. I'm currently starting mpd and mpdscribble at boot, which I will stop by writing a shell script that starts them if they are not already started when I actually open the music player.

I'm also using exim4, which was adding almost a full minute to the boot time. Doing:

 dpkg-reconfigure exim4-config

And answering "Yes" to the "Keep number of DNS-queries minimal" question helped reduce this.

I'm currently experimenting with using a swap file, to see if that improves stability. I made that with:

 dd if=/dev/zero of=swapfile bs=1024 count=524288
 mkswap swapfile

Then added to fstab:

 /swapfile none          swap    sw                                      0 0

And to start using it immediately:

 swapon -a

Important configuration files

My /etc/modules (for 2.6.24 -- this is not needed with the andy-tracking kernel):

   snd-soc-neo1973-gta02-wm8753                                                                       
   g_ether                                                                                            
   bluetooth                                                                                          
   bnep                                                                                               
   ohci-hcd                                                                                           
   hci_usb


My .Xresources:

 UXTerm*font: -bitstream-terminal-bold-r-normal--18-140-100-100-c-110-iso8859-1
 UXTerm*background: black
 UXTerm*foreground: cyan
 XTerm*font: -bitstream-terminal-bold-r-normal--18-140-100-100-c-110-iso8859-1
 XTerm*background: black
 XTerm*foreground: cyan

My .gtkrc-2.0:

 gtk-font-name = "Sans 6"
 style "scroll"
 {
     GtkScrollbar::slider-width        = 25
 }
 class "*" style "scroll"

(The small font and the large scroll bar are to help cope with dpi issues that xglamo has right now. For portrait orientation I use "Sans 14" for the font.)

FIXME: Need to add sources.list.

Issues

  • Mailutils segfault
  • Iceweasel windows for configuration are opening to a size larger than my screen, which makes them impossible to use.
  • I'm having a lot of stability problems with Debian/e17 -- it's locked up several times in the last couple of days to the point where I have to remove the battery.
  • wifi-radar randomly deletes the contents of its configuration file and then won't start when the file is empty. (Debian bug filed.)
  • Font dpi issue
  • The screen lock defined in the illume theme file isn't being used. Instead when I lock the screen I get the default e17 password lock.

Replicating my install

(I don't suggest you follow these instructions yet unless you are talking to me, they are in progress.)

  1. Install Qi
  2. Boot into SHR or whatever
  3. wget install script and make it executable
  4. QI=true QI_VERBOSE_BOOT=true HOSTNAME=claude ./install.sh all
  5. Reboot
  6. set root password
  7. apt-get install screen apt-utils subversion nano sudo distcc cvs ntp
  8. screen
  9. cd /boot
  10. wget kernel
  11. rm uImage.bin
  12. ln -s NEW_KERNEL uImage.bin
  13. wget modules
  14. untar modules
  15. reboot
  16. dpkg-reconfigure tzdata
  17. fix resolv.conf
  18. edit sources.list -- remove experimental and change mirror to local (maybe this should be done in the install script option)
  19. Get my patched version of raster's e install script: wget http://wjsullivan.net/git/freerunner.git/get_e.sh
  20. chmod +x get_e.sh
  21. export CC="distcc arm-linux-gnueabi-gcc"
  22. export DISTCC_HOSTS="whatever"
  23. ./get_e.sh
  24. Put .xsession file from above in place over default one (copy the default out of the way if you want first)
  25. /etc/init.d/nodm restart
  26. make a swap file

SHR

Well, the first test did not go well. It looks nice and feels snappy, but it froze up completely within a few minutes of use. I had to remove the battery and reboot. Also, Midori did not show any address bar, and typing C-l did not help. So I was unable to actually enter a web address to browse to.

The freezing has stopped, but there are other issues.

The dialer crashes after pressing Call, with a resource not available error. Trac ticket explains that this is because SHR doesn't work / isn't tested with the andy-tracking kernel.

Reference

This wiki

Elsewhere

Enlightenment


Personal tools

State of the 'Runner

I'm using a FreeRunner, with Qt-Extended on the flash but mainly using Debian on the microSD. Currently I'm experimenting with SHR as well.

I'm in Boston.

If you have a question or suggestion for me, feel free to leave it on the talk page here or contact me by email and more. I'm also in #openmoko, #openmoko-cdevel, and #openmoko-debian as johnsu01.

Blogging and Writing

I'm blogging a bit about my experiences and hacking on the FreeRunner at http://journal.wjsullivan.net. Posts tagged with "freerunner" are syndicated to http://planet.openmoko.org.

I started a microblogging group for FreeRunner users at identi.ca.

Related articles I've written for the FSF include:

Highlights

Hardware

  • GTA02
  • Altec Lansing 2.5mm headphones (which have a mic too, though I don't know if it works)
  • 8GB microSD card

Booting

I'm using Qi. This was installed from here with:

 dfu-util -a u-boot -R -D qi-s3c2442-master_a2d11c4dd18c9517.udfu

The kernel then needs to be renamed/linked to /boot/boot/uImage-GTA02.bin.

We also need a /boot/boot/append-GTA02 file containing:

 root=/dev/mmcblk0p2 console=tty0 loglevel=8 rootdelay=1

Debian

I'm experimenting with the andy-tracking kernel.

The kernel version in the Debian repositories is 2.6.24, and I'm starting to suspect that it is responsible for some of my wifi and bluetooth issues. andy-tracking is 2.6.28 and might help.

However, with 2.6.28, if I have e17 set to restore screen rotation on login, then I get a blank white screen. Leaving it in portrait works.

Uses

I'm currently using it without a SIM with:

  • e17 and Illume
  • TangoGPS
  • Emacs for text editing
  • subversion for pulling in my home directory

Audio

  • gmpc/mpc/mpd/mpdscribble as a scrobbling music player
  • I have gotten a Nokia bluetooth headset to pair, and to make the beep that it should make when calls start and stop, but there is no sound other than hissing.
  • I'm working on getting A2DP going, but haven't had success yet.
  • I tried gpodder as a podcasting application, and it works okay but for some reason it doesn't like the URL for the main podcast I want to listen to, which is Wait Wait Don't Tell Me. Do I really want a dedicated podcast app anyway?

Connectivity

  • Tethered via bluetooth to my Nokia E61, which gets it a T-mobile EDGE connection.
  • wifi-radar for connecting to wifi networks
Wifi

I was having trouble with wifi recently -- I could get an address, and do dns lookups, but couldn't reliably ping any host including the gateway. If I left ping running long enough, it would eventually get a few successful ones, but overall it was unusable. I tried a few things including setting the rate with iwconfig and making sure power management was off, but that didn't help. I installed Wmiconfig and did:

 wmiconfig -i eth0 --power maxperf

Now things seem to be working again.

To disable wifi:

 wmiconfig -i eth0 --wlan disable
Bluetooth

I'm using bluez 4.27 compiled from source, and bluetooth-gnome 1.8 also compiled from source.

Display

I'm using xserver-xglamo.

The illume theme was using the default ugly X crosshairs mouse cursor. I installed the crystalcursors package and made sure via update-alternatives that it was in use, but it didn't work in e17 until I went into Settings => Look => Mouse Cursor. I selected "Use X cursor", "Show cursor", and changed the cursor size to 16px (under Advanced). Now it's a more pleasant arrow.

The default font size in illume was far, far too small. To increase it, go to Settings => Look => Scaling => Advanced. Set custom scaling on, and then increase the personal scaling factor. Mine is currently set at 2.3. You'll need to restart in order for things to fully settle.

E-mail

Claws (apt-get install claws-mail) is working well for e-mail. It has a small screen setting that is very usable.

Sending mail didn't work at first. Turns out you have to create a queue folder in order for that to work -- go to File => Add Mailbox and make a local mailbox called Queue. Then under Configuration => Edit Current Account => Advanced under Folder, check the "Put queued messages in" and then select that folder.

Games

  • Xboard seems to work for chess.
  • I tried Gnubik, but the software OpenGL is just too slow.
  • Enigma was not playable
  • Nethack works in the terminal :)
  • linball is a little pinball game, start with ./linball -f

Input

Stylus
  • I use a PaperMate PhD Multi pen, which has a pen, pencil, and stylus. It also happens to be the same kind of pen I've used for years anyway -- I just switched the multi version when I got the FreeRunner.
  • This Cowon stylus looks interesting, and the idea of having something attached to the device is appealing.
Softkeyboards
  • The illume keyboard is quite usable, especially rotated horizontally. To get it to use the full available space after rotating the screen, go to settings, turn the keyboard off and back on again. Or, just check the "Restore after login" box in the screen rotation settings. Then you don't have to toggle the keyboard.
  • I change the the "small" dictionary (by clicking the upper left corner of the keyboard) -- I find the full dictionary to be too slow.
  • How do I make the font size on the keys and for the guessed words to choose from be larger? I assume it's somewhere in the illume theme file.
  • I'm now using this layout. It can be extracted on Debian with ar x, and then tar on the data.tar.gz file. See the screenshot from Shashank Bharadwaj who designed it.
  • cellwriter won't work easily with illume, because it shows up as a separate window rather than what the illume keyboard does.
FrogPad
  • The FrogPad works well, but if frameworkd is in charge of the screen blanking, the screen will go blank while you're typing. I solved this by commenting out the "Idleness Brightness Handling" section of /etc/freesmartphone/oevents/rules.yaml file. Now screen blanking is just handled by X, and so it stays on while I'm typing.

Phone

Paroli

Zhone

Zhone is currently segfaulting. The symptoms seem to be like this issue, but that solution doesn't work for me. I have libevas-0.9.9.050a-engines installed, and it's still segfaulting. Ticket

Zhone requires python bindings, from https://svn.enlightenment.org/svn/e/trunk/BINDINGS/python ? Installing this requires python-setuptools. The default path should also be changed because it tries to install things to /root/usr...

Build deps

These are packages I needed to install in order to build Zhone. apt-get build-dep zhone didn't work -- no source package available.

  • cython

Reading

This is proving difficult. epdfview reports a .gz pdf file as "encrypted" and asks for a password. I guess it doesn't handle gzipped files. After gunzipping it, I was able to open the file, but as soon as I try to go to the next page with Page Down, it segfaults. Trying to read the same PDF (the Debian Policy Guide) with evince results in an error about not being able to allocate sufficient resources. xpdf crashes as well. Is this PDF just too big?

Time

Install ntp to have accurate time. Otherwise, the clock drifts way off.

I haven't found a good alarm clock app yet.

Time is displayed in small analog clock form in the e17 toolbar. It's not ideal but it's okay for now.

Web browsing

Iceweasel configuration
  • Set my home page to http://delicious.com/johnsu01/mobile, which will have frequently used bookmarks.
  • Remove the search from the navigation toolbar. (Right-click, customize toolbar, drag the search box to the dialog.)
  • Disable autocompletion in the address bar -- makes typing impossible. I had to do this (and other iceweasel configuration) over X forwarded ssh, because iceweasel config windows keep coming up larger than the screen.
  • Probably need to install Adblock and add a filter to block all of these javascript form field suggesting scripts (like google.com or youtube.com) -- they really slow things down and make typing frustrating.

I tried the delicious extension but it seems to make things too slow. I might try again. The reason I'm using iceweasel instead of midori is because I'm hoping that one of the mouse gesture extensions will be useful.

Performance

Boot time with u-boot was about 3 minutes. Switching to Qi has brought it down to about 2. I'm currently starting mpd and mpdscribble at boot, which I will stop by writing a shell script that starts them if they are not already started when I actually open the music player.

I'm also using exim4, which was adding almost a full minute to the boot time. Doing:

 dpkg-reconfigure exim4-config

And answering "Yes" to the "Keep number of DNS-queries minimal" question helped reduce this.

I'm currently experimenting with using a swap file, to see if that improves stability. I made that with:

 dd if=/dev/zero of=swapfile bs=1024 count=524288
 mkswap swapfile

Then added to fstab:

 /swapfile none          swap    sw                                      0 0

And to start using it immediately:

 swapon -a

Important configuration files

My /etc/modules (for 2.6.24 -- this is not needed with the andy-tracking kernel):

   snd-soc-neo1973-gta02-wm8753                                                                       
   g_ether                                                                                            
   bluetooth                                                                                          
   bnep                                                                                               
   ohci-hcd                                                                                           
   hci_usb


My .Xresources:

 UXTerm*font: -bitstream-terminal-bold-r-normal--18-140-100-100-c-110-iso8859-1
 UXTerm*background: black
 UXTerm*foreground: cyan
 XTerm*font: -bitstream-terminal-bold-r-normal--18-140-100-100-c-110-iso8859-1
 XTerm*background: black
 XTerm*foreground: cyan

My .gtkrc-2.0:

 gtk-font-name = "Sans 6"
 style "scroll"
 {
     GtkScrollbar::slider-width        = 25
 }
 class "*" style "scroll"

(The small font and the large scroll bar are to help cope with dpi issues that xglamo has right now. For portrait orientation I use "Sans 14" for the font.)

FIXME: Need to add sources.list.

Issues

  • Mailutils segfault
  • Iceweasel windows for configuration are opening to a size larger than my screen, which makes them impossible to use.
  • I'm having a lot of stability problems with Debian/e17 -- it's locked up several times in the last couple of days to the point where I have to remove the battery.
  • wifi-radar randomly deletes the contents of its configuration file and then won't start when the file is empty. (Debian bug filed.)
  • Font dpi issue
  • The screen lock defined in the illume theme file isn't being used. Instead when I lock the screen I get the default e17 password lock.

Replicating my install

(I don't suggest you follow these instructions yet unless you are talking to me, they are in progress.)

  1. Install Qi
  2. Boot into SHR or whatever
  3. wget install script and make it executable
  4. QI=true QI_VERBOSE_BOOT=true HOSTNAME=claude ./install.sh all
  5. Reboot
  6. set root password
  7. apt-get install screen apt-utils subversion nano sudo distcc cvs ntp
  8. screen
  9. cd /boot
  10. wget kernel
  11. rm uImage.bin
  12. ln -s NEW_KERNEL uImage.bin
  13. wget modules
  14. untar modules
  15. reboot
  16. dpkg-reconfigure tzdata
  17. fix resolv.conf
  18. edit sources.list -- remove experimental and change mirror to local (maybe this should be done in the install script option)
  19. Get my patched version of raster's e install script: wget http://wjsullivan.net/git/freerunner.git/get_e.sh
  20. chmod +x get_e.sh
  21. export CC="distcc arm-linux-gnueabi-gcc"
  22. export DISTCC_HOSTS="whatever"
  23. ./get_e.sh
  24. make a swap file

SHR

Well, the first test did not go well. It looks nice and feels snappy, but it froze up completely within a few minutes of use. I had to remove the battery and reboot. Also, Midori did not show any address bar, and typing C-l did not help. So I was unable to actually enter a web address to browse to.

The freezing has stopped, but there are other issues.

The dialer crashes after pressing Call, with a resource not available error. Trac ticket explains that this is because SHR doesn't work / isn't tested with the andy-tracking kernel.

Reference

This wiki

Elsewhere

Enlightenment