[SRU] Debounce multiple rfkill events
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OEM Priority Project |
Fix Released
|
Critical
|
Andy Chi | ||
gnome-settings-daemon (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Unassigned | ||
Hirsute |
Fix Released
|
Medium
|
Unassigned | ||
Impish |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
Some laptops can generate multiple rfkill events from a single key press.
[Fix]
Commit f4dbcf3d7b0f951
The commit adds a delay between each rkfill events to only process the first event and debounce the later ones.
[Test]
On HP ZBook G7, use `libinput debug-events` to observe there are two rfkill events on single key press. Airplane mode will be enabled and disabled in a very short period, so the airplane mode cannot be turned off by the hotkey anymore.
After applying the fix, pressing airplane mode hotkey can enable or disable airplane mode correctly.
[Where problems could occur]
Since the delay is hardcoded as 1 second, the airplane mode cannot be switched on/of in a very short time anymore.
Changed in gnome-settings-daemon (Ubuntu Focal): | |
status: | New → Confirmed |
Changed in gnome-settings-daemon (Ubuntu Hirsute): | |
status: | New → Confirmed |
Changed in gnome-settings-daemon (Ubuntu Impish): | |
status: | New → Confirmed |
Changed in gnome-settings-daemon (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in gnome-settings-daemon (Ubuntu Hirsute): | |
importance: | Undecided → Medium |
Changed in gnome-settings-daemon (Ubuntu Impish): | |
importance: | Undecided → Medium |
tags: | added: oem-priority originate-from-1929039 stella |
Changed in gnome-settings-daemon (Ubuntu Impish): | |
status: | Confirmed → Fix Committed |
Changed in gnome-settings-daemon (Ubuntu Hirsute): | |
status: | Confirmed → Fix Committed |
Changed in gnome-settings-daemon (Ubuntu Focal): | |
status: | Confirmed → Fix Committed |
Changed in oem-priority: | |
status: | New → Fix Released |
upload debdiff for focal