04-02-2023, 06:50 AM
The random keyboard/mouse activity suggests hardware so I guess you've tried physically changing the keyboard and mouse and dismantling and cleaning where possible.
Otherwise, to debug mouse and keyboard input, open a terminal and type
followed by return.
This should open a small 'Event Tester' window.
Any pointer moves/mouse clicks within the Event Tester window should be logged in the Terminal window.
Similarly, if the Event Tester window is selected/active, operating any key should cause two messages (press and release) in the Terminal window.
Adjust the Terminal and Event Tester windows so there is no overlap and both are visible.
To check the system for keyboard lag.
Ensure the Event Tester window is selected but keep the mouse pointer well away from the window.
Press keys while watching the terminal.
Any significant lag between the physical press/release and the 'KeyPress' and 'KeyRelease' reports should be easily detectable.
To check for spurious mouse activity
Place the mouse cursor in the window. Note the event time stamp in the terminal window and then leave the system alone while watching the terminal for any spurious events.
To end the xev session, select the terminal window and press 'ctrl' and 'c'
For the UK/US key mapping conflict.
Go back to the Settings->Keyboard->Layout tab
If there is more than one Keyboard layout in the lower section remove any extras, leaving just the one you want.
Otherwise, to debug mouse and keyboard input, open a terminal and type
Code:
xev
followed by return.
This should open a small 'Event Tester' window.
Any pointer moves/mouse clicks within the Event Tester window should be logged in the Terminal window.
Similarly, if the Event Tester window is selected/active, operating any key should cause two messages (press and release) in the Terminal window.
Adjust the Terminal and Event Tester windows so there is no overlap and both are visible.
To check the system for keyboard lag.
Ensure the Event Tester window is selected but keep the mouse pointer well away from the window.
Press keys while watching the terminal.
Any significant lag between the physical press/release and the 'KeyPress' and 'KeyRelease' reports should be easily detectable.
To check for spurious mouse activity
Place the mouse cursor in the window. Note the event time stamp in the terminal window and then leave the system alone while watching the terminal for any spurious events.
To end the xev session, select the terminal window and press 'ctrl' and 'c'
For the UK/US key mapping conflict.
Go back to the Settings->Keyboard->Layout tab
If there is more than one Keyboard layout in the lower section remove any extras, leaving just the one you want.
stevef
clueless
clueless