Wednesday, August 29, 2007

Hugin auto-align in Qtpfsgui

I am still working on the interface to the align_image_stack program in Qtpfsgui. The maintainer of the OSX-port of Hugin, Ippei Ukay, has been so kind to provide us with a statically linked version of the program that at least work quite well on my computers. I have some issues with making Qtpfsgui picking up the location of the binary automatically, but for now you can download the binary here, and place it in a directory usually in your PATH environment. The directory /usr/local/bin may be a good place to store it, but if that does not work put it in /usr/bin. Qtpfsgui v.1.8.12 should then be able to find and use the align_image_stack program.

[edit:] Remark, after you download the align_image_stack binary, you need to set the executable bit on the file. Open a Terminal and do 'sudo chmod 755 /usr/bin/align_image_stack' (assuming you placed the file in /usr/bin).

In the future, the Hugin image aligner will be included with Qtpfsgui, so no extra work should be required to use it - I hope!

[edit2:] You may as well download the align_image_stack binary inside a zip-file - by popular request!
Take care

Saturday, August 25, 2007

Two weeks with Ubuntufied Oqo O2

I have now spent about 2 weeks with Oqo O2, and most of that time with Ubuntu installed, so I guess it is time for a status update. I'll focus on the Linux issues with the device as other people are raving about how great the Oqo is - like folks over on gottabemobile.com and other places. I agree with all the positive comments, and like to emphasize that it's truly a portable computer - I carry it with me to places I didn't brought my other computers in the past. Which was the main point of buying it.

As I wrote in the previous post on the topic, Ubuntu works on the Oqo O2, and it works great too. As I have mentioned in a previous post, it take some effort to get there, though, but it is worth it. There are also a few things that still does not work, which I will mention further down in the post. But let's start with the stuff that works.

  • Wireless network. Oqo O2 have an Atheros chipset for Wifi of the abg-kind. Ubuntu detects and set this up out of the box, using the ath_pci kernel driver. Remark that the restricted-modules kernel add-on must be installed, as the closed source firmware for the radio is in that package. Usually, reception seems to be on the bad side when looking at the bar-chart in the panel that indicates signal strength. But in practice I don't have any problem with the network connection. My guess is that power is turned down a bit to save the battery. But that is just a guess, and I don't know if it is possible to crank up the power in some way. And as I said, it has not been a problem so far.
  • Bluetooth works without any problem. It is some kind of chip set attached to the usb bus, it shows up in the output of lsusb -v. The bluetooth support on Linux is still not perfect, like when I wanted to attach the iGo stowaway keyboard, I needed to edit some config files (according to howtos found online) - there is room for improvement. Now, I like to edit those files so it is not a problem for me personally. But it is a problem when it comes to acceptance of Linux among Joe average user.
  • Keyboard. The Oqo O2 have quite a lot of special keys, which you get by using the Fn function key in combination with other keys. This includes screen brightness and volume adjustments and back lit keyboard. Most of these keys do work Linux. Some keys that don't work are screen rotation and zoom in/out buttons. I don't care much about those things anyway, but being able to remap the keys to something else would have been nice. So far, I haven't figured that out.
  • Power management. CPU frequency scaling works great in Linux, and so does the speed scaling for the fan. These mean that most of the time I can run on 25% CPU speed and have the fan running on a low speed causing very little noise. And when I need more juice, the system responds quite fast.
  • As far as I can tell, the Oqo O2 don't have a speaker. If it is there, I can't turn it on at least. But headphones can be plugged in to hear sound. I installed the audio driver for linux from www.viaarena.com (but not sure it is needed, as it took me a while to realize that I had to plug in headphones). I have not tested stereo bluetooth sound yet, as I don't own such headset yet. But I plan to aquire one such that I can test this - I think this will be a great plus in combination with thje Oqo.
  • For graphics, I have tested a few different drivers. I have tested the drivers from viaarena, the OpenChrome driver from openchrome.org, as well as the via-driver in both Ubuntu feisty and Ubuntu gutsy (still in alfa stage). I have so far ended up with the generic vesa driver. There is a description on the ubuntu site on how to install the experimental OpenChrome driver from source. Bottom line is that there are issues with all of them unfortunately. I have to go deeper into this in order to do a proper review - hopefully I can do a separate post on this topic in the near future. What I can say so far is that the vesa driver does not have any dual-head capabilities, the driver from viaarena has (the package even include an application that can be used to enable/disable different outputs like vga, hdmi/tv-out, and enable or disable Xinerama - this works ok). But the computer occasionally went into deep freeze when using the viaarena driver, and it was hard getting back from suspend. The OpenChrome things I tested up to now seems to be the worst of both worlds.
  • When it come to suspend/resume, I said in my first post that it works. I have to moderate that statement, unfortunately. Using the regular suspend on the log-off menu in Ubuntu, I can suspend and resume once. If I try to do it twice, the keyboard turn unresponsive, the fan goes to full speed, and the display stays on. Only solution is to press the power button for a while (10 seconds) in order to trigger a hard shutoff. From time to time, I also have to unload and reload the kernel modules for the wireless card to enable wifi after resume. A couple of times the computer also have went into freeze shortly after the first resume. So suspend/resume is really unusable in real life. Which is very very bad as this is very important for my intended use of the Oqo O2. I have had limited success with the s2disk from the uswsusp package (software suspend), which is a kind of hibernation. This only seems to be usable one time. The s2ram application for suspend to ram from the same package does not work on this computer. The hibernation option from the regular log-off menu in Ubuntu does not work either. So, there are a lot of room for improvement here.
  • Wacom digitizer does not work. I can not find the device for it and doesn't know whether it is usb based or serial. I have posted a question to support at oqo to see if I can get more information on this. On the other hand, I can live without the pen although I use it a lot on my Fujitsu P1520 (which have the plain touch screen). I get back to this if I make it work or get some information.
