repeating phantom key when bt disconnects

Bug #1550050 reported by kevin gunn
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical Pocket Desktop
Fix Committed
Critical
kevin gunn
Canonical System Image
Fix Released
Critical
kevin gunn
Mir
Fix Released
Critical
Andreas Pokorny
0.20
Fix Released
Critical
Andreas Pokorny
bluez (Ubuntu)
Invalid
Undecided
Simon Fels
mir (Ubuntu)
Fix Released
Critical
Andreas Pokorny

Bug Description

Every now and then when having bt mouse/keyboard connected - you will see when selecting a text box there is a repeating character (there is no specific character, but always repeats)

It seems to be related somehow to bt devices disconnecting
the only cure is a reboot

This was reproduced by turning off the keyboard while holding down a key. We suspect the key up event is never delivered. This mimics the case where the BT connection drops off momentarily or perhaps an event is missed over the BT connection.

Related branches

kevin gunn (kgunn72)
Changed in canonical-devices-system-image:
assignee: nobody → John McAleely (john.mcaleely)
description: updated
description: updated
Changed in canonical-devices-system-image:
status: New → Confirmed
importance: Undecided → Critical
milestone: none → ww08-2016
Changed in bluez (Ubuntu):
status: New → Confirmed
assignee: nobody → Simon Fels (morphis)
Revision history for this message
Konrad Zapałowicz (kzapalowicz) wrote :

From a quick assessment I agree that the root cause might be a lack of "key up" event as this would explain the repetitions.

tags: added: ubuntu-classic
tags: added: ubuntu-touch
Revision history for this message
Simon Fels (morphis) wrote :

Got this reproduced after following the steps to turn off the keyboard while holding a key.

Revision history for this message
Simon Fels (morphis) wrote :

Generally I don't think this is because of a lacking key event. If the keyboard goes away also its corresponding input device node will disappear. If that happens the upper input stack should take care about that. Adding mir as component here too to get their view on this while doing some more investigation.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

See bug 1536279, which is similar.

tags: added: input
Revision history for this message
Andreas Pokorny (andreas-pokorny) wrote :

I will start with a small fix to get the repeat to stop on disconnect..
Then there still is a problem with modifier states that might be stuck untill the device is reattached and the key is pressed again..

Changed in mir (Ubuntu):
status: New → Confirmed
assignee: nobody → Andreas Pokorny (andreas-pokorny)
status: Confirmed → In Progress
Changed in mir:
status: New → In Progress
assignee: nobody → Andreas Pokorny (andreas-pokorny)
kevin gunn (kgunn72)
Changed in canonical-pocket-desktop:
importance: Undecided → Critical
assignee: nobody → kevin gunn (kgunn72)
Changed in mir:
importance: Undecided → Critical
Changed in mir (Ubuntu):
importance: Undecided → Critical
Changed in mir:
milestone: none → 0.21.0
Revision history for this message
Andreas Pokorny (andreas-pokorny) wrote :

On mako the bluetooth driver seems to release all pressed keys on removal.. Still I can experience the problem on krillin with USB disconnect - no release event is provided before the device is removed.

Changed in mir:
status: In Progress → Triaged
Revision history for this message
Simon Fels (morphis) wrote :

The bluetooth HID driver itself is the same on all our devices. If only a could be in the generic HID driver stack inside the kernel (drivers/hid/)

Changed in canonical-devices-system-image:
status: Confirmed → In Progress
assignee: John McAleely (john.mcaleely) → kevin gunn (kgunn72)
Changed in mir:
status: Triaged → In Progress
Revision history for this message
Simon Fels (morphis) wrote :

Marked as invalid for bluez until we prove there is still a problem.

Changed in bluez (Ubuntu):
status: Confirmed → Invalid
Changed in mir (Ubuntu):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Changed in canonical-pocket-desktop:
status: New → Fix Committed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Is this one critical or just high?

Changed in mir:
status: In Progress → Fix Committed
Revision history for this message
KasperLau (liuxuan7000) wrote :

It is reproduced by turning off the keyboard while holding down a key.
device name: frieza
channel: ubuntu-touch/rc/bq-aquaris-pd.en
last update: 2016-04-06 10:37:20
version version: 8
version ubuntu: 20160401.1
version device: 20160330.0
version custom: 20160330--38-10-vivid

Changed in mir:
status: Fix Committed → Fix Released
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
Revision history for this message
Venkat Satish BV (venkatsatish061) wrote :

phanto key repeats

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.