xfce-cpufreq plugin and upgrades

Ralf Mardorf ralf.mardorf at alice-dsl.net
Tue Oct 23 08:58:24 UTC 2012


IMO frequency scaling should be set to performance by the script to
start an audio session [1], resp. by the session manager.

That reminds me of the "sh" issue. By default it links to dash:
[spinymouse at archlinux ~]$ ls /run/media/spinymouse/qrc/bin/sh -l 
lrwxrwxrwx 1 root root 4 Oct 13 22:24 /run/media/spinymouse/qrc/bin/sh
-> dash

This can be reconfigured by "sudo dpkg-reconfigure dash", I didn't do it
until now. Note that the shebang doesn't solve the issue, I need to
start the scripts with "bash" instead of "sh" (unimportant for the
example below, that should run in dash too, not tested).

However, default nowadays usually is a link to bash, Ubunbtu Studio IMO
should link to bash to, otherwise "averaged" "modern" scripts can't be
run using sh.

Regards,
Ralf

[1]
#!/bin/bash
# bash cpu-p

cpupower frequency-info -p | grep performance
if [ $? -eq 0 ] ; then
 echo "CPU frequency scaling governor is \"performance\"."
else
 echo "Switching CPU frequency scaling governor to \"performance\"."
 sudo cpupower frequency-set -g performance
fi

exit 0




More information about the Ubuntu-Studio-devel mailing list