Home > amd64, archlinux, post, xorg > wacom input hotplugging

wacom input hotplugging

 
Prima di tutto:

sudo cp /etc/X11/xorg.conf  /etc/X11/xorg_no_hotplugging.conf

poi puliamo l’xorg.conf togliendo tutta la parte dei dispositivi, e dopo creiamo la nuova policy per hal :

sudo nano /etc/hal/fdi/policy/10-wacom.fdi :

<?xml version="1.0" encoding="UTF-8"?> <deviceinfo version="0.2"> <device> <match key="info.capabilities" contains="input.touchpad"> <merge key="input.x11_driver" type="string">wacom</merge> <merge key="input.x11_options.Type" type="string">cursor</merge> <merge key="input.x11_options.Mode" type="string">Relative</merge> </match> </device> </deviceinfo>

 
Volendo potete modificare la parte relativa alla chiave “match key”, aiutandovi con l’output di hal-device | grep -B 15 input.x11.driver | less :

udi = '/org/freedesktop/Hal/devices/usb_device_56a_11_noserial_if0_logicaldev_input'
input.x11_driver = 'wacom'  (string)
--
info.subsystem = 'input'  (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_56a_11_noserial_if0'  (string)
info.product = 'Wacom Graphire2 4x5'  (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_56a_11_noserial_if0_logicaldev_input'  (string)
info.category = 'input'  (string)
info.capabilities = { 'input', 'input.touchpad' } (string list)
linux.hotplug_type = 2  (0x2)  (int)
linux.subsystem = 'input'  (string)
linux.device_file = '/dev/input/event6'  (string)
input.device = '/dev/input/event6'  (string)
input.x11_options.Type = 'cursor'  (string)
input.product = 'Wacom Graphire2 4x5'  (string)
input.x11_options.Mode = 'Relative'  (string)

 
(ad esempio potete prendere il campo product e in contains metterci il nome della tavoletta) mentre le chiavi:

<merge key="input.x11_driver" type="string">wacom</merge> <merge key="input.x11_options.Type" type="string">cursor</merge> <merge key="input.x11_options.Mode" type="string">Relative</merge>

 
permettono di usarla con il classico mouse e se usate la pennina basta cambiare cursor con stylus.
 
Commento: ho anche ricompilato il pacchetto linuxwacom aggiungendo nel pkgbuild nella parte di ./configure la flag –enable-evdev=yes :

      ./configure --prefix=/usr \
		  --x-includes=/usr/include/pixman-1 \
		  --enable-wacom \
              --enable-evdev=yes

ma non credo sia neccessario.

About these ads
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

%d bloggers like this: