You are not logged in.
Pages: 1
Hello! I've just bought a new notebook and installed Arch Linux with i3 on it.
I'm trying to configure a few keys that weren't configured by default such as multimedia keys and touchpad enable/diable key.
I manged to get the multimedia keys working but when I try to get my touchpad key working there's something weird happening.
Using
xev | awk -F'[ )]+' '/^KeyPress/ { a[NR+2] } NR in a { printf "%-3s %s\n", $5, $8 }'and pressing given key my output is:
133 Super_L
33 pHow comes my key pressing is returning two different keycodes?
On my i3 config I had configured for the XF86TouchpadToggle key to work, but I guess that I just need to rebind the 133 KeyCode. The Issue at the moment is that my Touchpad toggle key is returning two keycodes,
I still don't understand anything about key mapping so any help is welcomed!
Thanks (=
Last edited by IceS2 (2017-12-13 16:02:19)
Offline
Are you sure that was your touchpad toggle key? It's more likely that the toggle key did not emit a signal, and those results were due to you pressing Mod+p during that same interval.
Getting rid of that awk filter would help see what is going on as it filters out key presses that were already bound by another process.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Trillby... I'm not sure because I know nothing about this... but I think it is.
xev unfiltered with the output caused by me pressing my touchpad toggle key:
KeyPress event, serial 33, synthetic NO, window 0xe00001,
root 0x126, subw 0x0, time 7720873, (-354,657), root:(298,679),
state 0x0, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 33, synthetic NO, window 0xe00001,
root 0x126, subw 0x0, time 7720873, (-354,657), root:(298,679),
state 0x40, keycode 33 (keysym 0x70, p), same_screen YES,
XLookupString gives 1 bytes: (70) "p"
XmbLookupString gives 1 bytes: (70) "p"
XFilterEvent returns: False
KeyRelease event, serial 33, synthetic NO, window 0xe00001,
root 0x126, subw 0x0, time 7720926, (-354,657), root:(298,679),
state 0x40, keycode 33 (keysym 0x70, p), same_screen YES,
XLookupString gives 1 bytes: (70) "p"
XFilterEvent returns: False
KeyRelease event, serial 33, synthetic NO, window 0xe00001,
root 0x126, subw 0x0, time 7720926, (-354,657), root:(298,679),
state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: FalseOffline
The key apparently emits a sequence, likely to trigger a windows shortcut (Meta+p)
Offline
Hey Seth, is there anyway to change that behavior?
Offline
Well, I was being stupid. I'm sorry guys!
The key actually does Windows + p in order to project some stuff, that's something new in Windows 10 for what I saw.
There's no Toggle Touchpad Key on my notebook!
I'll just get a shortcut for my script going and we're all good.
Solved!
Offline
Pages: 1