LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-14-2004, 12:10 PM   #121
Beckman
LQ Newbie
 
Registered: Dec 2003
Posts: 3

Rep: Reputation: 0

k, i almost got it working......... almost :P

Code:
beckman@Sinlex beckman $ imwheel --version
imwheel 1.0.0pre6 by -=<Long Island Man>=- <jcatki@jonatkins.org>
beckman@Sinlex beckman $
Code:
beckman@Sinlex beckman $ cat .imwheelrc
".*"
None, Left, Alt_L|Left
None, Right, Alt_L|Right
beckman@Sinlex beckman $
Code:
beckman@Sinlex beckman $ cat .xinitrc
gnome-session & wmpid=$!
 
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b 0067
 
wait $wmpid
beckman@Sinlex beckman $
Code:
Section "InputDevice"
 
    Identifier  "Mouse1"
    Driver      "mouse"
 
    Option      "Protocol"      "ExplorerPS/2"
    Option      "Device"        "/dev/input/mice"
    Option      "Buttons"       "7"
    Option      "ZAxisMapping" "6 7"
EndSection

system: gentoo, 2.6.2


the side buttons seem to work:




#1: xev output (left sidebutton)

Code:
LeaveNotify event, serial 27, synthetic NO, window 0x2800001,
    root 0xb5, subw 0x2800002, time 758237, (45,44), root:(138,129),
    mode NotifyGrab, detail NotifyVirtual, same_screen YES,
    focus YES, state 0
 
KeyPress event, serial 27, synthetic NO, window 0x2800001,
    root 0xb5, subw 0x2800002, time 758240, (45,44), root:(138,129),
    state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False
 
KeyPress event, serial 27, synthetic NO, window 0x2800001,
    root 0xb5, subw 0x2800002, time 758240, (45,44), root:(138,129),
    state 0x8, keycode 100 (keysym 0xff51, Left), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False
 
KeyRelease event, serial 27, synthetic NO, window 0x2800001,
    root 0xb5, subw 0x2800002, time 758240, (45,44), root:(138,129),
    state 0x8, keycode 100 (keysym 0xff51, Left), same_screen YES,
    XLookupString gives 0 bytes:
 
KeyRelease event, serial 27, synthetic NO, window 0x2800001,
    root 0xb5, subw 0x2800002, time 758240, (45,44), root:(138,129),
    state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
 
EnterNotify event, serial 27, synthetic NO, window 0x2800001,
    root 0xb5, subw 0x2800002, time 758327, (45,44), root:(138,129),
    mode NotifyUngrab, detail NotifyVirtual, same_screen YES,
    focus YES, state 0
 
KeymapNotify event, serial 27, synthetic NO, window 0x0,
    keys:  4294967221 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0                                                                                 
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

i hope, all that belongs to left side button.
but as u see there appears Alt_L and Left, as set in .imwheelrc


# 2: X behaviour:

whereever i test it, it just seems to behave like the LEFT key, without the ALT_L button...
the left and right side buttons are just Left and Right keyboard buttons.....

# 3: Wheel

its working fine.
in firefox and in shell...



can anyone help me out?

Last edited by Beckman; 02-14-2004 at 12:11 PM.
 
Old 02-14-2004, 07:52 PM   #122
Beckman
LQ Newbie
 
Registered: Dec 2003
Posts: 3

Rep: Reputation: 0
damn i couldnt stop playing with it, until it started working )

well, the stuff i actually cahnged is:

the .imwheelrc

Code:
beckman@Sinlex beckman $ cat .imwheelrc
".*"
None, Left, Alt_L|Left
None, Right, Alt_L|Right
 
"(null)"
None, Left, Alt_L|Left
None, Right, Alt_L|Right
beckman@Sinlex beckman $
and i played around a bit with this command:

imwheel -k -D -b 0067


thanks to every one here, for all the great info around here )
 
Old 02-19-2004, 02:59 PM   #123
rhraz
Member
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 80

Rep: Reputation: 16
I have 2 XF86Config files. An XF86Config and an XF86Config-4. Which one should i edit for my side buttons to work?
 
Old 02-19-2004, 04:36 PM   #124
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
The second one, XF86Config-4.
 
Old 07-25-2004, 09:13 AM   #125
SGFHK321
Member
 
Registered: Jul 2004
Location: Hong Kong
Posts: 78

Rep: Reputation: 15
dumb question:

How do you make that ./imwheelrc thing? What command should I use?
 
Old 07-25-2004, 04:58 PM   #126
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
It's just a text file, the . means that it's a hidden file so check to see if you have one already with the command 'ls -al ~/.imwheelrc', if you don't then just create one in a text editor.
 
Old 07-26-2004, 08:09 AM   #127
SGFHK321
Member
 
Registered: Jul 2004
Location: Hong Kong
Posts: 78

Rep: Reputation: 15
Thanks Mr Aussie. I still have a few more questions:

#1 how do you display hidden files?

#2 Are there any online reference to linux commands that allows me to search for commands by their function instead of alphabetical order?

#3 I have a keyboard with special function keys. How do I assign them to perform certain functions like starting a program, adjust volume, enter sleep mode...etc?

Thanks in advance.
 
Old 07-26-2004, 01:24 PM   #128
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Quote:
Originally posted by SGFHK321
Thanks Mr Aussie. I still have a few more questions:

#1 how do you display hidden files?
In a terminal do the command "ls -al" (without the quotes).

Quote:
#2 Are there any online reference to linux commands that allows me to search for commands by their function instead of alphabetical order?
Yes, in fact you have installed on your computer a reference to linux commands called "man", you use the man command to display a 'man page' with instructions on how to use a command, in fact there is a man page on the man command which you display by typing "man man" in a terminal. As an exercise type "man ls" to see the man page for the ls command.

Quote:
#3 I have a keyboard with special function keys. How do I assign them to perform certain functions like starting a program, adjust volume, enter sleep mode...etc?
Have a look at LinEAK.

Quote:
Thanks in advance.
Your welcome.
 
Old 11-28-2004, 11:43 AM   #129
bleargh
Member
 
Registered: Jul 2004
Location: New York, NY
Distribution: Ubuntu
Posts: 67

Rep: Reputation: 16
One very important point that might help some of you: xmodmap only works on the mouse that is configured as the CorePointer. If you have more than one mice and xmodmap doesn't seem to do anything, that might be your problem.

Does anyone know a way around this? :-) Can imwheel be used to remap 6/7 and 4/5 on only one of the devices, the way 'pointer = 1 2 3 6 7 4 5' does?
 
Old 12-10-2004, 12:54 AM   #130
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
I just read this entire thread as carefully as I could, but I'm still having problems getting the side buttons to work.

here's what i've got...

Code:
Section "InputDevice"
  Driver       "mouse"
  Identifier   "Mouse[1]"
  Option       "Buttons" "7"
  Option       "Device" "/dev/input/mice"
  Option       "Protocol" "ExplorerPS/2"
  Option       "ZAxisMapping" "4 5"
  Option       "Emulate3Buttons" "no"
EndSection
My ~/.imwheelrc
Code:
".*"
None, Left, Alt_L|Left
None, Right, Alt_L|Right
And when I get into KDE, I'm running these commands manually...

Code:
xmodmap -e "pointer = 1 2 3 4 5 6 7"
imwheel -k -b "67"
I've got scrolling working OK on the wheel, but left and right buttons still don't work. I wasn't able to run these commands when I login, because when I create a file called ~/.xinitrc and put the above 2 commands into it, even thought i have the #!/bin/bash line at the beginning, it will still not allow me to login. It kicks me back to the login screen. The only way to login is by logging in as root and then renaming that file to a .bak and then I can login again.

Can someone suggest an alternate place where I can store these commands and it will start them properly when I login? I'm running Suse 9.1.

Also, when I run...

xmodmap -e "pointer = 1 2 3 6 7 4 5"

I can scroll the wheel and it's doing forward and backward in Firefox. So it seems like I'm nearly there.

Has anyone considered putting all this together in a nice howto that can be posted on the site?? I think it would be excellent.
 
