4

[ubuntu] Karmic: x200 tablet problem switching between tablet mode and back kills stylus

view full story
linux-howto

http://ubuntuforums.org – Hello, I'm having problem with the tablet function when switching from normal laptop mode to tablet mode (monitor flipped and folded) and back. I'm using Karmic on a Lenovo x200 tablet with 'Enhanced multitouch' (Lenovo's term to differentiate "multitouch: pen and one point touch" and "enhanced multitouch: pen and two points touch"). I used the the solution by rec and favux [link] which was summarized in this blog: [link]. After doing all the steps, and rebooted, the feature works for a while. I re-oriented to tablet mode, and the stylus reorients itself to portrait - works great. But immediately after that, after i re-oriented to normal, the stylus just stopped working altogether. I had to reboot to get it to work again, but switching to tablet mode and back still kills the stylus. Also, in the solution it mentioned of three types of input: stylus, touch, and eraser. I did: Code: $ xinput --list "Virtual core pointer"        id=0        [XPointer]         Num_buttons is 32         Num_axes is 2         Mode is Relative         Motion_buffer is 256         Axis 0 :                 Min_value is -1                 Max_value is -1                 Resolution is 0         Axis 1 :                 Min_value is -1                 Max_value is -1                 Resolution is 0 "Virtual core keyboard"        id=1        [XKeyboard]         Num_keys is 248         Min_keycode is 8         Max_keycode is 255 "Power Button"        id=2        [XExtensionKeyboard]         Type is KEYBOARD         Num_keys is 248         Min_keycode is 8         Max_keycode is 255 "Sleep Button"        id=3        [XExtensionKeyboard]         Type is KEYBOARD         Num_keys is 248         Min_keycode is 8         Max_keycode is 255 "ThinkPad Extra Buttons"        id=4        [XExtensionKeyboard]         Type is KEYBOARD         Num_keys is 248         Min_keycode is 8         Max_keycode is 255 "AT Translated Set 2 keyboard"        id=5        [XExtensionKeyboard]         Type is KEYBOARD         Num_keys is 248         Min_keycode is 8         Max_keycode is 255 "UVC Camera (17ef:480c)"        id=6        [XExtensionKeyboard]         Type is KEYBOARD         Num_keys is 248         Min_keycode is 8         Max_keycode is 255 "PnP Device (WACf00c)"        id=7        [XExtensionKeyboard]         Type is Wacom Stylus         Num_keys is 248         Min_keycode is 8         Max_keycode is 255         Num_buttons is 32         Num_axes is 6         Mode is Absolute         Motion_buffer is 256         Axis 0 :                 Min_value is 0                 Max_value is 26312                 Resolution is 2540         Axis 1 :                 Min_value is 0                 Max_value is 16520                 Resolution is 2540         Axis 2 :                 Min_value is 0                 Max_value is 255                 Resolution is 1         Axis 3 :                 Min_value is -64                 Max_value is 63                 Resolution is 1         Axis 4 :                 Min_value is -64                 Max_value is 63                 Resolution is 1         Axis 5 :                 Min_value is 0                 Max_value is 1023                 Resolution is 1 "Video Bus"        id=8        [XExtensionKeyboard]         Type is KEYBOARD         Num_keys is 248         Min_keycode is 8         Max_keycode is 255 "PnP Device (WACf00c) eraser"        id=9        [XExtensionKeyboard]         Type is Wacom Eraser         Num_keys is 248         Min_keycode is 8         Max_keycode is 255         Num_buttons is 32         Num_axes is 6         Mode is Absolute         Motion_buffer is 256         Axis 0 :                 Min_value is 0                 Max_value is 26312                 Resolution is 2540         Axis 1 :                 Min_value is 0                 Max_value is 16520                 Resolution is 2540         Axis 2 :                 Min_value is 0                 Max_value is 255                 Resolution is 1         Axis 3 :                 Min_value is -64                 Max_value is 63                 Resolution is 1         Axis 4 :                 Min_value is -64                 Max_value is 63                 Resolution is 1         Axis 5 :                 Min_value is 0                 Max_value is 1023                 Resolution is 1 "TPPS/2 IBM TrackPoint"        id=10        [XExtensionPointer]         Type is MOUSE         Num_buttons is 5         Num_axes is 2         Mode is Relative         Motion_buffer is 256         Axis 0 :                 Min_value is -1                 Max_value is -1                 Resolution is 1         Axis 1 :                 Min_value is -1                 Max_value is -1                 Resolution is 1 "Macintosh mouse button emulation"        id=11        [XExtensionPointer]         Type is MOUSE         Num_buttons is 5         Num_axes is 2         Mode is Relative         Motion_buffer is 256         Axis 0 :                 Min_value is -1                 Max_value is -1                 Resolution is 1         Axis 1 :                 Min_value is -1                 Max_value is -1                 Resolution is 1 and there are only 'stylus' and 'eraser', but no 'touch'. (Note: I think the "Wacom Stylus" and "Wacom Eraser" entries are from after I implemented rec's script.) gali98 suggested editing the .fdi file in this solution: [link] (which is an extension to rec & favux's solution). I tried the same script gali98 provided, but then the stylus doesn't work altogether. I had to revert back to the original .fdi file to get it to work back. I tried to install the newest linuxwacom driver: [link] linuxwacom-0.8.5-6, but it failed in $ make with a bunch of errors: Code: $ make *** snipped *** /bin/bash ../../libtool --tag=CC  --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src/include    -Wall -pedantic  -g -O2 -D__amd64__ -MT wacomcfg.lo -MD -MP -MF .deps/wacomcfg.Tpo -c -o wacomcfg.lo wacomcfg.c  gcc -DHAVE_CONFIG_H -I. -I../../src/include -Wall -pedantic -g -O2 -D__amd64__ -MT wacomcfg.lo -MD -MP -MF .deps/wacomcfg.Tpo -c wacomcfg.c  -fPIC -DPIC -o .libs/wacomcfg.o In file included from wacomcfg.c:36: wacomcfg.h:26:22: error: X11/Xlib.h: No such file or directory wacomcfg.h:27:35: error: X11/extensions/XInput.h: No such file or directory wacomcfg.h:28:36: error: X11/extensions/XIproto.h: No such file or directory In file included from wacomcfg.c:36: wacomcfg.h:58: error: expected specifier-qualifier-list before ‘Display’ wacomcfg.h:62: warning: struct has no members wacomcfg.h:67: error: expected specifier-qualifier-list before ‘XDevice’ wacomcfg.h:75: error: expected ‘)’ before ‘*’ token *** snipped *** make: *** [all-recursive] Error 1 I'm really feeling out of luck and ideas right now. I'm quite a newbie at Linux. I hope someone could help me. The reason I got the x200 is to be able to use the tablet mode to work in Gimp & edit my thesis (I find reading and writing papers are much more convenient in portrait...). Thanks in advance, M (Hardware)