Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Logitech Cordless Desktop MX 3100
View unanswered posts
View posts from last 24 hours

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


Joined: 19 Jun 2004
Posts: 115

PostPosted: Wed Aug 03, 2005 1:16 am    Post subject: Logitech Cordless Desktop MX 3100 Reply with quote

How-to get your Logitech Cordless Desktop MX 3100 to work in linux..
The solutions are the following:
A. Get all buttons on your keyboard and mouse to work using ps/2
B. Get all buttons on the mouse to work using USB, but none of the keyboard multimedia-keys work
C. Have some (most) multimedia buttons work on the keyboard and a few on the mouse using USB

Here we go:
Code:
 A.
   1. What you need:
       * Kernel patch by TheAlamo from [url=http://130.232.30.60:3800/logips2pp.diff]here[/url]
       * Kernel supporting event interface
       * Xorg with evdev support
   2. Unpack your 2.6.x kernel and configure it to your liking, make sure you enable event interface in "Device Drivers" --> "Input Device Support" --> <*> Event Interface
   3. Apply the patch (make sure your kernel is symlinked to /usr/src/linux):
       # cd /usr/src/linux
       # wget http://130.232.30.60:3800/logips2pp.diff
       # cat logips2pp.dif | patch -p3 (p3 should do the trick)
   4. Compile your kernel and make sure you boot into it!
   5. Before starting X, edit your xorg.conf!
   5a. If you have Xorg 6.8.99.x then follow this:

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

   5b. If you have Xorg 6.8.2

        Section "InputDevice"
         Identifier                  "MX1000"
         Driver                      "mouse"
         Option "Protocol"       "evdev"
         Option "Device"         "/dev/input/eventX"
        EndSection
   6. This is to make all multimedia buttons recognized in X:
       # setkeycodes e014 179 e013 221 e015 202 e055 157 \
        e011 203 e075 217 e074 212 6a 160 e004 180 \
        6b 140 e003 177 e002 178 6c 168 6e 190 6d 183 \
        e001 184 e03b 59 e03c 60 e03d 61 e03e 62 \
        e03f 63 e040 64 e041 65 e042 66 e043 67 \
        e044 68 e057 87 e058 88 e02d 170 e02f 161 \
        e031 185 e078 167 e02c 186 e025 187 e026 188
   7. Start X..

Code:
 B.
   1. What you need:
       * Kernel supporting event interface
       * Xorg with evdev support
   2. Follow setps 2, 4 and 5 from section A.
   3. Start X

Code:
 C.
   1. What you need: Same as B
   2. Follow steps 2 and 4 from A
   3. Editing your xorg.conf

      Section "InputDevice"
       Identifier                  "mouse"
       Driver                      "mouse"
       Option "Protocol"           "ExplorerPS/2"
       Option "Device"             "/dev/input/mice"
       Option "Buttons"            "12"
       Option "ZAxisMapping"       "11 12"
      EndSection
   4. Start X! Only forward and backward buttons will have their own button-press!



To assign commands to button presses please read on using xev and xbindkeys

As of now my problem is solved; this was the original message -----------------------------------------
Hey,
I recently bought the package mentioned in the topic, it comes with a usb receiver, wirless keybaord and mouse.
I'm in a bit of a dilemma since i would have to choose either between the multimedia keys on my keyboard, OR the extra buttons on my MX 1000 mouse..

I have evdev support in my kernel, but that's not very important at the moment.
If i specify my mouse to use the evdev driver to support my extra buttons:
Section "InputDevice"
Identifier "MX1000"
Driver "evdev"
Option "Dev Name" "Logitech USB Receiver"
Option "Dev Phys" "usb-0000:00:11.2-2/input1"
Option "Device" "/dev/input/event3"
EndSection
I would get almost perfect functionality, except the "Cruise controll" buttons don't work properly, with SMS (smartscroll) enabled i get clicks "wheel up (b:4)" and b:11 from the upward button, and just "wheel down (b:5)" from the one pointing down.. with SMS disabled i get only b:11 from the upward button and nothing from the one pointing down..
Now doing this all multimedia keys give no response what-so-ever in X.. the log gives the output of "LookupDeviceIntRec id=0x0 not found" :(

However if i define my mouse as a normal mouse, eg ExplorerPS/2 and 9 buttons i can only get a few buttons working like i want, however most of the multimedia keys generate a keycode.

The problem here is that evdev is somehow also used for the keyboard when you specify it for the mouse? Is there any way to change this?
Any help appreciated :p
-------------------------------------------------------------------------


Last edited by Taily on Fri Aug 26, 2005 3:09 pm; edited 2 times in total
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Wed Aug 03, 2005 7:49 pm    Post subject: Reply with quote

Hmm, I've done some testing with evtest, and confirmed that using evdev all my multimedia keys for some reason produce events in event3 which is my mouse!..
This is most likely a problem with the kernel event driver?
Back to top
View user's profile Send private message
pilo
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2003
Posts: 90
Location: Sweden

PostPosted: Wed Aug 03, 2005 8:27 pm    Post subject: Reply with quote

You probably need to specify the number of buttons on your mouse, that's what I had to do with mine, or else no or wrong events were registered. My MX500, for example, has 9 "buttons", for which i use this code in xorg.conf:
Code:

Section "InputDevice"
...
Option  "Buttons"       "9"
...
EndSection


Also, you should not have to use the event driver for your keyboard in order to access your extra keys. Have you tried Lineakd or Xbindkeys?
_________________
"A stroll through a lunatic asylum shows that faith does not prove anything."
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Wed Aug 03, 2005 10:06 pm    Post subject: Reply with quote

No believe me, that's not the problem..
As a matter of fact when i use evdev for the mouse i am unable to specify the amount of buttons it uses, it will always no matter what put 32 buttons on it :P.. of which 12 should work, but it gets a bit confused when the receiver is associated with both keyboard and mouse.

As for lineakd and xbindkeys (lets not forget imwheel), it's a bit hard to make them work without any key-presses to assign the keys to, no? :D

So basically my only problem lies with the keyboard and "Cruise controll"-buttons :(

Also, how would i disable using event driver for the keyboard? I mean if i don't start X with evdev support for my mouse, then the multimedia keys on my keyboard work O_O..
/proc/bus/input/devices
I: Bus=0003 Vendor=046d Product=c512 Version=3007
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:11.2-1/input0
H: Handlers=kbd event2
B: EV=120003
B: KEY=10000 7 ff800000 7ff febeffdf ffefffff ffffffff fffffffe
B: LED=1f

I: Bus=0003 Vendor=046d Product=c512 Version=3007
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:11.2-1/input1
H: Handlers=kbd mouse1 event3
B: EV=f
B: KEY=7fffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff 0 0 1878 d800d100 1e0000 0 0 0
B: REL=143
B: ABS=100 0

Thanks anyway for your reply pilo :)
Back to top
View user's profile Send private message
pilo
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2003
Posts: 90
Location: Sweden

PostPosted: Thu Aug 04, 2005 9:13 am    Post subject: Reply with quote

Yeah, I see the peculiarity now.
Well, I saw this thread: http://www.linuxquestions.org/questions/history/342005 and I thought, maybe you could test evtest? It is a part of Lineakd, and it seems as the events it finds can be used with Lineakd aswell.

Really, I think you should specify ZAxisMapping and Buttons in your xorg.conf, but I may be wrong again. :)
_________________
"A stroll through a lunatic asylum shows that faith does not prove anything."
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Thu Aug 04, 2005 12:37 pm    Post subject: Reply with quote

pilo wrote:
Yeah, I see the peculiarity now.
Well, I saw this thread: http://www.linuxquestions.org/questions/history/342005 and I thought, maybe you could test evtest? It is a part of Lineakd, and it seems as the events it finds can be used with Lineakd aswell.

Really, I think you should specify ZAxisMapping and Buttons in your xorg.conf, but I may be wrong again. :)


Thanks, but as a matter of fact, as i posted my first post, i did have they Buttons ans ZAxisMapping options set but i didn't include them as they make no difference if i am using the evdev driver (meaning always, no matter what the mouse gets 32 buttons)

Evtest produces different output in VC and X, in VC i can get all the multimedia keys (on the keyboard) in the event of my mouse! and in X the multimedia keys wont produce any output what-so-ever :/

Lineakd works with X, so if X doesn't give keycodes to the buttons, there's nothing lineakd can do :/..

What i don't understand is why the heck the multimedia keys on the keyboard get mapped to the event of the mouse >_<.. definetly has to be the kernel evdev driver in this case..
Back to top
View user's profile Send private message
pilo
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2003
Posts: 90
Location: Sweden

PostPosted: Thu Aug 04, 2005 12:44 pm    Post subject: Reply with quote

I shouldn't be sticking my nose in things I don't fully understand.

http://linux.seindal.dk/item65.html

Hope something helps.
_________________
"A stroll through a lunatic asylum shows that faith does not prove anything."
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Thu Aug 04, 2005 1:31 pm    Post subject: Reply with quote

Thanks, but doing this i still have to choose between functionality of the mouse or keyboard :(
Back to top
View user's profile Send private message
TheAlamo
n00b
n00b


Joined: 14 Nov 2004
Posts: 38
Location: Frankfurt/Germany

PostPosted: Thu Aug 04, 2005 1:32 pm    Post subject: Reply with quote

Hi,

my experiences with the MX 3100 so far:

1. connected via USB
All mouse buttons work, but most of the multimedia keys do not work.

2. connected via PS2
the whole keyboard works - if you follow http://linux.seindal.dk/item65.html (well, more or less, I had to change some keycodes, scancodes)
some mouse buttons and horizontal wheel do not work

Here's what I did:
connect the receiver to the PS2 port (mouse and kbd)
switched to xorg 6.8.99
made some ugly patches to the ps2 mouse driver in my 2.6.12 kernel to get the mouse fully functional.
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Thu Aug 04, 2005 2:05 pm    Post subject: Reply with quote

Yes, however if i have the mouse and keyboard both in ps2 my system messes up :\..
Been using 6.8.99 for a while now, but i'll take a look at the mouse driver :)..
Do _ALL_ keys work? Like lets say for me the, eject, audio-presets etc.. don't work

EDIT: Damn, i just realized the ps/2 plug in my receiver must be b0rked or something O_o.. since the mouse won't ever be detected unless it's in the usb plug
Back to top
View user's profile Send private message
TheAlamo
n00b
n00b


Joined: 14 Nov 2004
Posts: 38
Location: Frankfurt/Germany

PostPosted: Thu Aug 04, 2005 4:53 pm    Post subject: Reply with quote

Taily wrote:
Yes, however if i have the mouse and keyboard both in ps2 my system messes up :\..
Been using 6.8.99 for a while now, but i'll take a look at the mouse driver :)..
Do _ALL_ keys work? Like lets say for me the, eject, audio-presets etc.. don't work

yes, with setkeycodes and xmodmap

Taily wrote:
EDIT: Damn, i just realized the ps/2 plug in my receiver must be b0rked or something O_o.. since the mouse won't ever be detected unless it's in the usb plug

maybe we're lucky and this is not a hardware problem. Try and have a look at your BIOS settings. If there are options for USB mouse / USB kbd, disable it.
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Thu Aug 04, 2005 6:55 pm    Post subject: Reply with quote

Afraid i ain't that lucky.. My other mous(es) work, and it doesn't work in windows either so it really can't be the problem :(
Luckily I'll be able to change my package tommorow :), hopefully the new one won't have any problems
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Sat Aug 06, 2005 9:17 am    Post subject: Reply with quote

Seems problem was at my end anyways (with the receiver), the mouse plug was a little short for my ps/2 so it wouldn't connect properly x_x... Anyways i have it working now and Alamo, if you wouldn't mind posting or pm'ing me your patches I'd be very happy :P
Back to top
View user's profile Send private message
TheAlamo
n00b
n00b


Joined: 14 Nov 2004
Posts: 38
Location: Frankfurt/Germany

PostPosted: Sun Aug 07, 2005 12:38 pm    Post subject: Reply with quote

@Taily
you got mail
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Mon Aug 08, 2005 9:47 am    Post subject: Reply with quote

Thank you!! :)
Your patch did the trick, you're a life-saver :P
Now everything works great :)
Back to top
View user's profile Send private message
Zyzzyva100
Apprentice
Apprentice


Joined: 08 Aug 2005
Posts: 193

PostPosted: Sun Aug 14, 2005 9:41 pm    Post subject: Reply with quote

So now I'm curious, what exactly did you do to get this working? Right now I have the keyboard on usb and the mouse on ps2.

Should I just try both on ps2? Im not really terribly concerned about getting every extra key on the keyboard to work, but having the scroll wheel and back/forward buttons on the mouse working would be nice.
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Tue Aug 16, 2005 2:13 pm    Post subject: Reply with quote

Zyzzyva100 wrote:
So now I'm curious, what exactly did you do to get this working? Right now I have the keyboard on usb and the mouse on ps2.

Should I just try both on ps2? Im not really terribly concerned about getting every extra key on the keyboard to work, but having the scroll wheel and back/forward buttons on the mouse working would be nice.


Well, keeping the mouse in the ps2 has actually no effect if you have plugged it through usb, i think unless then there are both usb and ps2 action for the mouse, anyway, as far as my experience goes;
1. You keep mouse and keyboard connected through ps2 and can get all keys on the keyboard and all buttons on the mouse (by using for example TheAlamos patch), however using his patch i find that tilt-wheel just gives one click, not repeated (giving a scroll effect) -- i see if i can fix this in the source :p..
2. Keep both in usb
a. And get all buttons on the keyboard working and on the mouse the regular buttons plus the previous/next and the "switch app" button..
b. Use evdev for the mouse to get all buttons working but NONE of the keyboard buttons will work :( (this just conecerns the multimedia keys, not regular ones)
3. Try something new :D

Choose which one you want to go with and i will help you to my best to get it working for you :)
Back to top
View user's profile Send private message
Zyzzyva100
Apprentice
Apprentice


Joined: 08 Aug 2005
Posts: 193

PostPosted: Tue Aug 16, 2005 4:37 pm    Post subject: Reply with quote

I guess using ps2 for mouse and keyboard will work fine. I really don't care too much about the tilt wheel. Having my back and forward buttons back would be nice, as would the use of the extra keyboard buttons.

So how exactly do I go about using this patch?

Thanks for the help!
Back to top
View user's profile Send private message
Zyzzyva100
Apprentice
Apprentice


Joined: 08 Aug 2005
Posts: 193

PostPosted: Wed Aug 17, 2005 7:02 pm    Post subject: Reply with quote

Could someone who has this working through ps2 post their config, and what this patch is?
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Fri Aug 19, 2005 5:27 pm    Post subject: Reply with quote

Sorry I've not been around to reply :(
Anyways, the patch can be found here http://130.232.30.60:3800/logips2pp.diff (i mirrored it).. All credits goto TheAlamo
so you goto /usr/src/linux(-xxx) and apply the patch, if you don't know how i guess i could explain but pretty much anyone who uses gentoo should know :P

recompile your kernel with the ps2 driver as either module or built in, reboot and you should be good to go

As for your xorg configuration, all you need to do is use the evdev driver and define which device to use..

Here's what i use to get all the keys on the keyboard working..
setkeycodes e014 179 e013 221 e015 202 e055 157 e011 203 e075 217 e074 212 6a 160 e004 180 6b 140 e003 177 e002 178 6c 168 6e 190 6d 183 e001 184 e03b 59 e03c 60 e03d 61 e03e 62 e03f 63 e040 64 e041 65 e042 66 e043 67 e044 68 e057 87 e058 88 e02d 170 e02f 161 e031 185 e078 167 e02c 186 e025 187 e026 188
And the buttons for the mouse..
xmodmap -e "pointer = 1 3 2 4 5 6 7 8 9 12 11 10 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 0"

Also assign functions to buttons and clicks..
# cat .xbindkeysrc

# Back and forward
"xvkbd -xsendevent -text "\[Alt_L]\[Left]""
m:0x10 + b:8
"xvkbd -xsendevent -text "\[Alt_L]\[Right]""
m:0x10 + b:9

# 'Cruise Control'
"xvkbd -xsendevent -text "\[Page_Up]""
m:0x10 + b:11
"xvkbd -xsendevent -text "\[Page_Down]""
m:0x10 + b:12

"mpc toggle"
c:162
"mpc next"
c:153
"mpc prev"
c:144
"mpc stop"
c:164
"amixer -c 0 set PCM,0 2%+"
c:176
"amixer -c 0 set PCM,0 2%-"
c:174
.... you get the idea

and then run
# xbindkeys
Back to top
View user's profile Send private message
dpetka2001
l33t
l33t


Joined: 04 Mar 2005
Posts: 804

PostPosted: Sat Aug 20, 2005 6:28 pm    Post subject: Reply with quote

I am interested in you explaining how to apply the patch because I am new to Gentoo and I've just obtained the Logitech MX3100 and would like to get it to work as soon as possible...thanks in advance...
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Sat Aug 20, 2005 6:33 pm    Post subject: Reply with quote

Well, ok..

as root..
# cd /usr/src/linux (make sure linux is symlinked to the right source tree)
# wget http://130.232.30.60:3800/logips2pp.diff
# cat logips2pp.diff | patch -p0 (i use p0, depending on your directory stucture you might have to use p1, p2, p3 ... etc..)


And that with that you should be ready to do
# make && make modules modules_install && mount /boot && make install (or however you want to compile your kernel)

:P
Back to top
View user's profile Send private message
dpetka2001
l33t
l33t


Joined: 04 Mar 2005
Posts: 804

PostPosted: Sat Aug 20, 2005 7:04 pm    Post subject: Reply with quote

Taily wrote:
# cat logips2pp.diff | patch -p0 (i use p0, depending on your directory stucture you might have to use p1, p2, p3 ... etc..)
:P
what do you mean depending on the directory structure I use?? how can I tell which option to use?? I read the man but didn't understand which number I should use...let's suppose that I save the patch in /usr/src/linux...what number do I have to use in the -p Option?? Also could you explain what cat does?? thanks...
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Sun Aug 21, 2005 8:05 am    Post subject: Reply with quote

Ok, I'm not entirely sure myself :P, i never needed to find out i just read somewhere about the * stucture :D, don't remember if it was directory even.. :/

Anyway, i just start with -p0 then if it doesn't automatically go through i would hit ctrl+c and increment the number :P..

I just realized though..
--- /usr/src/linux-2.6.12-nitro4/drivers/input/mouse/logips2pp.c 2005-07-16 05:09:48.000000000 +0200
+++ /usr/src/linux-2.6.12-nitro5/drivers/input/mouse/logips2pp.c 2005-08-07 13:26:04.000000000 +0200
those lines, could be that..
p0 = /usr/src/linux-2.6.12-nitro5/drivers/input/mouse/logips2pp.c
p1 = src/linux-2.6.12-nitro5/drivers/input/mouse/logips2pp.c
p2 = linux-2.6.12-nitro5/drivers/input/mouse/logips2pp.c
p3 = drivers/input/mouse/logips2pp.c

no?
Back to top
View user's profile Send private message
Zyzzyva100
Apprentice
Apprentice


Joined: 08 Aug 2005
Posts: 193

PostPosted: Mon Aug 22, 2005 9:33 pm    Post subject: Reply with quote

Now if I can just figure out how to emerge evdev....

I was hoping to avoid using it by going with ps2, but it seems that I can't really do that. evdev is masked, and I can't seem to get it unmasked, it seems as though there is something else that is needed which needs to be unmasked first, so I just kinda quit trying for the time being.

Anyone else run into this trouble with evdev, or have I done something wrong.
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 1, 2, 3, 4  Next
Page 1 of 4

 
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