Older blog entries for msevior (starting at number 61)

Shiny new IBM T43 laptop and Fedora core 4.

I have a cool new IBM T43 laptop. It's, thin, light, fast and runs for 3.5 hours on batteries. My sys-admin guys configured it to have a dual-boot win XP and "blank" where they left it to me install "blank".

I decided to install Fedore Core 4 because I had found it to be a btter distro for development although it was a close run with ubuntu. (I also love Marc's fantastic AbiWord support for Fedore Core.)

OK after some mucking around I finally have it configured to be pretty much perfect.

Firstly, most things "Just worked" out of the box on Fedora Core 4.

What didn't work were:

1. All the cool patent/proprietry protected stuff. (mp3, java, flash, videos)

2. Wireless (needs the ipw2200 firmware for the Intel centrino)

3. ATI proprietry drivers.

4. ntfs filesystem support.

5. Suspend to RAM.

6. External Display

Firstly after installing FC4 from a DVD drive do yum update

Come back next day...

Next install the goodies Redhat leaves out of Fedora because of patent rubbish.

See:

http://www.fedorafaq.org/#installsoftware

Follow the directions to get mp3's, mplayer, java and flash working nicely.

To get wireless working goto:

http://ipw2200.sourceforge.net/firmware.php

and install version 2.2 in /lib/firware

To get the ati and ntfs working follow the directions given in http://www.fedorafaq.org

Which brings me to how to get suspend-to-ram going. This was a real pain. The T43 has this cool SATA disk-drive which I believe is means of employing scsi disks in a laptop. This works really nicely as a development system. Recompiling AbiWord is very fast on this nice little laptop.

Unfortunately Linux does not yet support power-management for SATA systems. There is a kernel patch to support it. You can find pointers to it here.

http://www.thinkwiki.org/wiki/Problems_with_SATA_and_Linux

To make suspend-to-RAM work you have to apply a patch to the kernel. I followed the instructions on how to do this woth fedora here:

http://forums.fedoraforum.org/showthread.php?t=29434"

And used the patch for 2.6.13-rc5. This worked with a few offsets.

I then copied the ntfs and the ati kernel module to the new /lib/modules/kernel directory and ran depmod.

Next my grub.conf needed an extra kernel line to enable suspend-to-RAM

kernel /vmlinuz-2.6.13-martin1 ro root=LABEL=/ rhgb quiet acpi_sleep=s3_bios

OK finally put together the following sleep.sh

-----------------------------------------------------------------------------------

#!/bin/sh # if launched through a lid event and lid is open, do nothing

echo "$1" | grep "button/lid" && grep -q open

/proc/acpi/button/lid/LID/state && exit 0

# remove USB 1.1 driver

rmmod uhci_hcd # sync filesystem and clock

sync

/sbin/hwclock --systohc

# switch to console

FGCONSOLE=`fgconsole`

chvt 6

/usr/sbin/radeontool light off

/usr/bin/dbus-send --system --dest=org.freedesktop.NetworkManager --type=method_call /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.sleep

/sbin/hwclock --systohc

# go to sleep

echo -n 3 > /proc/acpi/sleep

# readjust the clock (it might be off a bit after suspend)

/sbin/hwclock --adjust

/sbin/hwclock --hctosys

# reload USB 1.1 driver

modprobe uhci_hcd

# turn on the backlight and switch back to X

radeontool light on

chvt $FGCONSOLE

/usr/bin/dbus-send --system --dest=org.freedesktop.NetworkManager --type=method_call /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.wake

-------------------------------------------------------------------

and call it in /etc/acpi/events/lid.conf and

/etc/acpi/events/sleep.conf

-------------------------------------

event=button/lid

action=/etc/acpi/actions/sleep.sh

------------------------------------

and

---------------------------------------

event=button/sleep

action=/etc/acpi/actions/sleep.sh

-------------------------------------

The final thing was to make sure the external display worked. For this my xorg.conf is as is shown below:

Notice that the driver used is the "radeon" rather than the proprietry "fglrx". This was because I couldn't get the "fglrx" driver to recover after a suspend to RAM. There are rumours on the net about how to do this but I haven't had the time or patience to track them down yet.

So all in all it has taken a LOT of tweaking to get this laptop to work up to the level of winXP in Fedora Core.

I hope all this info is useful to the Fedora Core community. I no longer have the time to keep up with the email on the FC-devel or FC-user mailing lists. I hope that the FC community is interested in making Fedora "Just work" on laptops. It's clear that we still have a long way to go.

Comments Here

------------------------------------------------------------------------ # Xorg configuration created by system-config-display

Section "ServerLayout"

Identifier "Multihead layout"

Screen 0 "Screen0" LeftOf "Screen1"

Screen 1 "Screen1" 0 0

InputDevice "Mouse0" "CorePointer"

InputDevice "Keyboard0" "CoreKeyboard"

InputDevice "Synaptics" "AlwaysCore"

Option "Xinerama" "off"

Option "Clone" "on"

EndSection

Section "Files"

# RgbPath is the location of the RGB database. Note, this is the name of the

# file minus the extension (like ".txt" or ".db"). There is normally

# no need to change the default.

# Multiple FontPath entries are allowed (they are concatenated together)

# By default, Red Hat 6.0 and later now use a font server independent of

# the X server to render fonts.

RgbPath "/usr/X11R6/lib/X11/rgb"

FontPath "unix/:7100"

EndSection

Section "Module"

Load "dbe"

Load "extmod"

Load "fbdevhw"

Load "glx"

Load "record"

Load "freetype"

Load "type1"

Load "synaptics"

# Load "dri"

EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))

# Option "Xleds" "1 2 3"

# To disable the XKEYBOARD extension, uncomment XkbDisable.

# Option "XkbDisable"

# To customise the XKB settings to suit your keyboard, modify the

# lines below (which are the defaults). For example, for a non-U.S.

# keyboard, you will probably want to use:

# Option "XkbModel" "pc102"

# If you have a US Microsoft Natural keyboard, you can use:

# Option "XkbModel" "microsoft"

#

# Then to change the language, change the Layout setting.

# For example, a german layout can be obtained with:

# Option "XkbLayout" "de"

# or:

# Option "XkbLayout" "de"

# Option "XkbVariant" "nodeadkeys"

#

# If you'd like to switch the positions of your capslock and

# control keys, use:

# Option "XkbOptions" "ctrl:swapcaps"

# Or if you just want both to be control, use:

# Option "XkbOptions" "ctrl:nocaps"

# Identifier "Keyboard0"

Driver "kbd"

Option "XkbModel" "pc105"

Option "XkbLayout" "us"

EndSection

Section "InputDevice"

Identifier "Mouse0"

Driver "mouse"

Option "Protocol" "IMPS/2"

Option "Device" "/dev/input/mice"

Option "ZAxisMapping" "4 5"

Option "Emulate3Buttons" "yes"

EndSection

Section "InputDevice"

Identifier "Synaptics"

Driver "synaptics"

Option "Device" "/dev/input/mice"

Option "Protocol" "auto-dev"

Option "Emulate3Buttons" "yes"

EndSection

Section "Monitor"

Identifier "Monitor0"

VendorName "Monitor Vendor"

ModelName "IBM 9514-B TFT Panel"

HorizSync 48.0 - 65.0

VertRefresh 60.0 - 75.0

Option "dpms"

EndSection

Section "Monitor"

Identifier "Monitor1"

VendorName "Monitor Vendor"

ModelName "External- generic"

HorizSync 31.5 - 57.0

VertRefresh 50.0 - 70.0

Option "dpms"

EndSection

Section "Device"

Identifier "Videocard0"

Driver "radeon"

VendorName "Videocard vendor"

BoardName "ATI Radeon Mobility M300"

# Option "VideoOverlay" "on"

Option "DynamicClocks" "on"

Screen 0

EndSection

Section "Device"

Identifier "Videocard1"

Driver "radeon"

VendorName "Videocard Vendor"

BoardName "ATI Radeon Mobility M300"

# Option "VideoOverlay" "on"

Option "DynamicClocks" "on"

Screen 1

EndSection

Section "Screen"

Identifier "Screen0"

Device "Videocard0"

Monitor "Monitor0"

DefaultDepth 24

SubSection "Display"

Viewport 0 0

Depth 16

Modes "1280x1024" "1024x768" "800x600" "640x480"

EndSubSection

SubSection "Display"

Viewport 0 0

Depth 24

Modes "1400x1050" "1280x960" "1280x800" "1280x1024" "1152x864" "1024x768" "800x600"

EndSubSection

EndSection

Section "Screen"

Identifier "Screen1"

Device "Videocard1"

Monitor "Monitor1"

DefaultDepth 24

SubSection "Display"

Viewport 0 0

Depth 24

Modes "1024x768"

EndSubSection

EndSection

Section "DRI"

Group 0

Mode 0666

EndSection

------------------------------------------------

My first big run

Just last week I completed my first ever half marathon (21 km) as part of the Melbourne Marathon event.

See here http://www.melbournemarathon.com.au/

I completed in 2 hours and 8 minutes which was almost twice the time of the elite runners who finished near the top.

It was a great experience and I certainly plan to do it again, although next year, if I can find the time to train properly, I'll do the full Marathon.

The route was beautiful. We ran almost the whole way next to the beach except for the final 4 km which was up the beautiful tree-lined boulevard of St.Kilda Road. I had trained up to 15 Km and found that rather easy. However the last 6 km of half-marathon was really hard. I had to walk for a few minutes with about 2 km to go. I think my body needed to pull a bit more energy out it's fat reserves. After walking I felt a lot better and even managed a little sprint over the line. Right after I finished I realised how much my feet hurt. I could barely walk! I guess that shows what effective pain killers endorphins are.

The race was a great excise in humility too. I was constantly passed by other runners. I don't have my official place yet, the organisers will post the full results for the half-marathon today and tomorrow. I expect I finished about 3,000th out of about 4,000.

I wrote the following text last year. I thought I would repost it now. Since then another old friend from my undergrad days has died of a heart attack.

Running

In my youth I used to play a lot of team sports. Especially Australian Football and Basketball. I loved playing football but I hated training for it. We used to have to do sprints. Go into deep anaerobic debt, recover, start again. It was all very painful.

Consequently I never liked exercise for the sake of exercise. When I heard that there were people who used to run for no purpose other to run I couldn't understand it all. Why would someone put themselves though all that pain and not even have the fun of playing team sport?

When my father died a few years ago I started thinking about mortality and health seriously. At my church there are many older people. Many of whom I came to know and care about. Very sadly many of these great people have also passed away. Many of these people had heart trouble.

I had a friend who I used to go drinking with in my early twenties. He was a bit portly back then but as time went on he kept on putting more weight. He kept on drinking to. He was a great person to drink with. A couple of years ago he died of a heart attack.

I had not done any serious exercise for about 10 years. I was putting on weight. I want to live for a lot longer than I have already. So I started to go for runs. I did it even though I thought I didn't have time. I just decided that it has to be done. It was more important to do this than all the other things I felt I should do.

It was total hell for the first 1.5 months. My personality is such that I found it very hard to run slowly at first. But my body was in such bad condition I couldn't run for more than 300 meters in a row anyway. But I stuck at it. Forced myself to jog slowly. To at least walk when I could not jog. Then to keep jogging when I wanted to walk. Then to maintain the jog up a hill. Then to complete 1 circuit of some parks near my house (about 1.5 km). Then complete two circuits. Then to increase my tempo and go for longer runs.

Now I find I look forward to my runs. I run at night because I'm not a morning person and because I want to spend time with daughter before she goes to bed. Running at night around the parks near my house is really special. At the top the hill is a playing field open to the night sky. There are no street lights. On nights like tonight the scene was bathed in moonlight. I could see the city of Melbourne stretched out around me, glowing and shimmering in the distance. I could see all the way to distant hills at King Lake and Mount Dandenong.

