mate-desktop / mate-settings-daemon

MATE settings daemon
https://mate-desktop.org
GNU General Public License v2.0
43 stars 48 forks source link

Need to debounce multiple rfkill events #371

Open khfeng opened 3 years ago

khfeng commented 3 years ago

Expected behaviour

Newer HP laptops use Intel HID driver to send rfkill hotkey event, so we'll need to unmask Intel HID in hwdb to make airplane mode hotkey work: systemd/systemd#20219 However, this will make both Intel HID driver and HP Wireless driver send rfkill events on older HP laptops, so only the first event like should be processed, like this implementation in G-S-D: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/244

The backport is quite straightforward from G-S-D to M-S-D, but it doesn't take affect because somehow do_rfkill_action() isn't called when airplane mode hotkey is pressed. So filing a bug report here...

Actual behaviour

The current behavior is that WiFi and Bluetooth get quickly disabled and enabled after pressing airplane mode hotkey.

Steps to reproduce the behaviour

Apply systemd/systemd#20219 then press airplane mode hotkey.

MATE general version

1.24.1

Package version

1.24.2-0ubuntu1

Linux Distribution

Ubuntu MATE

Link to bugreport of your Distribution (requirement)

https://bugs.launchpad.net/bugs/1936956