Thanks to everybody who answered my questions; I've got it working.
This mailing list seems to reject emails with executable attachments,
so I had to convert it to a .txt file before attaching the script to
this post.  Instructions for making it runnable...
1) gunzip or zcat the attachment to extract cpugov.txt
2) rename it to cpugov
3) insert the line...

#!/bin/bash

...as the first line at the top of the file
4) chmod 755 cpugov
5) move it to /usr/local/bin or other appropriate subdirectory

  The script understands 2 options...
cpugov list
cpugov set

  The "list" option can be run by an ordinary user.  It lists available
options.

  The "set" option needs to write to /sys pseudo-file space, and
therefore requires root or su/sudo permissions.  It lists available
options, and waits for you to enter a number and hit <ENTER> to select
that option.

  If the current governor is "userspace", available speeds will be
listed as well.  If you don't see speeds listed, you need to first...

cpugov set

...and select the number corresponding to "userspace".  Then run cpugov
again.  I don't see a major need for specific speed selection, but I
included it for completeness.  The governors should handle your needs as
follows...

* powersave - runs CPUs at slowest speeds for longest battery life

* performance - runs CPUs at maximum speeds.  Work gets done faster
  but the battery discharges faster, too.

* conservative - this is the recommended governor.  It gradually adjusts
  speeds to match workload

  For completeness, the remaining 2 governors are...

* ondemand - similar to conservative, but reacts faster.

* userspace - you're in charge.  You get to pick-n-choose the speeds you
  want when you want them.

-- 
Walter Dnes <waltd...@waltdnes.org>
I don't run "desktop environments"; I run useful applications

Attachment: cpugov.txt.gz
Description: Binary data

Reply via email to