wifi and bluetooth auto start at system startup
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Re: wifi and bluetooth auto start at system startup
Hi,
could you actually post your rc.local ?
could you actually post your rc.local ?
Re: wifi and bluetooth auto start at system startup
Code: Select all
#!/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.
rfkill block all
exit 0
Re: wifi and bluetooth auto start at system startup
Try putting above the rfkill command
Code: Select all
sleep 1m
Re: wifi and bluetooth auto start at system startup
Hi
if wifi still the problem being on at startup
replace to check if wifi goes of
with
if wifi still the problem being on at startup
replace
tryrfkill block all
Code: Select all
sudo rfkill block wlan0
with
assuming your wifi is wlan0rfkill block wlan0
Re: wifi and bluetooth auto start at system startup
My apologies for replying late.
I tried both the tips (adding sleep 1m and adding sudo rfkill wlan0.)
The first method negated rfkill and both bluetooth and wifi were found switched on at startup.
the second method had no effect on wifi (still found switched on at startup) and bluetooth was also found switched on at startup.
There must be some configuration file of network manager in which both bluetooth and wifi have been configured to enable at startup. we must be missing that.
I tried both the tips (adding sleep 1m and adding sudo rfkill wlan0.)
The first method negated rfkill and both bluetooth and wifi were found switched on at startup.
the second method had no effect on wifi (still found switched on at startup) and bluetooth was also found switched on at startup.
There must be some configuration file of network manager in which both bluetooth and wifi have been configured to enable at startup. we must be missing that.
Re: wifi and bluetooth auto start at system startup
probably then let's force it
open /etc/rc.local
and add the following line right after the last line starting with a “#” and just before “exit 0″
open /etc/rc.local
Code: Select all
sudo gedit /etc/rc.local
Rebootdbus-send --system --type=method_call --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.DBus.Properties.Set string:org.freedesktop.NetworkManager string:WirelessEnabled variant:boolean:false
Re: wifi and bluetooth auto start at system startup
Might need to increase the sleep to 2m to get it to work if rc.local is running to early
Re: wifi and bluetooth auto start at system startup
Guys I tried both workarounds to no avail. The problem still persists. I even tried combinations of the two. But nothing works. Both bluetooth and wifi are swithced on at system startup. The only command that works seems to be rfkill block all and that too on BT only...
That long string of command...to which configuration file does it point to?
That long string of command...to which configuration file does it point to?
Re: wifi and bluetooth auto start at system startup
it points to rc.local and tells the network-manager not to enable wifi at start :false.That long string of command...to which configuration file does it point to?
Re: wifi and bluetooth auto start at system startup
it's not working....how do we get this pestering annoyance solved?
Re: wifi and bluetooth auto start at system startup
strange.
in network-manager is the wifi profile set to automatically connect as mine is? (seems to be done by default)
in network-manager is the wifi profile set to automatically connect as mine is? (seems to be done by default)
Re: wifi and bluetooth auto start at system startup
no it is not...for my ethernet connection it is but not for wifi.
Re: wifi and bluetooth auto start at system startup
oh dont say that....there is something that we are overlooking......i am sure of it...we just have to keep looking.
Re: wifi and bluetooth auto start at system startup
still looking.
Did you try a kernel upgrade? 3.13 has still a lot of issues ,I just upgraded mine to 3.15.11 and it fixed an annoying problem with my radeon card and fan control.
Did you try a kernel upgrade? 3.13 has still a lot of issues ,I just upgraded mine to 3.15.11 and it fixed an annoying problem with my radeon card and fan control.
Re: wifi and bluetooth auto start at system startup
That might be the cure to make the rfkill command work in rc.local as the PC that I tested on had kernel 3.15.2PatH57 wrote: still looking.
Did you try a kernel upgrade? 3.13 has still a lot of issues ,I just upgraded mine to 3.15.11 and it fixed an annoying problem with my radeon card and fan control.
Re: wifi and bluetooth auto start at system startup
Hi guys,
I am reopening the thread for discussions on this recurring problem of wifi auto on at startup inspite of having added rfkill to suress bluetooth and wifi at startup. Rfkill only seems to work bluetooth, wifi still remains switched on at startup and has to be manually switched off from network applet.
I was advised to upgrade to the latest stable kernel, which i did. However the problem persists, much to my dismay.
Please advise on how to get of this annoyance.
Thank you.
I am reopening the thread for discussions on this recurring problem of wifi auto on at startup inspite of having added rfkill to suress bluetooth and wifi at startup. Rfkill only seems to work bluetooth, wifi still remains switched on at startup and has to be manually switched off from network applet.
I was advised to upgrade to the latest stable kernel, which i did. However the problem persists, much to my dismay.
Please advise on how to get of this annoyance.
Thank you.
Re: wifi and bluetooth auto start at system startup
My bluetooth is strange at times but I tried this and it did block my wifi
put this in a file
save, exit program
Then I went to the program menu, Preferences, Startup Applocations, click add, enter whatever you want for a name- I used rfkill, and for command choose browse and find the rfkill.sh in the home directory and click the add button. Reboot and see if it works
Code: Select all
gedit rfkill.sh
Code: Select all
#!/bin/bash
rfkill block bluetooth
rfkill block wifi
Code: Select all
chmod +x rfkill.sh
Re: wifi and bluetooth auto start at system startup
with a great deal of satisfaction I hereby announce that this problem stands solved...it worked!!!
wanted to be sure before i put up any comment. Thank you jeremy.
Now how do i hide the rfkill.sh file as I don't want it showing up in my home folder and dont want no one tampering with it (by accidently deleting it or otherwise)
wanted to be sure before i put up any comment. Thank you jeremy.
Now how do i hide the rfkill.sh file as I don't want it showing up in my home folder and dont want no one tampering with it (by accidently deleting it or otherwise)
Re: wifi and bluetooth auto start at system startup
See if works to keep it from being deleted
Code: Select all
chattr +i rfkill.sh