I’m happy to report that I found a workaround for this issue. Basically, I wrote a service that is executed at startup before sys-net that tries to determine if the wifi card is plugged in at boot, and attaches or detaches it from sys-net accordingly.
Note that with this solution, if the kill switch is off (wifi disabled) at boot, then you won’t be able to use the wifi unless you reboot with the kill switch on, since Qubes won’t ever load the PCI device. However, you can still use bluetooth if you turn the kill switch on.
Create a file named
/etc/systemd/system/killswitch.service and write into it:
Description=Killswitch fix for L14
ExecStart=/usr/bin/sh -c '\
if qvm-pci | grep -q dom0:01_00.0 ; then \
qvm-pci attach sys-net dom0:01_00.0 --persistent || true ;\
qvm-pci detach sys-net dom0:01_00.0 || true ;\
(note that the PCI device name in your machine might change, but I doubt that. In any case, you can quickly find the device name running qvm-pci)
Then, run this command to enable the service you just created:
systemctl enable killswitch.service