Archive for 2009 年 01 月

練跑

一月 11, 2009

還有不到一個月便是渣打馬拉松。跟上年一樣參加了半馬,但練習比上年還少:

日期 路線 路程 時間 時速
21/12 新翠-畫舫-新翠 7km ? ?
24/12 新翠-濾水廠-新翠 11km 1:05 10.15
28/12 大埔元善公園-新翠 14km 1:27 9.66
3/1 Fun Run 5.6km 0:31 10.84
5/1 CU-城門河-CU 5.8km 0:34 10.24
9/1 CU-翠榕橋-CU 10.2km 1:01 10.03

星期五那天在城門河跑回中大時風很大,有如巴士在快速公路時上層打開車窗一樣,吹得人頭也暈了。

這幾天特別冷,沒有太大決心去練跑。要達到兩小時完成的目標恐怕有點難度。

廣告

Ubuntu on Notebook

一月 10, 2009

Just installed Ubuntu 8.10 on my Fujitsu V1020 notebook. Customizations done after installation include:

  1. Tackling with the harddisk click sound (due to drive parking):

    sudo hdparm -B 255 /dev/sda

    255 disables the APM completely. Seems I only need to do this once. Reference: http://linuxhelp.blogspot.com/2007/10/problem-encountered-by-laptop-users.html
    To check the current status:

    sudo hdparm -I /dev/sda|grep "Advanced power management level:"

    (update) To make it permanent, add these lines to /etc/hdparm.conf:

    /dev/sda {
            apm = 255
    }

    Reference: http://eric.biven.us/2008/10/09/my-hard-drive-is-clicking-again-so-im-stopping-it-cold-when-ubuntu-boots/

  2. Screen brightness: the only major thing that doesn’t work. The screen is at maximum brightness all the time. The first thing to be tackled or I can’t use it for long time.
    (Update: found a solution at http://kitenet.net/~joey/boxen/kodama/#index6h1

    xrandr --output LVDS --set BACKLIGHT_CONTROL legacy
    

    Optionally one can install xbacklight to get and set the brightness.

  3. Compiz:
    sudo apt-get install compizconfig-settings-manager

    Not all can be enabled (e.g. Desktop Cube), possibly due to the display driver. Will sort it out later…
    (update) To see the effects, there desktop size should be 4. (http://ubuntu-tutorials.com/2007/10/29/enabling-the-cube-in-compiz-fusion-on-ubuntu-710-gutsy-gibbon/)

  4. Tired of using gftp? Try sftp in Nautilus (File manager in GNOME):
    1. Toggle to text based location bar, then type “sftp://username@server", or
    2. File -> Connect to server, and type in the details

    Note: Both methods bring you only to the root directory (“/"). See https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/290703 for some discussion. Workaround: find out your home folder (say, using “pwd"), then using method 2, fill in the details and save that as a bookmark.

  5. nm-applet asks for password to access keyring (for the wireless network), every time it boots.
    Solution in Ubuntu forums: http://ubuntuforums.org/showpost.php?s=f5de5634f4448d733a599c23e4bb0257&p=2776815&postcount=1
    (It’s down for some time today, will check back later)

That’s it for now.

(Updates):

  • Bluetooth works out of the box (can send file); to receive file, install gnome-bluetooth.
  • Sound works out of the box
  • (11 Jan) Suspend kind of works, only wifi would go wrong afterwards: nm-applet keep asking me for the WPA password (key?), and both the saved password or type in the password again does not work, i.e. the wifi is unusable after suspension. hdparm setting seems to revert to 128, but that’s minor stuff.
  • Hibernation does not work, possibly because I didn’t allocate a swap partition during installation. I setup a swap file afterwards, but hibernation doesn’t work. It could also be due to hardware setting, but I don’t know. It just come back to the login screen after a moment, with some errors saying “… failed to resubmit". Currently I have no clue about it.
  • With hibernation not working and suspension half working, I can only shutdown my machine every time after use. Some comparisons on time needed:
    Boot from hibernation to Vista: 40s total
    Boot to Ubuntu: 90s for wired ethernet to be usable, 120s total (with wireless) (Seems the wireless authentication is faster in Vista?)
    Put Vista to hibernate: 75s
    Shutdown Ubuntu: 12s
    (But usually in Vista I just close the lid and just let it sleep (suspend): boot from sleep takes about 10s (with wireless))