• How to exclude WiFi from list of devices

    From Markus Robert Kessler@2:250/1 to All on Sat Oct 3 20:15:32 2020
    Hi everyone,

    I am just setting up some machines for mga7x64. I created a sample installation and made a backup from which I restore the data to target
    PCs.

    On one of them there encountered a weird problem:

    The WiFi interface, no longer needed since I use normal LAN connection meanwhile, is excluded in the BIOS, but against all expectations it is
    seen by lspci. Hence, systemd is waiting for the interface until the
    timeout is reached. So, booting takes at least 10..15 seconds longer as
    on other machines where ifcfg-wlp... is not created.

    Any idea how to exclude this device?

    Thanks,
    best regards,

    Markus

    --
    Please reply to group only.
    For private email please use http://www.dipl-ing-kessler.de/email.htm

    --- MBSE BBS v1.0.7.17 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From David W. Hodgins@2:250/1 to All on Sat Oct 3 21:01:18 2020
    On Sat, 03 Oct 2020 15:15:32 -0400, Markus Robert Kessler <dimke.fax@uni.de> wrote:
    The WiFi interface, no longer needed since I use normal LAN connection meanwhile, is excluded in the BIOS, but against all expectations it is
    seen by lspci. Hence, systemd is waiting for the interface until the
    timeout is reached. So, booting takes at least 10..15 seconds longer as
    on other machines where ifcfg-wlp... is not created.
    Any idea how to exclude this device?

    As root run "lspcidrake -v|grep Wireless Network".
    Note the module at the start of the line. In my case it's rtw88_8822ce.
    Create a file in /etc/modprobe.d/ ...
    echo "blacklist rtw88_8822ce"> /etc/modprobe.d blacklist-wireless.conf

    Replace rtw88_8822ce with the module name for your wireless device.
    Run "dracut -f" to add the blacklist file to the initrd. Reboot

    The pci device will still be seen, but without the module being loaded it will not be seen to be a wireless network device. I haven't tested this, but think it will work.

    Regards, Dave Hodgins

    --
    Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
    email replies.

    --- MBSE BBS v1.0.7.17 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Bit Twister@2:250/1 to All on Sat Oct 3 23:30:15 2020
    On Sat, 3 Oct 2020 19:15:32 -0000 (UTC), Markus Robert Kessler wrote:
    Hi everyone,

    I am just setting up some machines for mga7x64. I created a sample installation and made a backup from which I restore the data to target
    PCs.

    On one of them there encountered a weird problem:

    The WiFi interface, no longer needed since I use normal LAN connection meanwhile, is excluded in the BIOS, but against all expectations it is
    seen by lspci. Hence, systemd is waiting for the interface until the
    timeout is reached. So, booting takes at least 10..15 seconds longer as
    on other machines where ifcfg-wlp... is not created.

    Any idea how to exclude this device?

    Options are:
    1 see if you can reduce/set delay value in wlpxxx configuration file.
    2 Remove/blacklist device driver module.
    3 use systemd-netowrkd and disable the device.

    Problem with 2 is not to forget what you did in the event you want to
    use it sometime in the future. Occasionally my cable would go out of
    service so I asked my neighbor to allow my system access through his
    wifi so I could use my VOIP phone to call in the problem.

    1 depends on what network device manager is being used, you can try
    locate wlp to find configuration file.

    3 is my selection. I enabled systemd-networkd, and created a /usr/lib/systemd/network/xxx.network configuration file for each device.

    To keep wifi disabled, I create a null file /etc/systemd/network/12_xx__wlp2s0.network
    When I want to enable wifi, I remove 12_xx__wlp2s0.network and restart systemd-netowrkd. at the point /usr/lib/systemd/network/12_xx__wlp2s0.network is used
    to bring up wifi.



    --- MBSE BBS v1.0.7.17 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Markus Robert Kessler@2:250/1 to All on Sat Oct 3 23:39:58 2020
    On Sat, 03 Oct 2020 16:01:18 -0400 David W. Hodgins wrote:

    On Sat, 03 Oct 2020 15:15:32 -0400, Markus Robert Kessler
    <dimke.fax@uni.de> wrote:
    The WiFi interface, no longer needed since I use normal LAN connection
    meanwhile, is excluded in the BIOS, but against all expectations it is
    seen by lspci. Hence, systemd is waiting for the interface until the
    timeout is reached. So, booting takes at least 10..15 seconds longer as
    on other machines where ifcfg-wlp... is not created.
    Any idea how to exclude this device?

    As root run "lspcidrake -v|grep Wireless Network".
    Note the module at the start of the line. In my case it's rtw88_8822ce. Create a file in /etc/modprobe.d/ ...
    echo "blacklist rtw88_8822ce"> /etc/modprobe.d blacklist-wireless.conf

    Replace rtw88_8822ce with the module name for your wireless device.
    Run "dracut -f" to add the blacklist file to the initrd. Reboot

    The pci device will still be seen, but without the module being loaded
    it will not be seen to be a wireless network device. I haven't tested
    this, but think it will work.

    Thanks a lot -- now, booting is a matter of seconds!

    Well, as Bit Twister wrote, to minimize the risk of forgetting why this
    device is no longer visible, I think I have to add a note somewhere in / etc/sysconfig/network-scripts to always remember and know how it can be
    undone if needed.

    Many thanks to you both!

    Best regards,

    Markus


    --
    Please reply to group only.
    For private email please use http://www.dipl-ing-kessler.de/email.htm

    --- MBSE BBS v1.0.7.17 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Bit Twister@2:250/1 to All on Sat Oct 3 23:56:04 2020
    On Sat, 3 Oct 2020 22:39:58 -0000 (UTC), Markus Robert Kessler wrote:
    On Sat, 03 Oct 2020 16:01:18 -0400 David W. Hodgins wrote:

    Thanks a lot -- now, booting is a matter of seconds!

    Well, as Bit Twister wrote, to minimize the risk of forgetting why this device is no longer visible, I think I have to add a note somewhere in / etc/sysconfig/network-scripts to always remember and know how it can be undone if needed.


    You also have the problem anytime you do a clean install, is to reinstall
    the change.

    Since I always do clean installs instead of update installs,
    I found it handy to put all configuration changes in scripts.


    --- MBSE BBS v1.0.7.17 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)