[ubuntu-x] Automatically start virtual keyboard or virtual mouse when one is not detected

Bryce Harrington bryce at canonical.com
Tue Sep 16 21:22:20 BST 2008


On Tue, Sep 16, 2008 at 01:25:26AM -0400, Bryan Quigley wrote:
> Hello Ubuntu-x,
> 
> I have this idea: http://brainstorm.ubuntu.com/idea/5231/
> *Automatically start virtual keyboard or virtual mouse when one is not
> detected *
> 
>   - No Keyboard, but mouse: start on-screen keyboard
>   - No Mouse, but keyboard: enable numlock keys as mouse, alert user of how
>   to turn on and off
> Previously discussed on ubuntu-desktop:
> https://lists.ubuntu.com/archives/ubuntu-desktop/2008-September/001730.html
> 
> I am currently using this command to detect if there is a mouse present:
> dmesg | grep mouse | wc -l
> Is that the best way or should I be using Xinput or something else?

xinput would probably be the better approach going forward.  You may
want to check what happens in the dmesg output if you boot without a
mouse and then connect one subsequently.

Bryce



More information about the Ubuntu-x mailing list