[ubuntu] Aiptek, Gimp and HAL frustration

view full story

http://ubuntuforums.org – Does anyone know how to disable xorg from using HAL for it's input device configuration? Only as far as I can see this is the only way I will be able to make my Aiptek 8000u graphics tablet work properly (or as nearly properly as it did work) again. Or someone might be able to enlighten me as to the Way Of HAL. A bit of background information. Tablet worked mostly fine with Intrepid Ibex. It had a pen, a mouse and an emulated eraser. I have now upgraded to Jaunty Jackalope, using the same kernel I was using with Intrepid. After discovering the tablet no longer worked, I found all the commented out entries in my xorg.conf, and found out about the file /etc/hal/fdi/policy/10-aiptek.fdi, the contents of which are: Code: <?xml version="1.0" encoding="UTF-8"?> <deviceinfo version="0.2">   <device>     <match key="info.product" contains="Aiptek">       <merge key="input.x11_identifier" type="string">Pen</merge>       <merge key="input.x11_driver" type="string">aiptek</merge>       <merge key="input.x11_options.SendCoreEvents" type="string">true</merge>       <merge key="input.x11_options.USB" type="string">On</merge>       <merge key="input.x11_options.Type" type="string">stylus</merge>       <merge key="input.x11_options.Mode" type="string">absolute</merge>       <merge key="input.x11_options.zThreshold" type="string">"1"</merge>       <merge key="input.x11_options.zMin" type="string">0</merge>       <merge key="input.x11_options.zMax" type="string">511</merge>       <merge key="input.x11_options.xTop" type="string">0</merge>       <merge key="input.x11_options.yTop" type="string">0</merge>       <merge key="input.x11_options.xBottom" type="string">1024</merge>       <merge key="input.x11_options.yBottom" type="string">768</merge>       <merge key="input.x11_options.KeepShape" type="string">On</merge>     </match>   </device> </deviceinfo> Here's my lshal output for the tablet: Code: lshal -u usb_device_8ca_10_noserial_if0_logicaldev_input udi = '/org/freedesktop/Hal/devices/usb_device_8ca_10_noserial_if0_logicaldev_input'   access_control.file = '/dev/input/event11'  (string)   access_control.type = 'mouse'  (string)   info.addons.singleton = {'hald-addon-input'} (string list)   info.callouts.add = {'debian-setup-keyboard', 'hal-acl-tool --add-device'} (string list)   info.callouts.remove = {'hal-acl-tool --remove-device'} (string list)   info.capabilities = {'input', 'input.keys', 'input.mouse', 'input.tablet', 'button', 'access_control'} (string list)   info.category = 'input'  (string)   info.parent = '/org/freedesktop/Hal/devices/usb_device_8ca_10_noserial_if0'  (string)   info.product = 'Aiptek'  (string)   info.subsystem = 'input'  (string)   info.udi = '/org/freedesktop/Hal/devices/usb_device_8ca_10_noserial_if0_logicaldev_input'  (string)   input.device = '/dev/input/event11'  (string)   input.originating_device = '/org/freedesktop/Hal/devices/usb_device_8ca_10_noserial_if0'  (string)   input.product = 'Aiptek'  (string)   input.x11_driver = 'aiptek'  (string)   input.x11_identifier = 'Pen'  (string)   input.x11_options.KeepShape = 'On'  (string)   input.x11_options.Mode = 'absolute'  (string)   input.x11_options.SendCoreEvents = 'true'  (string)   input.x11_options.Type = 'stylus'  (string)   input.x11_options.USB = 'On'  (string)   input.x11_options.xBottom = '1024'  (string)   input.x11_options.xTop = '0'  (string)   input.x11_options.yBottom = '768'  (string)   input.x11_options.yTop = '0'  (string)   input.x11_options.zMax = '511'  (string)   input.x11_options.zMin = '0'  (string)   input.x11_options.zThreshold = '"1"'  (string)   input.xkb.layout = 'gb'  (string)   input.xkb.model = 'pc105'  (string)   input.xkb.rules = 'evdev'  (string)   linux.device_file = '/dev/input/event11'  (string)   linux.hotplug_type = 2  (0x2)  (int)   linux.subsystem = 'input'  (string)   linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:13.1/usb3/3-1/3-1:1.0/input/input11/event11'  (string) I had tried putting in the identifier and x and y coordinate info to try to resolve my Gimp problems, which works since I have rebooted the computer, which annoys the stuffing out of me, since this is Linux and rebooting is heresy!. Problem number 1 Buttons on pen don't work. Pressing the point of the pen to click is okay, but sometimes I need to right click. Problem number 2 (solved?) When using the Gimp with extended tool options enabled to get pressure sensitivity, the cursor would move around as expected, but the indicated position of the drawing tool (as per the little black arrows on the rulers) would be in the top left of the screen. Violent movements would produce some lines indicating pressure sensitivity working. Apparent Solution Insert the x and y coordinate lines into the fdi file. I don't know why this works. I'm not even sure of the tablet's resolution anymore, so just used numbers that looked sane. Problem number 3 There does not appear to be a way to define the mouse and eraser devices (defining the eraser is less important since it is emulated, though according to http://aiptektablet.sourceforge.net/xserver.html gtk expects it). The mouse moves the cursor around but the buttons are mixed up. I'm pretty sure I need to be able to give it a name in order to sort out the buttons. I inserted the identifier line into the fdi file as a possible way to resolve this, but it doesn't appear to be recognised. HAL is a great idea, but there doesn't seem to be any documentation as to how to use it to configure X11! (Hardware)