In Linux if you wish to control or inject commands into your mouse and keyboard you have to use libxtest and you must enable XTEST extension in xorg.conf. ###>In Linux if you wish to control or inject commands into your mouse and keyboard you have to use libxtest and you must enable XTEST extension in xorg.conf.