https://www.thinkwiki.org/w/api.php?action=feedcontributions&user=Linuxrulez&feedformat=atomThinkWiki - User contributions [en]2024-03-28T13:19:24ZUser contributionsMediaWiki 1.31.12https://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38800Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-09-10T17:38:42Z<p>Linuxrulez: /* HDAPS */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to disk (hibernate) and suspend to RAM (suspend).<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
* Ethernet (see [[Problem_with_e1000:_EEPROM_Checksum_Is_Not_Valid]])<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== Ethernet ===<br />
<br />
See [[Problem_with_e1000:_EEPROM_Checksum_Is_Not_Valid]].<br />
<br />
The following seems to fix it -- just add this line to /etc/modprobe.d/options and reload the e1000 module (or reboot):<br />
options e1000 eeprom_bad_csum_allow=1<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add the following to the file /etc/apt/sources.list: <br />
deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main<br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
It illuminates but does not blink. See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly, with some audio feedback.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
See also [[How_to_get_special_keys_to_work]].<br />
<br />
=== Hibernate and Suspend ===<br />
<br />
See the section above on fixing the hotkeys, but these also can be invoked in other ways -- from GUIs and the command line. <br />
<br />
Hibernate (i.e. suspend to disk) should work out of the box, although fiddling with your swap partition can break it.<br />
<br />
Bear in mind that <br />
* 1) the swap partition must be large enough - at least the size of your RAM<br />
* 2) the UUID of the hibernate partition is set in /etc/initramfs-tools/conf.d/resume<br />
and should be the same as the swap partition set in /etc/fstab.<br />
* 3) if you change the swap partition or reformat it you need to change the UUID in both<br />
the above files and run <br />
<br />
sudo update-initramfs -c -k 2.6.24-19-generic [or whatever kernel number is shown by uname -a]<br />
<br />
Other tools<br />
free (shows swap mem)<br />
sudo vol_id /dev/sdaN (where N=1,2,3,4... shows the UUID of a partition)<br />
swapon -s (display swap usage summary by device)<br />
<br />
Suspend (i.e. suspend to RAM) works out of the box.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to try it out:<br />
<br />
sudo apt-get install hdaps-utils neverball<br />
hdaps-gl (to see a display of the laptop position)<br />
neverball (a game -- just tilt the laptop to roll the ball)<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others, see http://lkml.org/lkml/2008/7/26/17<br />
and http://lkml.org/lkml/2008/9/10/232.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38658Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-20T10:47:35Z<p>Linuxrulez: /* KDE 4.1 repository */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to disk (hibernate) and suspend to RAM (suspend).<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
* Ethernet (see [[Problem_with_e1000:_EEPROM_Checksum_Is_Not_Valid]])<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== Ethernet ===<br />
<br />
See [[Problem_with_e1000:_EEPROM_Checksum_Is_Not_Valid]].<br />
<br />
The following seems to fix it -- just add this line to /etc/modprobe.d/options and reload the e1000 module (or reboot):<br />
options e1000 eeprom_bad_csum_allow=1<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add the following to the file /etc/apt/sources.list: <br />
deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main<br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
It illuminates but does not blink. See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly, with some audio feedback.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
See also [[How_to_get_special_keys_to_work]].<br />
<br />
=== Hibernate and Suspend ===<br />
<br />
See the section above on fixing the hotkeys, but these also can be invoked in other ways -- from GUIs and the command line. <br />
<br />
Hibernate (i.e. suspend to disk) should work out of the box, although fiddling with your swap partition can break it.<br />
<br />
Bear in mind that <br />
* 1) the swap partition must be large enough - at least the size of your RAM<br />
* 2) the UUID of the hibernate partition is set in /etc/initramfs-tools/conf.d/resume<br />
and should be the same as the swap partition set in /etc/fstab.<br />
* 3) if you change the swap partition or reformat it you need to change the UUID in both<br />
the above files and run <br />
<br />
sudo update-initramfs -c -k 2.6.24-19-generic [or whatever kernel number is shown by uname -a]<br />
<br />
Other tools<br />
free (shows swap mem)<br />
sudo vol_id /dev/sdaN (where N=1,2,3,4... shows the UUID of a partition)<br />
swapon -s (display swap usage summary by device)<br />
<br />
Suspend (i.e. suspend to RAM) works out of the box.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to try it out:<br />
<br />
sudo apt-get install hdaps-utils neverball<br />
hdaps-gl (to see a display of the laptop position)<br />
neverball (a game -- just tilt the laptop to roll the ball)<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38657Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-20T10:41:36Z<p>Linuxrulez: /* Ethernet */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to disk (hibernate) and suspend to RAM (suspend).<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
* Ethernet (see [[Problem_with_e1000:_EEPROM_Checksum_Is_Not_Valid]])<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== Ethernet ===<br />
<br />
See [[Problem_with_e1000:_EEPROM_Checksum_Is_Not_Valid]].<br />
<br />
The following seems to fix it -- just add this line to /etc/modprobe.d/options and reload the e1000 module (or reboot):<br />
options e1000 eeprom_bad_csum_allow=1<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
It illuminates but does not blink. See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly, with some audio feedback.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
See also [[How_to_get_special_keys_to_work]].<br />
<br />
=== Hibernate and Suspend ===<br />
<br />
See the section above on fixing the hotkeys, but these also can be invoked in other ways -- from GUIs and the command line. <br />
<br />
Hibernate (i.e. suspend to disk) should work out of the box, although fiddling with your swap partition can break it.<br />
<br />
Bear in mind that <br />
* 1) the swap partition must be large enough - at least the size of your RAM<br />
* 2) the UUID of the hibernate partition is set in /etc/initramfs-tools/conf.d/resume<br />
and should be the same as the swap partition set in /etc/fstab.<br />
* 3) if you change the swap partition or reformat it you need to change the UUID in both<br />
the above files and run <br />
<br />
sudo update-initramfs -c -k 2.6.24-19-generic [or whatever kernel number is shown by uname -a]<br />
<br />
Other tools<br />
free (shows swap mem)<br />
sudo vol_id /dev/sdaN (where N=1,2,3,4... shows the UUID of a partition)<br />
swapon -s (display swap usage summary by device)<br />
<br />
Suspend (i.e. suspend to RAM) works out of the box.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to try it out:<br />
<br />
sudo apt-get install hdaps-utils neverball<br />
hdaps-gl (to see a display of the laptop position)<br />
neverball (a game -- just tilt the laptop to roll the ball)<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38656Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-20T10:39:19Z<p>Linuxrulez: /* Fixes after installation */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to disk (hibernate) and suspend to RAM (suspend).<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
* Ethernet (see [[Problem_with_e1000:_EEPROM_Checksum_Is_Not_Valid]])<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== Ethernet ===<br />
<br />
See [[Problem_with_e1000:_EEPROM_Checksum_Is_Not_Valid]].<br />
<br />
The following seems to fix it -- just add this line to /etc/modprobe.d/options and reboot:<br />
options e1000 eeprom_bad_csum_allow=1<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
It illuminates but does not blink. See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly, with some audio feedback.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
See also [[How_to_get_special_keys_to_work]].<br />
<br />
=== Hibernate and Suspend ===<br />
<br />
See the section above on fixing the hotkeys, but these also can be invoked in other ways -- from GUIs and the command line. <br />
<br />
Hibernate (i.e. suspend to disk) should work out of the box, although fiddling with your swap partition can break it.<br />
<br />
Bear in mind that <br />
* 1) the swap partition must be large enough - at least the size of your RAM<br />
* 2) the UUID of the hibernate partition is set in /etc/initramfs-tools/conf.d/resume<br />
and should be the same as the swap partition set in /etc/fstab.<br />
* 3) if you change the swap partition or reformat it you need to change the UUID in both<br />
the above files and run <br />
<br />
sudo update-initramfs -c -k 2.6.24-19-generic [or whatever kernel number is shown by uname -a]<br />
<br />
Other tools<br />
free (shows swap mem)<br />
sudo vol_id /dev/sdaN (where N=1,2,3,4... shows the UUID of a partition)<br />
swapon -s (display swap usage summary by device)<br />
<br />
Suspend (i.e. suspend to RAM) works out of the box.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to try it out:<br />
<br />
sudo apt-get install hdaps-utils neverball<br />
hdaps-gl (to see a display of the laptop position)<br />
neverball (a game -- just tilt the laptop to roll the ball)<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38653Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-20T09:59:06Z<p>Linuxrulez: /* What needs to be fixed */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to disk (hibernate) and suspend to RAM (suspend).<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
* Ethernet (see [[Problem_with_e1000:_EEPROM_Checksum_Is_Not_Valid]])<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
It illuminates but does not blink. See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly, with some audio feedback.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate and Suspend ===<br />
<br />
See the section above on fixing the hotkeys, but these also can be invoked in other ways -- from GUIs and the command line. <br />
<br />
Hibernate (i.e. suspend to disk) should work out of the box, although fiddling with your swap partition can break it.<br />
<br />
Bear in mind that <br />
* 1) the swap partition must be large enough - at least the size of your RAM<br />
* 2) the UUID of the hibernate partition is set in /etc/initramfs-tools/conf.d/resume<br />
and should be the same as the swap partition set in /etc/fstab.<br />
* 3) if you change the swap partition or reformat it you need to change the UUID in both<br />
the above files and run <br />
<br />
sudo update-initramfs -c -k 2.6.24-19-generic [or whatever kernel number is shown by uname -a]<br />
<br />
Other tools<br />
free (shows swap mem)<br />
sudo vol_id /dev/sdaN (where N=1,2,3,4... shows the UUID of a partition)<br />
swapon -s (display swap usage summary by device)<br />
<br />
Suspend (i.e. suspend to RAM) works out of the box.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to try it out:<br />
<br />
sudo apt-get install hdaps-utils neverball<br />
hdaps-gl (to see a display of the laptop position)<br />
neverball (a game -- just tilt the laptop to roll the ball)<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38652Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-20T09:58:16Z<p>Linuxrulez: /* What works out of the box */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to disk (hibernate) and suspend to RAM (suspend).<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
It illuminates but does not blink. See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly, with some audio feedback.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate and Suspend ===<br />
<br />
See the section above on fixing the hotkeys, but these also can be invoked in other ways -- from GUIs and the command line. <br />
<br />
Hibernate (i.e. suspend to disk) should work out of the box, although fiddling with your swap partition can break it.<br />
<br />
Bear in mind that <br />
* 1) the swap partition must be large enough - at least the size of your RAM<br />
* 2) the UUID of the hibernate partition is set in /etc/initramfs-tools/conf.d/resume<br />
and should be the same as the swap partition set in /etc/fstab.<br />
* 3) if you change the swap partition or reformat it you need to change the UUID in both<br />
the above files and run <br />
<br />
sudo update-initramfs -c -k 2.6.24-19-generic [or whatever kernel number is shown by uname -a]<br />
<br />
Other tools<br />
free (shows swap mem)<br />
sudo vol_id /dev/sdaN (where N=1,2,3,4... shows the UUID of a partition)<br />
swapon -s (display swap usage summary by device)<br />
<br />
Suspend (i.e. suspend to RAM) works out of the box.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to try it out:<br />
<br />
sudo apt-get install hdaps-utils neverball<br />
hdaps-gl (to see a display of the laptop position)<br />
neverball (a game -- just tilt the laptop to roll the ball)<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38649Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-20T01:18:46Z<p>Linuxrulez: /* HDAPS */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to disk (hibernate) and suspend to RAM (suspend).<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
It illuminates but does not blink. See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly, with some audio feedback.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate and Suspend ===<br />
<br />
See the section above on fixing the hotkeys, but these also can be invoked in other ways -- from GUIs and the command line. <br />
<br />
Hibernate (i.e. suspend to disk) should work out of the box, although fiddling with your swap partition can break it.<br />
<br />
Bear in mind that <br />
* 1) the swap partition must be large enough - at least the size of your RAM<br />
* 2) the UUID of the hibernate partition is set in /etc/initramfs-tools/conf.d/resume<br />
and should be the same as the swap partition set in /etc/fstab.<br />
* 3) if you change the swap partition or reformat it you need to change the UUID in both<br />
the above files and run <br />
<br />
sudo update-initramfs -c -k 2.6.24-19-generic [or whatever kernel number is shown by uname -a]<br />
<br />
Other tools<br />
free (shows swap mem)<br />
sudo vol_id /dev/sdaN (where N=1,2,3,4... shows the UUID of a partition)<br />
swapon -s (display swap usage summary by device)<br />
<br />
Suspend (i.e. suspend to RAM) works out of the box.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to try it out:<br />
<br />
sudo apt-get install hdaps-utils neverball<br />
hdaps-gl (to see a display of the laptop position)<br />
neverball (a game -- just tilt the laptop to roll the ball)<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38648Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-20T00:58:51Z<p>Linuxrulez: /* Wifi LED */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to disk (hibernate) and suspend to RAM (suspend).<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
It illuminates but does not blink. See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly, with some audio feedback.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate and Suspend ===<br />
<br />
See the section above on fixing the hotkeys, but these also can be invoked in other ways -- from GUIs and the command line. <br />
<br />
Hibernate (i.e. suspend to disk) should work out of the box, although fiddling with your swap partition can break it.<br />
<br />
Bear in mind that <br />
* 1) the swap partition must be large enough - at least the size of your RAM<br />
* 2) the UUID of the hibernate partition is set in /etc/initramfs-tools/conf.d/resume<br />
and should be the same as the swap partition set in /etc/fstab.<br />
* 3) if you change the swap partition or reformat it you need to change the UUID in both<br />
the above files and run <br />
<br />
sudo update-initramfs -c -k 2.6.24-19-generic [or whatever kernel number is shown by uname -a]<br />
<br />
Other tools<br />
free (shows swap mem)<br />
sudo vol_id /dev/sdaN (where N=1,2,3,4... shows the UUID of a partition)<br />
swapon -s (display swap usage summary by device)<br />
<br />
Suspend (i.e. suspend to RAM) works out of the box.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to see a display of your laptop position:<br />
<br />
sudo apt-get install hdaps-utils<br />
hdaps-gl<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38647Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-20T00:33:00Z<p>Linuxrulez: /* Hibernate and Suspend */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to disk (hibernate) and suspend to RAM (suspend).<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly, with some audio feedback.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate and Suspend ===<br />
<br />
See the section above on fixing the hotkeys, but these also can be invoked in other ways -- from GUIs and the command line. <br />
<br />
Hibernate (i.e. suspend to disk) should work out of the box, although fiddling with your swap partition can break it.<br />
<br />
Bear in mind that <br />
* 1) the swap partition must be large enough - at least the size of your RAM<br />
* 2) the UUID of the hibernate partition is set in /etc/initramfs-tools/conf.d/resume<br />
and should be the same as the swap partition set in /etc/fstab.<br />
* 3) if you change the swap partition or reformat it you need to change the UUID in both<br />
the above files and run <br />
<br />
sudo update-initramfs -c -k 2.6.24-19-generic [or whatever kernel number is shown by uname -a]<br />
<br />
Other tools<br />
free (shows swap mem)<br />
sudo vol_id /dev/sdaN (where N=1,2,3,4... shows the UUID of a partition)<br />
swapon -s (display swap usage summary by device)<br />
<br />
Suspend (i.e. suspend to RAM) works out of the box.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to see a display of your laptop position:<br />
<br />
sudo apt-get install hdaps-utils<br />
hdaps-gl<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38646Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-20T00:30:15Z<p>Linuxrulez: /* Hibernate and Suspend */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to disk (hibernate) and suspend to RAM (suspend).<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly, with some audio feedback.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate and Suspend ===<br />
<br />
Hibernate (i.e. suspend to disk) should work out of the box, although fiddling with your swap partition can break it.<br />
<br />
Bear in mind that <br />
* 1) the swap partition must be large enough - at least the size of your RAM<br />
* 2) the UUID of the hibernate partition is set in /etc/initramfs-tools/conf.d/resume<br />
and should be the same as the swap partition set in /etc/fstab.<br />
* 3) if you change the swap partition or reformat it you need to change the UUID in both<br />
the above files and run <br />
<br />
sudo update-initramfs -c -k 2.6.24-19-generic [or whatever kernel number is shown by uname -a]<br />
<br />
Other tools<br />
free (shows swap mem)<br />
sudo vol_id /dev/sdaN (where N=1,2,3,4... shows the UUID of a partition)<br />
swapon -s (display swap usage summary by device)<br />
<br />
Suspend (i.e. suspend to RAM) works out of the box.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to see a display of your laptop position:<br />
<br />
sudo apt-get install hdaps-utils<br />
hdaps-gl<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38645Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-20T00:25:36Z<p>Linuxrulez: /* What works out of the box */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to disk (hibernate) and suspend to RAM (suspend).<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly, with some audio feedback.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate and Suspend ===<br />
<br />
Hibernate should work out of the box, although fiddling with your swap partition can break it.<br />
<br />
Bear in mind that <br />
* 1) the swap partition must be large enough - at least the size of your RAM<br />
* 2) the UUID of the hibernate partition is set in /etc/initramfs-tools/conf.d/resume<br />
and should be the same as the swap partition set in /etc/fstab.<br />
* 3) if you change the swap partition or reformat it you need to change the UUID in both<br />
the above files and run <br />
<br />
sudo update-initramfs -c -k 2.6.24-19-generic [or whatever kernel number is shown by uname -a]<br />
<br />
Other tools<br />
free (shows swap mem)<br />
sudo vol_id /dev/sdaN (where N=1,2,3,4... shows the UUID of a partition)<br />
swapon -s (display swap usage summary by device)<br />
<br />
Suspend to RAM works out of the box.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to see a display of your laptop position:<br />
<br />
sudo apt-get install hdaps-utils<br />
hdaps-gl<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38644Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-20T00:24:50Z<p>Linuxrulez: /* What needs to be fixed */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly, with some audio feedback.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate and Suspend ===<br />
<br />
Hibernate should work out of the box, although fiddling with your swap partition can break it.<br />
<br />
Bear in mind that <br />
* 1) the swap partition must be large enough - at least the size of your RAM<br />
* 2) the UUID of the hibernate partition is set in /etc/initramfs-tools/conf.d/resume<br />
and should be the same as the swap partition set in /etc/fstab.<br />
* 3) if you change the swap partition or reformat it you need to change the UUID in both<br />
the above files and run <br />
<br />
sudo update-initramfs -c -k 2.6.24-19-generic [or whatever kernel number is shown by uname -a]<br />
<br />
Other tools<br />
free (shows swap mem)<br />
sudo vol_id /dev/sdaN (where N=1,2,3,4... shows the UUID of a partition)<br />
swapon -s (display swap usage summary by device)<br />
<br />
Suspend to RAM works out of the box.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to see a display of your laptop position:<br />
<br />
sudo apt-get install hdaps-utils<br />
hdaps-gl<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38643Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-20T00:24:18Z<p>Linuxrulez: /* Hibernate and Suspend */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly, with some audio feedback.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate and Suspend ===<br />
<br />
Hibernate should work out of the box, although fiddling with your swap partition can break it.<br />
<br />
Bear in mind that <br />
* 1) the swap partition must be large enough - at least the size of your RAM<br />
* 2) the UUID of the hibernate partition is set in /etc/initramfs-tools/conf.d/resume<br />
and should be the same as the swap partition set in /etc/fstab.<br />
* 3) if you change the swap partition or reformat it you need to change the UUID in both<br />
the above files and run <br />
<br />
sudo update-initramfs -c -k 2.6.24-19-generic [or whatever kernel number is shown by uname -a]<br />
<br />
Other tools<br />
free (shows swap mem)<br />
sudo vol_id /dev/sdaN (where N=1,2,3,4... shows the UUID of a partition)<br />
swapon -s (display swap usage summary by device)<br />
<br />
Suspend to RAM works out of the box.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to see a display of your laptop position:<br />
<br />
sudo apt-get install hdaps-utils<br />
hdaps-gl<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38642Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-20T00:24:02Z<p>Linuxrulez: /* Hibernate */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly, with some audio feedback.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate and Suspend ===<br />
<br />
Hibernate should works out of the box, although fiddling with your swap partition can break it.<br />
<br />
Bear in mind that <br />
* 1) the swap partition must be large enough - at least the size of your RAM<br />
* 2) the UUID of the hibernate partition is set in /etc/initramfs-tools/conf.d/resume<br />
and should be the same as the swap partition set in /etc/fstab.<br />
* 3) if you change the swap partition or reformat it you need to change the UUID in both<br />
the above files and run <br />
<br />
sudo update-initramfs -c -k 2.6.24-19-generic [or whatever kernel number is shown by uname -a]<br />
<br />
Other tools<br />
free (shows swap mem)<br />
sudo vol_id /dev/sdaN (where N=1,2,3,4... shows the UUID of a partition)<br />
swapon -s (display swap usage summary by device)<br />
<br />
Suspend to RAM works out of the box.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to see a display of your laptop position:<br />
<br />
sudo apt-get install hdaps-utils<br />
hdaps-gl<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38639Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-19T14:41:39Z<p>Linuxrulez: /* Hotkey problem */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 5 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
BEEP_OUTPUT="/proc/acpi/ibm/beep"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 12 > $BEEP_OUTPUT<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 6 > $BEEP_OUTPUT<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly, with some audio feedback.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me with message <br />
swsusp: cannot find swap device, try swapon -a. <br />
<br />
I do have a big enabled swap partition so this does not make sense.<br />
<br />
Suspend to RAM is working.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to see a display of your laptop position:<br />
<br />
sudo apt-get install hdaps-utils<br />
hdaps-gl<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38638Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-19T14:36:17Z<p>Linuxrulez: /* Hibernate */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me with message <br />
swsusp: cannot find swap device, try swapon -a. <br />
<br />
I do have a big enabled swap partition so this does not make sense.<br />
<br />
Suspend to RAM is working.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to see a display of your laptop position:<br />
<br />
sudo apt-get install hdaps-utils<br />
hdaps-gl<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38637Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-19T14:31:17Z<p>Linuxrulez: /* Fixes after installation */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
=== Upgrades and Backports ===<br />
<br />
Enable the backports repository by uncommenting this line in /etc/apt/sources.list:<br />
<br />
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
<br />
(or selecting "Unsupported Updates" in adept-manager).<br />
<br />
Upgrade all software to the latest version with apt-get or adept-manager.<br />
<br />
=== Wifi LED ===<br />
<br />
The Wifi LED did not illuminate until I did the following:<br />
<br />
sudo apt-get install linux-backports-modules-hardy<br />
<br />
See https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me. Suspend works.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to see a display of your laptop position:<br />
<br />
sudo apt-get install hdaps-utils<br />
hdaps-gl<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38634Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-19T00:39:47Z<p>Linuxrulez: /* Grub boot screen */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
If you prefer to see boot messages rather than a splash screen when the computer starts up, then change "splash" to "nosplash" in /boot/grub/menu.lst in the boot parameters.<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me. Suspend works.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to see a display of your laptop position:<br />
<br />
sudo apt-get install hdaps-utils<br />
hdaps-gl<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38633Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-19T00:18:28Z<p>Linuxrulez: /* HDAPS */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me. Suspend works.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection, or as a joystick for some games.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to see a display of your laptop position:<br />
<br />
sudo apt-get install hdaps-utils<br />
hdaps-gl<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38632Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-19T00:11:26Z<p>Linuxrulez: /* HDAPS */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me. Suspend works.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system -- see [[HDAPS]] -- acclerometers which can be used for hard disk shock protection.<br />
<br />
To enable the accelerometers load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Add tp_smapi and hdaps_ec to /etc/modules to do this automatically at boot time.<br />
<br />
Then to see a display of your laptop position:<br />
<br />
sudo apt-get install hdaps-utils<br />
hdaps-gl<br />
<br />
Hard disk protection: a userspace demon hdapsd is in the Hardy repository but does not work without a kernel patch. Ideally for fast reaction speed the protection would be implemented entirely in kernel space. Hopefully this will arrive in the kernel soon thanks to hard work by Elias Oltmanns and others http://lkml.org/lkml/2008/7/26/17.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38620Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-16T22:04:38Z<p>Linuxrulez: /* Fixes after installation */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me. Suspend works.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=== HDAPS ===<br />
<br />
Hard disk active protection system.<br />
Load the relevant modules (see [[Tp_smapi]]):<br />
<br />
sudo modprobe tp_smapi<br />
sudo modprobe hdaps_ec<br />
<br />
Then to see your laptop position:<br />
<br />
sudo apt-get install hdaps-utils<br />
hdaps-gl<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38612Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-16T00:52:58Z<p>Linuxrulez: /* Hotkey problem */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display (cat /proc/acpi/battery/BAT0/info)<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? BT LED lights.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD (use /proc/acpi/ibm/video ?)<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me. Suspend works.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38610Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T23:36:57Z<p>Linuxrulez: /* Hotkey problem */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
Other Fn keys for which scripts could be written:<br />
Fn+F2: lock screen --> could set this to do the KDE screen lock<br />
Fn+F3: show a battery display<br />
Fn+F5: working I think, cycling Wifi and Bluetooth on/off. Feedback? Wifi LED does not seem to light, but BT LED does.<br />
Fn+F7: should switch which screens are on VGA->LCD+VGA->LCD<br />
Fn+F8: ? mouse utility, ?switch between the rubber mouse and touchpad (non-existent on X60s)<br />
Fn+F9: ? start easyeject utility<br />
Fn+spacebar: screen zoom<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me. Suspend works.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38609Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T23:08:26Z<p>Linuxrulez: /* Hotkey problem */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way, for example like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly.<br />
<br />
If the problem with acpi_fakekey is ever fixed, just restore the original files.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me. Suspend works.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38608Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T23:00:57Z<p>Linuxrulez: /* Hotkey problem */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way such as with setkeycodes or something like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
The brightness keys can be fixed in a similar way with a couple of scripts which change the LCD brightness instead of calling acpi_fakekey:<br />
sudo mv video_brightnessup.sh{,.orig}<br />
sudo mv video_brightnessdown.sh{,.orig}<br />
<br />
and edit video_brightnessup.sh like this:<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
and video_brightnessdown.sh like this<br />
<br />
#!/bin/bash<br />
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD0/brightness"<br />
CURRENT=$(grep "current:" $BRIGHTNESS_OUTPUT |awk '{print $2}')<br />
case "$CURRENT" in<br />
100)<br />
echo -n 90 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
90)<br />
echo -n 80 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
80)<br />
echo -n 70 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
70)<br />
echo -n 60 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
60)<br />
echo -n 50 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
50)<br />
echo -n 40 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
40)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
30)<br />
echo -n 30 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
*) #default case<br />
echo -n 100 > $BRIGHTNESS_OUTPUT;<br />
;;<br />
esac<br />
<br />
And immediately you will find that Fn+Home and Fn+End move the brightness up and down correctly.<br />
<br />
By the way if you ever want to use laptop mode for this, note that the value of $BRIGHTNESS_OUTPUT in that file should be<br />
"/proc/acpi/video/VID/LCD0/brightness" not <br />
"/proc/acpi/video/VID/LCD/brightness".<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me. Suspend works.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38607Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T19:53:35Z<p>Linuxrulez: /* Bluetooth */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way such as with setkeycodes or something like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me. Suspend works.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work for OBEX file transfer.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38606Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T19:52:04Z<p>Linuxrulez: /* Bluetooth */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way such as with setkeycodes or something like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me. Suspend works.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE3 kdebluetooth seems to work.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38605Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T19:51:30Z<p>Linuxrulez: /* Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way such as with setkeycodes or something like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me. Suspend works.<br />
<br />
=== Bluetooth ===<br />
<br />
Fn+F5 cycles Bluetooth and Wifi on/off. There's a new version in development for KDE4,<br />
but the KDE4 kdebluetooth seems to work.<br />
<br />
sudo apt-get install kdebluetooth<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38604Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T18:28:03Z<p>Linuxrulez: </p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Thinklight keyboard illumination key (Fn+PgUp)<br />
* VGA out to external monitor (plug in, restart X, use KRandRTray to control the two displays)<br />
* SDHC card reader<br />
* USB<br />
* Ethernet<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Fn keys (e.g. brightness controls) generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Bluetooth<br />
* Infrared<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* Integrated fingerprint reader (sudo apt-get install thinkfinger-tools)<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that. In BIOS turn on virtualisation options VT and VT-d (full virtualisation using the kernel-based virtual machine kvm -- confirmed working!)<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way such as with setkeycodes or something like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me. Suspend works.<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38603Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T17:44:58Z<p>Linuxrulez: /* Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Keyboard illumination key (Fn+PgUp)<br />
* Everything not listed below :)<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Screen Brightness controls (Fn+Home,Fn+End)<br />
* Fn keys generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* VGA out<br />
* Integrated fingerprint reader<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that.<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Grub boot screen ===<br />
<br />
When you are happy with the way GRUB boots (and your usual OS is first in the list) then<br />
shorten the timeout in /boot/grub/menu.lst so that it boots up faster:<br />
<br />
timeout 2<br />
<br />
Uncomment the following line for a colour boot screen:<br />
<br />
color cyan/blue white/blue<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way such as with setkeycodes or something like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me. Suspend works.<br />
<br />
=== VGA out ===<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38601Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T17:36:27Z<p>Linuxrulez: </p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Keyboard illumination key (Fn+PgUp)<br />
* Everything not listed below :)<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Screen Brightness controls (Fn+Home,Fn+End)<br />
* Fn keys generate ACPI events, but acpi_fakekey is broken<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* VGA out<br />
* Integrated fingerprint reader<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that.<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Hotkey problem ===<br />
<br />
ACPI events from the Fn keys are seen properly in /var/log/acpid and feed through into the files in /etc/acpi<br />
which generate acpi_fakekey calls, which are then lost. See [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/217504 this launchpad page].<br />
It's best to use the default ubuntu kernels (i.e. NOT MarcoBazzani's patched kernel binaries!) unless you<br />
are compiling your own stock kernels anyway. Fix it another way such as with setkeycodes or something like<br />
this for Fn+F4 suspend and Fn+F12 hibernate -- hooking up directly to the sleep and hibernate scripts.<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
=== Hibernate ===<br />
<br />
Failing for me. Suspend works.<br />
<br />
=== VGA out ===<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38598Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T14:53:14Z<p>Linuxrulez: /* Terminal Settings */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Keyboard illumination key (Fn+PgUp)<br />
* Everything not listed below :)<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Screen Brightness controls (Fn+Home,Fn+End)<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* VGA out<br />
* Integrated fingerprint reader<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that.<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim<br />
<br />
and in /etc/vim/vimrc uncomment the line<br />
<br />
syntax on<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Suspending ===<br />
<br />
<br />
<br />
=== VGA out ===<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38597Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T14:48:59Z<p>Linuxrulez: /* Fonts */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Keyboard illumination key (Fn+PgUp)<br />
* Everything not listed below :)<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Screen Brightness controls (Fn+Home,Fn+End)<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* VGA out<br />
* Integrated fingerprint reader<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that.<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Fonts for KDE3 apps ===<br />
<br />
KDE3 apps (for example KNetworkManager) may still not have the correct fonts in KDE4. Try adding the following to ~/.kde/share/config/kdeglobals:<br />
<br />
[General]<br />
fixed=Courier New,8,-1,5,50,0,0,0,0,0<br />
font=Tahoma,8,-1,5,50,0,0,0,0,0<br />
menuFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
taskbarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
toolBarFont=Tahoma,8,-1,5,50,0,0,0,0,0<br />
<br />
and create ~/.kde/share/config/kcmfonts<br />
<br />
[General]<br />
dontChangeAASettings=false<br />
forceFontDPI=96<br />
<br />
=== Fonts for apps which run with root permissions ===<br />
<br />
For example adept-manager (which is also a KDE3 app). First set the fonts with<br />
<br />
kdesudo /usr/lib/kde4/bin//systemsettings<br />
<br />
and for KDE3 apps also set up /root/.kde/share/config/kdeglobals and /root/.kde/share/config/kcmfonts as above.<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim <br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Suspending ===<br />
<br />
<br />
<br />
=== VGA out ===<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38596Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T13:39:27Z<p>Linuxrulez: /* Fixes after installation */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Keyboard illumination key (Fn+PgUp)<br />
* Everything not listed below :)<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Screen Brightness controls (Fn+Home,Fn+End)<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* VGA out<br />
* Integrated fingerprint reader<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that.<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Terminal Settings ===<br />
<br />
In ~/.bashrc, uncommment the following line for a colour prompt:<br />
<br />
force_color_prompt=yes<br />
<br />
Get the version of vim with colour syntax highlighting:<br />
<br />
sudo apt-get install vim <br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Suspending ===<br />
<br />
<br />
<br />
=== VGA out ===<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38595Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T13:31:20Z<p>Linuxrulez: /* Change the KDE menu back to classic mode */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Keyboard illumination key (Fn+PgUp)<br />
* Everything not listed below :)<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Screen Brightness controls (Fn+Home,Fn+End)<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* VGA out<br />
* Integrated fingerprint reader<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that.<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style". You might need to unlock the widgets on the panel first.<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Suspending ===<br />
<br />
<br />
<br />
=== VGA out ===<br />
<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38594Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T13:13:00Z<p>Linuxrulez: /* Fonts */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Keyboard illumination key (Fn+PgUp)<br />
* Everything not listed below :)<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Screen Brightness controls (Fn+Home,Fn+End)<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* VGA out<br />
* Integrated fingerprint reader<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that.<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style".<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
Now restart KDE to see the difference.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Suspending ===<br />
<br />
<br />
<br />
=== VGA out ===<br />
<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38593Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T13:09:31Z<p>Linuxrulez: /* Fonts */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Keyboard illumination key (Fn+PgUp)<br />
* Everything not listed below :)<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Screen Brightness controls (Fn+Home,Fn+End)<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* VGA out<br />
* Integrated fingerprint reader<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that.<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style".<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, set all fonts to Tahoma 8 point (except fixed font = Courier New 8 point) and set "Use-antialiasing"=disabled, "Force Fonts DPI"=96 DPI (the LCD is actually 106x105 DPI, but at small sizes the number of pixels available for each character has a significant effect on the rendering -- Tahoma 8 looks good<br />
at 96 DPI).<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux] and this<br />
[http://lists.pcbsd.org/pipermail/testing/2007-April/000038.html font discussion].<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Suspending ===<br />
<br />
<br />
<br />
=== VGA out ===<br />
<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38591Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T12:03:49Z<p>Linuxrulez: /* KDE 4.1 repository */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Keyboard illumination key (Fn+PgUp)<br />
* Everything not listed below :)<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Screen Brightness controls (Fn+Home,Fn+End)<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* VGA out<br />
* Integrated fingerprint reader<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that.<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Install kdeplasma-addons<br />
<br />
sudo apt-get install kdeplasma-addons<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style".<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, select the best fonts and reduce the size to say 8 point and set "Use-antialiasing"=disabled, "Force Fonts DPI"=disabled.<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux].<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Suspending ===<br />
<br />
<br />
<br />
=== VGA out ===<br />
<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38590Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T11:59:05Z<p>Linuxrulez: /* KDE 4.1 repository */</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Keyboard illumination key (Fn+PgUp)<br />
* Everything not listed below :)<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Screen Brightness controls (Fn+Home,Fn+End)<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* VGA out<br />
* Integrated fingerprint reader<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that.<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type <br />
<br />
sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop<br />
<br />
and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Upgrade all other software to the latest version with apt-get or adept-manager.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style".<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, select the best fonts and reduce the size to say 8 point and set "Use-antialiasing"=disabled, "Force Fonts DPI"=disabled.<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux].<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Suspending ===<br />
<br />
<br />
<br />
=== VGA out ===<br />
<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu8.04_KDE_4.1_remix_on_a_ThinkPad_X60s&diff=38589Installing Kubuntu8.04 KDE 4.1 remix on a ThinkPad X60s2008-08-15T11:53:14Z<p>Linuxrulez: â†Created page with '= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s = == Summary == === What works out of the box === * Graphics card incl 3D acceleration * Wifi (incl with...'</p>
<hr />
<div>= Installation of Kubuntu 8.04 KDE 4.1 remix on a ThinkPad X60s =<br />
<br />
== Summary ==<br />
<br />
=== What works out of the box ===<br />
<br />
* Graphics card incl 3D acceleration<br />
* Wifi (incl with KNetworkManager)<br />
* Suspend to RAM<br />
* CPU scaling<br />
* Sound<br />
* Volume and mute keys (but no visual feedback)<br />
* Keyboard illumination key (Fn+PgUp)<br />
* Everything not listed below :)<br />
<br />
=== What needs to be fixed ===<br />
<br />
* Hibernate / Suspend to DISK<br />
* Screen Brightness controls (Fn+Home,Fn+End)<br />
<br />
=== What has not yet been tested ===<br />
<br />
* Modem<br />
* TPM<br />
* PCMCIA<br />
* VGA out<br />
* Integrated fingerprint reader<br />
<br />
== Installation ==<br />
<br />
Back up everything you don't want to lose. <br />
<br />
Update the BIOS if you're comfortable with doing that.<br />
<br />
Installation was done from a USB CD/DVD drive from the Kubuntu 8.04 Live CD (KDE 4 remix) from [http://www.kubuntu.org kubuntu.org]. You can do the partitioning using the live CD (there is an auto or manual partitioning tool in the installer, but you could also use fdisk or QTparted also). In particular take care if you want to keep the preinstalled Windows XP and Windows recovery partitions (or blow them away if you don't -- feels good doesn't it?). In any case you need to reduce the size of the Windows XP partition (perhaps to zero) to free some space, and create new partitions for Kubuntu and a swap partition (at least as large as the installed RAM so that suspend to disk can work). Previously the laptop had been booted into Windows so the FAT32 partition would get converted into NTFS.<br />
<br />
== Fixes after installation ==<br />
<br />
=== KDE 4.1 repository === <br />
<br />
The KDE 4 remix cd gives you KDE 4.0, but KDE 4.1 is considerably better, so change this right away:<br />
<br />
Add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" to the file /etc/apt/sources.list. <br />
Then type <br />
<br />
sudo apt-get update && sudo apt-get dist-upgrade<br />
<br />
and answer the questions in which you are prompted. If you do not have kubuntu-kde4-desktop installed, simply type sudo apt-get update && sudo apt-get install kubuntu-kde4-desktop and answer the questions. Both of these options are to be typed at the command prompt.<br />
<br />
Restart KDE for the improved KDE 4.1 desktop.<br />
<br />
Update all other software to the latest version.<br />
<br />
=== Change the KDE menu back to classic mode ===<br />
<br />
Make your life easier -- right click on the KDE menu icon and click "Switch to Classic Menu Style".<br />
<br />
=== Turn on desktop effects ===<br />
<br />
The X60s is capable of running the beautiful Kwin compositing effects, so<br />
in System Settings click Desktop then Desktop Effects / General tab click "Enable Desktop Effects".<br />
<br />
=== Fonts ===<br />
<br />
By default the fonts look good, but it's worth learning how to make them absolutely perfect. It's not hard. The X60s is capable of displaying pin-sharp fonts, so don't accept any fuzzy antialiasing.<br />
<br />
In System Settings/Font Installer you may want to install the true-type fonts from your Windows partition in the Fonts directory (do it system wide with the Administrator mode).<br />
<br />
Then in System Settings/Appearance/Fonts, select the best fonts and reduce the size to say 8 point and set "Use-antialiasing"=disabled, "Force Fonts DPI"=disabled.<br />
<br />
In Konqueror choose the best TT fonts in Settings/Configure Konqueror, and set minimum font size=7, medium font size=8.<br />
<br />
See also [http://tldp.org/HOWTO/html_single/Font-HOWTO/ Optimal Use of Fonts on Linux].<br />
<br />
=== Sound ===<br />
<br />
In System Settings / Sound move the AD198x Digital #1 output up to the top preference for the sound outputs if necessary.<br />
<br />
=== Suspending ===<br />
<br />
<br />
<br />
=== VGA out ===<br />
<br />
<br />
=External Sources=<br />
<br />
[[Category:X60s]]<br />
[[Category:Kubuntu]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installation_instructions_for_the_ThinkPad_X60s&diff=38588Installation instructions for the ThinkPad X60s2008-08-15T10:27:18Z<p>Linuxrulez: /* Distro specific instructions */</p>
<hr />
<div>Specific installation notes for the ThinkPad {{X60s}}.<br />
<br />
==General Notes==<br />
<br />
* [http://marc.herbert.free.fr/linux/win2linstall.html Install GNU/Linux without any CD, floppy, USB-key, nor any other removable media]<br />
<br />
* [[Installation_on_ThinkPads_without_CD-ROM_drive | Installation on ThinkPads without CD-ROM drive]]<br />
<br />
==Distro specific instructions==<br />
<br />
*{{Install|Ubuntu| 6.06 Flight 6|X60s}}<br />
<br />
*{{Install|SUSE| 10.1|X60s}}<br />
<br />
*[[Installing_Gentoo_on_a_Thinkpad_x60s|Installation]] of [[:Category:Gentoo|Gentoo]] on a ThinkPad {{X60s}}<br />
<br />
*{{Install|Ubuntu| 6.10 |X60s}}<br />
<br />
*{{Install|Kubuntu| 6.10 |X60s}}<br />
<br />
*{{Install|Kubuntu| 6.10 |X60s_2}}<br />
<br />
*[[Installing Debian Etch (Kernel 2.6.20.1) on a Thinkpad x60s|Installation]] of [[:Category:Debian|Debian]] on a ThinkPad {{X60s}}<br />
<br />
*[[Installing Debian Etch (Kernel 2.6.18) on a Thinkpad x60s|Installation]] of [[:Category:Debian|Debian]] on a ThinkPad {{X60s}} (use kernel from Etch)<br />
<br />
*[[Installing Ubuntu 7.04 on a ThinkPad X60s without external drive|Installation]] of [[:Category:Ubuntu|Ubuntu]] 7.04 on a [[:Category:X60s|X60s]] without using an external drive<br />
<br />
*{{Install|Xubuntu| 7.04 |X60s}}, no external drives, and with dual boot to Windows XP<br />
<br />
*{{Install|Kubuntu|8.04 KDE 4.1 remix|X60s}}<br />
<br />
==External Sources==<br />
<br />
*[http://benzipperer.info/installing-ubuntu-feisty-7-04-thinkpad-x60s Installing Ubuntu 7.04 on a ThinkPad X60s]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu_6.10_on_a_ThinkPad_X60s_2&diff=32478Installing Kubuntu 6.10 on a ThinkPad X60s 22007-08-26T13:08:02Z<p>Linuxrulez: /* acpi-support */</p>
<hr />
<div>= Installation of Kubuntu 6.10 on a ThinkPad X60s (model 1704-5UG) =<br />
<br />
== Functional out of the box ==<br />
<br />
With updates to 2007-01-12:<br />
<br />
* Sound and mixer<br />
* Graphics adapter and accelerator (Intel GMA 950)<br />
* USB<br />
* Lid switch (LCD off when lid closed)<br />
* Volume control keys, keyboard light<br />
* LCD brightness auto-adjusts depending on AC or battery operation<br />
* Fn buttons generate ACPI events (/var/log/acpid)<br />
* CPU frequency scaling (both cores)<br />
* ACPI battery, thermal 1 and 2, ac<br />
* Suspend to memory (though not with button) and resume<br />
* Suspend to disk, "hibernate" (though not with button) and resume<br />
* SD card station (SDIO not tested)<br />
* Cable ethernet (e1000)<br />
* WiFi (Intel 3945ABG) with WEP (WPA not tested)<br />
* Bluetooth<br />
* Radio enable/disable (Fn+F5) for both WiFi and bluetooth<br />
<br />
== Broken/suboptimal out of the box ==<br />
<br />
=== Brightness control ===<br />
<br />
Blanks X, and stays blank until X is restarted, if you increase brightness with Fn+Home. <br />
Brightness controlled by dialog windows doesn't cause this.<br />
<br />
The [http://www.mail-archive.com/ibm-acpi-devel@lists.sourceforge.net/msg00092.html workaround] is to disable video.o<br />
<br />
echo blacklist video | sudo tee -a /etc/modprobe.d/local<br />
<br />
After doing that, there's a 1 second lag between pressing the key, and the actual change in brightness until you reboot.<br />
<br />
=== acpi-support ===<br />
<br />
in /etc/default/acpi-support<br />
* Enable laptop-mode (/proc/sys/vm/laptop-mode): ENABLE_LAPTOP_MODE='''true'''<br />
<br />
/etc/init.d/acpi-support restart<br />
<br />
* on Feisty, Ubuntu 7.04, (probably Edgy too) wifi did not restart properly after hibernate or suspend and sound did not restart properly after hibernate. In /etc/default/acpi-support set '''MODULES="ipw3945"''' for wifi and '''HIBERNATE_MODE=platform''' for sound.<br />
<br />
See<br />
https://bugs.launchpad.net/ubuntu/+source/acpi/+bug/66266<br />
and <br />
https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.20/+bug/80893<br />
<br />
=== Fn+F4 and Fn+F12 suspend ===<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
Now the hotkeys work. Yay!<br />
<br />
=== Slow boot ===<br />
<br />
Ubuntu wants to DHCP on all network interfaces by default, which causes a long delay in booting up. This can be resolved by removing the "auto" lines for all interfaces that you don't use, in /etc/network/interfaces.<br />
<br />
By default, Grub on Ubuntu waits 10 seconds before starting Linux. I set it to 1 in /boot/grub/menu.lst<br />
<br />
To enable concurrency during boot up, set CONCURRENCY='''shell''' in /etc/init.d/rc ([http://tvease.net/wiki/index.php?title=Tweak_ubuntu_for_speed source]).<br />
<br />
== Fingerprint reader ==<br />
<br />
Works. See [[How to enable the fingerprint reader]].<br />
<br />
[[Category:X60s]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu_6.10_on_a_ThinkPad_X60s_2&diff=32476Installing Kubuntu 6.10 on a ThinkPad X60s 22007-08-26T12:46:43Z<p>Linuxrulez: /* acpi-support */</p>
<hr />
<div>= Installation of Kubuntu 6.10 on a ThinkPad X60s (model 1704-5UG) =<br />
<br />
== Functional out of the box ==<br />
<br />
With updates to 2007-01-12:<br />
<br />
* Sound and mixer<br />
* Graphics adapter and accelerator (Intel GMA 950)<br />
* USB<br />
* Lid switch (LCD off when lid closed)<br />
* Volume control keys, keyboard light<br />
* LCD brightness auto-adjusts depending on AC or battery operation<br />
* Fn buttons generate ACPI events (/var/log/acpid)<br />
* CPU frequency scaling (both cores)<br />
* ACPI battery, thermal 1 and 2, ac<br />
* Suspend to memory (though not with button) and resume<br />
* Suspend to disk, "hibernate" (though not with button) and resume<br />
* SD card station (SDIO not tested)<br />
* Cable ethernet (e1000)<br />
* WiFi (Intel 3945ABG) with WEP (WPA not tested)<br />
* Bluetooth<br />
* Radio enable/disable (Fn+F5) for both WiFi and bluetooth<br />
<br />
== Broken/suboptimal out of the box ==<br />
<br />
=== Brightness control ===<br />
<br />
Blanks X, and stays blank until X is restarted, if you increase brightness with Fn+Home. <br />
Brightness controlled by dialog windows doesn't cause this.<br />
<br />
The [http://www.mail-archive.com/ibm-acpi-devel@lists.sourceforge.net/msg00092.html workaround] is to disable video.o<br />
<br />
echo blacklist video | sudo tee -a /etc/modprobe.d/local<br />
<br />
After doing that, there's a 1 second lag between pressing the key, and the actual change in brightness until you reboot.<br />
<br />
=== acpi-support ===<br />
<br />
in /etc/default/acpi-support<br />
* Enable laptop-mode (/proc/sys/vm/laptop-mode): ENABLE_LAPTOP_MODE='''true'''<br />
<br />
/etc/init.d/acpi-support restart<br />
<br />
* on Feisty, Ubuntu 7.04, (probably Edgy too) wifi did not restart properly after hibernate or suspend and sound did not restart properly after hibernate. In /etc/default/acpi-support set '''MODULES="ipw3945"''' for wifi and '''HIBERNATE_MODE=platform''' for sound.<br />
<br />
=== Fn+F4 and Fn+F12 suspend ===<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
Now the hotkeys work. Yay!<br />
<br />
=== Slow boot ===<br />
<br />
Ubuntu wants to DHCP on all network interfaces by default, which causes a long delay in booting up. This can be resolved by removing the "auto" lines for all interfaces that you don't use, in /etc/network/interfaces.<br />
<br />
By default, Grub on Ubuntu waits 10 seconds before starting Linux. I set it to 1 in /boot/grub/menu.lst<br />
<br />
To enable concurrency during boot up, set CONCURRENCY='''shell''' in /etc/init.d/rc ([http://tvease.net/wiki/index.php?title=Tweak_ubuntu_for_speed source]).<br />
<br />
== Fingerprint reader ==<br />
<br />
Works. See [[How to enable the fingerprint reader]].<br />
<br />
[[Category:X60s]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installing_Kubuntu_6.10_on_a_ThinkPad_X60s_2&diff=32475Installing Kubuntu 6.10 on a ThinkPad X60s 22007-08-26T12:45:40Z<p>Linuxrulez: /* acpi-support */</p>
<hr />
<div>= Installation of Kubuntu 6.10 on a ThinkPad X60s (model 1704-5UG) =<br />
<br />
== Functional out of the box ==<br />
<br />
With updates to 2007-01-12:<br />
<br />
* Sound and mixer<br />
* Graphics adapter and accelerator (Intel GMA 950)<br />
* USB<br />
* Lid switch (LCD off when lid closed)<br />
* Volume control keys, keyboard light<br />
* LCD brightness auto-adjusts depending on AC or battery operation<br />
* Fn buttons generate ACPI events (/var/log/acpid)<br />
* CPU frequency scaling (both cores)<br />
* ACPI battery, thermal 1 and 2, ac<br />
* Suspend to memory (though not with button) and resume<br />
* Suspend to disk, "hibernate" (though not with button) and resume<br />
* SD card station (SDIO not tested)<br />
* Cable ethernet (e1000)<br />
* WiFi (Intel 3945ABG) with WEP (WPA not tested)<br />
* Bluetooth<br />
* Radio enable/disable (Fn+F5) for both WiFi and bluetooth<br />
<br />
== Broken/suboptimal out of the box ==<br />
<br />
=== Brightness control ===<br />
<br />
Blanks X, and stays blank until X is restarted, if you increase brightness with Fn+Home. <br />
Brightness controlled by dialog windows doesn't cause this.<br />
<br />
The [http://www.mail-archive.com/ibm-acpi-devel@lists.sourceforge.net/msg00092.html workaround] is to disable video.o<br />
<br />
echo blacklist video | sudo tee -a /etc/modprobe.d/local<br />
<br />
After doing that, there's a 1 second lag between pressing the key, and the actual change in brightness until you reboot.<br />
<br />
=== acpi-support ===<br />
<br />
in /etc/default/acpi-support<br />
* Enable laptop-mode (/proc/sys/vm/laptop-mode): ENABLE_LAPTOP_MODE='''true'''<br />
<br />
/etc/init.d/acpi-support restart<br />
<br />
* on Feisty, Ubuntu 7.04, (probably Edgy too) wifi did not restart properly after hibernate or suspend and sound did not restart properly after hibernate. In /etc/default/acpi-support set MODULES='''ipw3945''' for wifi and HIBERNATE_MODE=platform for sound.<br />
<br />
=== Fn+F4 and Fn+F12 suspend ===<br />
<br />
cd /etc/acpi<br />
sudo mv sleepbtn.sh{,.orig}<br />
sudo mv hibernatebtn.sh{,.orig}<br />
sudo ln -s sleep{,btn}.sh<br />
sudo ln -s hibernate{,btn}.sh<br />
<br />
Now the hotkeys work. Yay!<br />
<br />
=== Slow boot ===<br />
<br />
Ubuntu wants to DHCP on all network interfaces by default, which causes a long delay in booting up. This can be resolved by removing the "auto" lines for all interfaces that you don't use, in /etc/network/interfaces.<br />
<br />
By default, Grub on Ubuntu waits 10 seconds before starting Linux. I set it to 1 in /boot/grub/menu.lst<br />
<br />
To enable concurrency during boot up, set CONCURRENCY='''shell''' in /etc/init.d/rc ([http://tvease.net/wiki/index.php?title=Tweak_ubuntu_for_speed source]).<br />
<br />
== Fingerprint reader ==<br />
<br />
Works. See [[How to enable the fingerprint reader]].<br />
<br />
[[Category:X60s]]</div>Linuxrulezhttps://www.thinkwiki.org/w/index.php?title=Installation_instructions_for_the_ThinkPad_X60s&diff=30375Installation instructions for the ThinkPad X60s2007-06-09T10:11:19Z<p>Linuxrulez: /* Distro specific instructions */</p>
<hr />
<div>Specific installation notes for the ThinkPad {{X60s}}.<br />
<br />
==General Notes==<br />
<br />
* [http://marc.herbert.free.fr/linux/win2linstall.html Install GNU/Linux without any CD, floppy, USB-key, nor any other removable media]<br />
<br />
==Distro specific instructions==<br />
<br />
*{{Install|Ubuntu| 6.06 Flight 6|X60s}}<br />
<br />
*{{Install|SUSE| 10.1|X60s}}<br />
<br />
*[[Installing_Gentoo_on_a_Thinkpad_x60s|Installation]] of [[:Category:Gentoo|Gentoo]] on a ThinkPad {{X60s}}<br />
<br />
*{{Install|Ubuntu| 6.10 |X60s}}<br />
<br />
*{{Install|Kubuntu| 6.10 |X60s}}<br />
<br />
*{{Install|Kubuntu| 6.10 |X60s_2}}<br />
<br />
*[[Installing Debian Etch (Kernel 2.6.20.1) on a Thinkpad x60s|Installation]] of [[:Category:Debian|Debian]] on a ThinkPad {{X60s}}<br />
<br />
*[[Installing Ubuntu 7.04 on a ThinkPad X60s without external drive|Installation]] of [[:Category:Ubuntu|Ubuntu]] 7.04 on a [[:Category:X60s|X60s]] without using an external drive<br />
<br />
*{{Install|Xubuntu| 7.04 |X60s}}, no external drives, and with dual boot to Windows XP<br />
<br />
==External Sources==</div>Linuxrulez