Refining Desktop Effects

I’ve written a couple of times before about desktop effects and the how to set them up. I won’t cover that again but will add a couple of things I have learned since then.

There are options

First is Compiz Options. These are found by right clicking on the Fusion Icon in the Panel. There are two options and one I use is Loose Binding. Not sure how it works but it does make a difference to performance, at least with my nVidia card. When it wasn’t selected performance was slow and X was working flat out, taking up around 30% of the cpu. With Compiz using about 15 – 20% that was quite a load. Now compiz is about 25 – 30% and X rarely over 1%.

There were other benefits too. I often found the screen totally messed up when resuming from Suspend. The only fix was to reload Window Manager, again using the Fusion Icon. Now that problem has disappeared.

I guess the lesson here is test the options, the other one is indirect rendering, and see if they improve Compiz on your computer.

Pager

The second thing is the pager. I use KDE 3.5 on Fedora 8. That is the bar that shows the number of desktops you have and allows you to click on one to bring it to the front. The standard pager refused to show the four desktops, it was stuck on one. I removed it and installed the KDE one designed for compiz, kicker-compiz. After adding it to the panel I had four desktops showing again.

As an aside there is a great option in Compiz called Window Preview. You will find it in ccsm under Extras. It shows the contents of a window in the Pager as well as when you hover over the application name on the Taskbar.

Of Data and the Base

It is not surprising that the first thing most people install after the operating system is an office suite. It is one thing that is standard in all Linux distros too. Even if you only write the occasional letter it is an application that everyone seems to use. Perhaps the least used part of most suites is the database. In fact it is not included as a standard part of every office suite. Base was not added to OpenOffice until version 2 and even Microsoft only includes Access in the more expensive version of Office.

However I have always thought that database apps are undervalued. Few people realise the power of them and I guess the steeper learning curve deters the more casual user. I have made extensive use of various database apps for sometime now. Strange to say though the most ubiquitous one (Access) is one I have no experience with. I am not talking of full professional multiuser solutions but I do need something more than the basic Mailing list. So when I started using Linux it was natural that I would look for a database solution that ran under Linux.

When I heard Base was to be added to OpenOffice, yes that is how long ago this story starts, I was very excited. The other OO packages had proved useful replacements for the Office suite I was using at the time. In fact I started using OO in Windows before my move to Linux. When I experimented with Base though I was disappointed. I found it clunky, slow and counter-intuitive. It was only after finding a couple of tutorials online that I could get anything done.

Perhaps I was being unfair to Base as it was an immature product at the time and I was used to something with over a decade of development behind it. I had been using Approach which was part of the Lotus suite. It had always been a powerful yet relatively easy to use application. Lotus is part of IBM and they are no longer developing the Smartsuite which included Approach. They have released a beta of Lotus Symphony that is based on OpenOffice. At this stage there is no indication they will be adding a database application although there is strong support for it on the forum on their site.

In fact I had not found anything I wanted to do that I couldn’t find a way to accomplish using Approach. And I have never needed to use scripting either. Sadly that is not something I could say about other applications. An example is the simple use of a calculated field. A calculated field is one that the content is automatically developed (or calculated) from other field(s). A simple example would be the addition of tax in a price list. If you had a list of products you would type in the price and the tax code / percentage and the final selling price would be worked out. Of course this could be done using reports but if you wanted a quick visual reference you could use without the need to print price lists a calculated field is the easiest way. There are many other uses and they don’t need to be numeric fields either. In Approach it was simply a matter of defining the field as a calculated field and defining the formula and it worked. In Base it required the use of a query and adding that query as a displayed field. It is necessary to manually edit the SQL statement to ensure the result is formatted the way you require. And that is just one example.

I don’t want to spend the time developing a professional solution using mySQL or Firebird although they would do what I require. It would be like using a freight train to bring home the groceries. So what are my alternatives?

Well Base works for simple databases and can be forced to do some powerful things but it is slow and difficult to use. I hope it gets the development it deserves as it could be a useful tool with a better interface. Another option I found was Kexi. Kexi is part of the Koffice suite and my first impressions are good. It was easy to start using with an intuitive interface and good layout. I was able to create a simple table without using a tutorial or even the help screens. I haven’t worked out if it can do everything I require but it is worth a further look.

The other option is to stay with Approach. I have found it will run, with some restrictions, under Wine. For those who aren’t familiar with Wine it is an application that allows selected Windows programs to run under Linux and other ‘nix systems. No need to get into the technicalities of Wine but some programs run well and others with limitations. Unfortunately Approach falls into the latter category. It is possible to access and edit the data and even do simple maintenance work but creating a new table or report are among the tasks that are not possible. I have had mixed results with printing too. So I could do some day to day work with it but would require a windows system for any development etc.

That is what I am doing at the moment but long term I would like to consolidate everything under Linux. So the short term solution is to use Wine / Approach but long term I will give Kexi and other Linux apps further investigation. I would appreciate any suggestions for consumer level database apps that run under Linux.

New Life for an Old Laptop – an Update

I detailed in the original article how my Thinkpad T20 was given a new lease on life. With a small investment in hardware upgrades, memory and hard drive, plus a new operating system, Ubuntu 7.04, it was proving useful again. As so often happens with these projects they are never over. So here are some details of the current state of progress.

Time for an Upgrade.

Ubuntu has served me well on this machine and although Gnome is not my favourite desktop manager it was working ok. I was aware that it was an older version and would soon be two releases behind so it was time for an upgrade. The question was what with.

I had a copy of a version of Xubuntu (Ubuntu with the lightweight Xfce desktop) and being aware that it used less memory than Gnome thought it might be a good idea. It lasted a couple of days. Not that there was anything wrong with it. Everything appeared to work, wifi worked “out of the box” as I have come to expect from Ubuntu. It had a few strange things , eg. the splash screen wouldn’t resize to my screen so it was off centre. It didn’t affect operation as it was only there while it booted and then it was fine. But it didn’t “grab” me. Not very scientific I know but didn’t feel it was better than what I had previously.

So I decided to go in the opposite direction and install Fedora 8 with KDE. This is what I use on my desktop with all the bells and whistles, Compiz-Fusion etc. I knew that wouldn’t work on the old laptop but I wondered how a basic KDE installation would run. I have used KDE most of the time I have used Linux and it is still my preferred environment. I look forward to KDE 4 in Fedora 9 but that’s a story for another day.

Installation

I installed from a dvd copy I had on hand and all appeared to go well. I had the system running with the correct video set up without any of the tweaking needed in Ubuntu. One serious issue, no wifi. I connected up an ethernet cable and had the internet working that way and left it to do an update. In the meantime I did some research on the Fedora forums. As usual the answers were all there just need a little patience to sort through all the information.

With the update done I installed the madwifi driver from the Livna site following the information here. My Netgear WPN511 (Atheros chipset) was now recognised but couldn’t link to the router using wpa2. I turned on the NetworkManager and NetworkManagerDispatch services in System – Services and now after setting up the passphrase etc. it all worked.

The Result

I now have a usable Fedora 8 system on hardware I doubted would handle it. It is slower than the desktop of course but no slower than the Ubuntu system it replaced. It is used primarily as an internet terminal with occasional office document editing or photograph viewing. I wouldn’t like to do much photo editing on it but for everything else it works great.

There are still one issue to look into. The hard drive has a partition I use for archives. It has an ext3 Linux filesystem and Fedora recognises it but any attempt to mount it produces an error. I’ll look into it further when I get some more time.

Enabling Desktop Effects

Here are some notes on enabling and using Compiz Fusion to add desktop effects in Linux, more specifically Fedora although most comments will apply to other Linux distros.

Why would you want too?

It goes without saying that desktop effects have a real wow factor. When you first start using them you may find yourself just playing, sorry experimenting, just for the fun of it. However if you need a further reason see this Lifehacker article on the efficiency gains you can achieve. You may even make up for the time you spend “experimenting”.

Some Useful Information

For some interesting details on installation and operation of Compiz Fusion on Fedora 8 including keyboard shortcuts to make the best use of your new features see here. The same page has links to HowTos for other distros including Ubuntu. However don’t install the packages listed there. They are from the Fedora repositories and have some problems and some features are missing. The Fedora forums have a link to updated packages which don’t have those problems.

Update: One of the problems referred to above seems quite common. That is the titlebar disappears after enabling effects. The updated packages solve this problem.

A search on Google for your distro and Compiz will probably turn up many more pages. However view quite a few to make sure you are getting the right information. Initially I was under the impression that my low end video card wouldn’t work. I have an ATI Radeon 9250 which was recognised by Fedora and uses the radeon driver. Following the above links I was able to get it working in KDE and Fedora 8. No doubt it would work on other distros and with Gnome.

