LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Microsfot Intellimouse - Side Buttons? (https://www.linuxquestions.org/questions/linux-hardware-18/microsfot-intellimouse-side-buttons-21303/)

bkeating 05-19-2002 03:16 AM

Microsfot Intellimouse - Side Buttons?
 
Was wondering if anyone knew how to get the side buttons working on the Intelli Mouse. They served as the "bacl" button and "forward" button for directory and web browsing.

Thanks!
Ben.

DavidPhillips 05-19-2002 08:29 AM

If they are different buttons from the wheel, you can add the as buttons 7 and 8

bkeating 05-19-2002 10:26 AM

where at do I make these modifications?

thanks!
ben.

fatgod 05-21-2002 04:49 AM

good question. I've got one too and having functionality of them would be nice.

Thymox 05-21-2002 06:59 AM

I think it's got something to do with mapping in your /etc/X11/XF86Config-4 file. You should check out threads around already on mapping buttons 3 and 4. Should be similar process.

Aussie 05-23-2002 12:25 AM

Yes you can use the side buttons. I've just finished setting up my five button optical mouse after reading this post this morning and doing a bit of googling on the subject.
First you need to set up your mouse in XFree86 (version 4.2.0 is what I use), this is my pointer section,
Code:

Identifier "Mouse1"
Driver "mouse"
Option "Protocol"    "ExplorerPS/2"
Option "Device"      "/dev/psaux"
Option "Buttons"      "7"
Option "ZAxisMapping" "6 7"

Then you need to do "xmodmap -e "pointer 1236745" I have a script in .kde/Autostart to do this when ever I startx but you can put the line in your .xdefaults as well.
Code:

#!/bin/sh

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

Once you have verified that your wheel works you can test to see if the extra buttons are seen by X with "xev" (place the pointer in the square and click the buttons to see the events).
Next you need to download and install imwheel (1.0.0pre1) and create .imwheelrc in your home directory with the following,
Code:

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

Next start imwheel with imwheel -k -b "67" I use another script in /kde/Autostart for this as well,
Code:

#!/bin/sh
imwheel -k -b "67"

So far it's working well in konqueror, mozilla 1.0rc2 and netscape 7 pre1.

Brion 05-24-2002 01:19 AM

Quote:

Originally posted by Aussie
[B]Yes you can use the side buttons. I've just finished setting up my five button optical mouse after reading this post this morning and doing a bit of googling on the subject.

<SNIP>

thank u so much, it works perfectly
i've always wondered how to get this to work but never really got into it

Aussie 05-24-2002 01:42 AM

Your welcome :)
I first had a look at it about three months age but got distracted by kde 3.

bax 07-09-2002 06:49 PM

USB Intellimouse
 
I followed the above instructions exactly but I didn't change my mouse's protocol since it's USB. Here's my config:
Section "InputDevice"

Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"


This is what happens when I run xmodmap: xmodmap "pointer = 1 2 3 6 7 4 5"
xmodmap: unable to open file 'pointer = 1 2 3 6 7 4 5' for reading
xmodmap: 1 error encountered, aborting.
What am I doing wrong here? Anyone map the side buttons to fwd and back like on WIndows?

Aussie 07-09-2002 07:08 PM

It will only work if you use the correct protocol.

bax 07-09-2002 10:41 PM

So, will that protocol work w/ a USB mouse?

Aussie 07-09-2002 11:24 PM

Just because your mouse connects via usb does not mean it needs a usb protocol, you need to use ExplorerPS/2 if you want to get the side buttons working with either usb or ps/2 connections. You might need to change the device however.

bax 07-09-2002 11:53 PM

Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/psaux"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"

This brought about the exact same xmodmap error. I have Googled quite a bit and from what I have seen this SHOULD work. But it isn't....

Aussie 07-10-2002 12:17 AM

/dev/psaux is your problem now, psaux is for a mouse connected to the ps/2 port and you have a usb mouse. Have a look in /dev and see what /dev/mouse is a symlink to, and you may need to change your device to that target.

dorward 07-10-2002 06:49 AM

Righty, I have a Intellimouse Explorer hocked up to the USB port and I use the side buttons. This works perfectly.

From XF86Config-4
Code:

Section "InputDevice"
        Identifier      "USB Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ExplorerPS/2"
        Option          "ZAxisMapping"          "6 7"
        Option          "Buttons"              "7"
EndSection