Old 12-10-2004, 07:50 AM   #131
bleargh
Member
 
Registered: Jul 2004
Location: New York, NY
Distribution: Ubuntu
Posts: 67

Rep: Reputation: 16
i'm not sure how to get it to work with imwheel but i would like to learn. just using modmap i have zaxismapping 6 7, and then use xmodmap lines in my kde autostart to switch 4/5 and 6/7. i heard that if you don't use 6 7 zaxismapping then the side buttons don't get activated? do they all show up when you run xev?

mine works in firefox because firefox recognizes 6 and 7 as back and forward. not in other programs, so if i can use imwheel to map them to alt+l and alt+r it would be nice, but this works for now.

i also can't figure out how to get a program to startup with X. i have libranet and .xsession, .xinitrc don't work. ked autostart works, but only for kde of course. .bashrc works, but it runs the program every time you start bash.
 
Old 02-24-2005, 04:35 PM   #132
louisgag
LQ Newbie
 
Registered: Feb 2005
Posts: 16

Rep: Reputation: 2
I had somke problem with my Intellimouse on Mandrake 10.1 and after having tried many solutions, I found that the best one was to get rid of that imwheel program.!!!!!! And now, imy mouse works just fine in Firefox!


Thought some of you might be interested by this....

 
Old 06-12-2006, 11:31 AM   #133
islamguidedotcom
LQ Newbie
 
Registered: Nov 2005
Location: Singapore
Distribution: Still Searching For A Utopian Distro
Posts: 4

Rep: Reputation: 0
HI!

I'm using an a4 tech optical 5 button mouse http://www.a4tech.com/en/product2.as...D=8&MNO=WOP-35

I tink the problem in my situation is, I cannot get imwheel to start. xev shows output for the side buttons and my wheel scrolls fine... just wanna get the side buttons binded to alt left and alt right...

fj@AZCOM:~> imwheel
ERROR: Couldn't write pid to pid file
Perhaps you want the -p option to avoid this...
Otherwise you may SUID root the imwheel executable.
: Permission denied

The funny thing is that that happens even when I'm root!

When I ran that,

AZCOM:/home/fj # imwheel -k -b -p "67"
imwheel: ERROR: buttons: #0: - is not a number!

Any suggestions greatly appreaciated..
 
Old 06-13-2006, 08:31 AM   #134
louisgag
LQ Newbie
 
Registered: Feb 2005
Posts: 16

Rep: Reputation: 2
It looks like the program is expecting a number from either the -b of -k option before you give it the -p option...
change this:
Quote:
AZCOM:/home/fj # imwheel -k -b -p "67"
 
Old 11-12-2006, 02:12 PM   #135
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
I've read through this thread over the past few days trying to configure my Intellimouse Side Buttons. It almost works. The problem I'm having is that XEV shows buttons 6 AND 2 for the left side button and 7 AND 3 for the right side button. IOW, I'm getting two button press events for each of the side buttons. This makes for some very strange, but almost correct, behavior in firefox and other places. Any thoughts?

Debian 2.6.8
NVIDIA card and X installation from their run file

.xsession:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b "67"
exec /usr/bin/x-session-manager

.imwheelrc:
".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right

"(null)"
None, Left, Alt_L|Reft
None, Right, Alt_L|Right

XF86Config-4:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection

The problem didn't seem to happen when I was running Debian 2.4.27.2

thanks

Quakeboy02
 
  


Reply

Tags
mouseconfig



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
SuSE 9.1 and Intellimouse Optical side buttons STuPiDiCuS Linux - Hardware 1 09-23-2004 10:23 PM
side mouse buttons on intellimouse Slack10 Earth Slackware 7 07-18-2004 11:50 AM
Intellimouse side buttons (yet again?) Toker Linux - Newbie 7 10-05-2003 01:55 AM
Intellimouse AND Side Buttons, HOW TO- Alternate Caoster Linux - Hardware 0 07-18-2003 04:53 AM
side-buttons. intellimouse ! sapilas Linux - Distributions 2 05-24-2002 04:29 AM

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

All times are GMT -5. The time now is 05:42 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