Android AVD keyboard input not working all the time on xUbuntu OS
<p>I have a weird behavior on my xubuntu machine and I don't know why.</p>

<ol>
<li>Start the emulator and have a EditText in the app. </li>
<li>Tap on EditText and the android keyboard pops up</li>
<li>Tap keys on my PC's hardware keyboard but no input on the emulator.</li>
<li><p>Now here is the weird part, tap on the 3 dots menu of the emulator settings:
<a href="https://i.stack.imgur.com/PYaZk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PYaZk.png" alt="enter image description here"></a> </p></li>
<li><p>The settings screen opens, for instance with the Locations setting which does have an input field for Longitude. I close the screen</p></li>
<li>Now the input of my PC's keyboard works on the emulator.</li>
</ol>

<p>So, basically only after doing these steps I can input in the emulator using my keyboard. If I go back to Android Studio and type something, when I return to the emulator, it does not work.
How can I make the input work all the time?</p>