2016-10-09

Scale CPU frequency

Required tools:
cpupower
And all that it needs.

Then the scaling policy can be changed by e.g.:
sudo cpupower frequency-set -g powersave
CPU speed governors are:
powersave
performance
ondemand
conservative

See the links below for more information.

What I installed to do that is:
sudo apt-get install linux-tools-generic linux-cloud-tools-generic
sudo apt-get install cpufrequtils
sudo apt-get install linux-tools-common
sudo apt-get install linux-tools-generic linux-cloud-tools-generic
sudo apt-get install linux-tools-4.2.0-35-generic linux-cloud-tools-4.2.0-35-generic

Sources:
https://wiki.archlinux.org/index.php/CPU_frequency_scaling#Scaling_governors
https://wiki.ubuntuusers.de/Prozessortaktung/

2016-10-03

Restart wireless on kubuntu

Sometimes on my laptop I cant get any wifi to work... then I have to:

sudo service network-manager restart

Easy jpeg compression from command line

An tool to easily compress jpegs to a target filesize is:

jpegoptim --size=250k tecmint.jpeg
If not installed, do this:

sudo apt-get install jpegoptim

Source:
http://www.tecmint.com/optimize-and-compress-jpeg-or-png-batch-images-linux-commandline/