Reply
Thread Tools
Posts: 15 | Thanked: 2 times | Joined on Mar 2009 @ Lappeenranta, Finland
#1
Hello all,
In my master's thesis work I'm using a program that allows to control from pc a nokia device (iTALC, debian package recompiled for maemo diablo), and I'd like to have the possibility to disable local inputs when I remotely "grab" the control of it.

Is there a command that can I use in order to disable ONLY the local inputs (i.e. disable touchpad and keyboard) and be able to remotely work on it?

Currently the only thing that I'm able to do is locking the screen via the following command:
Code:
/usr/bin/dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:locked
but in this way I also forbid the pc user to work on the device :-(

The main reason of my question is that the targeted users for the program in which I'm working will be children from 3 to 9 yo in a classroom environmet (so the teacher will be the one that from pc will control the device--i.e. support a child to solve a particular task)...and so I want to be sure that when the teacher is showing how to do something they will not messed up with keyboard and touchpad.

Some more informations:
- on the Nokias is running an x11vnc server and teacher uses a "custom" VNC viewer
- iTALC is based on Qt libraries: on each device is running a daemon and x11vnc is executed as a separate process into the daemon
- I can send remote commands to the devices

I hope my explanation will be clear enough.

TIA.

bye bye
 
Posts: 678 | Thanked: 197 times | Joined on Jul 2007 @ San Jose CA
#2
How does vncviewer with view-only password work?
Is it the same to what you want to do?
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#3
echo 1 > /sys/devices/platform/i2c_omap.2/i2c-0/0-0045/disable_kp
echo 1 > /sys/devices/platform/omap2_mcspi.1/spi1.0/disable_ts

Oh, and for good measure:
The following will make the power key do nothing:
/etc/init.d/systemui stop
/etc/init.d/mce stop

Last edited by qwerty12; 2009-07-10 at 15:06.
 

The Following 3 Users Say Thank You to qwerty12 For This Useful Post:
Posts: 15 | Thanked: 2 times | Joined on Mar 2009 @ Lappeenranta, Finland
#4
@nhanquy:
How does vncviewer with view-only password work?
Is it the same to what you want to do?
I didn't get what you meant, but anyway what qwerty12 proposed worked fine and for me solved also another problem: disabling the lock button switch.

The only thing is that "systemui" is not recognized, but only mce is also ok for disabling the hw buttons.

bye bye
 

The Following User Says Thank You to zanne For This Useful Post:
Reply

Tags
x11vnc italc


 
Forum Jump


All times are GMT. The time now is 01:37.