RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Fixed IP and disable wi-fi.... how ?

    Scheduled Pinned Locked Moved Help and Support
    lanwirelessfixed ip
    9 Posts 2 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DjDiabolikD
      DjDiabolik
      last edited by

      At my home i have buy from amazon a Ethernet GigaBit Switch to expland my little Home LAN :)

      Now i can attach my Pi4 by LAN and, i thinks, i can disable the wi-fi adaptator.
      At this point the question it's........ how i can set a FIXED IP for LAN ? There's some setting in raspi-config or inside retropie-setup ?

      And after this... i can disable the wireless if i don't use it ? Or the wi-fi antenna it's same antenna used by Bluethoot devices ?

      Thanks in advance for any suggestion.......

      AshpoolA 1 Reply Last reply Reply Quote 0
      • AshpoolA
        Ashpool @DjDiabolik
        last edited by Ashpool

        @DjDiabolik
        Static IP can be configured in /etc/dhcpcd.conf (the remarks/comments therein are pretty self explanatory).
        Disabling WIFI can be done via an overlay within /boot/config.txt:

        # Additional overlays and parameters are documented /boot/overlays/README
        dtoverlay=disable-wifi
        

        Edit: it won't disable Bluetooth, as for that there is another overlay (dtoverlay=disable-bt).

        DjDiabolikD 1 Reply Last reply Reply Quote 0
        • DjDiabolikD
          DjDiabolik @Ashpool
          last edited by

          @Ashpool said in Fixed IP and disable wi-fi.... how ?:

          @DjDiabolik
          Static IP can be configured in /etc/dhcpcd.conf (the remarks/comments therein are pretty self explanatory).
          Disabling WIFI can be done via an overlay within /boot/config.txt:

          # Additional overlays and parameters are documented /boot/overlays/README
          dtoverlay=disable-wifi
          

          Edit: it won't disable Bluetooth, as for that there is another overlay (dtoverlay=disable-bt).

          mmmmmmmm... ok i thinks i can try to:

          1. Attach my Pi4 using a LAN. Configure this file and reboot my Pi4 whitout disable the wi-fi (because if somethings after this reboot it's not works i can also still connect to my pi4 using wireless connection)

          2. If the LAN it's works i thinks i can modify the config.txt to disable wireless.

          I have another question..... if it's present another value in dtoverlay i need to add an addictional line or i need to add "disable-wifi" after a "," or similar ?

          AshpoolA 1 Reply Last reply Reply Quote 0
          • AshpoolA
            Ashpool @DjDiabolik
            last edited by

            @DjDiabolik If I remember it right it should be one overlay per line and comma separated values after the overlay are considered to be parameters for that overlay (should be explained within the mentioned readme in the comment for the overlays)

            DjDiabolikD 1 Reply Last reply Reply Quote 0
            • DjDiabolikD
              DjDiabolik @Ashpool
              last edited by DjDiabolik

              @Ashpool said in Fixed IP and disable wi-fi.... how ?:

              @DjDiabolik If I remember it right it should be one overlay per line and comma separated values after the overlay are considered to be parameters for that overlay (should be explained within the mentioned readme in the comment for the overlays)

              For a purpose test...... now i have this line on my config.txt file:

              # Uncomment this to disable Wireless Adaptator.
              #dtoverlay=disable-wifi
              

              Now i still try to understand how it's works and i need to configure the dhcpcd.conf.

              Apparently all it's clearly explained but i don't have understand if i need to uncomment somethings to made applyed some configuration....

              EDIT
              Problably it's not possible to add a multiple line contain dtoverlay commands...

              Read some info here:
              https://raspberrypi.stackexchange.com/questions/61221/how-do-i-allow-for-multiple-dtoverlays-sx400-dac-and-tontec-screen-work-alone

              Currently the pi4 config.txt contain one line for dtoverlay:

              dtoverlay=vc4-fkms-v3d
              

              Problably i need to add disable-wifi here..... after a "," letters.

              AshpoolA 1 Reply Last reply Reply Quote 0
              • AshpoolA
                Ashpool @DjDiabolik
                last edited by

                @DjDiabolik At the moment I have no "untouched" dhcpcd.conf at hand to take a look at it... in the current one for one of my raspberrys (I am all in for static IPs in a LAN environment, as dhcp most of the time is generating more troubles eventually (at least in my experience)) I've added/edited/uncommented this:

                interface eth0
                static ip_address=192.168.1.21/24
                static routers=192.168.1.1
                static domain_name_servers=192.168.1.1
                static domain_search=
                

                where 192.168.1.1 is the address of my router (which of course is configured to not use a certain ip-range for dhcp and in my LAN i've disabled ip6, the router has its external ip6 and so far I've had more trouble with ip6 enabled on my other devices as without it)

                DjDiabolikD 1 Reply Last reply Reply Quote 0
                • DjDiabolikD
                  DjDiabolik @Ashpool
                  last edited by

                  @Ashpool said in Fixed IP and disable wi-fi.... how ?:

                  @DjDiabolik At the moment I have no "untouched" dhcpcd.conf at hand to take a look at it... in the current one for one of my raspberrys (I am all in for static IPs in a LAN environment, as dhcp most of the time is generating more troubles eventually (at least in my experience)) I've added/edited/uncommented this:

                  interface eth0
                  static ip_address=192.168.1.21/24
                  static routers=192.168.1.1
                  static domain_name_servers=192.168.1.1
                  static domain_search=
                  

                  where 192.168.1.1 is the address of my router (which of course is configured to not use a certain ip-range for dhcp and in my LAN i've disabled ip6, the router has its external ip6 and so far I've had more trouble with ip6 enabled on my other devices as without it)

                  Yeah i have already do this setting.

                  Apparently i have configure all to obtain 192.168.1.9 and i can ping my Pi4 from my PC whit this IP after a reboot :)

                  Now try to disable wi-fi....... and see what's append.

                  My question it's...... it's the wireless connection need for some devices ? Like some joystick or joypad used wireless instead bluethoot?
                  otherwise I could just leave the wi-fi on and maybe just delete the access to my home wireless.

                  AshpoolA 1 Reply Last reply Reply Quote 0
                  • AshpoolA
                    Ashpool @DjDiabolik
                    last edited by

                    @DjDiabolik said in Fixed IP and disable wi-fi.... how ?:

                    My question it's...... it's the wireless connection need for some devices ? Like some joystick or joypad used wireless instead bluethoot?

                    Not that I am aware of any, but all my controllers are wire based (I am not a Fan of wireless HIDs) - but as long as you are not owing such a device, why not disabling the wifi, as it could always be reenabled again ? ;)

                    DjDiabolikD 1 Reply Last reply Reply Quote 0
                    • DjDiabolikD
                      DjDiabolik @Ashpool
                      last edited by

                      @Ashpool said in Fixed IP and disable wi-fi.... how ?:

                      @DjDiabolik said in Fixed IP and disable wi-fi.... how ?:

                      My question it's...... it's the wireless connection need for some devices ? Like some joystick or joypad used wireless instead bluethoot?

                      Not that I am aware of any, but all my controllers are wire based (I am not a Fan of wireless HIDs) - but as long as you are not owing such a device, why not disabling the wifi, as it could always be reenabled again ? ;)

                      For the moment i have thinks it's best idea to maintain active :)
                      An Example:
                      Some time i goes in trasfert to my houses of friends or my brother house and pass whit us some hours on retropie in double :)
                      In most of cases in this houses i can't connect my Pi4 to a LAN Network if for example we need to add some roms to my collection or something like that and if i disable the wi-fi now how i can re-enable it whiout the possibility to re-edit the config.txt ?

                      Problably i can do it using a keyboard attach to a usb port......press F4 and do it from console using "nano" but i'm not sure.

                      Could it be a suggestion ..... why not add a function to activate or deactivate the adapter directly from the retropie-setup?

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                      Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.