If we ignore the bad things for a while, the Oqo in Linux is usable as a small, carry around computer. I even booted it and did some work on a turbogears/mysql application in the waiting room at my doctor the other day, using 3G from my Nokia e61i over bluetooth as network connection. But the vesa driver for graphics mean that graphics probably take more power than it should (more work done in the main CPU), and refresh is sluggish when switching between virtual desktops which really is a must on such a small screen. And the suspend/resume issue is more or less a show stopper. Since it takes more than a minute to boot the thing, the opportunity to quickly catch up on email may have passed before I get online. So I have to solve this somehow.

Hope you got some answers to your questions. If not, please use the comments, and I will try to answer (and test if necessary). If you have suggestions for some of the issues, please feel free to post those to - I'm happy to test things out!

Take care!

Wednesday, August 22, 2007

Qtpfsgui news!

Hi, Giuseppe figured out the problem with qtpfsgui 1.8.12 on OSX today, and created a sucessful fix. The 1.8.12 version now compiles and runs just fine on the Mac again.

I have uploaded the new version over at sourceforge, please grab it there. In the process of eliminating sources for errors, I have also upgraded my tool chain a bit. There are therefor now newer versions of most of the dependencies, but since most of these are linked directly into the binary you should not need to do anything. I have however updated my version of Qt. I believe that Qt is sufficiently backwards compatible such that this should not cause a problem, but if you get any problem running the new binary, please update Qt by downloading the newest version from this link. You may also visit http://trolltech.com/developer/downloads/qt/mac where the download-link for the diskimage can be found, as well as sources.

Now that 1.8.12 is out the door, I will look into the alignment functionality that Giuseppe have included, to see what kind of problems that pose on the Mac.

Take care.

Saturday, August 18, 2007

Oqo-folks, I am impressed!

I have been using portable computers on a daily basis for about 10 years now. Yet, I have never before had a notebook that I was able to use comfortably outdoor in sunshine. I knew already that the screen on the Oqo O2 is bright, but doesn't realize before now how good it is outdoor!

Right now I am sitting on my veranda, and pulled out the oqo to see if I was able to connect my Canon 350D and get some photos off it. For a change, it is also nice summer-weather today, with bright sunlight. And I can use the Oqo O2 just fine. I can even keep the screen brightness on about 50%. This was totally unexpected. I expected it to be possible with some effort, turning with the sun and try to fine some shading, and so on. But I can just use it . Great!

Just had to tell you! Take care!

Tuesday, August 14, 2007

Ubuntu linux on Oqo O2

In short terms: it works! It even works well.

But if you want to test the same thing your self, you should know that there are a little more to the story. There were some issues during installation, and there are some during use. The main things during installation was:
  1. Small screen makes installation harder
  2. Necessary modifications to boot the machine right
  3. Modifications for X.
While some of these points are rather important, I think it is a quite short list, shorter than I expected when I started on this task. Let's describe each issue in some more detail.

1. Small screen makes installation a bit harder. The reason is that the standard Ubuntu installer (at least for Feisty fawn, or 7.04 if you like) is optimized for larger screens. I'm not sure it is possible to use that installer on the small Oqo screen at all, and if it is it is at least not easy. Tick the checkbox for 'alternate cd' when you download the Ubuntu iso-image from www.ubuntu.com, as that gives you a text-based install instead. And don't be afraid, it is rather slick to be a text-based installer!

Boot from the alternate cd, choose to install the system. For partitioning, I just use the 'Entire disk' option as I like to wipe out the Windows, but you may have other preferences. The whole install takes about an hour and gives you most of what you need.

2. After installation is finished, you may not be able to boot into the new Ubuntu system. I couldn't at least. The reason is that the hardrive, or actually the ide controller, is not detected correctly by the kernel. What I recommend is to just leave the alternate install cd in the drive and reboot. Then you will choose the Rescue mode option, choose your root filesystem according to how you partitioned, and finally execute a shell in that root. Now you need to edit the file /etc/initramfs-tools/modules and add a line with 'ide-generic'. This will trigger that the module 'ide-generic' is loaded when grub boots the system, and your drive will be detected. After you close that file, you will need to run 'update-initramfs -u' to update the initrd file.

