Disable onboard wifi through SSH? (S905x)

  • Hello I have a minim8 s905x box running 703012h,I have a USB wifi dongle that I prefer to use over the internal chip,is there a way to disable it completely so as not to compete with the external adapter? Also will Bluetooth be affected after disabling internal chip?


  • Hello I have a minim8 s905x box running 703012h,I have a USB wifi dongle that I prefer to use over the internal chip,is there a way to disable it completely so as not to compete with the external adapter? Also will Bluetooth be affected after disabling internal chip?


    You should be able to use the 'sudo ifconfig wlan down' to disable the interface. You have to determine the interface name beforehand using ifconfig.

  • Does that require another sudo command?
    [hr]
    Tried it with wlan0 it worked until a rebooted the box,now the onboard wifi is back on

    Edited once, last by Fastrap87 ().

  • You can put the command in the file autostart.sh in the config directory. This file is executed every time libreelec starts. The old openelec wiki describes it nicely:


    Autostart.sh - OpenELEC

    Wetek Hub: LibreElec 8.2.3.1 (Philips 42PFL8404)
    MK808B+: LibreElec 7.0.2.7 (Samsung UE55H6270)
    OTT MXQ Pro 4k (S905): LibreElec 7.0.3.12k (Denon X1200W, 7.1, LG PF1500G)
    AKASO HM8 (S905X): CoreElec 9.0 dev build, Acer Revo 3610: Milhouse test


  • You can put the command in the file autostart.sh in the config directory. This file is executed every time libreelec starts. The old openelec wiki describes it nicely:


    Autostart.sh - OpenELEC


    So copy and paste ifconfig wlan0 down somewhere in the auto start.sh file? Can I edit it through notepad through samba shares on Linux mint?

    Edited once, last by Fastrap87 ().

  • Make sure that you use an editor that allows for UNIX-style line breaks (e.g. notepad++) or better use the nano editor on the ssh shell (like the wiki page told you to).


    You do not need sudo, and most likely you need to include the full path to ifconfig, so try this:



    Code
    1. /sbin/ifconfig wlan0 down

    Wetek Hub: LibreElec 8.2.3.1 (Philips 42PFL8404)
    MK808B+: LibreElec 7.0.2.7 (Samsung UE55H6270)
    OTT MXQ Pro 4k (S905): LibreElec 7.0.3.12k (Denon X1200W, 7.1, LG PF1500G)
    AKASO HM8 (S905X): CoreElec 9.0 dev build, Acer Revo 3610: Milhouse test

  • Maybe the devices get enumerated differently in the new version. Could you check with ssh what the output of "ifconfig" is?

    Wetek Hub: LibreElec 8.2.3.1 (Philips 42PFL8404)
    MK808B+: LibreElec 7.0.2.7 (Samsung UE55H6270)
    OTT MXQ Pro 4k (S905): LibreElec 7.0.3.12k (Denon X1200W, 7.1, LG PF1500G)
    AKASO HM8 (S905X): CoreElec 9.0 dev build, Acer Revo 3610: Milhouse test

  • The easiest way I can think of - check which module is your WiFi chip using in lsmod then add it to blacklist.


    Example when module is 8189es: echo "blacklist 8189es" >> /storage/.config/modprobe.d/blacklist.conf


  • Maybe the devices get enumerated differently in the new version. Could you check with ssh what the output of "ifconfig" is?


    see attachment
    [hr]


    The easiest way I can think of - check which module is your WiFi chip using in lsmod then add it to blacklist.


    Example when module is 8189es: echo "blacklist 8189es" >> /storage/.config/modprobe.d/blacklist.conf


    8192eu is my module, i used this command then rebooted but still no luck. :-/

  • Is the 8192eu not your usb wlan stick? You should blacklist the module used for the internal wlan.


    You can check the loaded modules with "lsmod" using ssh. But you'll need to comment your lines in autostart.sh and blacklist.conf and reboot, so we can see both modules and interfaces.

    Wetek Hub: LibreElec 8.2.3.1 (Philips 42PFL8404)
    MK808B+: LibreElec 7.0.2.7 (Samsung UE55H6270)
    OTT MXQ Pro 4k (S905): LibreElec 7.0.3.12k (Denon X1200W, 7.1, LG PF1500G)
    AKASO HM8 (S905X): CoreElec 9.0 dev build, Acer Revo 3610: Milhouse test


  • Is the 8192eu not your usb wlan stick? You should blacklist the module used for the internal wlan.


    You can check the loaded modules with "lsmod" using ssh. But you'll need to comment your lines in autostart.sh and blacklist.conf and reboot, so we can see both modules and interfaces.


    I got 8192eu without the dongle inserted
    nevermind, ran lsmod again after rebooting and now it shows cfg80211
    [hr]


    Fastrap87 From MAC address I can tell that you need to blacklist dhd instead.


    not familiar with the acroynm..what does dhd stand for?

    Edited once, last by Fastrap87 ().

  • dhd is a module used by broadcom wifi drivers.

    Wetek Hub: LibreElec 8.2.3.1 (Philips 42PFL8404)
    MK808B+: LibreElec 7.0.2.7 (Samsung UE55H6270)
    OTT MXQ Pro 4k (S905): LibreElec 7.0.3.12k (Denon X1200W, 7.1, LG PF1500G)
    AKASO HM8 (S905X): CoreElec 9.0 dev build, Acer Revo 3610: Milhouse test

  • It is also a module name. So all you need to do now is echo "blacklist dhd" > /storage/.config/modprobe.d/blacklist.conf

    Edited once, last by kszaq ().