linux-surface / linux-surface

Linux Kernel for Surface Devices
4.53k stars 202 forks source link

[SP8] Hardware buttons are not functional #1384

Closed vistis closed 2 months ago

vistis commented 2 months ago

After updating to kernel version 6.7.6, the hardware buttons (both volume and power) don't do anything when pressed. This was not an issue before the update.

Additionally, GNOME also no longer recognizes them as keys.

Environment

StollD commented 2 months ago

Can you try reloading the button module?

sudo modprobe -r soc_button_array
sudo modprobe soc_button_array

Arch changed the pinctrl drivers (which IIRC are required for the button driver) from built-in drivers to modules, so I wonder if this is a race condition. Maybe Arch puts the button driver in the initramfs but not the pinctrl drivers?

vistis commented 2 months ago

That fixed it! Thanks a ton!

apmyplol commented 1 month ago

Is there a way to make this fix persistent after rebooting without reloading the modules after reach reboot?

qzed commented 1 month ago

See https://github.com/linux-surface/linux-surface/issues/1392#issuecomment-1989558759