Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old April 8th, 2006   #241
PsychoBrat
First Cup of Ubuntu
 
Join Date: Apr 2006
Beans: 5
Smile Re: Configuring Logitech mice (mx500, etc)

This may have been covered by one of the other million posts in this thread, but a rehash with slightly different wording can only help for the loveable lost Googlers out there!

To get my Logitech MX510 working from a base Dapper Drake Flight 6 install (with some acceleration tweaks done through UI configuration tools in Gnome), I tried following several over-complicated (for my particular case) guides, then realised I could do away with all their stuff and make only a few small changes. My current /etc/X11/xorg.conf contains an InputDevice section as follows:

Code:
Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ExplorerPS/2"
        Option          "Buttons"               "10"
        Option          "ZAxisMapping"          "4 5"
        Option          "ButtonMapping"         "1 2 3 6 7"
#       Option          "Emulate3Buttons"       "true"
EndSection
The important (modified) lines are:

Code:
Section "InputDevice"
        Option          "Buttons"               "10"
        Option          "ZAxisMapping"          "4 5"
        Option          "ButtonMapping"         "1 2 3 6 7"
#       Option          "Emulate3Buttons"       "true"
EndSection
...but you should be able to leave Emulate3Buttons on if you really want; it just fakes click from the third mouse button when buttons 1 and 2 are pressed together - not something that's too useful on a 10 button (including both scroll directions) mouse!

ZAxisMapping specifies which buttons to treat as the scroll-wheel. ButtonMapping specifies, in order of physical buttons, a list of button signals to send. So mine tells it that buttons 4 and 5 'pretend' to be 6 and 7 respectively. My other buttons are working as expected too (auto-scroll buttons are fine, window switch button just acts as another left button), so I presume they're implicitly mapped to their 'natural' signals (i.e. 8 to 8, 9 to 9, 10 to 10). (???)

This works fine for me in Firefox, but not other apps such as Nautilus. Does anyone know if this is expected (i.e. that you need to emulate keystrokes like ALT+{LEFT | RIGHT} from mouse clicks anyway)?
PsychoBrat is offline   Reply With Quote
Old April 8th, 2006   #242
makhand
A Carafe of Ubuntu
 
makhand's Avatar
 
Join Date: Dec 2004
Location: Evanston, IL
Beans: 92
Ubuntu 7.04 Feisty Fawn
Send a message via ICQ to makhand Send a message via AIM to makhand
Re: Configuring Logitech mice (mx500, etc)

I've asked this before, and i'll try once more.
I'm doing this on a laptop.
These instructions work mostly fine for me. Except there are some catches.
1. I cannot get the mouse to work if it is not plugged in when X starts.
2. If the laptop goes into sleep/screensaver mode, it doesnt wake up and work with the mouse anymore (only the touchpad works at this point).
3. I have a dual monitor setup (I plug a monitor into my laptop) and all the functionality in this thread only works on the laptop lcd screen. As soon as my mouse travels to the other monitor, it loses all its power (beyond just normal point and click).

I made my synaptic touchpad my corepointer because it was the only way i saw to make X start at all without having the mouse plugged in at all times.

please help. Thanks
makhand is offline   Reply With Quote
Old April 10th, 2006   #243
whector
First Cup of Ubuntu
 
Join Date: Sep 2005
Location: Finland
Beans: 5
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to whector
Re: Configuring Logitech mice (mx500, etc)

hi! does anyone know how to get mx700 work in Dapper?
whector is offline   Reply With Quote
Old April 12th, 2006   #244
antidrugue
Just Give Me the Beans!
 
antidrugue's Avatar
 
Join Date: Sep 2005
Location: Montreal, Canada
Beans: 72
Re: Configuring Logitech mice (mx500, etc)

Quote:
Originally Posted by PsychoBrat
This may have been covered by one of the other million posts in this thread, but a rehash with slightly different wording can only help for the loveable lost Googlers out there!

To get my Logitech MX510 working from a base Dapper Drake Flight 6 install (with some acceleration tweaks done through UI configuration tools in Gnome), I tried following several over-complicated (for my particular case) guides, then realised I could do away with all their stuff and make only a few small changes.
I tryed numerous complicated guides as well, without much success (some combinations of udev, evdev, xbindkeys, etc.).

