Updated power savings settings for Samsung Series 9 (NP900X3C-A05UK) and Ubuntu 14.10

Here is my updated /etc/rc.local for Ubuntu 14.10 #!/bin/sh -e # Sleep so all services have started before we change settings sleep 5 # Set Intel Audio to power save echo ‘1’ > ‘/sys/module/snd_hda_intel/parameters/power_save’; # Temp disable ethernet port modprobe -r r8169 # Wireless Power Saving for interface wlan0 iw dev wlan0 set power_save on […]

Bash function to switch Java versions

setjava() { if [ “$1” = “-q” ]; then local quiet=true shift fi local jdk=~/Applications/Java/jdk1.$1 if [ ! -d “${jdk}” ]; then echo Jdk not found: ${jdk} return 1 fi export JAVA_HOME=${jdk} export PATH=${JAVA_HOME}/bin:${PATH} if [ -z “${quiet}” ]; then java -version fi } export -f setjava I have symlinks for all major versions of […]