Starting Fusion Icon on Reboot

Actually this will work for any application you want to start automatically when your system starts.

Fusion Icon starts Compiz as well as putting an icon in the System Tray that has options for changing the Window Manager, setting Emerald and Compiz options. Once you have it set up you will want it to start each time you log in. In Gnome this can be done in the Sessions Manager. Type fusion-icon as the application to start.

In KDE open Konqueror and select Go from the menu bar. Go to Autostart, this puts you in your Autostart folder. Anything in here will be run when KDE starts. Right click in any blank area and select “Create New”“Link to Application”. Under the Application tab enter fusion-icon in the “command” field. When you leave that screen a new entry will appear. Restart to make sure everything is working.

New Life for Old Laptop

I’m writing this on my Thinkpad T20. Nothing unusual in that you may say and you would be right, sort of. This old machine hasn’t seen much use recently as it was showing its age. It has a P3 700 and used to run W98SE on 128meg Ram, all on a 12gig hard drive. It seemed its days of usefulness were over.

I had been considering replacing it but it doesn’t get a lot of use, mainly as a terminal for Internet use and occasional use in meetings etc. and it is in good condition. I couldn’t really justify the cost of a new machine. There is not much available under $800 to $1000 here in Australia. So what other choices did I have?

I found a dealer selling used ram, important as the new Ram was very expensive if you could find it. I had been quoted $220 from an interstate supplier. For $50 I had an extra 256m installed and tested.

The hard drive was the next to go. I was going to get 80 gig but on a dollar per gig basis 160 was much cheaper so I splashed out. My old machine now had almost as good specs as a machine selling for $1200 or more. All for an investment of under $200. All it needed was a modern OS.

I have been using Linux for a number of years on my desktop but the hassles of getting WiFi working on the laptop meant I hadn’t used it here. I have read reports of much better support now so decided it was time to give it another go.

I had a few different distros on disks laying around so I tried some. The older ones still had wireless problems and some of the newer ones had other hardware issues, the video card is a problem. The DVD drive is a bit fussy too, some disks that work fine on my desktop wouldn’t load on the laptop.

After a couple of experiments I installed Ubuntu 7.04 Feisty Fawn. WiFi worked with WPA (when I found the correct password) on my Netgear WPN511 card out of the box. But no sound and video was a problem.

With the Savage driver X refused to load. I set it to vesa and it worked but wouldn’t allow resolutions greater than 800×600 and 1024×768 is the native resolution of this screen. The screen looks terrible at the smaller resolution too, but that is probably the driver. I spent some time on Thinkwiki (a recommended site for Thinkpad users) and the Ubuntu forums trying many suggestions without success. A live CD is handy here, it allows editing of messed up files, I found it the easiest way of restoring the last working setup. Finally on the forums I found a way of editing xorg.conf that worked. Now I have 1024×768 on a good clear screen.

I wasn’t too worried about the sound as I often work with it turned off so as not to disturb others but a chance find on the forums mentioned a similar problem solved by pressing the volume keys next to the Thinkpad key. So simple I hadn’t tried it. I’m embarrassed to say it worked.

There have been other issues too. I spent some time trying work out why ACPI won’t load. Every time I rebooted I got a message that I needed to force it to load, which I had done. Then I realised it was loading. I still get the message but it seems to work. The battery life is not as good as it was previously but that will take some fine tuning. The battery icon works well as does the wireless one.

With memory of 384 meg, which is less than the recommended but more than the minimum for Feisty, I find some programs slow to load but work well once loaded. I wouldn’t try using too many programs at a time but I have had no problem so far.

This is the first time I have used Gnome. All my Linux experience has been with KDE. So far so good. Of course I could install KDE and thereby make my system Kubuntu if I want but at the moment it is fine.

The result is a usable laptop for a minimum of expense, around $A200 and an investment of several hours of my time. Would I recommend it to others? Not unless they are willing to invest the time to make it work but I am pleased with the outcome.

UPDATE. One small problem has come to light since I wrote this. As this is an old computer the bios doesn’t know about big drives. It doesn’t handle anything over 33 gig. However Linux overcomes this problem except in one area. Linux can’t do anything until it is running. Consequently the boot partition must be on the first 33 gigs. I tried adding another copy of Linux as a dual boot but as the new partition was added on the end it wouldn’t boot. Not a big problem but worth noting.