Fixed:
- Docking and undocking from the ultrabase on the fly
- Instead of only seeing 3Gb, 4Gb of RAM now registers correctly
- Optimization for Core 2 Duo CPU
a mess of science and research, photography, and open source
$ locale|grep 'LANG=' # to see current locale
$ im-switch -z (your_locale) -s scim
/SupportedUnicodeLocales = en_US.UTF-8,(your_locale)
XIM=SCIM
XIM_PROGRAM=/usr/bin/scim
XIM_ARGS="-d"
GTK_IM_MODULE="scim"
QT_IM_MODULE="scim"
DEPENDS="scim,scim-anthy|scim-canna|scim-chewing|scim-pinyin|scim-hangle|scim-prime|scim-skk|scim-tables-additional|scim-m17n|scim-uim|scim-tables-ja|scim-tables-ko|scim-tables-zh"
LANG = zh_TW.UTF8 # or choice of non-english input method
- SD card reader# deb cdrom:[Kubuntu 8.04.1 _Hardy Heron_ - Release i386 (20080702.1)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
## UBUNTU
deb http://ca.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy main restricted
deb http://ca.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb http://ca.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy universe
deb http://ca.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb http://ca.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb http://archive.canonical.com/ubuntu hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner
deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
## BACKPORTS
deb http://ca.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
## MEDIUBUNTU
## wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -
## wget -q http://playonlinux.botux.net/pol.gpg -O- | sudo apt-key add -
deb http://packages.medibuntu.org/ hardy free non-free
deb http://packages.medibuntu.org/ feisty free non-free
deb http://playonlinux.botux.net/ hardy main
setkeycodes e017 148 # for ThinkVantage
setkeycodes 0082 192 # for Fn+Space
key{ [ Menu ] };
Section "InputDevice"
Driver "mouse"
Identifier "mouse[1]"
Option "Buttons" "5"
Option "Device" "/dev/input/mice"
Option "EmulateWheel" "on"
Option "EmulateWheelButton" "2"
Option "InputFashion" "Mouse"
Option "Name" "IBM;TPPS/2 TrackPoint"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "EmulateWheel" "on"
Option "EmulateWheelButton" "2"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
Option "ZAxisMapping" "4 5"
Option "CorePointer"
EndSection
$ sudo apt-get install linux-backports-modules-hardy
$ sudo apt-get install thinkfinger-tools libpam-thinkfinger libthinkfinger0
$ sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable
$ sudo tf-tool --acquire
$ sudo tf-tool --verify
$ auth sufficient pam_thinkfinger.so
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
SubSection "Display"
Depth 24
Virtual 2048 1050
EndSubSection
EndSection
$ xrandr -q ## view connected displays' information
$ xrandr --output VGA --auto --right-of LVDS ## place VGA output on the right side of laptop LCD
$ xrandr --output VGA --off ## turn VGA output off
$ xrandr --man ## for the complete list of functions
#!/bin/bash
# Modified from: http://www.thinkwiki.org/wiki/Sample_Fn-F7_script
# /etc/acpi/events/ibm-videobtn
#
# External output may be "VGA" or "VGA-0" or "DVI-0" or "TMDS-1"
EXTERNAL_OUTPUT="VGA"
INTERNAL_OUTPUT="LVDS"
function screen_external(){
xrandr --output $INTERNAL_OUTPUT --off
xrandr --output $EXTERNAL_OUTPUT --auto
}
function screen_internal(){
xrandr --output $EXTERNAL_OUTPUT --off
xrandr --output $INTERNAL_OUTPUT --mode 1024x768 --pos 0x0 #re-centers
}
function screen_both(){
xrandr --output $INTERNAL_OUTPUT --mode 1024x768 --pos 0x0
xrandr --output $EXTERNAL_OUTPUT --mode 1680x1050 --pos 368x0 #to fit 2048x2048
}
function screen_toggle(){
# Figure out current state
INTERNAL_STATE=$(xrandr | grep ^$INTERNAL_OUTPUT | grep con | sed "s/.*connected //" | sed "s/(.*//")
EXTERNAL_STATE=$(xrandr | grep ^$EXTERNAL_OUTPUT | grep con | sed "s/.*connected //" | sed "s/(.*//")
if [ -z "$INTERNAL_STATE" ]; then
STATE="external"
elif [ -z "$EXTERNAL_STATE" ]; then
STATE="internal"
else
INTERNAL_STATE=$(echo $INTERNAL_STATE | sed "s/[0-9]*x[0-9]*//")
EXTERNAL_STATE=$(echo $EXTERNAL_STATE | sed "s/[0-9]*x[0-9]*//")
if [ "$INTERNAL_STATE" = "$EXTERNAL_STATE" ]; then
STATE="mirror"
else
STATE="both"
fi
fi
case "$STATE" in
internal)
screen_external
;;
external)
screen_both
;;
both)
screen_internal
;;
*)
screen_internal
;;
esac
}
# based on /etc/acpi/screenblank.sh (Ubuntu 7.10)
# . /usr/share/acpi-support/power-funcs # for getXuser
getXuser() {
user=`finger| grep -m1 ":$displaynum " | awk '{print $1}'`
if [ x"$user" = x"" ]; then
user=`finger| grep -m1 ":$displaynum" | awk '{print $1}'`
fi
if [ x"$user" != x"" ]; then
userhome=`getent passwd $user | cut -d: -f6`
export XAUTHORITY=$userhome/.Xauthority
else
export XAUTHORITY=""
fi
}
# end of getXuser from /usr/share/acpi-support/power-funcs
#
for x in /tmp/.X11-unix/*; do
displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`
getXuser;
if [ x"$XAUTHORITY" != x"" ]; then
export DISPLAY=":$displaynum"
screen_toggle
fi
done
$ sudo chmod 755 /usr/local/sbin/toggle-display.sh
# /etc/acpi/events/ibm-videobtn
# This is called when the user presses the video button. It is currently
# a placeholder.
event=ibm/hotkey HKEY 00000080 00001007
action=/usr/local/sbin/toggle-display.sh
$ sudo /etc/init.d/acpid restart