Kernel device driver activates either touchpad or keyboard but not both
tsopdump tsopdump
tsopdump at gmail.com
Thu Jan 26 14:15:26 EST 2017
Hi,
I have a Bluetooth Sony MSG-MR5U remote that has a full keyboard and a
touchpad. The keyboard works fine in Linux but the touchpad isn't
recognized.
I've edited the hid-sony module to enable the touchpad but I've run into a
problem where the keyboard stops working when I enable the touchpad. More
specifically, if I call input_mt_init_slots with the INPUT_MT_POINTER flag,
the touchpad works but the keyboard stops working. If I don't pass this
flag, the keyboard works but the touchpad doesn't.
Only one device entry is created and after passing INPUT_MT_POINTER to
input_mt_init_slots, /proc/bus/input/devices shows
I: Bus=0005 Vendor=0609 Product=0368 Version=0111
N: Name="SONY NSG-MR5-U"
P: Phys=00:1a:7d:da:71:0a
S:
Sysfs=/devices/pci0000:00/0000:00:0b.0/usb2/2-5/2-5:1.0/bluetooth/hci0/hci0:70/0005:0609:0368.0007/input/input12
U: Uniq=00:01:90:d2:1b:7b
H: Handlers=sysrq kbd mouse1 event7
B: PROP=5
B: EV=10001f
B: KEY=3007f 0 0 483ffff17aff32d bf54444600002420 10001 1130f938b17c007
ffff7bfad9415fff febeffdfffefffff fffffffffffffffe
B: REL=40
B: ABS=2738f0100000003
B: MSC=10
Do I have to allocate a new device entry using input_allocate_device so the
touchpad is using a separate device from the keyboard or is there a way to
activate both the touchpad and the keyboard using a single device?
BTW, I'm working with the 4.10.0-rc3+ kernel.
Thanks,
Todd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170126/afce6905/attachment.html
More information about the Kernelnewbies
mailing list