Code: Select all
# Mouse: Logitech IntelliMouse Optical (MX 310 USB)
Section "InputDevice"
Identifier "Default Mouse"
### This is how I had it before ###
# Driver "mouse"
# Option "Name" "Logitech USB-PS/2 Optical Mouse"
# Option "Protocol" "IMPS/2"
# Option "Device" "/dev/input/mice"
# Option "CorePointer"
# Option "Buttons" "7"
# Option "ZAxisMapping" "4 5"
# Option "Emulate3Buttons" "off"
#############################
Driver "mouse"
Option "CorePointer"
Option "Protocol" "Auto"
Option "Device" "/dev/input/mice"
Option "Dev Phys" "usb-0000:00:02.0-5/input0"
Option "Dev Name" "Logitech USB-PS/2 Optical Mouse"
Option "ZAxisMapping" "4 5"
Option "Buttons" "8"
EndSectionYou must have evdev compiled into the kernel or have the appropriate module loaded, and "Dev Phys" must correspond with your device. Have a look at http://pstudios.ath.cx/linhowtos/mx510.php where the whole thing is explained for a Logitech MX510.SAngeli wrote:I am unable to use evdev Protocol or something does not work properly.
I can't help you directly because I've another mouse, but please notice that what you can do with X itself is pretty limited, for more sophisticated options have a look at x11-misc/imwheel.I wish to make my Logitech mouse work like my Microsoft Intelly mouse.
Somebody wrote a simple init script for this and put it under the GPL, well, here it is:Also, once I did "emerge logitech-applet" what should I do next? When, how to run 'logitech-applet -s 800' and make it permanent or so?
Code: Select all
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
after xdm
}
start() {
ebegin "Starting logitch applet"
/usr/sbin/logitech_applet ${OPTS}
eend $? "Failed to start logitech applet"
}
Code: Select all
rc-update add logitech_applet defaultCode: Select all
echo OPTS="-e -s 800" > /etc/conf.d/logitech_appletI wouldn't bother, the mouse has to work properly under non-KDE environments anyhow.Lastly, in Control Center, Peripherals, Mouse, there is a tab named "MX310 Optical Mouse". It is not enabled perhaps due to a permission problem (libusb). Do you know how to solve it? If I do locate libusb I do not get anything back.
/var/log/message(**) Option "Protocol" "evdev"
(**) Default Mouse: Protocol: evdev
(**) Option "CorePointer"
(**) Default Mouse: Core Pointer
(**) Option "Buttons" "8"
(**) Option "Emulate3Buttons" "off"
(**) Option "ZAxisMapping" "4 5"
(**) Default Mouse: ZAxisMapping: buttons 4 and 5
(**) Default Mouse: Buttons: 8
(**) Option "CoreKeyboard"
(**) Default Keyboard: Core Keyboard
(**) Option "Protocol" "standard"
(**) Default Keyboard: Protocol: standard
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "xorg"
(**) Default Keyboard: XkbRules: "xorg"
(**) Option "XkbModel" "cherryblueb"
(**) Default Keyboard: XkbModel: "cherryblueb"
(**) Option "XkbLayout" "it"
(**) Default Keyboard: XkbLayout: "it"
(**) Option "CustomKeycodes" "off"
(**) Default Keyboard: CustomKeycodes disabled
(II) XINPUT: Adding extended input device "Default Keyboard" (type: KEYBOARD)
(II) XINPUT: Adding extended input device "evdev brain" (type: evdev brain)
(II) XINPUT: Adding extended input device "Default Mouse" (type: MOUSE)
(II) XINPUT: Adding extended input device "NVIDIA Event Handler" (type: Other)
(**) Option "Dev Name" "Logitech USB-PS/2 Optical Mouse"
(**) Option "Dev Phys" "usb-0000:00:02.0-5/input0"
(EE) Default Mouse: cannot open input device
No core pointer
Code: Select all
Jul 2 10:52:03 mir usb 2-5: new low speed USB device using ohci_hcd and address 4
Jul 2 10:52:03 mir input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:02.0-5Code: Select all
I: Bus=0003 Vendor=046d Product=c01b Version=1800
N: Name="Logitech USB-PS/2 Optical Mouse"
P: Phys=usb-0000:00:02.0-5/input0
H: Handlers=mouse0 event2
B: EV=17
B: KEY=3f0000 0 0 0 0
B: REL=103
B: MSC=10X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.11-gentoo-r7 x86_64 [ELF]
Current Operating System: Linux mir 2.6.11-gentoo-r11 #1 Wed Jun 22 19:38:01 CEST 2005 x86_64
Build Date: 05 June 2005
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Jul 2 10:55:28 2005
(==) Using config file: "/etc/X11/xorg.conf"
Using vt 7
(EE) Default Mouse: cannot open input device
No core pointer
Fatal server error:
failed to initialize core devices
Please consult the The X.Org Foundation support
at http://wiki.X.Org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.
XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
after 0 requests (0 known processed) with 0 events remaining.
Code: Select all
(**) Option "Protocol" "Auto"
(**) Default Mouse: Device: "/dev/input/mice"
(**) Default Mouse: Protocol: "Auto"
(**) Option "CorePointer"
(**) Default Mouse: Core Pointer
(**) Option "Device" "/dev/input/mice"
(**) Option "Buttons" "8"
(**) Option "Emulate3Buttons" "off"
(**) Option "ZAxisMapping" "4 5"
(**) Default Mouse: ZAxisMapping: buttons 4 and 5
(**) Default Mouse: Buttons: 8
(**) Default Mouse: SmartScroll: 1
(**) Option "CoreKeyboard"
(**) Default Keyboard: Core Keyboard
(**) Option "Protocol" "standard"
(**) Default Keyboard: Protocol: standard
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "xorg"
(**) Default Keyboard: XkbRules: "xorg"
(**) Option "XkbModel" "cherryblueb"
(**) Default Keyboard: XkbModel: "cherryblueb"
(**) Option "XkbLayout" "it"
(**) Default Keyboard: XkbLayout: "it"
(**) Option "CustomKeycodes" "off"
(**) Default Keyboard: CustomKeycodes disabledCode: Select all
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "evdev"
Option "ZAxisMapping" "7 8"
Option "Dev Name" "Logitech USB-PS/2 Optical Mouse"
Option "Buttons" "8"
Here is the relevant section from my xorg.conf:SAngeli wrote:Hi KozmoNaut,
somehow I was not able to configure my mouse with evdev. It always fails.
So, I will have to apply the logitech-applet script. Untill then, I wish to ask for a favor:
Could you please provide your settings for allowing your mouse to work and be fully configured?
Also mention your Gentoo version, platform and any kernel related info.
I thank you for your help.
Spiro
Code: Select all
Section "InputDevice"
Identifier "Mouse"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mouse0"
Option "ZAxisMapping" "4 5"
EndSection