Friday, 28 January 2011

Installing Gentoo on Dell Latitude X1 (2011) part4

Also check CrunchBang on Dell Latitude X1, distro I am using today!

At this point I become getting annoyed my the terrible high pitched sound.
This is all because of the AC power management. The way to do it is to remove certain states from sleep options.

First Get the ACPI management.

# emerge acpid

Then create /etc/init.d/limit-sleep-states
#!/sbin/runscript

depend() {
need acpid
}

start() {
ebegin "Limiting CPU sleep state to C${LIMIT_CSTATE}"
echo $LIMIT_CSTATE > /sys/module/processor/parameters/max_cstate
eend $?
}

stop() {
ebegin "Removing CPU sleep state limit"
echo $REMOVE_CSTATE > /sys/module/processor/parameters/max_cstate
eend $?
}

and /etc/conf.d/limit-sleep-states

LIMIT_CSTATE=2
REMOVE_CSTATE=8

Make sure that this gets started after boot:
# rc-update add limit-sleep-states default

Reboot. Voila! Laptop stopped beeping.

Next thing is the way to "touchy" touchpad. I can literally just hang my finger above it and cursor starts dancing.
I find that there is a very good manual in gentoo wiki describing basic installation, and it helps alleviate the problem.

To get sound working I run:

# alsaconf (intel8x0)
# rc-update add alsasound boot

No comments:

Post a Comment

Real Time Web Analytics