ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] снятся ли xorg'у электромыши
@ 2011-02-06 15:19 Алексей Синицын
  2011-02-06 17:07 ` Алексей Синицын
  0 siblings, 1 reply; 4+ messages in thread
From: Алексей Синицын @ 2011-02-06 15:19 UTC (permalink / raw)
  To: ALT Linux Community general discussions

[-- Attachment #1: Type: text/plain, Size: 1347 bytes --]

 Доброго времени суток.

 До последнего времени у меня в xorg.conf было вписано
Option "AutoAddDevices" "false"
появившись однажды, когда описания устройств ввода переехали в другие
места. Но за некоторое время система обросла рядом побочных эффектов,
обсуждать которые в общем смысла особого нет, и возникло желание
посмотреть свежеустановленую систему.

 Ни к чему тянуть в новую жизнь старые привычки, и я тут же нашёл
/etc/X11/xorg.conf.d/95-input-keyboard.conf
в котором указал раскладку и она заработала. Но с трекболом всё
получилось не так хорошо. Положив файл описания в xorg.conf.d/ я
результата не увидел; положив описание в
/etc/hal/fdi/policy/trackball.fdi
я увидел в lshal что результат появился, но до xorg он не дошёл. Но, с
другой стороны, ехать важнее чем шашечки и я поместил "AutoAddDevices"
"false" и описания обратно в xorg.conf, но от этого устройства ввода в
иксах просто исчезли.

Соответственно, вопрос как это сегодня делать правильно, и можно ли
посмотреть что иксы думают о текущей конфигурации (сегодня фактически
размазанной, но они-то должны знать с чем работают?).

 Содержимое trackball.fdi и выхлопа lshal в приложении (что бы не
разъезжалось форматирование), в fdi практически рабочий кусок старого
xorg.conа, но там в качестве устройства было /dev/input/mice и драйвер
mouse, и то и другое пробовал добавлять.

[-- Attachment #2: trackball.config.text --]
[-- Type: text/plain, Size: 2280 bytes --]


19:11 sinaps@wind ~ $ cat /etc/hal/fdi/policy/trackball.fdi
<deviceinfo version="0.2">
 <device>
  <match key="info.product" string="Logitech USB Trackball">
   <merge key="input.x11_options.Buttons" type="string">5</merge>
   <merge key="input.x11_options.ButtonMapping" type="string">1 8 3 2 9</merge>
   <merge key="input.x11_options.DragLockButtons" type="string">9 2</merge>
   <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
   <merge key="input.x11_options.EmulateWheelTimeout" type="string">300</merge>
   <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
   <merge key="input.x11_options.ZaxisMapping" type="string">4 5</merge>
   <merge key="input.x11_options.Emulate3Button" type="string">true</merge>
  </match>
 </device>
</deviceinfo>

19:11 sinaps@wind ~ $ 


19:12 sinaps@wind ~ $ lshal|grep -B 5 -A 14 Track          

udi = '/org/freedesktop/Hal/devices/usb_device_46d_c408_noserial_if0_logicaldev_input'
  info.capabilities = {'input', 'input.mouse'} (string list)
  info.category = 'input'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_46d_c408_noserial_if0'  (string)
  info.product = 'Logitech USB Trackball'  (string)
  info.subsystem = 'input'  (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_46d_c408_noserial_if0_logicaldev_input'  (string)
  input.device = '/dev/input/event4'  (string)
  input.originating_device = '/org/freedesktop/Hal/devices/usb_device_46d_c408_noserial_if0'  (string)
  input.product = 'Logitech USB Trackball'  (string)
  input.x11_driver = 'evdev'  (string)
  input.x11_options.ButtonMapping = '1 8 3 2 9'  (string)
  input.x11_options.Buttons = '5'  (string)
  input.x11_options.DragLockButtons = '9 2'  (string)
  input.x11_options.Emulate3Button = 'true'  (string)
  input.x11_options.EmulateWheel = 'true'  (string)
  input.x11_options.EmulateWheelButton = '2'  (string)
  input.x11_options.EmulateWheelTimeout = '300'  (string)
  input.x11_options.ZaxisMapping = '4 5'  (string)
  linux.device_file = '/dev/input/event4'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'input'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:02.1/usb2/2-1/2-1:1.0/input/input4/event4'  (string)

19:12 sinaps@wind ~ $ 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-06 20:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-06 15:19 [Comm] снятся ли xorg'у электромыши Алексей Синицын
2011-02-06 17:07 ` Алексей Синицын
2011-02-06 19:20   ` Afanasov Dmitry
2011-02-06 20:46     ` Алексей Синицын

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git