Quote:
Originally Posted by PsychoBrat
My current /etc/X11/xorg.conf contains an InputDevice section as follows:

Code:
Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ExplorerPS/2"
        Option          "Buttons"               "10"
        Option          "ZAxisMapping"          "4 5"
        Option          "ButtonMapping"         "1 2 3 6 7"
#       Option          "Emulate3Buttons"       "true"
EndSection
WOW! That works!

Many thanks to you, "PsychoBrat". That was EXACTLY what I was looking for.

Works perfectly with my Logitech MX500, on Debian Etch (KDE 3.5.2).
__________________
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

-Bruce Lee
antidrugue is offline   Reply With Quote
Old April 14th, 2006   #245
Craig Caldwell
Just Give Me the Beans!
 
Craig Caldwell's Avatar
 
Join Date: Feb 2006
Location: Squamish
Beans: 43
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to Craig Caldwell Send a message via Yahoo to Craig Caldwell
Re: Configuring Logitech mice (mx500, etc)

Quote:
Originally Posted by antidrugue
I tryed numerous complicated guides as well, without much success (some combinations of udev, evdev, xbindkeys, etc.).



WOW! That works!

Many thanks to you, "PsychoBrat". That was EXACTLY what I was looking for.

Works perfectly with my Logitech MX500, on Debian Etch (KDE 3.5.2).
PsychoBrat's method got my mx700 mouse working in firefox but not nautilus.
I'll try the xbindkeys method next but I'm not sure it works with dapper 64.
__________________
Blind luck and good fortune...
LanParty ut nF4 Ultra-D - Opteron 165 - EVGA 7600gt - iriver T10
Craig Caldwell is offline   Reply With Quote
Old April 14th, 2006   #246
Craig Caldwell
Just Give Me the Beans!
 
Craig Caldwell's Avatar
 
Join Date: Feb 2006
Location: Squamish
Beans: 43
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to Craig Caldwell Send a message via Yahoo to Craig Caldwell
Re: Configuring Logitech mice (mx500, etc)

Ok the xbindkeys method does work with 64 bit dapper.
__________________
Blind luck and good fortune...
LanParty ut nF4 Ultra-D - Opteron 165 - EVGA 7600gt - iriver T10
Craig Caldwell is offline   Reply With Quote
Old April 20th, 2006   #247
Grimmy
Ubuntu Espresso Roast
 
Grimmy's Avatar
 
Join Date: Oct 2004
Location: London
Beans: 42
Ubuntu 9.10 Karmic Koala
Re: Configuring Logitech mice (mx500, etc)

I should start reading howto threads backwards!

Thanks PsychoBrat.. This worked fine for my MX518 under Dapper Flight 6:

Quote:
Originally Posted by PsychoBrat
Code:
Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ExplorerPS/2"
        Option          "Buttons"               "10"
        Option          "ZAxisMapping"          "4 5"
        Option          "ButtonMapping"         "1 2 3 6 7"
#       Option          "Emulate3Buttons"       "true"
EndSection
Now maybe I can help you:

Quote:
Originally Posted by PsychoBrat
This works fine for me in Firefox, but not other apps such as Nautilus. Does anyone know if this is expected (i.e. that you need to emulate keystrokes like ALT+{LEFT | RIGHT} from mouse clicks anyway)?
I got it working in Nautilus using the following from the first post:

Quote:
Originally Posted by endy
1. xvkbd and xbindkeys

Lets install "xvkbd" and "xbindkeys":

Code:
sudo apt-get install xvkbd xbindkeys
Next we need to create the configuration for them:

Code:
gedit ~/.xbindkeysrc
Now paste the following:

Code:
"/usr/X11R6/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
  m:0x0 + b:6
"/usr/X11R6/bin/xvkbd -xsendevent -text "\[Alt_L]\[Right]""
  m:0x0 + b:7
Please note, the "L" and "R" from the words "left" and "right" in the square brackets above should be capitalised, this seems like a bug in the forums here that they don't display properly.

Make sure you keep the quote marks, save the file and run "xbindkeys" in the terminal. It runs as a daemon in the background. You should now be able to test if it works in Nautilus by using the side buttons it also works in Epiphany if you use it.
Grimmy is offline   Reply With Quote
Old April 20th, 2006   #248
makhand
A Carafe of Ubuntu
 
makhand's Avatar
 