As I run past the Eucalypts on the way down from the hill I often disturb fruit bats who silently fly away from their night-time feasts on the flowering gum trees. The air tonight was just pleasantly cool. In the summer and later in the spring the air develops a warmth that surrounds and caresses as I run. I feel enveloped by nature even as I listen to Heavy Rock raging through my mp3 player. Distracting me from the pain of pushing myself.

As I run my mind wanders between enjoying the song, feeling the air, enjoying night-time vistas and thinking of interesting problems. I feel empowered that my body has spare capacity to burn as a run. I can easily run 4 km and finish with a fast sprint now. This thought has struck me many times recently. My mother has recently had open heart surgery. No matter what doctors might say about this being a routine operation, the person getting the surgery is just a blown fuse away from death. Recovering from the operation is a long process. The heart has to learn how to beat by itself. The body has to repair the ribs split open. The mind has to recover from the confrontation with its mortality.

So as I run I feel keenly alive. I savor the moments. Feel the feelings. Think the thoughts. Solve the interesting problems. I look forward to the fun times and interesting challenges ahead but at the back of my mind is the knowledge that one day there won't be a new day for me.

Comments Here

10 Oct 2005 (updated 10 Oct 2005 at 03:17 UTC) »
AbiWord-2.4 in the Real World

With AbiWord-2.4 I can finally use AbiWord for my day to day teaching activities.

The Maths support is awesome! All the power and convience of Latex with none of the hassle.

See the screenshot of my Electrodynamics Assignment.

http://www.ph.unimelb.edu.au/~msevior/abiword/assignment-2005.png

Comments Here

AbiWord-2.4 released!

AbiWord-2.4 has been released!

A world first in free software. Now with an integrated Grammar Checker!

Read all about it http://www.abisource.com/release-notes/2.4.0.phtml

Download it for Linux, Windows and Mac's http://www.abisource.com/download/

Enjoy our latest gift to Humanity :-)

Comments here

1 Oct 2005 (updated 1 Oct 2005 at 03:47 UTC) »
"A real alternative to MS Word"

A lovely quote from a review of AbiWord from tomshardware.com

See "Pepping up Windows" Tomshardware.com

There's a nice review of the GIMP too :-)

20 Sep 2005 (updated 20 Sep 2005 at 00:54 UTC) »
I love stuff like this.

A few days ago I got an email of the blue from Daniel Naber ( http://www.danielnaber.de ) who will be giving a talk at a OO.o convention about OO's linguistic capabilities. He asked if the grammar checking facility we have in AbiWord can give suggestions for incorrect grammar as well as marking incorrect regions.

Unfortunately link-grammar, which we use for our grammar checker, does not have this capability and told him that. He then told me about his project, LanguageTool. LanguageTool is written in java, can currently grammar check in English and German and provides natural language descriptions of suspected grammatical mistakes.

I asked him if he'd tried gjc and if he knew how provide a C/C++ interface to his code. If we can work this out, the AbiWord side of things is very straight forward. We only have to subclass one existing piece of code in a plugin and wrap his code with a two method API. It's all in a plugin so it won't disturb the rest of our codebase.

If we can work out how to use gcj and do the C/C++ interface we'll can test out his grammar checker in AbiWord in less than one week of real time.

Unfortunately neither he nor I know how to make a gcj <-> C/C++ bridge. So if you do, let us know and we'll Rock On with Free Software<sup>TM</sup> :-)

Comments Here

13 Sep 2005 (updated 13 Sep 2005 at 00:43 UTC) »
So England finally regain the Ashes...

Well England finally regain the Ashes. Congratulations. England did outplay Australia in the majority of of the series. The Australian team is looking a bit long in the tooth these days. It's prolly time to give some young turks a bit of a go.

The bright side of losing the Ashes is that it's now politically correct to Bash Poms again. It's been so easy these last 10 years it was no longer fun down here.

The other bright side is that there appears to be a English sporting revival so the 2006 Commonwealth games here in Melbourne may not be the Australian procession the last few events have been. It would be good to have a bit of challenge and interest from the rest of Commonwealth.

I lived in Canada for a while. While I was there I was continually told how Canadians were different from Americans. I always thought that if Canada was actually any good at sports played in the rest of the Commonwealth they could stop looking at the Country to it's South and have fun bashing the Poms like we do. There is nothing like supporting your National Team over a 3 month tour.

Comments Here

AbiWord v2.3.6 "Math is hard!" Released

Long time no blog. I've been busy working with a group of people on a Nuclear Power Education website. We will fill the "niche" between the Nuclear Power Industry and Greenpeace :-)

In other news the rest of AbiWord team has been hard at work on our next great release, due Any Day Now. So, without further ado..

The AbiWord team is happy to announce AbiWord v2.3.6 for your stress-testing pleasure. This release is virtually identical to what will become AbiWord 2.4, but still contains some bugs that we'd like to see squashed over the next few days.

Since the previous release, equation support has become available to Mac OSX >= 10.3 and Windows NT based systems as well. At the moment of writing these release notes support for Windows 9x/ME systems has been included, but this was not ready in time to go in v2.3.6.

Note: While standard symbol fonts can be used to render equations, the best results are achieved when the Computer Modern fonts are installed. Also note that equation input and rendering are still considered to be experimental. We welcome your feedback on this new feature.

AbiWord v2.3.x is parallel installable with AbiWord v2.2 so users can try it out without disturbing their stable AbiWord 2.2 version. Binaries for the various supported platforms will be provided as soon as possble. For Linux based systems we have again created an easy to use installer ("Autopackage") that should work on virtually every x86 linux distribution. The only requirement is that basic GNOME libraries are installed. This makes it possible for people who are interested in testing this release to instantly install it on their computer, there's no need to compile stuff or wait until it's shipped by the distribution.

The installer includes the following extra functionality ("plugins"):

  • Grammar checking (only English supported at the moment)
  • Support for entering formulas and equations
  • Wordperfect file import
  • OpenDocument file import (the OpenOffice.org 2 format)
  • Gnumeric charts support (experimental, only works with recent GNOME)

The installer is available from the download page. For more information about Autopackage please visit http://www.autopackage.org.

We are very much interested in any bug you may find. Please report these to http://bugzilla.abisource.com/.

While we encourage people to try out this new snapshot, please be aware that is a development snapshot and is not expected to be stable in any sort of way.

Availability: http://www.abisource.com/download/development.phtml.

More information: http://www.abisource.com/.

Enjoy!

   The AbiWord Development Team

Comments Here

26 Jul 2005 (updated 26 Jul 2005 at 09:59 UTC) »
How To end World Hunger

The recent set of rock concerts aimed at focussing World Attention to the plight of people in the poorest Countries of the world succeeded. Many people in the richer world looked at this issue with renewed focus.

However, while the aim of the concerts was fantastic, I was left with a bit of a sour taste. To me, it appears that we are condescending to the people we intend to help. The people in these countries are just as human, intelligent and creative as those in the Western World. It is simply that these people, as individuals, do not have access to the successful community we have built in Australia and other Countries.

The importance of sucessful community and culture was really brought home to me when I read this article about Robert Mugabe, the President of Zimbabwe travelling to China in an attempt to secure Aid. 20 years ago, China was substantially poorer than Zimbabwe on a per-Capita basis. But for the last 25 years China's economy has been doubling every 8-10 years with so sign of letting up at all.

Clearly the Chinese have learned some powerful lessons and have found a way to unleash the human spirit within their own Country. They did not do this with handouts and massive aid programs.

Why can't every nation on earth do this?

I think that every nation can and will but that the time this transformation takes can be substantially reduced by avoiding the condescention of Aid handouts and by directly encouraging individuals to use their own talents as productively as possible.

The following story on the pitfalls of Aid handouts was written by Dr. Badiul Alam Majumdar head of the Hunger Project in Bangladesh. http://www.ph.unimelb.edu.au/~msevior/Parrot_Story.html

The success of the approach adopted by Dr. Majumdar was witnessed first hand by my good friend, Carol Godham. This is very clever way to foster local economic development by empowering people in local communities. You can read about her experiences here.

The Hunger Project acheives exponential growth by directly empowering people to create their own futures.

Comments Here

52 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!