3. While you're in the shell in the root filesystem, you should also open the configuration file for the X server, /etc/X11/xorg.conf, and add some necessary information for the screen. The lines you need to have in the "Monitor" section are:

HorizSync 30-92

VertRefresh 50-85
Modeline "800x480" 40 800 864 928 1088 480 481 484 509 +HSync

Also, add the mode "800x480" in the Modes line for the "Display" settings inside the "Screen" section.

These are all the changes you need. Exit from the shell, and reboot - remember to remove the install cd from the drive. You should now boot into the Ubuntu system and are ready to go.

As mentioned by others who have tried similar things, the mouse pointer will behave funny in the beginning. Most people belive it has something to do with the data from the touch scrollers. After a short while the mouse pointer settles down and you can use the system. The other thing that does not work out of the box is the wacom pen - so far I have not figured out how to configure that (If someone knows I like to hear!).

Things that do work out of the box: Bluetooth (I am writing this on the ThinkOutside iGo Stowaway Bluetooth keyboard), wireless network (I am connected to the wireless network in my house right now!), wired network on the docking station. Also, suspend/resume works - which makes the mouse problem after boot less important as you really shouldn't need to boot that often. Hibernate does not work out of the box, though, so I still have some research to do there. Maybe I just need to prepare a device or something, I really haven't used hibernation much in the past but see that it may be important on the Oqo.

Now, I will use the device for a while and write up things about my experience with it later on. I guess interesting things will be how I move data on and off the device to have what I need when on the road, battery life, applications, and so on.

Take care!

Monday, August 13, 2007

Linux on the Oqo O2

I'm on to the main task of the week... installation of Linux on my newly aquired Oqo O2.

I started out doing some experiments with Puppy linux to make sure that basic things like the display and wireless network is functional. Puppy linux is a great little linux distribution that can be booted right off a USB pen, very convenient for checking out simple things. Next, I grabbed the latest Ubuntu, v. 7.04, and booted the live-cd to verify that Ubuntu works just as well as puppy. No suprise there. As the screen on the oqo is quite small, only 800x480 pixels, the graphical installer of Ubuntu really does not work so well. By ticking the checkbox for an alternate cd on the Ubuntu download page, you can get an iso image that contains a textbased installer instead. I grabbed and burned that one, and went on to the installation task.

Right now, I have wiped the Windows XP from the machine, replacing it with the Ubuntu. More reports later on!

Take care!

Saturday, August 11, 2007

Oqo is here!

Yesterday I picked up the package from Dynamism.com delivered to my office by FedEx, the contents is the oqo I ordered, including some accesories like a docking.

So far I have only tested the operating system included in the package, and I will not say much about that. But expect some linux-info very soon. And some pictures.

Take care!

Thursday, August 02, 2007

New stuff comming up!

Soon, the summer of 2007 is in our memory only, as just another summer the goes from future into history. Norway is slowly getting back on track with new energy. Now, the summer hasn't been the best thinking about weather, so if the fall is great it may take a few more weeks before we are really ready for a new long and dark period. At least we are collectively slowly returning to normal life.

And to get up to speed as quick as possible, I finally decided it was time switching some of my equipment. The Nokia e61i does it job just fine, but most of the time I find it is not the right tool for me. There are occasions of course when I type out an email or two using the nice keyboard on the phone, both the gmail app and the web browser are quite functional as well as some of the other apps. But this summer I have still used the Fujitsu P1510 a lot. Not for its size, as it is a bit too big usually (if I really need the big iron I grab the Macbook pro remember). But it has the stuff I need to do serious things, which is the reason I use it so much. But I could have used it more had it been even smaller. The phone however, is just fine as a phone and good for some email and web browsing when I don't feel like bringing the small computer. Still, too often I find it a bit to limited for what I need to do.

As mentioned before, I have looked at the Oqo O2 for some time, but did not find a retailer when I visited US earlier this summer. But there are of course online dealers, and today I finally ordered one. It should be small enough to carry most of the time and really just as powerful as my P1510, as the Oqo has more memory and a comparable cpu. The Oqo will therefore replace my P1510. If I carry the Oqo as much as I think I will, the e61i will also be replaced with something else. I'm thinking Sony Ericsson K850, but I do not want to rush that - I'll test the Oqo for a while first, keeping the Nokia until I am comfortable with my new setup.

All who knows me have probably figure out already that I will load some kind of Linux on the Oqo, so expect some information on linux on Oqo O2 as soon as I have the machine in the door. I probably go for a standard Ubuntu, but I'll keep eye on the Ubuntu mobile project as well.

Let the wait begin! And as always, take care.