WiFi disconnects on lid open (fresh install)

Any suggestions?

There are lots of kernel parameters. Like pcie_aspm=off or pci=nomsi or pci=noaer or you could try a windows one. acpi_osi='Windows 2021' These are just some examples not for your wifi problem but the error messages.

Edit: Keep in mind sometimes these parameters can cause some issues also.

1 Like

It was fixed automatically after the 6.0 kernel update.

Update: Not really. But I finally managed to fix it using the method described here.

In case the answer gets down or something, you basically have to create the following systemd unit file:

/etc/systemd/system/hp-keycodes.service
----------------------------------------
[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

and then enable it using

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

and that should be it!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.