LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-14-2004, 07:56 AM   #31
jago25_98
Member
 
Registered: Jun 2001
Posts: 302

Rep: Reputation: 30

last time I checked X couldn't set a mouse button to a key action, such as:

Mouse button 5 = backspace, to allow browse back browsing and use in apps that can't use mouse button
 
Old 10-14-2004, 05:28 PM   #32
eternauta3k
LQ Newbie
 
Registered: Oct 2004
Location: Buenos Aires, Argentina
Distribution: Fedora Core 2; Debian
Posts: 25

Rep: Reputation: 15
Right

Not saying you're not right, but we're using imwheel for that
 
Old 10-14-2004, 05:40 PM   #33
eternauta3k
LQ Newbie
 
Registered: Oct 2004
Location: Buenos Aires, Argentina
Distribution: Fedora Core 2; Debian
Posts: 25

Rep: Reputation: 15
Quote:
I'm not sure that that's a reliable method. After the first click I don't seem to get any output in my terminal for clicking the left (primary) mouse button. I suppose it has something to do with how the terminal renders the raw data.
I piped /dev/input/mice into hexdump (which outputs readable hex), clicked the side buttons for a while with the mouse in the air (to avoid getting movement events), and got no output.
Code:
cat /dev/input/mice | hexdump
[after clicking left button a few times]
00001e0 0009 0800 0000 0009 0800 0000 0009 0800
[after clicking side buttons for a while]
nothing happens
Just to make it more clear
 
Old 04-11-2005, 01:28 PM   #34
verdeboy2k
Member
 
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350

Rep: Reputation: 32
In slack 10, I didn't have to install imwheel, the side buttons on my Logitech Mx310 worked fine after running xmodmap.
 
Old 09-05-2005, 07:41 AM   #35
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Rep: Reputation: 30
Red face

Thanks bluephile

I got up to the
Code:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
part and it said could not find display or something similar, so i used
Code:
echo "pointer = 1 2 3 6 7 4 5" > ~/.Xmodmap
. Did that as root first, loaded KDE and the wheel was working, so i did it as my user and it worked there too, didnt have to use imwheel.

Thanks Again

EDIT: just noticed the guy up there ^ said the same thing, oops

Last edited by dave`2005; 09-05-2005 at 07:42 AM.
 
Old 05-03-2006, 11:32 AM   #36
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
Thank you for posting this how-to, it worked for me. I'm glad the other slacker's posted too as I knew then I did not have to put in the imwheel.

I'm using logitech mx310 and slackware 10.2

For me, I'm lefty so I had to tweak my start-up for me and let the others be as indicated. I had to switch the 3 & 1 in the xmodmap. Here is what I did:

1. Created an "lefty.sh" file in my /home/username/.kde/Autostart and make it executable.

2. Put this code in "lefty.sh"
Quote:
#! /bin/sh
# swap 3 and 1 below for right handed
/usr/X11R6/bin/xmodmap -e "pointer = 3 2 1 6 7 4 5"
3. Edited my xorg.conf for this:
Identifier "Mouse1" #this differs for many
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
Option "Emulate3Buttons" "no"

4. Note: slackware package tool has me setup for PS/2 mouse and I really am using this mouse as PS/2. Have not tried it as USB.

5. Hit ctrl+alt+backspace to restart X and boom..golden.

Now side buttons work perfect in firefox, opera, and Unreal Tournament 2004 sees the side buttons as "mouse 4" and "mouse 5" so I can map them to stuff there woot, time to play.

Thanks again.

Last edited by Old_Fogie; 05-22-2006 at 02:49 AM.
 
Old 07-11-2006, 09:38 PM   #37
Deej510
LQ Newbie
 
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0
running fedora 5 with intellimouse explorer 2.0A

[root@deej ~]# xmodmap -e "pointer = 1 2 3 6 7 4 5"
xmodmap: commandline:1: bad number of buttons, must have 11 instead of 7
xmodmap: 1 error encountered, aborting.

I only have 7 ways to use the mouse... I don't know why it says I have 11.. so I tried this for the hell of it...

[root@deej ~]# xmodmap -e "pointer = 1 2 3 10 11 4 5 6 7 8 9"
[root@deej ~]#

It worked! scroll and side buttons.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mouse side buttons (mixed up mapping) hometoast Linux - Hardware 2 10-05-2005 03:21 PM
intelli mouse side buttons Xios SUSE / openSUSE 1 02-12-2005 10:38 AM
disabling side buttons on wireless mouse bradleyw Linux - Hardware 3 02-02-2005 02:27 AM
side mouse buttons - forward and back? Moebius Linux - Software 3 08-07-2004 11:14 AM
side mouse buttons on intellimouse Slack10 Earth Slackware 7 07-18-2004 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration