WWW.GENTOO-SRBIJA.ORG
Real men emerge mm-sources. Četvrtak, 20 Novembar/2008  
 » SADRŽAJ
 › Uvod
 › Performanse
 › Mirori
 › Linkovi
 › Download
 › Mailing lista
 › Kontakt
 » PROFIL
» šifra
zapamti me
  Registracija
 » PRETRAGA
 » NOVI PAKETI
gnome-extra/lock-keys-applet-1.0: An applet that shows the status of your Caps, Num and Scroll Lock keys
dev-python/gtkmozembed-python-2.19.1-r10: Based on the libtool eclass
app-text/evince-2.24.1: Simple document viewer for GNOME
media-gfx/fontforge-20080927: postscript font editor and converter
dev-dotnet/glade-sharp-9999: Dummy ebuild to understand the package move to gtk-sharp[glade]
dev-dotnet/gtk-sharp-2.12.6: Gtk# is a C# language binding for the GTK2 toolkit and GNOME libraries
app-office/glabels-2.2.3: Program for creating labels and business cards
x11-base/xorg-server-1.5.2: X.Org X servers
dev-lang/mono-basic-1.2.4: Visual Basic .NET Runtime and Class Libraries
dev-dotnet/taglib-sharp-2.0.3.0: Taglib# 2.0 - Managed tag reader/writer
 » WEBMAIL
 » GENTOO-PORTAGE
And we're back
Forum index ›› Desktop okruženja › UDEV+Evdev Logitech miš i Xorg?  
  AUTOR   PORUKA

Site Admin
Učlanjen: 27 Oct 04
Lokacija: privileged mode
Poruke: 913
profil¬ poruka¬
 Oglašeno: 02 Dec 06  18:26  

Pre neki dan sam kupio novog Logitech RX300 miša i sad imam nekoliko pitanja/problema?:

Ovako, za miša imam UDEV pravilo koje mi pravi uređaj u /dev/input/rx300 i kada u /etc/X11/xorg.conf-u podesim sledeće parametre za InputDevice, X odbije da se podigne

Kod: Xorg.conf
Section "InputDevice"
Identifier "RX300"
Driver "evdev"
Option "Name" "Logitech USB-PS/2 Optical Mouse" #Ovo sam izvuk'o iz /proc/bus/input/devices
EndSection

takođe sam probao i sa sledećim opcijama i ništa od ovoga ne radi.

Option "Dev Name" "Logitech USB-PS/2 Optical Mouse"
Option "Device" "/dev/input/rx300" -> Ovo ne može da radi ako je preko udev-a podešeno ime uređaja drugačije od eventX (pogledati man u nastavku).

U logu piše sledeće:
Kod: /var/log/Xorg.0.log
(II) evdev brain: Rescanning devices (1).
(EE) PreInit returned NULL for "RX300"
(WW) No core pointer registered

(II) XINPUT: Adding extended input device "evdev brain" (type: evdev brain)


Probao sam da izključim UDEV pravilo koje mi pravi rx300 uređaj i da Xorg.conf podesim ovako

Kod: Xorg.conf
Section "InputDevice"
Identifier "RX300"
Driver "evdev"
Option "Device" "/dev/input/event1" #Takođe iz /proc/bus/input/devices
EndSection


i sve radi normalno!

Iz `man evdev` sam izvukao sledeće

Citat:
Option "Device" "string"
Specifies the device note through which the device can be accessed. At this time ONLY /dev/input/event<N>, where <N> is an inte-
ger, are matched against this this field.
This option uses globbing.
Please note that use of this option is strongly discouraged.

Option "Name" "string"
Specifies the device name for the device you wish to use.
The device name is generally the only consistent identifier for devices that are commonly unplugged and plugged back into differ-
ent ports.
A list of currently plugged in devices and associated device names can be obtained by typing "cat /proc/bus/input/devices", the
"Name" field is the value you want for this option.
This option uses globbing.

i sudeći po ovome, moje prvo podešavanje Xorg.conf-a bi trebalo da je dobro, a ne radi ?!

Imam iskopajliran i učitan evdev kernel modul i emergovan xorg-server driver (xf86-input-evdev).

F1 Gde grešim?


Član
Učlanjen: 07 Jul 05
Lokacija: 127.0.0.1
Poruke: 200
profil¬ poruka¬
upRE: UDEV+Evdev Logitech miš i Xorg?  Oglašeno: 04 Dec 06  02:21  

Ja sam istog tog misa definisao ovako:

Section "InputDevice"
Identifier "Logitech MX310"
Driver "mouse"
Option "Protocol" "explorerps/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "9"
Option "Emulate3Buttons" "false"
Option "ZAxisMapping" "6 7"
Option "Resolution" "800"
EndSection

jes' da nije evdev, ali bas me briga :) Osim toga, neki se mrste sto za aktiviranje tastera za napred-nazad koristim imwheel, ali tu mogu da podesim koju hocu kombinaciju za bilo koji program, tako da sam i tu zadovoljan.


Član
Učlanjen: 13 Apr 05
Lokacija: Užice
Poruke: 120
profil¬ poruka¬
upRE: UDEV+Evdev Logitech miš i Xorg?  Oglašeno: 05 Dec 06  03:36  

Koji evdev i koji xorg? Mislim da xorg-7.1 ne podrzava Device string. Kod mene inace prva varijanta sa Option "Name" radi bez problema. Probaj onaj univerzalni primer za sve miseve iz evdev man stranice sa keyBits & realBits.

HTH


Site Admin
Učlanjen: 27 Oct 04
Lokacija: privileged mode
Poruke: 913
profil¬ poruka¬
upRE: UDEV+Evdev Logitech miš i Xorg?  Oglašeno: 06 Dec 06  17:05  

Izvinjavam se za kasno javljanje...

@lyb Hvala za konfiguraciju preko "mouse" drajvera, probaću je. Od samog početka sam hteo da izbegnem imwheel, zato sam i dao šansu evdev-u, ali ako mi se ova kombinacija sa "mouse" drajverom pokaže kao dobra (ne sumnjam) pridružujem ti se definitivno :)

@Petar Verzija Xorga je 7.1, xorg-server-a je 1.1.1-r2 i xf86-input-evdev je 1.1.4-r1 . Što se tiče Device stringa, Xorg naravno idalje podržava ali isti neće raditi sa Evdev event uređajima ako imaju drugačija imena od eventX, kao što i man kaže, i onda se koristi string "Name".

$ man evdev napisao:
Option "Device" "string"
Specifies the device note through which the device can be accessed. At this time ONLY /dev/input/event<N>, where <N> is an inte-
ger, are matched against this this field.
This option uses globbing.
Please note that use of this option is strongly discouraged.


Petar napisao:
Kod mene inace prva varijanta sa Option "Name" radi bez problema.


Kod mene upravo to ne radi, tako da na kraju ponovo nisam siguran gde grešimsmile