Archive

Archive for November, 2008

Intrepid Ibex Key Repeat Bug

November 4th, 2008 1 comment

The suggested workaround from Ubuntu bug # 264196 solves the problem on my Thinkpad T60p:

go to System > Preferences > Keyboard > General

The controls under Repeat Keys are failing to properly adjust the timing of how fast keys are repeated when held down.

I filed under gnome, but a person there thinks its an xorg bug in ubuntu: https://bugzilla.gnome.org show_bug.cgi?id=550242 It has become quite clear that this is a problem with the xorg-evdev driver, and intrepids new hotplug architecture.

Here is a workaround for this:

Temporarily add the following to your xorg.conf:
Section “ServerFlags”
Option “AutoAddDevices” “off”
EndSection

Restart X, and you will be able to change the settings. Once changed, you can remove those lines from your xorg.conf (which is recommended since setting AutoAddDevices to off can interfere with your keyboard)

Categories: Uncategorized Tags:

Some hdparm Examples

November 3rd, 2008 3 comments

Be very careful using hdparm – you can easily ruin your harddrive.

Examples:
hdparm -I /dev/sda — print disk information and current settings
*hdparm -B 128 /dev/sda — set power management to “medium”
*hdparm -B 128 /dev/sda — set power management to “disabled”
hdparm -M 128 /dev/sda — set acoustic management to “quiet”
hdparm -M 254 /dev/sda — set acoustic management to “fast”
hdparm -S 120 /dev/sdb — set 2nd disks standby timeout to 10min
hdparm -y /dev/sdb — set 2nd disk to standby mode
hdparm -t /dev/sda — perform disk read timings
hdparm –security-freeze /dev/sda — Freeze security settings

*Please note: based on Joost’s comment below, it is clear that either the “medium” or “disabled” parameter must be wrong, since they are identical.

Categories: Uncategorized Tags:

Working Fix for Ubuntu Load_Cycle_Count Problem

November 3rd, 2008 No comments

## Adapted from https://en.opensuse.org/Disk_Power_Management
##
## Create a configuration file named “disk” to manage disk power management:
gksudo gedit /etc/pm/config.d/disk

## Copy and paste the following into “disk”
# Configure disk power management settings to ensure both
# long disk life and good power management.
#
# Space delimited list of disk devices this affects.
#
DEVICES_DISK_PM_NAMES=”/dev/sda”
#
#
# Power management modes
#
# Powersave mode off
#  Disable APM and spin-down
#
DEVICES_DISK_PM_POWERSAVE_OFF=”hdparm -q -B 255 -q -S 0″
#
# Powersave mode on
# Enable APM to aggressive 128 and set spin-down for 21 minutes
#
DEVICES_DISK_PM_POWERSAVE_ON=”hdparm -q -B 128 -q -S 252″

## Next create the power management script “disk.sh”
gksudo gedit /etc/pm/power.d/disk.sh

## Copy and paste the following into “disk.sh”
#!/bin/bash
. /usr/lib/pm-utils/functions
. /etc/pm/config.d/disk

if test -z “${DEVICES_DISK_PM_NAMES}”; then
exit 1
fi

case “$1” in
true)
echo “**enabled pm for harddisk”
for DISK_NAME in `echo ${DEVICES_DISK_PM_NAMES}`; do
${DEVICES_DISK_PM_POWERSAVE_ON} ${DISK_NAME}
done ;;
false)
echo “**disabled pm for harddisk”
for DISK_NAME in `echo ${DEVICES_DISK_PM_NAMES}`; do
${DEVICES_DISK_PM_POWERSAVE_OFF} ${DISK_NAME}
done ;;
esac

## Save disk.sh, close, and make it executable
sudo chmod +x /etc/pm/power.d/disk.sh

Categories: Uncategorized Tags: