Scripting wise - look for input devices (ex. "dmesg | grep input | grep
Mouse or grep keyboard")

UDEV wise - look for ID_CLASS = kbd or ID_CLASS=mouse (ex. "udevinfo
--export-db | grep mouse")

Kernel - look into pm_find (I know this is power management - but you can
get info on all devices)

 

The place to put it is before gdm/kdm loads and just edit their gnome/kde
prefs to start the gok/orca 

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bryan Quigley
Sent: Wednesday, September 10, 2008 4:03 PM
To: [email protected]
Subject: Automatically start virtual keyboard or virtual mouse when one is
not detected

 

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 

I *think* it is bite-size enough that I could try implementing it.  I would
like suggestions on:

*       Where to put this logic
*       How to best get the info that no mouse/keyboard is plugged in

So far I have come up with "at gnome startup", and grep the Xorg.0.log, but
was wondering if there was a better way (and more supporting of KDE, XFCE,
login screens, etc)
Thanks,
Bryan Quigley

-- 
ubuntu-desktop mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-desktop

Reply via email to