Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

Xinput map device as both keyboard and mouse?

$
0
0
Perhaps an odd question... but I have a tablet which has macro keys along one side (F1->F12). It's an APT6000U.

evtest shows the key events being reported properly:

Code:

vent: time 1402497839.730123, -------------- SYN_REPORT ------------
Event: time 1402497839.776152, type 1 (EV_KEY), code 62 (KEY_F4), value 0
Event: time 1402497839.776152, -------------- SYN_REPORT ------------
etc...

however, it does not generate the F-key events within X11.

I suspect it's because the device is listed as a pointer and the key events are getting ignored? here's the output of Xinput list:

Code:

⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜  ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜  ↳ Aiptek                                    id=10  [slave  pointer  (2)]
⎜  ↳ Logitech Trackball                        id=11  [slave  pointer  (2)]
⎜  ↳ ETPS/2 Elantech Touchpad                  id=13  [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)]
    ↳ Video Bus                                id=8    [slave  keyboard (3)]
    ↳ Power Button                              id=9    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=12  [slave  keyboard (3)]
    ↳ MSI WMI hotkeys                          id=14  [slave  keyboard (3)]

So... is there a way to "add" the Aiptek device as a child of the core keyboard as well?

here's my current xorg.conf.d file:

Code:

cat /etc/X11/xorg.conf.d/50-aiptek.conf
Section "InputClass"
        Identifier "Aiptek class"
        MatchProduct "Aiptek|AIPTEK|aiptek"
        MatchDevicePath "/dev/input/event*"
        Driver "aiptek"
        Option "SendCoreEvents" "true"
        Option "USB" "on"
        Option "Type" "stylus"
        Option "Mode" "absolute"
        Option "zMin" "0"
        Option "zMax" "511"
EndSection

there must be a way to do so... I'm just not seeing it.

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>