Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: No keyboard found on Thinkpad T440s #8

Closed
johnbeard opened this issue Aug 8, 2016 · 2 comments
Closed

Linux: No keyboard found on Thinkpad T440s #8

johnbeard opened this issue Aug 8, 2016 · 2 comments

Comments

@johnbeard
Copy link

johnbeard commented Aug 8, 2016

On this this laptop (Lenovo Thinkpad T440s, no external keyboard, running Arch Linux), no matching keyboards are founds, so I get ImportError: No keyboard files found (/dev/input/by-path/*-event-kbd).

My /dev/input/by-path directory has only:

lrwxrwxrwx 1 root root  10 Aug  6 22:40 pci-0000:00:14.0-usb-0:8:1.0-event -> ../event13
lrwxrwxrwx 1 root root   9 Aug  6 22:40 platform-pcspkr-event-spkr -> ../event5
lrwxrwxrwx 1 root root   9 Aug  6 22:40 platform-thinkpad_acpi-event -> ../event4

by-id is just one:

lrwxrwxrwx 1 root root  10 Aug  6 22:40 usb-J30E9SCWZ_Integrated_Camera-event-if00 -> ../event13

xinput list reports:

⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=11   [slave  pointer  (2)]
⎜   ↳ TPPS/2 IBM TrackPoint                     id=12   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ Integrated Camera                         id=9    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=10   [slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                    id=13   [slave  keyboard (3)]

The AT Translated Set 2 keyboard (id 10) is the one that shows activity on xinput test 10.

xinput list-props 10:

Device 'AT Translated Set 2 keyboard':
        Device Enabled (139):   1
        Coordinate Transformation Matrix (141): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        Device Product ID (260):        1, 1
        Device Node (261):      "/dev/input/event0"

Is there any way this library can hook into the keyboard on this system? Let me know if I can give any more details!

@boppreh
Copy link
Owner

boppreh commented Oct 15, 2016

xinput is not available in every system. However there is usually /proc/bus/input/devices that contains more information.

The mouse and keyboard modules now check this file in addition of the by-idpaths. Hopefully this is sufficient for these cases.

And sorry for taking so long to look into this problem.

@boppreh
Copy link
Owner

boppreh commented Oct 16, 2016

I can't test the solution, but since this issue is so old you will probably take some time to review the solution. Therefore I'll be closing the issue now, but feel free to comment again if the problem persists.

@boppreh boppreh closed this as completed Oct 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants