1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Disable WiFi completely

Discussion in 'Mods and Upgrades' started by WheresWaldo, Nov 5, 2017.

  1. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    If you are like I am and hate that WiFi is always enabled in the R2 and you are stuck as a hotspot or with some bogus IP address on the wlan0 interface, and just wished you could disable it. There is an easy way on the Raspberry Pi 3. Just add the following line to the bottom of /boot/config.txt
    Code:
    dtoverlay=pi3-disable-wifi
    There is also a command to turn Bluetooth off, also placed in /boot/config.txt
    Code:
    dtoverlay=pi3-disable-bt
    To reverse either just comment them out or remove the lines and reboot.

    Not really a Mod or an Upgrade but a convenient piece of information to have.
     
    supercazzola likes this.
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    I'd settle for a way to get it to not display a bogus IP address when you are actually using WiFi on a non-192 subnet.
    There are other non-routeable ones out there that other routers use...
     
    Geof likes this.
  3. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    @mark tomlinson I am curious when you ssh into the rPi and issue a route -n command, what does the output look like?
     
  4. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    It looks like you would expect as do all other commands via the Pi:

    pi@RoboC2:~ $ route -n
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 wlan0
    0.0.0.0 10.0.0.1 0.0.0.0 UG 303 0 0 wlan0
    10.0.0.0 0.0.0.0 255.255.255.0 U 303 0 0 wlan0



    This is totally an LCD display issue :)
     
  5. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    Yeah, I searched through https://github.com/victorevector/RoboLCD but can't seem to find where they are masking the IP address. I thought is might be netconnectd since Gina Häußge has stopped development on this plugin quite a long time ago. But I am not sure.
     

Share This Page