gsynaptics parameters

[~] cat .gconf/desktop/gnome/peripherals/touchpad/%gconf.xml
<?xml version="1.0"?>
<gconf>
 <entry name="min_speed" mtime="1248964566" type="int" value="0"/>
 <entry name="max_speed" mtime="1249108162" type="int" value="407"/>
 <entry name="accel_factor" mtime="1248964577" type="int" value="44"/>
 <entry name="horiz_scroll_delta" mtime="1249186014" type="int" value="100"/>
 <entry name="vert_scroll_delta" mtime="1249186014" type="int" value="100"/>
 <entry name="max_tap_time" mtime="1249186014" type="int" value="180"/>
 <entry name="off" mtime="1249186014" type="bool" value="false"/>
</gconf> 

[~]

linuxwacom & xorg-server 1.6.0-3 & kernel 2.6.29.1-3

  1. sudo pacman -R linuxwacom
  2. y linuxwacom-dev
  3. sudo mv /etc/hal/fdi/policy/10-wacom.fdi /etc/hal/fdi/policy/10-wacom_old.fdi
  4. sudo nano /etc/hal/fdi/policy/10-wacom.fdi:

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
    <match key="input.product" contains="Wacom Graphire2 4x5">
          <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>

Nel policy ho cambiato la riga per il riconoscimento della tavoletta, sostituendo:

<match key="info.capabilities" contains="input.touchpad">

con questa:

<match key="input.product" contains="Wacom Graphire2 4x5">

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.

“Xorg input hotplugging” sull’aspire one

Qui trovate la pagina sul wiki di questa nuova funzionalità di Xorg..

Per prima cosa ci salviamo la configurazione “vecchia” di X:

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

editiamo quindi l’xorg.conf cercando di ottenere una cosa come questa (scusate per l’indentazione):

[~] cat /etc/X11/xorg.conf

Section "ServerLayout"
Identifier     "Default Layout"
Screen      0  "Screen0" 0 0
EndSection
Section "ServerFlags"
Option "AllowMouseOpenFail"  "true"
EndSection
Section "Files"
ModulePath   "/usr/lib/xorg/modules"
FontPath     "/usr/share/fonts/misc:unscaled"
FontPath     "/usr/share/fonts/misc"
FontPath     "/usr/share/fonts/75dpi:unscaled"
FontPath     "/usr/share/fonts/75dpi"
FontPath     "/usr/share/fonts/100dpi:unscaled"
FontPath     "/usr/share/fonts/100dpi"
FontPath     "/usr/share/fonts/PEX"
# Additional fonts: Locale, Gimp, TTF...
FontPath     "/usr/share/fonts/cyrillic"
#       FontPath     "/usr/share/lib/X11/fonts/latin2/75dpi"
#       FontPath     "/usr/share/lib/X11/fonts/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
FontPath     "/usr/share/fonts/Type1"
FontPath     "/usr/share/fonts/ttf/western"
FontPath     "/usr/share/fonts/ttf/decoratives"
FontPath     "/usr/share/fonts/truetype"
FontPath     "/usr/share/fonts/truetype/openoffice"
FontPath     "/usr/share/fonts/truetype/ttf-bitstream-vera"
FontPath     "/usr/share/fonts/latex-ttf-fonts"
FontPath     "/usr/share/fonts/defoma/CID"
FontPath     "/usr/share/fonts/defoma/TrueType"
FontPath     "/usr/share/fonts/artwiz-fonts"
FontPath     "/usr/share/fonts/local"
EndSection
Section "Monitor"
Identifier  "Monitor0"
Modeline  "1024x600" 48.96 1024 1064 1168 1312 600 601 604 622 -HSync +VSync
DisplaySize 346 203 # 75 DPI @ 1024x600
EndSection
Section "Device"
Identifier  "Videocard0"
Driver      "intel"
Option      "Clone" "true"
Option      "MonitorLayout"     "LVDS,VGA"
BusID       "PCI:0:2:0"
Option      "MigrationHeuristic" "greedy"
Option      "AccelMethod" "EXA"
EndSection
Section "Screen"
Identifier "Screen0"
Device     "Videocard0"
Monitor     "Monitor0"
DefaultDepth     24
SubSection "Display"
Viewport   0 0
Depth     24
Modes    "1024x600" "800x600" "640x480"
Virtual 1920 1800
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
[~]

Iniziamo quindi con le modifiche per hal : intanto controlliamo di avere il pacchetto evdev:

[~] pacman -Q | grep evdev
xf86-input-evdev 2.1.2-1
[~]

Poi ci copiamo i file che servono per gestire la tastiera e il touchpad:

cd /usr/share/hal/fdi/policy/10osvendor/
cp 10-keymap.fdi 10-x11-input.fdi 11-x11-synaptics.fdi /etc/hal/fdi/policy/

Infine editiamo i file di policy in questo modo:

[policy] sudo gedit /etc/hal/fdi/policy/10-keymap.fdi

…..
<merge key=”input.xkb.layout” type=”string”>it</merge>
…..

[policy] sudo gedit /etc/hal/fdi/policy/10-x11-input.fdi

…..
<match key=”/org/freedesktop/Hal/devices/computer:system.kernel.name”
string=”Linux”>
<merge key=”input.x11_driver” type=”string”>evdev</merge>

<merge key=”input.x11_options.CoreKeyboard” type=”string”></merge>
<merge key=”input.x11_options.XkbRules” type=”string”>xorg</merge>
<merge key=”input.x11_options.XkbModel” type=”string”>pc105</merge>
<merge key=”input.x11_options.XkbLayout” type=”string”>it</merge>
<merge key=”input.x11_options.XkbVariant” type=”string”>nodeadkeys</merge>

</match>
…..

[policy] sudo gedit /etc/hal/fdi/policy/11-x11-synaptics.fdi

…..
<merge key=”input.x11_options.Protocol” type=”string”>auto-dev</merge>
<merge key=”input.x11_options.LeftEdge” type=”string”>1700</merge>
<merge key=”input.x11_options.RightEdge” type=”string”>5300</merge>
<merge key=”input.x11_options.TopEdge” type=”string”>1700</merge>
<merge key=”input.x11_options.BottomEdge” type=”string”>4200</merge>
<merge key=”input.x11_options.FingerLow” type=”string”>25</merge>
<merge key=”input.x11_options.FingerHigh” type=”string”>30</merge>
<merge key=”input.x11_options.MaxTapTime” type=”string”>180</merge>
<merge key=”input.x11_options.MaxTapMove” type=”string”>220</merge>
<merge key=”input.x11_options.VertScrollDelta” type=”string”>100</merge>
<merge key=”input.x11_options.MinSpeed” type=”string”>0.09</merge>
<merge key=”input.x11_options.MaxSpeed” type=”string”>0.18</merge>
<merge key=”input.x11_options.AccelFactor” type=”string”>0.0030</merge>
<merge key=”input.x11_options.SHMConfig” type=”string”>true</merge>
<merge key=”input.x11_options.ClickFinger1″ type=”string”>1</merge>
<merge key=”input.x11_options.ClickFinger2″ type=”string”>0</merge>
<merge key=”input.x11_options.ClickFinger3″ type=”string”>0</merge>
<merge key=”input.x11_options.TapButton1″ type=”string”>1</merge>
<merge key=”input.x11_options.TapButton2″ type=”string”>0</merge>
<merge key=”input.x11_options.TapButton3″ type=”string”>0</merge>
</match>
…..

Come sempre se troverò errori, miglioramenti ecc aggiornerò l’articolo.

EDIT: Ora xbindkeys vede anche il tasto Fn.