A question I’ve been meaning to get around to asking, but how do I FORCE my built-in bluetooth adapter to come on at start-up of Ubuntu?
It will start-up automatically whilst in the POST boot process, but once Ubuntu has loaded it will turn itself off, and stayed turned off until I press the button to enable it again, something tells me there’s a script of some sort that just needs tweaking.
I’ve googled for the same exact question, but it’s all for “audio” devices, not keyboards or mice, which is the reason I’m asking this question.
a) Which laptop … you can only see a sliver of it
and
b) I’m glad it’s yours because youve painted red stripes all over it
and
c) Aint your mom gonna go mad at you writing Wifi, Firefox, Thunderbird, and Bluetooth on the sheets
I doubt if this is “fixable” … if it’s doing it that early on, and did it in Windows too … it’s likely a hardware “feature”.
If you check the internet, a LOT of people were complaining that the default for Acer Aspires seemed to be to turn bluetooth on at bootup, but people didn’t like that as it harms battery life … so maybe Acer turned em off by default.
If it were a key combo, we may have been able to write a script that ran those keystrokes at boot … but as it’s a separate hardware switch, I doubt if it will register as a keypress in the normal way.
In answer to your question … I don’t know … adding the original commands (obviously leaving out sudo) to the runlevel init scripts, or rc.local may run it too early.
But you can try if you like
Just a thought, but you haven’t got bluetooth blacklisted have you ?
I guess I can only run it, and find out, right? Ha.
How would I know if bluetooth was blacklisted?
EDIT:
rfkill list
bally@bally-laptop:~$ rfkill list
0: acer-wireless: Wireless LAN
Soft blocked: no
Hard blocked: no
1: acer-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
3: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
9: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
OK, just to be clear on this … here’s MY default /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
exit 0
so your’s would need to read:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
Added by BkS
service bluetooth restart
exit 0
I posted this because I’m sure that 3rd line shouldn’t be uncommented, and you’d added a second shebang line.