Tuesday, August 28, 2007

waking up i810 on ubuntu

suspend & hibernate of my Lenovo X60, everything is fine. But when I try to wake it up, only mouse still responding, screen is black with mouse cursor moving, only keys Fn+ are still working.

When I try to ssh in to it, it works. So it's something to do with graphic. Luckily google tells me some similar issue, which is caused by VBERestore. The following steps work for me,

/etc/default/acpi-support
POST_VIDEO=false

/etc/X11/xorg.conf
Driver "i810"
Options "VBERestore" "true"

Tried to remove "vbetool" without luck, it's required by acpi-tools.

Monday, August 27, 2007

re-compile kernel on ubuntu for Lenovo X60

apt-get install linux-source


patch suspend2
bzcat *.bz | patch -p1

patch ieee80211
make patch_kernel SHELL=/bin/bash

make ipw3945
make SHELL=/bin/bash
ipw3945d-2.6.22-9

tp_smapi (+hdaps)
make install HDAPS=1 SHELL=/bin/bash

At least, now hdaps working, as well as systemtap's "hello world".

Sunday, August 26, 2007

manage debian packages

similar to rpm / yum in others

dpkg -s -- get basic package information
dpkg -L -- list all files in a package
dpkg -S
-- which package owns this file
dpkg -l -- list installed packages
dpkg -l 'linux*'
dpkg -i *.deb -- install deb

apt-get install / remove / update / upgrade

There's another one called wajig, not exploring since above is good enough for me

Tuesday, August 14, 2007

Ubuntu on IBM X60

/etc/modprobe.d/blacklist
...
blacklist video
blacklist pcspkr

First one to enable brightness adjustment key.
Second one to mute the annoying loud beep.

mediawiki ppt upload

When people try to upload PowerPoint files, it says extension mismatch or something.
In LocalSettings.php, .ppt is already allowed extension.

It turned out to be "file" command in Linux/Unix tends to identify .ppt file as "Microsoft Installer".

A quick solution, disable extension verification.
$wgStrictFileExtensions = false;

We have disabled MimeType checking also since it's for internal user only.
$wgVerifyMimeType = false;

This page is powered by Blogger. Isn't yours?