I'm trying to get gestures working without having to press a mouse button, by getting bezel button (usually used for screen rotation but often broken) to stand in, via a script called xdotool (http://www.semicomplete.com/projects/xdotool/). (It's available from the software centre.) This would make Easystroke gestures usable in tablet configuration - making that configuration a lot more useful.

It should be really simple, but unfortunately I haven't been successful so far. This is what I've tried.

Based on tips earlier in this thread, I put two event handlers in /etc/acpi/events/
1) asus-fake-mousedown:
Code:
event=hotkey (ATKD|HOTK) 0000007b
action=/etc/acpi/fakemousedown.sh
2) asus-fake-mouseup:
Code:
event=hotkey (ATKD|HOTK) 0000007d
action=/etc/acpi/fakemousedup.sh
In /etc/acpi I put 1) fakemousedown.sh
Code:
#!/bin/sh
#
# simulates mouse down action when bevel 
xdotool mousedown 1
and 2) fakemouseup.sh
Code:
#!/bin/sh
#
# simulates mouse down action when bevel 
xdotool mouseup 1
The xdotool commands work ok from the command line, as does invoking the shell scripts. Any ideas what the problem might be?