[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CPU fan control

Paolo <oopla@users.sf.net> wrote:
> perhaps you'r just missing the redirect operator '>':
> # sudo echo "105:100:100:78:70:60:50" > /proc/acpi/thermal_zone/TZ0/trip_points

That won't work.

> assuming, of course, that you're running as a user who has permisson to run
> sudo <whatever>

sudo is only running the "echo stuff" part. Your shell is doing the
redirection as the current user, so if the current user doesn't have
write access to the destination file, it won't work. Try it.

What you want is something more like this:

sudo sh -c "echo '105:100:100:78:70:60:50' > /proc/acpi/thermal_zone/TZ0/trip_points"

Be careful of the quoting.
Sam Couter         |  mailto:sam@couter.id.au
                   |  jabber:sam@teknohaus.dyndns.org
OpenPGP fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C

Attachment: signature.asc
Description: Digital signature

Reply to: