boot=sata.iThis will load a kernel with SATA support. This is needed as the Z60 uses a SATA disk. The confusing bit is, that with the used Slackware kernel, the disk first presents itself as /dev/hda instead of /dev/sda. This is due to some sort of compatibility mode. It also means the installation is quite slow as DMA is not enabled.
14:02.0 Network controller: Intel Corporation PRO/Wireless 2915ABG MiniPCI Adapter (rev 05)The kernel config makes the driver as a module, check with lsmod and if not available modprobe ipw2200.
X -configureThis will generate a new config file /root/xorg.conf.new. Copy the file to the /etc/X11 directory.
SubSection "Display" Viewport 0 0 Depth 24 Modes "1280x800" EndSubSectionI added the Modes "1280x800" line. Or you can download my xorg.conf file here.
cd /usr/X11/lib/fonts mkfontscale TTF mkfontdir TTF mkfontdir -e encodings
Option "Protocol" "ImPS/2" Option "ZAxisMapping" "4 5"and disable Protocol "auto".
#!/bin/sh
case "$1" in
start)
echo "start"
echo enabled > /proc/acpi/ibm/bluetooth
modprobe hci_usb
pid=`pidof hcid`
if [ $? -ne 0 ]; then
logger -t rc.bluetooth "LOW: starting hcid"
/usr/sbin/hcid
fi
pid=`pidof sdpd`
if [ $? -ne 0 ]; then
logger -t rc.bluetooth "LOW: starting sdpd"
/usr/sbin/sdpd
fi
;;
stop)
echo "stop"
echo disabled > /proc/acpi/ibm/bluetooth
sleep 1s
pid=`pidof hcid`
if [ $? -eq 0 ]; then
killall hcid
fi
pid=`pidof sdpd`
if [ $? -eq 0 ]; then
killall sdpd
fi
modprobe -r hci_usb
;;
esac
echo "mem" > /sys/power/stateThe machine suspends. Make sure that all relevant USB device modules are unloaded from the kernel first. When you are using text mode, some extras are needed to get the text mode correctly running after resume. First the console number should be saved before suspend (use fgconsole) and after resume first post the videocard using vbetool post. This will mess up the console a bit, so switch back and forth and plugin the USB device modules. I've implemented this in the following pre_sleep and post_sleep bash functions:
pre_sleep(){
# first sync hard drive
sync
# save the clock
/sbin/hwclock --systohc
# stop bluetooth
/etc/rc.d/rc.bluetooth stop
# unplug USB kernel mods
modprobe -r uhci_hcd
modprobe -r ehci_hcd
# save console
CONSOLE=`fgconsole`
chvt 12
# and log
logger -t acpi_handler "LOW: console $CONSOLE"
}
post_sleep() {
#restore clock
/sbin/hwclock --adjust
/sbin/hwclock --hctosys
# Post the video card
vbetool post
# switch console a few times
chvt $CONSOLE
chvt 12
chvt $CONSOLE
# plugin the USB devices
modprobe uhci_hcd
modprobe ehci_hcd
# start bluetooth
/etc/rc.d/rc.bluetooth start
}
You can find my complete acpi_handler.sh here.
If you replace the existing /etc/acpi_handler.sh by this one you should be
ok.
Last the modules I used to control power usage and the CPU governer. Just add the following lines to the /etc/rc.d/rc.modules file:
/sbin/modprobe battery /sbin/modprobe ac /sbin/modprobe fan /sbin/modprobe thermal /sbin/modprobe ibm_acpi /sbin/modprobe cpufreq_conservative /sbin/modprobe speedstep_centrino /sbin/modprobe cpufreq_statsI added the following to the /etc/rc.d/rc.local script to activate the frequency scaling governor:
# enable cpu frequency scaling to lower power consumption echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
monitoraspect=16:9
#!/bin/bash export SSH_ASKPASS="/usr/local/bin/gtk-led-askpass" eval `/usr/bin/ssh-agent -s` && /usr/bin/ssh-addMake sure the script is executable. You will need the gtk-led-askpass util that you can find here. Install it (after compiling) in /usr/local/bin/ or somewhere else, but then you have to adept the script accordingly.