Null key and g spontaneously sent when headphones are connected #676

Open
opened 2026-01-30 21:59:16 +00:00 by claunia · 0 comments
Owner

Originally created by @odedp on GitHub (May 7, 2019).

  • Your Windows build number: Microsoft Windows [Version 10.0.17763.475]

  • What you're doing and what's happening: I installed WSL and Ubuntu 18.04 from Microsoft store. When I use the terminal, sometimes things seem very strange. I eventually traced it to null keys being spontaneously sent. If I just open the Ubuntu shell and run showkey -a, it seems that every second or two a null key is sent. After a few seconds I get:

<user>@<hostname>:~$ showkey -a

Press any keys - Ctrl-D will terminate this program

^@        0 0000 0x00
^@        0 0000 0x00
^@        0 0000 0x00
^@        0 0000 0x00
^@        0 0000 0x00

Moreover, when I run an X server (I use VcXsrv) it seems the spontaneous keys are g and not the null key. If I open xterm and then run showkey -a, after a few seconds I get this:

<user>@<hostname>:~$ showkey -a

Press any keys - Ctrl-D will terminate this program

g       103 0147 0x67
g       103 0147 0x67
g       103 0147 0x67
g       103 0147 0x67
g       103 0147 0x67

This seems somewhat similar to #215, but I am not pressing any key (i.e., not the shift key), and I also do not have a touch keyboard. I'm running on a ThinkPad X1 Carbon 6th laptop. It does not have a touch screen.

  • What's wrong / what should be happening instead: See above.
Originally created by @odedp on GitHub (May 7, 2019). * Your Windows build number: Microsoft Windows [Version 10.0.17763.475] * What you're doing and what's happening: I installed WSL and Ubuntu 18.04 from Microsoft store. When I use the terminal, sometimes things seem very strange. I eventually traced it to null keys being spontaneously sent. If I just open the Ubuntu shell and run `showkey -a`, it seems that every second or two a null key is sent. After a few seconds I get: ``` <user>@<hostname>:~$ showkey -a Press any keys - Ctrl-D will terminate this program ^@ 0 0000 0x00 ^@ 0 0000 0x00 ^@ 0 0000 0x00 ^@ 0 0000 0x00 ^@ 0 0000 0x00 ``` Moreover, when I run an X server (I use VcXsrv) it seems the spontaneous keys are `g` and not the null key. If I open `xterm` and then run `showkey -a`, after a few seconds I get this: ``` <user>@<hostname>:~$ showkey -a Press any keys - Ctrl-D will terminate this program g 103 0147 0x67 g 103 0147 0x67 g 103 0147 0x67 g 103 0147 0x67 g 103 0147 0x67 ``` This seems somewhat similar to #215, but I am not pressing any key (i.e., not the shift key), and I also do not have a touch keyboard. I'm running on a ThinkPad X1 Carbon 6th laptop. It does not have a touch screen. * What's wrong / what should be happening instead: See above.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#676