From ~/.xsession (the script that runs when I log in to X or run startx):
Code:

xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b "67"

Note the "-e" part, it won't work without it.

From ~/.imwheelrc (the config file for imwheel which deals with the side buttons):
Code:

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


eggs 07-10-2002 10:07 PM

I've got an odd problem... my MS Intellimouse Explorer's wheel is buttons 4 and 5, I think its a version 1 so maybe thats the problem. Meaning my mouse section looks like this:

Quote:

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "7"
Option "ZAxisMapping" "4 5"
EndSection
And the wheel does not work if I put the zaxis on 6 7 like everyone else's mouse.

So needless to say the xmodmap "pointer = 1 2 3 6 7 4 5" broke the wheel so I assumed that the 4th and 5th number are for the wheel and made mine 'xmodmap "pointer = 1 2 3 4 5 6 7"' and the wheel worked again but the side buttons still didn't work in xev.

LinuxQuest01 07-11-2002 07:45 AM

Doing something similar, but with a keyboard
 
Anyone every heard of a "Cortron" keyboard? It has a few additional keys like F13, F14, ... F22, as well as "Clear" and "Param Value".

I was wondering if anyone know how to get those buttons to work, 'cause right now there's no reponse when I use xev or showkey.

dorward 07-11-2002 07:54 AM

With the keyboard issue, you could take a look at "xkeycaps" to find out what (if any) signals it is putting out, and then use xmodmap to get it to remap those signals to characters.

How you get them to actually do something depends on your system, I use fluxbox so I would use the fluxbox keymapping facilities to set them to up loauch applications and do things to windows.

LinuxQuest01 07-11-2002 04:02 PM

How do I install xkeycaps
 
I download the file xkeycaps-2.46.tar.Z, umcompress it, and extracted it. Now what? The readme file said to:

"See the Imakefile for configuration parameters. To build, do the usual:

xmkmf ; make ; make install ; make install.man"

So, what I am really suppose to do?

dorward 07-11-2002 04:14 PM

Edit "imakefile" then type the commands listed.

I suggest finding an RPM version, there should be one on your Red Hat CDs, failing that try http://rpmfind.net/

UprightMan 08-20-2002 10:39 AM

tried all of this
 
/etc/imwheelrc
".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right

~/.imwheelrc -> /etc/imwheelrc

/etc/X11/XF86Config
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection

.xinitrc
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b "67"
exec /opt/fluxbox/bin/fluxbox

I know that the buttons are being seen because the left side will open links just like the regular left button.

Any ideas? Slack is almost working perfectly for me. I just love using those side buttons for scrolling history.

-edit: Just ran xev and every button is set correctly. Just alt-left and alt-right are not being mapped to buttons 6 and 7.

ciscokidd 08-24-2002 10:49 PM

I'm having the same exact problem as UprightMan...

anyone have any ideas?

Aussie 08-24-2002 11:05 PM

Don't make ~/.imwheelrc a sym link to /etc/imwheelrc, save it to /home/you/.imwheelrc.

ciscokidd 08-25-2002 09:39 PM

in the ~/.imwheelrc, where does

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

go? is this the only thing that should be in there?

Aussie 08-25-2002 09:49 PM

Yep, here's mine,
Code:

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


ciscokidd 08-26-2002 12:00 PM

~/.imwheelrc

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


/etc/X11/XF86Config

Section "InputDevice"
Identifier "Mouse[1]"
Driver "mouse"
Option "Device" "/dev/mouse"
Option "Protocol" "ExplorerPS/2"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection

and added to ~/.xinitrc

xmodmap -e "pointer = 1 2 3 6 7 4 5 "
imwheel -k -b "67"


Still having problems with it mapping the side buttons (4 and 5) to back and forward. When I click on a link using those buttons it is similar to if it was button 1 and not back and forward.

BrandonJG 08-31-2002 04:55 PM

Okay guys. Here comes a dumb question.
How do you install IMWheel?. I donwloaded it from the link above but I cant figure out how to get it installed.

I modified the XF86Config-4 and tested with xev and my buttons are registering correctly. I just dont knw what to do with this iwheel.

Thanks for the info

Aussie 08-31-2002 07:46 PM

It's source code Brandon, you need to do "./configure && make" then "su" and "make install" in the directry created when you untarred to package.

BrandonJG 09-01-2002 12:45 AM

I actually did find the instructions when I uncompressed it. With root access, I did the following:

./configure
make
make install

on the last step though, it gave me an error. Dont recall what it was now. I'm currently in WinXP... when I reboot, I'll try again & post the error message.

This probably will sound dumb too but: Why doesnt it come pre-compiled? An RPM would be nice.

MasterC 09-01-2002 01:03 AM

Well, although an RPM might be nice, not all developers are into making RPM's. Especially when source is more "universal". The work involved would only work on specific systems, whereas with source, you can make it work on ALOT of systems.

And you said "make install" gave you errors? That is really wierd, unless you weren't root. You do have to be root when running 'make install'. Configure and make went smooth, but make install produced errors. I would guess it's because you didn't have the directory it was trying to install to.


Aussie 09-01-2002 03:13 AM

rpm's are only nice when you use an rpm based sytem......and if you do then rpmfind.net should be your number 1 bookmark.

BrandonJG 09-01-2002 07:13 PM

running as root, here's the last couple of lines that are outputted when I run the "make install"

/bin/sh: ldconfig: command not found
make[1]: *** [install] Error 127
make[1]: Leaving directory `/home/brandon/downloads/imwheel-1.0.0pre1/gpm-1.19.3'
make: *** [install-recursive] Error 1

I'm not sure what the means but I've tried half a dozen times and I get the same result.

Aussie 09-01-2002 07:27 PM

You have to fix this error.
/bin/sh: ldconfig: command not found

BrandonJG 09-01-2002 07:44 PM

thats kinda what I was thinking. What is that command?
Any ideas why I dont have it available? I can see that the file resides in my /sbin directory.

This is fresh install of RedHat 7.3.

Aussie 09-01-2002 08:12 PM

Thats where it should be, when you su to root try doing "su -", the - will set the full root path, and then try "make install" again.

BrandonJG 09-01-2002 08:38 PM

well that did it. It compiled. Thanks a bunch Aussie. Is there any reason not to use "su -" all the time instead of just "su"?

Aussie 09-01-2002 09:02 PM

It's a good idea in redhat.

Rational 10-10-2002 05:49 AM

Why don't they?....
 
Alright, I'm a newbie to Linux. It's cool and all and I hope it becomes the next big thing in desktops for a lot of reasons. But WHY DO I HAVE TO INSTALL MY INTELLIMOUSE OPTICAL USB 5 BUTTON WITH THIS LOW LEVEL PROGRAMMING CRAP!?????

I mean, jeeesh Linux community. Get with the program. I'm a brainless Windows user like the rest of humanity. Stick this model in the list of available mice and be done with it! Thanks.
Rational

You'll never kill MS with crap like this.

oh, but I do think its cool how Aussie and other are nice enough to take the time to help us mortals through this junk...

Aussie 10-10-2002 06:08 AM

Problems installing hardware have nothing whatsoever to do with linux and/or the linux community, it is the responsibility of the company that makes the hardware to provide the support for their products, so go and post your rants at their web site.

spooge 10-26-2002 04:44 PM

thanks aussie, i was a lil chicken to try, but after folowing your instructions, everything works fine ! my 1st scripts work too !

time to get the camera, and cd-writer workin

ciscokidd 11-13-2002 08:58 PM

help with imwheel install
 
ok, so i have my ms intellimouse explorer kinda working in suse 8.1. the wheel scrolls and the buttons are mapped correctly. BUT i can't figure out how to get imwheel to install correctly.

this is my ./configure:

:~/src/imwheel-1.0.0pre2> ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking whether make sets ${MAKE}... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for gettimeofday... yes
checking for regcomp... yes
checking for strdup... yes
checking for strtol... yes
checking for getopt_long_only... yes
checking that regex functions are available... yes
checking where the pid file goes... /tmp
checking if we suid imwheel at install... no
checking if we use the included getopts... no
checking if we build mdetect... no
checking if we build mdump... no
checking if we build extras... no
checking for gpm-1.19.3/gpm.c... yes
checking if we build gpm-imwheel... yes
checking for X... no
checking if we want to check for XFree86... yes
checking for X... X
checking if X is XFree86... yes
checking for XCreateWindow in -lX11... no
configure: WARNING: IMWheel depends on the X11 libraries!
checking for XextAddDisplay in -lXext... no
checking for XtFree in -lXt... no
checking for XmuInternAtom in -lXmu... no
checking for XTestFakeDeviceKeyEvent in -lXtst... no
configure: WARNING: IMWheel depends on the XTest extention!

You had 2 warnings during configure, imwheel may not compile or run.

configure: creating ./config.status
config.status: creating jax/Makefile
config.status: creating Makefile
config.status: creating mdetect/Makefile
config.status: creating getopt/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
configure: configuring in gpm-1.19.3
configure: running /bin/sh './configure' --prefix=/usr/local --cache-file=/dev/null --srcdir=.
loading cache /dev/null
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking for bison... no
checking for byacc... no
checking whether ln -s works... yes
checking for emacs... no
checking how to run the C preprocessor... gcc -E
checking for syslog.h... yes
checking for linux/joystick.h... yes
checking for ncurses.h... no
checking for ncurses/curses.h... no
checking for curses.h... no
checking for sys/sysmacros.h... yes
checking for linux/major.h... yes
checking for linux/tty.h... yes
checking for __u32... yes
checking whether system is ELF... yes
checking for vsyslog... yes
checking for syslog... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for tputs in -ltinfo... no
checking for tputs in -lncurses... no
checking for tputs in -ltermcap... no
checking for tputs in -ltermlib... no
checking for wgetch in -lncurses... no
checking for wgetch in -lcurses... no
updating cache /dev/null
creating ./config.status
creating Makefile
creating doc/Makefile
creating contrib/Makefile
creating config.h
config.h is unchanged

and so i can't run make but this is what outputs when i do run it:

make
cd . \
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
/bin/sh ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
make all-recursive
make[1]: Entering directory `/home/ciscokidd/src/imwheel-1.0.0pre2'
Making all in jax
make[2]: Entering directory `/home/ciscokidd/src/imwheel-1.0.0pre2/jax'
source='jax.c' object='jax.o' libtool=no \
depfile='.deps/jax.Po' tmpdepfile='.deps/jax.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c `test -f jax.c || echo './'`jax.c
In file included from jax.c:2:
jax.h:6:22: X11/Xlib.h: No such file or directory
jax.h:7:23: X11/Xutil.h: No such file or directory
jax.h:8:27: X11/Xresource.h: No such file or directory
In file included from jax.c:2:
jax.h:26: parse error before "Display"
jax.h:26: warning: no semicolon at end of struct or union
jax.h:30: parse error before "w"
jax.h:30: warning: data definition has no type or storage class
jax.h:32: parse error before "xswa"
jax.h:32: warning: data definition has no type or storage class
jax.h:33: parse error before "xwa"
jax.h:33: warning: data definition has no type or storage class
jax.h:35: parse error before "wname"
jax.h:35: warning: data definition has no type or storage class
jax.h:36: parse error before "iname"
jax.h:36: warning: data definition has no type or storage class
jax.h:37: parse error before '*' token
jax.h:37: warning: data definition has no type or storage class
jax.h:38: parse error before '*' token
jax.h:38: warning: data definition has no type or storage class
jax.h:39: parse error before '*' token
jax.h:39: warning: data definition has no type or storage class
jax.h:42: parse error before "xe"
jax.h:42: warning: data definition has no type or storage class
jax.h:45: parse error before "xgcv"
jax.h:45: warning: data definition has no type or storage class
jax.h:47: parse error before "gc"
jax.h:47: warning: data definition has no type or storage class
jax.h:48: parse error before '*' token
jax.h:48: warning: data definition has no type or storage class
jax.h:50: parse error before "cmap"
jax.h:50: warning: data definition has no type or storage class
jax.h:58: parse error before '}' token
jax.h:58: warning: data definition has no type or storage class
jax.h:60: parse error before '*' token
jax.h:62: parse error before '*' token
jax.h:63: parse error before '*' token
jax.h:64: parse error before '*' token
jax.h:64: warning: data definition has no type or storage class
jax.h:66: parse error before '*' token
jax.h:66: warning: data definition has no type or storage class
jax.h:68: parse error before '*' token
jax.h:70: parse error before '*' token
jax.h:71: parse error before '*' token
jax.h:72: parse error before '*' token
jax.h:75: parse error before '*' token
jax.h:79: parse error before '*' token
jax.h:81: parse error before '*' token
jax.h:82: parse error before '*' token
jax.h:83: parse error before '*' token
jax.h:84: parse error before '*' token
jax.h:85: parse error before '*' token
jax.c:8: parse error before '*' token
jax.c: In function `JAXusage':
jax.c:12: `prog_name' undeclared (first use in this function)
jax.c:12: (Each undeclared identifier is reported only once
jax.c:12: for each function it appears in.)
jax.c:13: `jax' undeclared (first use in this function)
jax.c:21: `usage' undeclared (first use in this function)
jax.c: At top level:
jax.c:36: parse error before '*' token
jax.c: In function `JAXgetopts':
jax.c:40: `argc' undeclared (first use in this function)
jax.c:40: `argv' undeclared (first use in this function)
jax.c:42: `jax' undeclared (first use in this function)
jax.c: At top level:
jax.c:87: parse error before '*' token
jax.c: In function `JAXgetrdb':
jax.c:91: `XrmValue' undeclared (first use in this function)
jax.c:91: parse error before "xrmvalue"
jax.c:92: `XrmDatabase' undeclared (first use in this function)
jax.c: At top level:
jax.c:101: parse error before '*' token
jax.c: In function `JAXnewjax':
jax.c:103: `jax' undeclared (first use in this function)
jax.c:105: parse error before ')' token
jax.c: At top level:
jax.c:110: parse error before '*' token
jax.c: In function `JAXinit':
jax.c:112: `jax' undeclared (first use in this function)
jax.c: At top level:
jax.c:150: parse error before '*' token
jax.c: In function `JAXopenrootwin':
jax.c:152: `jax' undeclared (first use in this function)
jax.c: At top level:
jax.c:160: parse error before '*' token
jax.c: In function `JAXcreatewin':
jax.c:163: `jax' undeclared (first use in this function)
jax.c:165: `x' undeclared (first use in this function)
jax.c:165: `y' undeclared (first use in this function)
jax.c:165: `h' undeclared (first use in this function)
jax.c:177: `argv' undeclared (first use in this function)
jax.c:180: `winName' undeclared (first use in this function)
jax.c:185: `iconName' undeclared (first use in this function)
jax.c:203: `PPosition' undeclared (first use in this function)
jax.c:203: `PSize' undeclared (first use in this function)
jax.c:203: `PMinSize' undeclared (first use in this function)
jax.c:203: `PMaxSize' undeclared (first use in this function)
jax.c:209: `argc' undeclared (first use in this function)
jax.c: At top level:
jax.c:216: parse error before '*' token
jax.c: In function `JAXuseGeometry':
jax.c:221: `jax' undeclared (first use in this function)
jax.c:228: `XValue' undeclared (first use in this function)
jax.c:228: `not_allowed_bitmask' undeclared (first use in this function)
jax.c:230: `USPosition' undeclared (first use in this function)
jax.c:233: `YValue' undeclared (first use in this function)
jax.c:238: `WidthValue' undeclared (first use in this function)
jax.c:240: `USSize' undeclared (first use in this function)
jax.c:243: `HeightValue' undeclared (first use in this function)
jax.c: At top level:
jax.c:259: parse error before '*' token
jax.c: In function `JAXmapWin':
jax.c:261: `jax' undeclared (first use in this function)
jax.c:263: `raised' undeclared (first use in this function)
jax.c: At top level:
jax.c:275: parse error before '*' token
jax.c: In function `JAXdefaultGC':
jax.c:277: `jax' undeclared (first use in this function)
jax.c:279: `GCForeground' undeclared (first use in this function)
jax.c:279: `GCBackground' undeclared (first use in this function)
jax.c: At top level:
jax.c:284: parse error before '*' token
jax.c: In function `JAXexit':
jax.c:286: `jax' undeclared (first use in this function)
jax.c: At top level:
jax.c:294: parse error before '*' token
jax.c: In function `JAXaddevents':
jax.c:298: `je' undeclared (first use in this function)
jax.c:299: `jax' undeclared (first use in this function)
jax.c:307: `CWEventMask' undeclared (first use in this function)
jax.c: At top level:
jax.c:313: parse error before '*' token
jax.c: In function `JAXeventnow':
jax.c:317: `jax' undeclared (first use in this function)
jax.c:317: `QueuedAfterReading' undeclared (first use in this function)
jax.c:322: `MappingNotify' undeclared (first use in this function)
jax.c:323: `XMappingEvent' undeclared (first use in this function)
jax.c:323: parse error before ')' token
jax.c: At top level:
jax.c:335: parse error before '*' token
jax.c: In function `JAXwaitforevent':
jax.c:341: `jax' undeclared (first use in this function)
jax.c:344: `MappingNotify' undeclared (first use in this function)
jax.c:345: `XMappingEvent' undeclared (first use in this function)
jax.c:345: parse error before ')' token
jax.c: At top level:
jax.c:355: parse error before '*' token
jax.c: In function `JAXeventhandler':
jax.c:359: `jax' undeclared (first use in this function)
jax.c: At top level:
jax.c:368: parse error before '*' token
jax.c: In function `JAXeventloop':
jax.c:374: `jax' undeclared (first use in this function)
make[2]: *** [jax.o] Error 1
make[2]: Leaving directory `/home/ciscokidd/src/imwheel-1.0.0pre2/jax'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ciscokidd/src/imwheel-1.0.0pre2'
make: *** [all] Error 2


can anyone help me with this error msg?

Aussie 11-13-2002 09:12 PM

Make sure you have the XFree86-devel rpm's installed.

ciscokidd 11-14-2002 12:24 AM

tanks aussie! yoda man!

Aussie 11-14-2002 12:45 AM

Your welcome :-)

Eyecannon 12-27-2002 10:55 PM

OK, first off, thanks for all the help with this... I have gotten everything almost 100% totally working. I have a Intellimouse Optical with one button on either side, and I want the left button to be End and the right button to be Escape, and also I want the mousewheel button to be Home.

Here is my script to run imwheel:
Code:

#!/bin/sh
imwheel -k -b "267"

xmodmap:
Code:

xmodmap -e "pointer = 1 2 3 6 7 4 5"
and .imwheelrc:
Code:

".*"
 None, Up, Home
 None, Down, End
 None, Down, Escape

What obvious thing am I doing wrong? :confused:

With this setup, only the mousewheel button (Home) and leftside button (End) work, the right button does nothing. When I capture with xev, it gives the code for Next, whatever that is. :confused:

Also, if I'm just doing the two side buttons, they will work (Escape and End work) So I know the Escape syntax is at least semi-correct. :confused:

Aussie 12-28-2002 12:50 AM

The middle mouse button is already in use in linux, so I think thats where you problem lies, you only have the side buttons to play with.

Eyecannon 12-28-2002 01:43 AM

Quote:

Originally posted by Aussie
The middle mouse button is already in use in linux, so I think thats where you problem lies, you only have the side buttons to play with.
Surely there is a way to rebind all 3 at once! They all work, just not at the same time... I can get the mousewheel button to do Home, just not at the same time as I can get the right sidebutton to be Escape.

Can someone explain the UP and DOWN syntax in .imwheelrc?? I always have to mess with that to get it to work... this may be part of the problem.

spooge 02-12-2003 08:41 PM

fighting away my noob status, i installed blackbox.....

and after searching for 2 hrs......

how would i start a script in BB, or gnome?

i tried rc.local, but i'm not sure of how to write the commandsl

like the imwheell stuff

thanks

TruckStuff 02-28-2003 09:43 AM

This thread seems to keep coming back from the dead, so I will do it to. :D

I have followed the instructions in this thread and I still cannot get my side buttons working. I know I have imwheel installed correctly (keep reading).

relevant /etc/X11/XF86Config:
Quote:

Section "InputDevice"
# Modified by mouseconfig
Identifier "Mouse0"
Driver "mouse"
Option "Device" "/dev/psaux"
Option "Protocol" "IMPS/2"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection
Other files:
Quote:

[steve@steve steve]$ cat ~/.imwheelrc
".*"
None, Up, Alt_L|Left
None, Down, Alt_R|Right

[steve@steve steve]$ cat ~/.xinitrc
#!/bin/bash
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b "67"
The wheel works just fine with my config like this, but the side buttons don't work. If I do an xmodmap -e "pointer = 1 2 3 4 5 6 7", then my wheel begins taking me forward and back (which is why I know imwheel is working properly). When I run xev, the side buttons do not send any signal at all (probably my biggest problem here). I have tried several combinations of buttons with xmodmap and imwheelrc to no avail. Can anyone give me some pointers? PS2 Intellimouse Explorer btw.

Aussie 02-28-2003 09:57 AM

You need to use Option "Protocol "ExplorerPS/2".


All times are GMT -5. The time now is 03:10 PM.