<div dir="ltr">I switched to xinput but couldn&#39;t really find a more graceful way of getting the data. <br><br>It works but it will turn the MouseKeys on permanently.&nbsp; I also used xkbset which creates another dependency.&nbsp; 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?&nbsp; 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">&lt;<a href="mailto:bryce@canonical.com">bryce@canonical.com</a>&gt;</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>
&gt; Hello Ubuntu-x,<br>
&gt;<br>
&gt; I have this idea: <a href="http://brainstorm.ubuntu.com/idea/5231/" target="_blank">http://brainstorm.ubuntu.com/idea/5231/</a><br>
&gt; *Automatically start virtual keyboard or virtual mouse when one is not<br>
&gt; detected *<br>
&gt;<br>
&gt; &nbsp; - No Keyboard, but mouse: start on-screen keyboard<br>
&gt; &nbsp; - No Mouse, but keyboard: enable numlock keys as mouse, alert user of how<br>
&gt; &nbsp; to turn on and off<br>
&gt; Previously discussed on ubuntu-desktop:<br>
&gt; <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>
&gt;<br>
&gt; I am currently using this command to detect if there is a mouse present:<br>
&gt; dmesg | grep mouse | wc -l<br>
&gt; 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. &nbsp;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>