Метки

, ,

Как известно, последние версии X-сервера требуют настройки через HAL. Полезными могут быть настройка synaptics, ntfs и xinput.

/etc/hal/fdi/policy/11-x11-synaptics.fdi

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.touchpad">
        <merge key="input.x11_driver" type="string">synaptics</merge>
        <!-- Arbitrary options can be passed to the driver using
             the input.x11_options property since xorg-server-1.5. -->
        <!-- EXAMPLES:
        Switch on shared memory, enables the driver to be configured at runtime
	<merge key="input.x11_options.SHMConfig" type="string">true</merge>

	Maximum movement of the finger for detecting a tap
	<merge key="input.x11_options.MaxTapMove" type="string">2000</merge>

	Enable vertical scrolling when dragging along the right edge
	<merge key="input.x11_options.VertEdgeScroll" type="string">true</merge>

	Enable vertical scrolling when dragging with two fingers anywhere on the touchpad
	<merge key="input.x11_options.VertTwoFingerScroll" type="string">true</merge>

	Enable horizontal scrolling when dragging with two fingers anywhere on the touchpad
	<merge key="input.x11_options.HorizTwoFingerScroll" type="string">true</merge>

	If on, circular scrolling is used
	<merge key="input.x11_options.CircularScrolling" type="string">true</merge>

	For other possible options, check CONFIGURATION DETAILS in synaptics man page
        -->

	<merge key="input.x11_options.SHMConfig" type="string">true</merge>
	<merge key="input.x11_options.MaxTapMove" type="string">110</merge>
	<merge key="input.x11_options.MaxTapTime" type="string">2000</merge>
	<merge key="input.x11_options.MaxDoubleTapTime" type="string">2000</merge>
	<merge key="input.x11_options.VertEdgeScroll" type="string">true</merge>
	<merge key="input.x11_options.TapButton1" type="string">1</merge>
	<!-- merge key="input.x11_options.FingerHigh" type="string">2000</merge -->
	<!-- merge key="input.x11_options.TapButton2" type="string">2</merge -->
    </match>
  </device>
</deviceinfo>


/etc/hal/fdi/policy/10-xinput-configuration.fdi

<?xml version="1.0" encoding="UTF-8"?>
<!--
Section "InputDevice"
   Driver "evdev"
   Option "XkbLayout" "ee"
EndSection
-->
<deviceinfo version="0.2">
   <match key="info.capabilities" contains="input.keyboard">
      <merge key="input.x11_options.XkbLayout" type="string">ee</merge>
   </match>
</deviceinfo>


/etc/hal/fdi/policy/10-ntfs3g.fdi

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
   	<match key="volume.fstype" string="ntfs">
        <append key="volume.fstype.alternative" type="copy_property">volume.fstype</append>
        <merge key="volume.mount.ntfs.valid_options" type="copy_property">volume.mount.valid_options</merge>
        <merge key="volume.unmount.ntfs.valid_options" type="copy_property">volume.unmount.valid_options</merge>
        <merge key="volume.fstype" type="string">ntfs-3g</merge>
       	<merge key="volume.mount.valid_options" type="strlist">ro</merge>
        <append key="volume.mount.valid_options" type="strlist">atime</append>
        <append key="volume.mount.valid_options" type="strlist">noatime</append>
       	<append key="volume.mount.valid_options" type="strlist">relatime</append>
       	<append key="volume.mount.valid_options" type="strlist">fake_rw</append>
       	<append key="volume.mount.valid_options" type="strlist">no_def_opts</append>
       	<append key="volume.mount.valid_options" type="strlist">default_permissions</append>
       	<append key="volume.mount.valid_options" type="strlist">umask=</append>
       	<append key="volume.mount.valid_options" type="strlist">fmask=</append>
       	<append key="volume.mount.valid_options" type="strlist">dmask=</append>
       	<append key="volume.mount.valid_options" type="strlist">uid=</append>
       	<append key="volume.mount.valid_options" type="strlist">gid=</append>
      	<append key="volume.mount.valid_options" type="strlist">show_sys_files</append>
       	<append key="volume.mount.valid_options" type="strlist">silent</append>
       	<append key="volume.mount.valid_options" type="strlist">force</append>
       	<append key="volume.mount.valid_options" type="strlist">remove_hiberfile</append>
       	<append key="volume.mount.valid_options" type="strlist">locale=</append>
       	<append key="volume.mount.valid_options" type="strlist">streams_interface=</append>
       	<append key="volume.mount.valid_options" type="strlist">debug</append>
       	<append key="volume.mount.valid_options" type="strlist">no_detatch</append>
       	<append key="volume.mount.valid_options" type="strlist">sync</append>
       	<append key="volume.mount.valid_options" type="strlist">dirsync</append>
       	<append key="volume.mount.valid_options" type="strlist">nodiratime</append>
       	<append key="volume.mount.valid_options" type="strlist">noexec</append>
        <append key="volume.mount.valid_options" type="strlist">quiet</append>
       	<append key="volume.mount.valid_options" type="strlist">remount</append>
       	<append key="volume.mount.valid_options" type="strlist">exec</append>
       	<append key="volume.mount.valid_options" type="strlist">recover</append>
       	<append key="volume.mount.valid_options" type="strlist">norecover</append>
       	<merge key="volume.unmount.valid_options" type="strlist">lazy</merge>
       	<merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge>
	</match>
  </device>
</deviceinfo>


/etc/hal/fdi/policy/10-ntfs-policy.fdi

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
	<match key="volume.fstype" string="ntfs">
		<match key="@block.storage_device:storage.hotpluggable" bool="true">
			<merge key="volume.fstype" type="string">ntfs-3g</merge>
			<merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge>
			<merge key="org.freedesktop.Hal.Device.Volume.method_execpaths" type="strlist">hal-storage-mount</merge>
			<append key="org.freedesktop.Hal.Device.Volume.method_execpaths" type="strlist">hal-storage-unmount</append>
			<append key="org.freedesktop.Hal.Device.Volume.method_execpaths" type="strlist">hal-storage-eject</append>
		</match>
	</match>
</device>
</deviceinfo>

Реклама