Public bug reported:

[Impact]
Some laptops can generate multiple rfkill events from a single key press.

[Fix]
Commit f4dbcf3d7b0f951fe44b29229206c97b625dbfda ("media-keys: Add one second 
delay between each rfkill event").
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.

** Affects: gnome-settings-daemon (Ubuntu)
     Importance: Medium
         Status: Confirmed

** Affects: gnome-settings-daemon (Ubuntu Focal)
     Importance: Medium
         Status: Confirmed

** Affects: gnome-settings-daemon (Ubuntu Hirsute)
     Importance: Medium
         Status: Confirmed

** Affects: gnome-settings-daemon (Ubuntu Impish)
     Importance: Medium
         Status: Confirmed

** Also affects: gnome-settings-daemon (Ubuntu Hirsute)
   Importance: Undecided
       Status: New

** Also affects: gnome-settings-daemon (Ubuntu Focal)
   Importance: Undecided
       Status: New

** Also affects: gnome-settings-daemon (Ubuntu Impish)
   Importance: Undecided
       Status: New

** 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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936303

Title:
  [SRU] Debounce multiple rfkill events

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1936303/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to