Bug 440057 - Need to debounce multiple rfkill events.
Summary: Need to debounce multiple rfkill events.
Status: REPORTED
Alias: None
Product: frameworks-bluez-qt
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-20 07:55 UTC by kaihengfeng
Modified: 2021-08-04 19:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kaihengfeng 2021-07-20 07:55:54 UTC
SUMMARY
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:
https://github.com/systemd/systemd/pull/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

I am unable to find which component should this be implemented, so file a bug here.

STEPS TO REPRODUCE
1. Apply the change in https://github.com/systemd/systemd/pull/20219
2. Press airplane mode hotkey.

OBSERVED RESULT
WiFi and Bluetooth get quickly disabled and enabled.

EXPECTED RESULT
WiFi and Bluetooth should be disabled.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 David Redondo 2021-07-21 06:56:17 UTC
Bluez I guess?

https://lxr.kde.org/search?!v=kf5-qt5&_filestring=&_string=rfkill


After reading the systemd pull request I am not sure if that's the right approach though requiring fixes everywhere downstream...
Comment 2 kaihengfeng 2021-07-21 07:02:58 UTC
(In reply to David Redondo from comment #1)
> Bluez I guess?
> 
> https://lxr.kde.org/search?!v=kf5-qt5&_filestring=&_string=rfkill
> 
> 
> After reading the systemd pull request I am not sure if that's the right
> approach though requiring fixes everywhere downstream...

I know it's not ideal, but this is the only approach that I can think of.