Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Logitech MX1000 Howto (WIP)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
kyPixel
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 117

PostPosted: Tue Jun 07, 2005 9:51 pm    Post subject: Reply with quote

Great HOWTO guys, Used the xorg.cof in the first post and got it working perfectly, all I had to change was the protocall to auto instead of evdev.
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Sun Jun 12, 2005 3:26 am    Post subject: Reply with quote

I put together some information on getting the MX1000 working with the new Xorg 6.8.99 snapshots, along with some other stuff.

Comments?
_________________
Think about your breathing.
http://floam.sh.nu


Last edited by floam on Sat Jul 02, 2005 6:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
Archangel1
Veteran
Veteran


Joined: 21 Apr 2004
Posts: 1212
Location: Work

PostPosted: Sun Jun 12, 2005 6:23 am    Post subject: Reply with quote

floam wrote:
I put together some information on getting the MX1000 working with the new Xorg 6.8.99 snapshots, along with some other stuff.

Comments?

Yeah, I tried Xorg 6.8.99 and evdev just plain wouldn't work. You mentioned some dirty hacks Gentoo had applied in that regard - what's the story? Is it liable to work if I just "emerge xorg-x11" (having unmasked)?
_________________
What are you, stupid?
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Sun Jun 12, 2005 10:56 am    Post subject: Reply with quote

Xorg won't magically work if you just emerge the new one and use your old xorg.conf. The gentoo hacks used the old mouse driver with an evdev protocol. The new xorg has an independant evdev driver. You'll need to read my guide and look at how the xorg.conf is set up now (it's simpler).
_________________
Think about your breathing.
http://floam.sh.nu
Back to top
View user's profile Send private message
Genfoo'
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2004
Posts: 112

PostPosted: Sun Jun 12, 2005 4:24 pm    Post subject: Reply with quote

I tried compiling evtest.c and got this:

Code:
toy root # gcc evtest.c -o evtest
evtest.c:260: error: `MSC_RAW' undeclared here (not in a function)
evtest.c:260: error: nonconstant array index in initializer
evtest.c:260: error: (near initialization for `misc')
evtest.c:261: error: `MSC_SCAN' undeclared here (not in a function)
evtest.c:261: error: nonconstant array index in initializer
evtest.c:261: error: (near initialization for `misc')


This is with kernel 2.6.11-gentoo-r9 and xorg 6.8.2-r1. How do I make this work?

My mouse works fine the way it is, I just want to play with this.
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Sun Jun 12, 2005 7:16 pm    Post subject: Reply with quote

Strange. What version of GCC are you using?
_________________
Think about your breathing.
http://floam.sh.nu
Back to top
View user's profile Send private message
Genfoo'
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2004
Posts: 112

PostPosted: Sun Jun 12, 2005 7:25 pm    Post subject: Reply with quote

floam wrote:
Strange. What version of GCC are you using?


Code:
gcc version 3.4.3-20050110 (Gentoo Linux 3.4.3.20050110-r1, ssp-3.4.3.20050110-0, pie-8.7.7)
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Sun Jun 12, 2005 9:27 pm    Post subject: Reply with quote

Weird, I've got no idea. Did you download it directly, no copy and paste that could mess the syntax up? 2.6 kernel and headers?
_________________
Think about your breathing.
http://floam.sh.nu
Back to top
View user's profile Send private message
Genfoo'
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2004
Posts: 112

PostPosted: Sun Jun 12, 2005 10:30 pm    Post subject: Reply with quote

Yes.

I clicked the link and Epiphany asked me what to do with it. I selected 'Save As' then opened a term window and typed 'gcc evtest.c -o evtest' and got those errors.

Kernel headers are 2.6.8.1-r2.

Thanks anyway, dude.
Back to top
View user's profile Send private message
cancech
Apprentice
Apprentice


Joined: 22 Dec 2004
Posts: 171

PostPosted: Sun Jun 19, 2005 4:20 pm    Post subject: Reply with quote

I bought a MX1000 yesterday, and I edited the various files which I had used previously for my MX510. All of the buttons work except for the "change window button" (3rd thumb button) and the scroll wheel tilt right/left. Here's what I've got:

~/.Xmodmap
Code:

pointer = 1 2 3 6 7 8 9 10 11 12 4 5


/etc/X11/xorg.conf - the important part
Code:

# Identifier and driver
    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"     "evdev"
    Option   "Dev Name"   "Logitech USB Receiver"
    Option   "Dev Phys"   "usb-*/input0"
    Option "Device"       "/dev/input/mice"
    Option "Buttons"      "12"
    Option  "ZAxisMapping" "11 12"
    Option "CorePointer"
EndSection


.xbindkeysrc
Code:

# back and forward
"xvkbd -xsendevent -text "\[Alt_L]\[Left]""
m:0x10 + b:6
"xvkbd -xsendevent -text "\[Alt_L]\[Right]""
m:0x10 + b:7

# the change window button
"xvkbd -xsendevent -text "\[Control_L]w"
m:0x10 + b:8

# the up and down by the wheel pages up and down
"xvkbd -xsendevent -text "\[Page_Up]""
m:0x10 + b:9
"xvkbd -xsendevent -text "\[Page_Down]""
m:0x10 + b:10

# Left and Right on the wheel switch tabs
"xvkbd -xsendevent -text "\[Control_L]\[Page_Up]""
m:0x10 + b:11
"xvkbd -xsendevent -text "\[Control_L]\[Page_Down]""
m:0x10 + b:12



The 3rd thumb button (num. eight) is being recognized as a normal click as is scroll wheel left/right.

Another problem I'm having is with the cruise control buttons. xev recognizes them as if they were two buttons....
cruise down = button 5 + 10, cruise up = button 4 + 9

Thanks, any help would be greately appretiated.
Back to top
View user's profile Send private message
Genfoo'
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2004
Posts: 112

PostPosted: Sun Jun 19, 2005 5:32 pm    Post subject: Reply with quote

For the problem with the cruise control buttons, go to Floam's website and follow the instructions to install 'lmctl' then issue the command 'lmctl --no-sms'.
Back to top
View user's profile Send private message
cancech
Apprentice
Apprentice


Joined: 22 Dec 2004
Posts: 171

PostPosted: Tue Jun 21, 2005 9:33 pm    Post subject: Reply with quote

Genfoo' wrote:
For the problem with the cruise control buttons, go to Floam's website and follow the instructions to install 'lmctl' then issue the command 'lmctl --no-sms'.


Thanks alot!! lmctl was in portage, emerged ran 'lmctl --no-sms' and the problem with cruise control is gone!!

but..... instead of being pag up/down it's just click. So as of the moment the buttons 8 - 12 behave as a normal click.

Any ideas?

[EDIT] How do you go about having the command 'lmctl --no-sms' be issued on boot automatically? Or does lmtctl remember from one boot to the next the options I set?
Back to top
View user's profile Send private message
mks99
n00b
n00b


Joined: 10 Dec 2004
Posts: 58

PostPosted: Tue Jun 21, 2005 11:20 pm    Post subject: Reply with quote

Genfoo' wrote:
I tried compiling evtest.c and got this:

Code:
toy root # gcc evtest.c -o evtest
evtest.c:260: error: `MSC_RAW' undeclared here (not in a function)
evtest.c:260: error: nonconstant array index in initializer
evtest.c:260: error: (near initialization for `misc')
evtest.c:261: error: `MSC_SCAN' undeclared here (not in a function)
evtest.c:261: error: nonconstant array index in initializer
evtest.c:261: error: (near initialization for `misc')


This is with kernel 2.6.11-gentoo-r9 and xorg 6.8.2-r1. How do I make this work?

My mouse works fine the way it is, I just want to play with this.


Tell gcc to use the header files from the kernel sources. On my machine
Code:
gcc -I/usr/src/linux/include evtest.c -o evtest

worked.
Back to top
View user's profile Send private message
Genfoo'
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2004
Posts: 112

PostPosted: Wed Jun 22, 2005 4:55 am    Post subject: Reply with quote

Woot! That worked. Thanks.
Back to top
View user's profile Send private message
cancech
Apprentice
Apprentice


Joined: 22 Dec 2004
Posts: 171

PostPosted: Sun Jun 26, 2005 2:55 pm    Post subject: Reply with quote

*bump*

Anyone know what my problem could be? Rereading this thread I think I've got everything setup properly, but 5 pf my buttons don't work :cry:
Back to top
View user's profile Send private message
Genfoo'
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2004
Posts: 112

PostPosted: Sun Jun 26, 2005 4:52 pm    Post subject: Reply with quote

The only thing I can tell you is to look at what I did to get it working and compare it to your setup.

With Xmodmap set to defaults, I tried the mouse in a few applications (particularly Epiphany) to see what buttons already had actions assigned to them then I used Xmodmap to map the actions to the proper buttons. When I did that two of the buttons lost their actions so I had to use xbindkeys to create actions for them and two more buttons.

Hopefully future versions of Xorg and applications will recognized all tilt actions and page-up/down (aka Cruise Control) actions by default so xbindkeys won't be necessary.
Back to top
View user's profile Send private message
Mankale
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2004
Posts: 76

PostPosted: Sun Jun 26, 2005 5:51 pm    Post subject: Reply with quote

thanx for all the hints in this thread, got my MX1000 working as I want it.
Back to top
View user's profile Send private message
gehidore
n00b
n00b


Joined: 06 May 2004
Posts: 16
Location: near the pine trees

PostPosted: Tue Nov 15, 2005 5:51 am    Post subject: Reply with quote

Archangel1 wrote:
Has anyone else had any trouble with their mx1000 skipping? Mine has a habit of suddenly jumping to the left or top of the screen at fairly random intervals.

Logitech's solution is "Upgrade to the latest version of Setpoint" which obviously isn't much use :roll:

I can fix it by plugging it into the PS/2 port; movement is fine then. Unfortunately the side scrolling dies because none of the PS/2 protocols (I'm using ExplorerPS/2 atm) support more than 10 buttons. evdev just fails with a message about not being able to initialise the evdev brain - I'm guessing it just doesn't do PS/2?

Anyway, does anyone know a solution for the original issue, or a way to make it work fully with PS/2?


Change your Xorg.conf ... took me a while but this works for me.

Section "InputDevice"
Identifier "MX1K"
Driver "mouse"
Option "Protocol" "evdev"
Option "Dev Name" "PS2++ Logitech MX Mouse"
Option "Dev Phys" "isa0060/serio1/input0"
Option "Device" "/dev/input/mice"
Option "Buttons" "12"
Option "ZAxisMapping" "4 5"
Option "CorePointer"
EndSection
_________________
windows get broken, penguins don't get sucked into jet engines.
--gehidore
Back to top
View user's profile Send private message
astaroth_pod
n00b
n00b


Joined: 11 Oct 2003
Posts: 58

PostPosted: Fri Dec 16, 2005 10:18 am    Post subject: Reply with quote

Hm, hopefully this is the right thread to put this in.

I have a MX1000 mouse, but the DiNovo version with Bluetooth.
I have it connected no problem via my laptop's internal bluetooth system, and it comes up as /dev/input/mouse2 and /dev/input/event4.

However, a cat /proc/bus/input/devices give me this:
Code:
I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
H: Handlers=kbd event0
B: EV=40001
B: SND=6

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
H: Handlers=kbd event1
B: EV=120013
B: KEY=4 2000000 3802078 f950d001 f2ffffdf ffefffff ffffffff ffffffff
B: MSC=10
B: LED=7

I: Bus=0011 Vendor=0002 Product=0007 Version=0000
N: Name="SynPS/2 Synaptics TouchPad"
P: Phys=isa0060/serio4/input0
H: Handlers=mouse0 event2
B: EV=b
B: KEY=6420 0 70000 0 0 0 0 0 0 0 0
B: ABS=11000003

I: Bus=0011 Vendor=0002 Product=000a Version=0000
N: Name="TPPS/2 IBM TrackPoint"
P: Phys=synaptics-pt/serio0/input0
H: Handlers=mouse1 event3
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

I: Bus=0005 Vendor=046d Product=b003 Version=4310
N: Name=""
P: Phys=
H: Handlers=mouse2 event4
B: EV=7
B: KEY=1f0000 0 0 0 0 0 0 0 0
B: REL=103


Where the last entry is my MX1000 mouse.
How can I get this working via evdev? Can I specify just "/dev/input/event4"?

*EDIT* Nevermind, I found the error completely elsewhere. Have a look here if you think you can help...
Back to top
View user's profile Send private message
born
n00b
n00b


Joined: 25 May 2004
Posts: 53
Location: Germany

PostPosted: Fri Dec 16, 2005 1:17 pm    Post subject: Reply with quote

Hi,

I used foams HOWTO and I got the MX1000 to work. The three "normal" mouse buttons work, vertical and horizontal scrolling also works. Cruise control works, there are inserted the two keycodes in between the cruise control keycodes, but that isn't annoying for me, so I don't use the fix.

My problem is that the mouse buttons on the left side (8, 9, 10; I think they are called side buttons) are mapped to a normal mouseclick. When I try to use xbindkeys, the keys seem to have the correct function, but everything takes very very long. I have to wait about 5-10 seconds for a response. If I click the bind keys multiple, I can freeze my X server (100% cpu time) and get ugly stuff on my screen, because the input is going to other applications. It looks really crazy (or funny?) ;)

Again: Without xbindkeys everything works fine, except the side buttons. With xbindkeys the side buttons work, too; but the response time is sucking the whole cpu time and takes really long.

I used floams HOWTO, this is my configuration:

/etc/udev/rules.d/10-local.rules
Code:

KERNEL=="event*", SYSFS{manufacturer}=="Logitech", SYSFS{product}=="USB Receiver", NAME=="input/mx1000", MODE=="0644"


/etc/modules.d/usb
Code:

options usbhid mousepoll=1


/etx/X11/xorg.conf
Code:

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Logitech MX1000" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

...

Section "InputDevice"
    Identifier  "Logitech MX1000"
    Driver      "evdev"
    Option      "Device" "/dev/input/mx1000"
EndSection


My ~/.xbindkeysrc looks like this:
Code:

"xvkbd -text "\[Alt_L]\[Left]""
m:0x10 + b:8
"xvkbd -text "\[Alt_L]\[Right]""
m:0x10 + b:9

"xvkbd -text "\[Control_L]\[Page_Up]""
m:0x10 + b:6
"xvkbd -text "\[Control_L]\[Page_Down]""
m:0x10 + b:7

"xvkbd -text "\[Alt_L]\[F5]""
m:0x10 + b:10


I really don't know why it is so slow...

EDIT: I use the modular xorg-x11 builds.
Back to top
View user's profile Send private message
dpetka2001
l33t
l33t


Joined: 04 Mar 2005
Posts: 804

PostPosted: Fri Dec 16, 2005 2:41 pm    Post subject: Reply with quote

guys do you have only the MX1000 in your posession or the desktop set MX3100?? because i'm having the MX3100 and can't figure out hot to make it properly work...any suggestions would be welcome...
Back to top
View user's profile Send private message
born
n00b
n00b


Joined: 25 May 2004
Posts: 53
Location: Germany

PostPosted: Fri Dec 16, 2005 3:25 pm    Post subject: Reply with quote

I talked only about the Logitech MX1000 mouse. I tried to unset options usbhid mousepoll=1, but it doesn't seem to give any results.

I tried to work with xmodmap, but I get a very strange error:

xmodmap -e "pointer = 1 2 3 6 7 8 9 10 11 12 4 5"

Code:
xmodmap:  commandline:1:  bad number of buttons, must have 32 instead of 12
xmodmap:  1 error encountered, aborting.


I didn't know so far that I have a mouse with 32 buttons ;) Enough kidding, why does xmodmap say that I have to provide 32 buttons?
Back to top
View user's profile Send private message
rampage7
Guru
Guru


Joined: 21 Mar 2004
Posts: 308
Location: Poland / Jastrzebie Zdroj

PostPosted: Fri Feb 03, 2006 9:54 pm    Post subject: Reply with quote

born wrote:

My problem is that the mouse buttons on the left side (8, 9, 10; I think they are called side buttons) are mapped to a normal mouseclick. When I try to use xbindkeys, the keys seem to have the correct function, but everything takes very very long. I have to wait about 5-10 seconds for a response. If I click the bind keys multiple, I can freeze my X server (100% cpu time) and get ugly stuff on my screen, because the input is going to other applications. It looks really crazy (or funny?) ;)


I've exacly the same problem.

But I've discovered something:

Code:

karol@localhost ~ $ xbindkeys -n -v
displayName = :0.0
rc file = /home/karol/.xbindkeysrc
4 keys in /home/karol/.xbindkeysrc

min_keycode=8     max_keycode=255 (ie: know keycodes)
"xvkbd -text "\[Alt_L]\[Left]""
    m:0x0 + b:8   (mouse)
"xvkbd -text "\[Alt_L]\[Right]""
    m:0x0 + b:9   (mouse)
"xvkbd -text "\[Page_Up]""
    m:0x0 + b:11   (mouse)
"xvkbd -text "\[Page_Down]""
    m:0x0 + b:12   (mouse)
starting loop...
Button press !
e.xbutton.button=9
e.xbutton.state=0
"xvkbd -text "\[Alt_L]\[Right]""
    m:0x0 + b:9   (mouse)
got screen 0 for window 136
Start program with fork+exec call
Button release !
e.xbutton.button=9
e.xbutton.state=0
Warning: Missing charsets in String to FontSet conversion
^[[1;3CCatch CHLD signal -> pid 17550 terminated


And now xvkbd started by hand:
Code:

karol@localhost ~ $ xvkbd -text "\[Alt_L]\[Left]"
Warning: Missing charsets in String to FontSet conversion


Any ideas?
_________________
To nie moje s± s³owa, to legenda ludowa.....
Back to top
View user's profile Send private message
KRA
n00b
n00b


Joined: 12 Feb 2006
Posts: 11

PostPosted: Mon Feb 13, 2006 5:13 pm    Post subject: Reply with quote

born wrote:
I talked only about the Logitech MX1000 mouse. I tried to unset options usbhid mousepoll=1, but it doesn't seem to give any results.

I tried to work with xmodmap, but I get a very strange error:

xmodmap -e "pointer = 1 2 3 6 7 8 9 10 11 12 4 5"

Code:
xmodmap:  commandline:1:  bad number of buttons, must have 32 instead of 12
xmodmap:  1 error encountered, aborting.


I didn't know so far that I have a mouse with 32 buttons ;) Enough kidding, why does xmodmap say that I have to provide 32 buttons?


I've got the same problem !! any solution yet ??

I'm using xorg7 and gnome, and the mouse works, although the scrollwhell left/right doubles av back/forward in browser, as well as left and right, not very practical. And all the thumb buttons works as a normal button1 click :S
Back to top
View user's profile Send private message
azp
Guru
Guru


Joined: 16 Nov 2003
Posts: 444
Location: Stockholm, Sweden

PostPosted: Thu Feb 23, 2006 1:19 pm    Post subject: Same problem with a MX510 Reply with quote

born wrote:
I tried to work with xmodmap, but I get a very strange error:

xmodmap -e "pointer = 1 2 3 6 7 8 9 10 11 12 4 5"

Code:
xmodmap:  commandline:1:  bad number of buttons, must have 32 instead of 12
xmodmap:  1 error encountered, aborting.


I have the same problem too, but I'm using a MX510. There seems to be some problems in evdev together with Xorg7.0. I haven't found a good answer on the forum though.. Keep looking and report back if you find a solution?
I'm back to three buttons (+scroll) since I switched to xorg7, would be great to have it working when Americas Army 2.6 comes out for Linux. =)
_________________
Weeks of coding can save you hours of planning.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 4 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum