On Sat, May 04, 2013 at 09:32:28PM +0200, Alexander Maret-Huskinson wrote:
> Hi,
> 
> when using xsetwacom 0.21.0 to set express key shortcuts it is possible to 
> "crash" the wacom driver by setting special keys. The driver will no longer 
> respond to any express keys and it is not possible to reset the shortcuts to 
> something else. One has to disconnect and reconnect the tablet to be able to 
> set or use shortcuts again.
> 
> xsetwacom .... set Button 1 "key shift §"
> 
> ... or ...
> 
> xsetwacom ... set Button 1 "key shift ß"
> 
> ... both will crash the driver as explained above.
> 
> This is a problem because e.g. on a german keyboard, the "ß" is a normal key 
> which does not require any modifiers.
> 
> I tried to work around this problem by converting these special keys to X11 
> key symbol names, but it seems, xsetwacom only accepts a very limited set of 
> X11 key symbols.
> 
> It is possible to use "key shift exclam", however "key shift grave" does not 
> work. Instead one has to use the deprecated form "key shift quoteleft". Also 
> many other key symbols like e.g. "paragraph" don't seem to work.
> 
> Where do I find a list of X11 key symbols which are supported by xsetwacom?

http://sourceforge.net/p/linuxwacom/xf86-input-wacom/ci/master/tree/tools/xsetwacom.c#548
it's an obviously incomplete list but the basic approach to this is to call
XKeysymToKeycode(XStringToKeysym(<input string>)).

The XStringToKeysym() is the key point of failure here, its translation
rules are limited. ß isn't recognised, but the symbolic name for it is
  xsetwacom set ... "key ssharp"

and those names you can get from /usr/include/X11/keysymdef.h

having said all that, I can't reproduce the 'crash' - xsetwacom bails out
for § but I can still set some other config afterwards.

Cheers,
   Peter


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to