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.