Archive for the ‘Geeky’ Category

Compiz Beta – Part 1

Monday, September 15th, 2008

OK, before we rush in to installing the drivers now is the time to prepare the exit strategy and learn how to fix things when they go wrong. So we are going to deliberately break, and then fix the graphical user interface. First lets explain a bit about how things work in Linux.

The graphical user interface (X Windows or X.org) looks up a little configuration file stored at /etc/X11/xorg.conf this tells it a bit about the screen size and layout (you can have multiple graphics cards and monitors) plus a bit about keyboards and mice and so on. You can take a look at this by going to Applications-Accessories-Text Editor, then press the Open button and go up to the root of the filesystem, then into etc then X11 then open the xorg.conf file. If you go down you will find the Device section, it looks like this:

Section "Device"
	Identifier  "Device1"
	Driver      "openchrome"
	VendorName  "VIA Technologies, Inc."
	BoardName   "CX700M2 UniChrome PRO II Graphics"
	Option	    "ForcePanel"
	Option	    "EnableAGPDMA" "true"
	Option	    "SWCursor" "true"
	Option	    "NoAccel" "true"
	BusID       "PCI:1:0:0"
EndSection

in bold I highlighted the driver name, here it is using the OpenChrome driver. Have a quick look round the rest of the file, but don’t worry if most of it is gobbledygook. Lets leave the pretty graphical user interface behind now and get comfortable with the command line.

Press Ctrl+Alt+F1. This should take you to a black screen with white writing on it asking you to log in. You can use your normal username and password here. Press Ctrl+Alt+F7 and you will be back at your graphical user interface. Try Ctrl+Alt+F1 again. Now try Ctrl+Alt+F2, you get another login prompt. You can also log on here if you want. In fact Ctrl+Alt+F1 through to Ctrl+Alt+F6 are text mode consoles, Ctrl+Alt+F7 is the graphical console.

OK, back to the first text mode console.

The above bit doesn’t work when the OpenChrome drivers are actually running, but it works find if X is broken, or if you have the VIA drivers running. When you power up the webbook go to the grub menu and select the recovery option and go to a root shell.

webbook:~$ cd /
webbook:/$ cd etc/X11
webbook:/etc/X11$ ls
webbook:/etc/X11$ sudo cp xorg.conf xorg.conf.openchrome
webbook:/etc/X11$ ls

So these few lines above took us first to the root of the filesystem, then into the etc/X11 directory. The ls command listed the files in the directory, one should have been xorg.conf. Next we used the cp (copy) command as the superuser to make a backup copy of the xorg.conf file and call it xorg.conf.openchrome. Finally we used ls again to list the files and we should see that the new xorg.conf.openchrome file is present.

Now lets break things!

$ sudo nano xorg.conf

this launches nano, a little text editor, like gedit, but not as pretty. Now lets go wild! Find something and tweak it, maybe change the driver name, maybe go down to the screen section and change the resolution from 1024×600 to 1598×543! It doesn’t matter because we have a backup. Press Ctrl+x to quit nano and press y to save your changes. Ctrl+alt+F7 will take you back to the graphical console, it is still running. If you then log out it will restart X windows and re-read your modified xorg.conf and probably not start again. Power off and power on and it will still be broken. The fix is simple though. Ctrl+Alt+F1 to get to a console. Now log on

webbook:~$ cd /etc/X11
webbook:/etc/X11$ sudo cp xorg.conf.openchrome xorg.conf

this will take your backup configuration file and copy it over the top of the one you broke. Now if you restart the webbook (or restart the X Windows with Ctrl+Alt+F7 then Ctrl+Alt+Backspace) you should get back to the graphical login prompt.
So there we have it, from working, to broken, to mended again, and you are all prepared for the next installment . . .

Hands up everyone who wants Compiz on their webbook!

Friday, September 12th, 2008

Sadly we are not yet ready to push out the improved drivers for the graphics card to all the webbooks, however for those willing to tinker with the command line you will be having wobbly windows and a spinning cube of desktops very soon. There is a chance that the next kernel upgrade will leave you booting to a black screen, but I will show you how to fix that from the command line. That is why we can’t push the drivers out through the repositories yet. I will write up a couple of articles over the next few days on this and give you some downloads to install. To wet your appetite a little here is a screenshot of me switching between desktops on my webbook:

It is probably best if you have another computer so that if you break the webbook you can still get to the internet to find out how to fix it. Consider this a beta test of the graphics drivers, unsupported, except by me. If that scares you then just wait until we put it in an automatic update and you won’t have to do anything. I would love to get this on by default right now and push it out through the repositories, but I just can’t wait any longer to share it with some of you at least!

Google Chrome on the webbook

Monday, September 8th, 2008

Google have recently launched a new browser called Google Chrome. Initially it is only available as a beta on Windows, but Linux and Mac are very much in their plans. You can read a great comic about why they decided to build a browser and some of the key architectural differences that they are putting into Chrome. The comic really is one of the most accessible and readable bits of technical documentation I have ever seen!

Paul McAdams managed to get Google Chrome running on his webbook, by using a plan so cunning you could put a tail on it and call it a fox. He used the VirtualBox application to install Windows XP inside of Ubuntu and is running VirtualBox in seamless mode so that the Windows windows just live alongside the Ubuntu windows. Note the XP taskbar at the bottom of the screen and the Ubuntu panel and menus at the top.

Reinstalling Ubuntu or other Linux on the webbook

Monday, September 1st, 2008

This is coming up quite a bit, and I really want to get better graphics drivers before making a distributable full recovery solution on a USB stick, however if you want to you can use a USB CDROM drive to install Linux (Ubuntu, Fedora, probably others) and then edit the xorg.conf file from the command line (ctrl+alt+F1 to get to the console, log on then do something like sudo nano /etc/X11/xorg.conf and find the screen section. Change the display subsection for Depth 24 (which is true colour no point using anything else these days) and make it look something like this:

SubSection “Display”
Depth     24
Modes    “1024×600″ “800×600″ “640×480″
EndSubSection

The important bit is 1024×600 as the first resolution.

Here is my xorg.conf file which you can download, stick on a USB or something and overwrite the one that gets put there by the installer. If you get to a command line and have a wired network plugged in then you can do

wget http://webbookblog.com/wp-content/uploads/2008/09/xorg.conf

to download it to your current directory.

If you want to reinstall Ubuntu, or try any other Linux the don’t go calling support and expecting them to help! This is totally unsupported, and not recommended by me unless you know what you are doing (or at least you think you do :-) ) but if you get stuck you can ask me for help and I will try as best I can to help.

Possible update on the graphics drivers

Monday, September 1st, 2008

Whilst we are still waiting for VIA to give us a decent version of their binary only driver for the current kernel that works with the webbook LCD they have just released an Open Source 2D only graphics driver. I will try this out and see if I can get it working. If it does then I think it should fix all the XV issues with video playback and the occasional screen corruption issue.

Incidentally I just found out that there is an XV issue with Gcompris, the educational package, which causes it to launch to a corrupted screen. I am certain we tested this extensively before release (my kids spent hours testing it in fact) so I am not sure what went wrong. If you want to run Gcompris then for now press alt+F2 and in the run program dialog type

gcompris -x

and hopefully we will have a graphics update for you soon which will fix this properly.

Yellowday – Lotus Symphony on the webbook

Monday, August 11th, 2008

Today is the 11th of August (just) and for a reason that escapes me this has been designated by the IBM/Lotus blogging community as “YellowDay”. In celebration of this event I thought I would test out some of the software mentioned in the recent announcement at the Linuxworld conference:

“IBM and leading Linux distributors Canonical/Ubuntu, Novell and Red Hat are planning to work together with their hardware partners to deliver Microsoft-free personal computing choices with Lotus Notes and Lotus Symphony in the <Dr Evil voice>one billion-unit</Dr Evil voice> desktop market worldwide by 2009.”

So far we are not one of the ‘hardware partners’ but for those curious about what the Lotus Symphony office suite looks like, here it is running on the webbook.

This is the wordprocessor:

and the spreadsheet:

and surprise surprise it does presentations too:

It wasn’t the easiest thing to install. In fact it took ages and I had to install it from the command line. The point of Symphony is that it is an office suite inside an Eclipse framework. If you don’t know or care what an Eclipse framework is then you probably don’t need Symphony and you are better off with the OpenOffice.org suite that comes with the webbook.

So there you have it, IBM’s “Microsoft-free personal computing choice”, running on the webbook.

Tip: Don’t eat yellow snow, even on YellowDay.