Yes, on Debian Bookworm (or any Linux system), you can power down a Wi-Fi card to minimize its energy usage. The wlp1s0 interface name suggests it's a wireless PCI/PCIe device. Here are a few methods to achieve this:
1. Using rfkill to Soft-Block the Device
The rfkill tool can disable the radio transmitter, reducing power consumption significantly (though not necessarily to zero).
sudo rfkill block wifi
To unblock later:
sudo rfkill unblock wifi
Check the status:
rfkill list
2. Unloading the Wi-Fi Kernel Module
If you want to completely disable the Wi-Fi hardware, you can unload its kernel module.
First, identify the module in use:
lsmod | grep -i wifi
or
lspci -k | grep -A 3 -i network
Then, unload the module (replace module_name with the actual module, e.g., iwlwifi for Intel cards):
sudo modprobe -r module_name
To reload it later:
sudo modprobe module_name
3. Disabling the Interface via ip or ifconfig
You can bring the interface down, which reduces power but may not fully disable the hardware:
sudo ip link set wlp1s0 down
To re-enable:
sudo ip link set wlp1s0 up
4. Using iw to Disable Radio Transmission
If the card supports it, you can disable radio transmission:
sudo iw dev wlp1s0 set type managed
sudo iw dev wlp1s0 set txpower fixed 0
(Note: Not all drivers support this.)
5. Physically Disabling via PCI Power Management
Some systems allow disabling PCI devices to save power:
echo 1 | sudo tee /sys/bus/pci/devices/0000:01:00.0/remove
(Replace 0000:01:00.0 with the correct PCI address from lspci.)
To re-enable, you may need to reboot or rescan:
echo 1 | sudo tee /sys/bus/pci/rescan
6. Using systemd to Disable the Interface at Boot
If you want the Wi-Fi to stay off permanently, you can mask the relevant service:
sudo systemctl mask wpa_supplicant.service
sudo systemctl stop wpa_supplicant.service
Which Method is Best for Zero Power?
- Unloading the kernel module (
modprobe -r) is the most effective for minimizing power usage.
rfkill blocking is a good middle ground if you want to re-enable it easily.
- PCI removal is the most extreme but may not be supported on all systems.
Would you like help identifying the exact Wi-Fi module in use for your system?