HP Envy 15 x360 Airplane mode enabled at startup

Hi there, I have the aforementioned laptop and I'm running 18 Core on it. Zorin starts up with airplane mode enabled and the only way to turn it off is with the keyboard shortcut. The "nmcli radio wifi on" does not disable airplane mode/enable wifi. Clicking the airplane mode toggle in the control panel does not work either.

What I'm wondering is if there is a way to issue the keyboard command at startup to disable airplane mode. Thanks!

Welcome to the Forum!

Did You checked Your BIOS how the Wifi is set up there?

The BIOS is extremely basic, so no options in BIOS for that, but thanks for the suggestion.

Could You post the Output of the Terminal Commands sudo lshw -C network and rfkill list please?

And You could try it with switching to Xorg if not already run. To switch, go to the Login Screen. click there on Your Profile so that the Password Field appears. When it is appeared, You should see a Gear Icon in the bottom right Corner. Click on it and choose the Option ''Zorin desktop on Xorg'' and then log in.

Another Point: Did You take a Look at the ''Additional Drivers'' Tab if there is a Driver offered?

Wasn't sure if I should run these with airplane mode on or off, so this is with airplane mode off, wifi on and connected. No additional drivers available for the wifi adapter. Using Xorg vs Wayland makes no difference.

sudo lshw -C network results:

*-network
description: Wireless interface
product: Wireless 7260
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlo1
version: c3
serial: d8:fc:93:9d:f4:b8
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=6.14.0-36-generic firmware=17.bfb58538.0 7260-17.ucode ip=192.168.9.209 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:64 memory:c1100000-c1101fff
*-network
description: Ethernet interface
product: RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:04:00.0
logical name: eno1
version: 10
serial: d0:bf:9c:97:42:df
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=6.14.0-36-generic firmware=rtl8168g-3_0.0.1 04/23/13 latency=0 link=no multicast=yes port=twisted pair
resources: irq:19 ioport:3000(size=256) memory:c1004000-c1004fff memory:c1000000-c1003fff

rfkill list results:

0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no

You could try it with this guide. Maybe it also works on Zorin 18 / ubuntu 24.04:

To create the file you can use nano instead of gedit:

sudo nano /etc/systemd/system/hp-keycodes.service

When I run sudo systemctl enable hp-keycodes.service I get this error:

update-rc.d: error: hp-keycodes Default-Start contains no runlevels, aborting.

I looked that one up and found some info on why, so I added this to the beginning of the file:

* ### BEGIN INIT INFO
*  # Provides:          hp-keycodes.service
*  # Required-Start:    $all
*  # Required-Stop:
*  # Default-Start:     2 3 4 5
*  # Default-Stop:
*  # Short-Description: remaps hp keys
*  ### END INIT INFO

Unfortunately, I still get the error when trying to enable it. Not sure where this is getting stuck. Thanks for the help!

I don't know what this error means.

Which keyboard shortcut do you use? You could add this command to autostart applications.

I read about another solution with the app "input remapper" which you could try (the last post in this thread):

The first method there sounds a bit difficult.

I'm wondering if adding this entry to startup applications may help you:

Name it as you want and as command set rfkill unblock all (sudo is not needed, in the screenshot it is wrong)
That would be the easiest solution.
If there is a problem with initializing, you can add a sleep pause, e.g. sleep 3 && rfkill unblock all

rfkill doesn't toggle airplane mode, only the keyboard button toggles it on/off. Opening/closing the lid doesn't turn airplane mode on/off. It's ONLY at startup and ONLY the keyboard button toggles it. My only idea is to find a way to issue the key press via the terminal, then make a script to execute it on startup. I have yet to find any commands that control it from the terminal.