[Bug 633612] [NEW] Overheats shutting off toshiba

Launchpad Bug Tracker 633612 at bugs.launchpad.net
Mon Oct 25 04:56:03 UTC 2010


You have been subscribed to a public bug:

Fan used to spin up in prior version of Ubuntu, but only stays one speed
and have had overheating problems since Intrepid.

Have to have powersave governor in use to prevent overheats and sudden
kills.

powersaved gone, can't throttle. Not sure what is replacing it that can
be done in userspace(which I prefer)

Found cpufrequency-selector which sets governor, but not throttle.

Wrote:

#! /bin/bash
#

#if ! type promptYesNo > /dev/null 2>&1 ; then .
/home/woodnt/scripts/misc.sh ; fi

SPEED=$1

for i in 0 1; do
	cpufreq-selector -c $i -g $SPEED
done

which allows in userspace. Miss powersaved, though where I wrote:

#! /bin/bash
#
#TODO make error checking for arguments

. /home/woodnt/scripts/misc.sh

LEVELS=$((`powersave get-brightness-levels -L|awk '{ print $4 }'|sed 's/\.//'` - 1))
LEVEL=-1

USAGE="
_____________________________________________

throttle [-d DIGIT|u|d]

-d	DIGIT is a number between zero and 
	$LEVELS or \"u\" for level up or 
	\"d\" for level down
_____________________________________________

"

checkLevel () {
LEVEL="$1"
while : ; do
	# Check to see if it is a number and if so between 0 and upper level and if so return
	if [ -n "$(echo "$LEVEL" | sed -n '/[0-9][0-9]*/p')" ] ; then
		if (( $LEVEL >= 0 && $LEVEL <= $LEVELS )) ; then
			#LEVEL="$1"
			return
		fi
	
	# Check to see if level is either u or d and if so return
	elif [ "$LEVEL" = "u" -o "$LEVEL" = "d" ] ; then
		#LEVEL="$1"
		return
	fi

	clear
	promptQuestion "
___________________________________________________

Level must be between 0 and $LEVELS or

either \"u\" for up or \"d\" for down\n\nPlease enter new level: "
	LEVEL="$ANSWER"
done
}

if [ "$#" = 0 ] ; then echoWhere -k -H 400 -W 600 "$USAGE" ; exit ; fi

case "$1" in
	level)		echoWhere "$(powersave --get-brightness -K)"
			exit ;;
	throttle)	echoWhere "$(powersave --get-throttling-info -t)"
			exit ;;
	fast)		echoWhere "$(powersave --performance-speed -f)"
			exit ;;
	slow)		echoWhere "$(powersave --powersave-speed -l)"
			exit ;;
	ondemand)	echoWhere "$(powersave --dynamic-speed -A)"
			exit ;;
esac

while getopts d:h OPT ; do
	case $OPT in
		d)	checkLevel "$OPTARG"
			ARG="set-brightness -k  $LEVEL" ;;
		\?|h)	echoWhere "$USAGE" ; exit ;;
	esac
done
if [ -n "$ARG" ] ; then
	powersave $ARG
else
	echoWhere "$USAGE"
fi
exit

Will include hardinfo report and once bug number generated, apport-
collect

With thanks,
Narnie

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: kernel-therm
-- 
Overheats shutting off toshiba
https://bugs.edge.launchpad.net/bugs/633612
You received this bug notification because you are a member of Kernel Bugs, which is subscribed to linux in ubuntu.




More information about the kernel-bugs mailing list