1

I am using an HP Pavilion 15 ab032tx laptop with Windows 10 and Ubuntu 20.04 dual boot.

Whenever I shut the lid down and then reopen it, the airplane mode turns on automatically.

Here is what I tried:

I tried to turn it off from settings but the toggle button is all greyed and I can't access it. I also tried

sudo rfkill unblock wifi

But it has no effect. I tried to put the HandleLidSwitch to ignore but that also didn't work. Also tried the solution in this question but it also didn't work.

Can someone help me?

2
  • Disable Windows Fast Start feature. That helps in most of cases.
    – Pilot6
    May 18, 2020 at 14:59
  • Windows Fast startup is already disabled
    – Prakhar
    May 19, 2020 at 14:31

2 Answers 2

1

Here's a workaround to allow you to create a hardware key fn+F10 to toggle Airplane Mode off after suspend:

Add this line to /etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="acpi_osi=! acpi_osi='Windows 2009' quiet splash"

Then update your grub config:

$ sudo update-grub

Source: Gibbsoft's answer to Wifi Hard Blocked After Suspend in Ubuntu on GS65

2
  • It worked! Thankyou very much for the help.
    – Prakhar
    Jul 9, 2020 at 21:27
  • Happy to help! Please mark the answer as accepted.
    – modestvega
    Jul 12, 2020 at 8:29
0

I had same problem and this solution helped me. In terminal run sudo gedit /etc/systemd/system/hp-keycodes.service than insert this text in to the file and save it:

[Unit] 
Description=HP setkeycodes fix

[Service]
Type=oneshot
Restart=no
RemainAfterExit=no
ExecStart=/usr/bin/setkeycodes e057 240 e058 240

[Install]
WantedBy=rescue.target
WantedBy=multi-user.target
WantedBy=graphical.target

After that reload and enable service:

sudo systemctl daemon-reload sudo systemctl enable hp-keycodes.service

And finally restart your computer and check the result! Source

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .