<div dir="ltr">I switched to xinput but couldn't really find a more graceful way of getting the data. <br><br>It works but it will turn the MouseKeys on permanently. I also used xkbset which creates another dependency. I was hoping this could be included in Ubuntu (prolli JJ), should I try to work around the dependency, or just follow a main inclusion bug? And any suggestions to not making it permanent would be helpful too.<br>
<br>Thanks Again,<br>Bryan Quigley<br><br><div class="gmail_quote">On Tue, Sep 16, 2008 at 4:22 PM, Bryce Harrington <span dir="ltr"><<a href="mailto:bryce@canonical.com">bryce@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tue, Sep 16, 2008 at 01:25:26AM -0400, Bryan Quigley wrote:<br>
> Hello Ubuntu-x,<br>
><br>
> I have this idea: <a href="http://brainstorm.ubuntu.com/idea/5231/" target="_blank">http://brainstorm.ubuntu.com/idea/5231/</a><br>
> *Automatically start virtual keyboard or virtual mouse when one is not<br>
> detected *<br>
><br>
> - No Keyboard, but mouse: start on-screen keyboard<br>
> - No Mouse, but keyboard: enable numlock keys as mouse, alert user of how<br>
> to turn on and off<br>
> Previously discussed on ubuntu-desktop:<br>
> <a href="https://lists.ubuntu.com/archives/ubuntu-desktop/2008-September/001730.html" target="_blank">https://lists.ubuntu.com/archives/ubuntu-desktop/2008-September/001730.html</a><br>
><br>
> I am currently using this command to detect if there is a mouse present:<br>
> dmesg | grep mouse | wc -l<br>
> Is that the best way or should I be using Xinput or something else?<br>
<br>
</div>xinput would probably be the better approach going forward. You may<br>
want to check what happens in the dmesg output if you boot without a<br>
mouse and then connect one subsequently.<br>
<font color="#888888"><br>
Bryce<br>
</font></blockquote></div><br></div>