You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

搭载Ryzen5的Ubuntu 22.04.1平板PC永久启用飞行模式并显示状态栏图标的技术求助

搭载Ryzen5的Ubuntu 22.04.1平板PC永久启用飞行模式并显示状态栏图标的技术求助

Hey Pierre! I totally get what you're going for—you want that airplane icon locked in the top bar permanently, no more it flipping back to enabled after a reboot, and since you never use WiFi anyway, you need a solid, long-term fix. Let's break this down into two practical options, from a quick software workaround to a nearly hardware-level permanent solution (no need to crack open your tablet!):

Option 1: Use a Systemd Service to Auto-Enable Airplane Mode on Boot

This fixes the "resets on reboot" issue by forcing airplane mode to activate every time your system starts up:

  • Open your terminal and create a custom systemd service file with this command:
    sudo nano /etc/systemd/system/permanent-airplane-mode.service
  • Paste this content into the editor:
    [Unit]
    Description=Lock Airplane Mode On At Boot
    After=network.target
    
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/nmcli radio all off
    
    [Install]
    WantedBy=multi-user.target
    
  • Save and exit by pressing Ctrl+O, hit Enter, then Ctrl+X.
  • Enable the service so it runs automatically on boot:
    sudo systemctl enable permanent-airplane-mode.service
  • Reboot your tablet, and you’ll see that airplane icon pop up in the top bar right away—it won’t revert back anymore.

Option 2: Permanently Disable Wireless Hardware (No Disassembly Required)

If you want the most permanent fix (closer to physically removing the WiFi hardware), we can blacklist the wireless driver so it never loads:

  • First, find out what your wireless driver is called. Run this command in terminal:
    lspci -k | grep -A 3 Network
    Look for the line that says Kernel driver in use: [driver-name]—that’s the driver we need to block.
  • Create a blacklist file:
    sudo nano /etc/modprobe.d/blacklist-wireless.conf
  • Add this line (replace [driver-name] with what you found earlier):
    blacklist [driver-name]
  • Save and exit, then update your initramfs to apply the change:
    sudo update-initramfs -u
  • Reboot, and your wireless hardware will be completely disabled. Airplane mode will stay on, and that icon will stick around in the top bar as proof.

Both methods should solve your problem—pick whichever feels more aligned with how permanent you want this fix to be.

备注:内容来源于stack exchange,提问作者pierrely

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.23 08:29:10