Join Date: Dec 2004
Location: Evanston, IL
Beans: 92
Ubuntu 7.04 Feisty Fawn
Send a message via ICQ to makhand Send a message via AIM to makhand
Re: Configuring Logitech mice (mx500, etc)

Quote:
Originally Posted by makhand
I've asked this before, and i'll try once more.
I'm doing this on a laptop.
These instructions work mostly fine for me. Except there are some catches.
1. I cannot get the mouse to work if it is not plugged in when X starts.
2. If the laptop goes into sleep/screensaver mode, it doesnt wake up and work with the mouse anymore (only the touchpad works at this point).
3. I have a dual monitor setup (I plug a monitor into my laptop) and all the functionality in this thread only works on the laptop lcd screen. As soon as my mouse travels to the other monitor, it loses all its power (beyond just normal point and click).

I made my synaptic touchpad my corepointer because it was the only way i saw to make X start at all without having the mouse plugged in at all times.

please help. Thanks
Well, i had a pretty brilliant idea. I've sort of resolved issue 3. To get the mouse keys to work with my second monitor, i simply opened up a terminal in that monitor and started 'xbindkeys' there. Unfortunately, i dont know how to make this automatic since xbindkeys is already being started automatically using System>Preferences>Sessions>Startup Programs. Somehow this does not apply to the second monitor.

Edit: xbindkeys has an optional parameter in which it allows you to specify the displays. for my dual monitor system, i simply have two programs execute (using Startup Programs). I use:
Code:
xbindkeys -X :0.0
xbindkeys -X :0.1

Last edited by makhand; May 10th, 2006 at 04:02 PM..
makhand is offline   Reply With Quote
Old April 25th, 2006   #249
detyabozhye
Dipped in Ubuntu
 
detyabozhye's Avatar
 
Join Date: Oct 2005
Location: California
Beans: 583
Kubuntu 9.04 Jaunty Jackalope
Re: Configuring Logitech mice (mx500, etc)

I got evdev working on Dapper perfectly (requires xmodmap and xbindkeys).
WARNING: This is not a full guide, please refer to post one in this thread for 800dpi resolution, back/forward in nautilus, etc.

First I did this to find out the name of my mouse:
Code:
cat /proc/bus/input/devices
Here's my output with the info I need in bold:
Code:
I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/class/input/input0
H: Handlers=kbd event0
B: EV=40001
B: SND=6

I: Bus=0003 Vendor=046d Product=c025 Version=1800
N: Name="Logitech USB-PS/2 Optical Mouse"
P: Phys=usb-0000:00:1d.1-1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0 event1 ts0
B: EV=7
B: KEY=ff0000 0 0 0 0 0 0 0 0
B: REL=103

I: Bus=0003 Vendor=049f Product=000e Version=0100
N: Name="Compaq Compaq Internet Keyboard"
P: Phys=usb-0000:00:1d.1-2/input0
S: Sysfs=/class/input/input2
H: Handlers=kbd event2
B: EV=120003
B: KEY=10000 7 ff87207a c14057ff febeffdf ffefffff ffffffff fffffffe
B: LED=7fff

I: Bus=0003 Vendor=049f Product=000e Version=0100
N: Name="Compaq Compaq Internet Keyboard"
P: Phys=usb-0000:00:1d.1-2/input1
S: Sysfs=/class/input/input3
H: Handlers=kbd event3
B: EV=3
B: KEY=20000 87a 5000d000 1e0000 0 0 0
Then I did this:
Code:
sudo gedit /etc/udev/rules.d/19-local.rules
and put this into the file and saved it (replace the bold part with the name of your mouse and replace the underlined part with whatever you want to put there, it will be used in xorg.conf):
Code:
KERNEL=="event[0-9]*", SYSFS{../name}=="Logitech USB-PS/2 Optical Mouse", NAME="input/mx500"
Then I changed my mouse section in xorg.conf to this:
Code:
Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"evdev"
	Option		"CorePointer"
	Option		"Device"	"/dev/input/mx500" #this should be that underlined name from 19-local.rules
EndSection
Then I made my ~/.Xmodmap look like this:
Code:
pointer = 1 3 2 4 5 8 9 6 7 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Next I fixed cruise control (requires the compiling stuff; build-essential and all that I believe):
Download this file: http://bg.rifetech.com/click.tgz
untar it to ~/click (or wherever you want, just remember the dir, you'll need it in the .xbindkeysrc)
then compile it:
Code:
cd ~/click
make
Then I changed my ~/.xbindkeysrc to include this:
Code:
"~/click/click 4"
  m:0x0 + b:11
"~/click/click 5"
  m:0x0 + b:12
Credits: This article and http://floam.sh.nu/guides/mx1000
Let me know if I made any typos or mistakes.
EDIT: I don't think this works in Xgl, I haven't tried, but I doubt it will.
__________________
aka anime4christ (I'm a guy, btw.)
My personal boring website ^_^
Jesus has changed your life. Save changes? (Y/N)

Last edited by detyabozhye; April 25th, 2006 at 01:06 AM..
detyabozhye is offline   Reply With Quote
Old April 25th, 2006   #250
ashrack
100% Pure Ubuntu
 
Join Date: Dec 2005
Beans: 755
Ubuntu 6.06
Re: Configuring Logitech mice (mx500, etc)

I ahve a MS INTELLI MOUSE OPTICAL. And my side 2buttons work great in FIREFOX. But I still want them to work in NAUTILUS so I followed the following guide to the letter:
Quote:
Originally Posted by endy
A complete guide to a Logitech mouse

Section 2: Side buttons and Nautilus[INDENT]
We can use "xvkbd" and "xbindkeys" to bind the side mouse buttons to "ALT + LEFT" and "ALT + RIGHT" so they work as forward and backwards in Nautilus.


I have a MICROSOFT INTELLIMOSE OPTICAL. And I got side buttons working great in Firefox. So then I wanted them to also work in NAUTILUS. So I followed this guide:
1. xvkbd and xbindkeys

Lets install "xvkbd" and "xbindkeys":

Code:
sudo apt-get install xvkbd xbindkeys
Next we need to create the configuration for them:

Code:
gedit ~/.xbindkeysrc
Now paste the following:

Code:
"/usr/X11R6/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
  m:0x0 + b:6
"/usr/X11R6/bin/xvkbd -xsendevent -text "\[Alt_L]\[Right]""
  m:0x0 + b:7
Please note, the "L" and "R" from the words "left" and "right" in the square brackets above should be capitalised, this seems like a bug in the forums here that they don't display properly.

Make sure you keep the quote marks, save the file and run "xbindkeys" in the terminal. It runs as a daemon in the background. You should now be able to test if it works in Nautilus by using the side buttons it also works in Epiphany if you use it.

Note: Same as before, if you have different mouse buttons use xev to find out what number they are and change the "b:6" and "b:7" in the above to the correct numbers.
But they dont work and even worse also they stop working in FF!
This is my XEV output when pressing the side buttons:
Code:
ButtonPress event, serial 26, synthetic NO, window 0x3600001,
    root 0x4c, subw 0x0, time 3488431120, (86,50), root:(493,393),
    state 0x10, button 6, same_screen YES

ButtonRelease event, serial 26, synthetic NO, window 0x3600001,
    root 0x4c, subw 0x0, time 3488431272, (86,50), root:(493,393),
    state 0x10, button 6, same_screen YES

ButtonPress event, serial 26, synthetic NO, window 0x3600001,
    root 0x4c, subw 0x0, time 3488431560, (86,50), root:(493,393),
    state 0x10, button 7, same_screen YES

ButtonRelease event, serial 26, synthetic NO, window 0x3600001,
    root 0x4c, subw 0x0, time 3488431712, (86,50), root:(493,393),
    state 0x10, button 7, same_screen YES
and my XORG.CONF
Code:
Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ExplorerPS/2"
	Option		"ZAxisMapping"		"4 5"
#for IntelliMouse's 7 buttons
	Option          "Buttons"               "7"
	Option		"ButtonMapping"		"1 2 3 6 7"
ps. Am using DAPPER BETA! Could this be the cause for it not workin?
ps2. In NAUTILUS I checked if ALT_L and ALT_D if they go back and forth and they do
__________________
Notebook Compaq Evo N610c
Pentium 4 1,8 * 512MB RAM * 80GB HDD * Radeon 7500 32MB dedicated vRAM.
http://folding.extremeoverclocking.c...shrack&t=37766

Last edited by ashrack; April 25th, 2006 at 02:51 PM..
ashrack is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:43 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry