PDA

View Full Version : logitec marble mouse with side buttons



helios17
10-11-2004, 08:48 PM
I have searched the forums but am clear as mud as to what I need to do here. My marblemouse works ok except the side buttons that allow back and forward clicking between pages does not work...as silly as that sounds, its really an important feature to me. I have seen it addressed in earlier posts but there are many conflicting posts and methods to getting it to work. Logitec has been absolute assholes in providing assistance. If someone knows of a mouse such as mine that is linux compatable out of the box I would like to know about it. If now, would someone help a linux noob in simple to understand directions on how to get my side buttons working?

thanx

helios

btw...knoppix 3.6 hd install is the most stable and powerful linux distrobution I have ever used...you guys rock!

Markus
10-11-2004, 09:20 PM
I have a Logitech Cordless Click Plus with working sidebuttons, although they work a bit differently.
Forward button is menu (same as right-click)
Back button is open in new page (at least in mozilla)

This is the part in XF86Config-4.
Section "InputDevice"
Identifier "PS/2 Mouse"
Driver "mouse"
# Option "Protocol" "ExplorerPS/2"
Option "Protocol" "IMPS/2"
Option "Buttons" "7" ##Only line I changed to get the sidebuttons
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/input/mice" ### /dev/psaux för 2.4
# Option "Emulate3Buttons" "true"
Option "Emulate3Timeout" "70"
Option "SendCoreEvents" "true"
EndSection

Markus
10-11-2004, 09:38 PM
Surfed a bit :)

New part in /etc/X11/XF86Config-4 :
Section "InputDevice"
Identifier "PS/2 Mouse"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7" # "4 5"
Option "Device" "/dev/input/mice" ### /dev/psaux
Option "SendCoreEvents" "true"
EndSection

Then I added some stuff I found on the kanotix forum in a file I have for miscellanious stuff I want run at boot time. Namely:
markus@fujibox:~$ ll .kde/Autostart/
total 4
-rwx------ 1 markus markus 241 Oct 11 23:31 kufbootstuff.sh

markus@fujibox:~$ cat .kde/Autostart/kufbootstuff.sh
#!/bin/sh
xhost local:
numlockx on
# rebind mouse buttons for mouseman
echo '#!/bin/sh
xmodmap -e "pointer = 1 2 3 6 7 4 5"' >/tmp/x$$
chmod a+x /tmp/x$$
xterm -bg black -fg white -fn 9x15 -name "Pointer Remap" -e /tmp/x$$
rm -f /tmp/x$$

This remaps the buttons and the sidebuttons now work as back&forward in mozilla. Kind of got used to the way they worked though.

helios17
10-11-2004, 09:49 PM
I am a babe in the woods when it comes to doing config stuff. Guess its time to get my hands dirty...off to give it a try.

thanx again

helios

Markus
10-11-2004, 10:00 PM
Hmm, some clarifications:

This part you should do as root:
At the top of /etc/X11/XFConfig-4 there's a following section:
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
# PS/2 Mouse using /dev/input/mice in Kernel 2.6
# Serial Mouse not detected
# InputDevice "USB Mouse" "CorePointer"
InputDevice "PS/2 Mouse" "CorePointer" THIS is your mouse
EndSection

A bit further down you'll find the corresponding section to your mouse which I posted.
If you had "USB Mouse" at the top, that's what you want to modify.


This part you should do as user:
Open an editor and type the following lines:
echo '#!/bin/sh
xmodmap -e "pointer = 1 2 3 6 7 4 5"' >/tmp/x$$
chmod a+x /tmp/x$$
xterm -bg black -fg white -fn 9x15 -name "Pointer Remap" -e /tmp/x$$
rm -f /tmp/x$$

Save the file as /home/your_username/.kde/Autostart/some_filename.sh
Then do: chmod 700 /home/your_username/.kde/Autostart/some_filename.sh
Restart the xserver with Ctrl-Alt-Backspace to test it.
If you use something else than KDE you can add it to the end of ~/.xsession but put a echo '#!/bin/sh before the xmodmap line.

jMon54
12-17-2004, 08:07 PM
Knoppix 3.6 (harddrive install) does not see my logitech marble usb at boot up. Any idea how I can fix this? It's a royal pain not knowing keyboard commands for shutting Knoppix down...

Markus
12-17-2004, 09:52 PM
Doesn't see it or it doesn't work?
What does this say: dmesg |grep input
If you have a usb-> ps/2 adapter you might as well try it. At least I got one with my logitech.

BTW, you can do Ctrl-Alt-F2 , log in as root and do: shutdown -h now or -r for reboot