View Full Version : [ubuntu] some things turned off at boot
linuxopjemac
November 4th, 2009, 02:50 PM
Can someone help me to turn bluetooth of at boot/login ? I don't want to have bluetooth on while running Ubuntu. Another thing is how to have the power settings to "powersave" at boot/login all the time. It now always goes to on demand. I have laptop mode enabled and I have the following code in /etc/laptop-mode/conf.d/cpufreq.conf
CONTROL_CPU_FREQUENCY=1
BATT_CPU_MAXFREQ=slowest
BATT_CPU_MINFREQ=slowest
BATT_CPU_GOVERNOR=powersafe
BATT_CPU_IGNORE_NICE_LOAD=1
LM_AC_CPU_MAXFREQ=fastest
LM_AC_CPU_MINFREQ=slowest
LM_AC_CPU_GOVERNOR=ondemand
LM_AC_CPU_IGNORE_NICE_LOAD=1
NOLM_AC_CPU_MAXFREQ=fastest
NOLM_AC_CPU_MINFREQ=slowest
NOLM_AC_CPU_GOVERNOR=ondemand
NOLM_AC_CPU_IGNORE_NICE_LOAD=0
Nikos.Alexandris
November 4th, 2009, 08:26 PM
Can someone help me to turn bluetooth of at boot/login ? I don't want to have bluetooth on while running Ubuntu. Another thing is how to have the power settings to "powersave" at boot/login all the time. It now always goes to on demand. I have laptop mode enabled and I have the following code in /etc/laptop-mode/conf.d/cpufreq.conf
CONTROL_CPU_FREQUENCY=1
BATT_CPU_MAXFREQ=slowest
BATT_CPU_MINFREQ=slowest
BATT_CPU_GOVERNOR=powersafe
BATT_CPU_IGNORE_NICE_LOAD=1
LM_AC_CPU_MAXFREQ=fastest
LM_AC_CPU_MINFREQ=slowest
LM_AC_CPU_GOVERNOR=ondemand
LM_AC_CPU_IGNORE_NICE_LOAD=1
NOLM_AC_CPU_MAXFREQ=fastest
NOLM_AC_CPU_MINFREQ=slowest
NOLM_AC_CPU_GOVERNOR=ondemand
NOLM_AC_CPU_IGNORE_NICE_LOAD=0
I want the same thing. How can we do it?
linuxopjemac
November 6th, 2009, 05:08 AM
bump
linuxopjemac
November 6th, 2009, 12:13 PM
To set it automatically for Intel Duo Core to preferred setting on startup, these lines should be added in /etc/rc.local
echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo powersave > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
done
exit 0
linuxopjemac
November 6th, 2009, 12:37 PM
to turn off bluetooth I simply made the bluetooth script in /etc/init.d not executable anymore
Nikos.Alexandris
November 8th, 2009, 05:31 PM
to turn off bluetooth I simply made the bluetooth script in /etc/init.d not executable anymore
And what if you want to turn it on? Is the icon still there? Can you still use it?
linuxopjemac
November 8th, 2009, 05:34 PM
the icon is there, it says bluetooth is disabled but I can still turn it off and on, so I don't really know what's going on there....
_mario_
November 9th, 2009, 09:07 AM
to turn off bluetooth or wifi, you might want to use the 'rfkill' command:
sudo rfkill block bluetooth
(or put this line without 'sudo' to /etc/rc.local if you like.)
aquavitae
November 9th, 2009, 09:15 AM
I'm not in ubuntu at the moment, but I seem to remember that there is an option under the system menu. I think that the menu item is called services and is under administration. It has a list of startup services (including bluetooth) which you can enable or disable with a tick box.
linuxopjemac
November 9th, 2009, 02:55 PM
there s only the bluetooth applet, probably not bluetooth itself
linuxopjemac
November 9th, 2009, 03:15 PM
@ _mario_ thank you very much for that tip, I added your line in /etc/rc.local and now I have powersave at boot and bluetooth turned off:
echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo powersave > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
rfkill block bluetooth
^_Pepe_^
November 10th, 2009, 07:06 PM
Thank you for the tip.
It worked like a charm to deactivate BT at startup. Only a consideration. rfkill only work in 'karmic' kernels 2.6.31.
I've tried to do it in a 9.04 installation, installing git as mentioned here http://www.linuxforums.org/forum/wireless-internet/154523-rfkill-query-tool.html, but it doesn't work to me.
Thanks again!
^_Pepe_^
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.