LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 12-19-2001, 07:55 AM   #1
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Rep: Reputation: 30
Roller mouse ZAxisMapping


I have a intellimouse from #icrosoft and tried to enable the roller on linux (I already did write the line
Quote:
option "ZAxisMapping" "4 5"
at /etc/X11/X86Config but the roller doesn't seem to work at all . I saw a line that has the intellimouse along with other mice , shall i try it ?thanks
 
Old 12-19-2001, 08:20 AM   #2
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
that is a X4 style config, so should be in XF86Config-4. obvviously, only relevant to X version 4.x
 
Old 12-19-2001, 08:22 AM   #3
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
Can you explain a little bit more extensive please . Thanks in advance
 
Old 12-19-2001, 10:09 AM   #4
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
that line you have will only work if a) you put it in /etx/X11/XF86config-4 and b) you are using X version 4.x.

i don't know abuot b) but you've certainly done a) wrong one way or the otehr
 
Old 12-19-2001, 10:23 AM   #5
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Code:
Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol"     "IMPS/2"
    Option "Device"       "/dev/psaux"
    Option "Buttons"      "5"
    Option "ZAxisMapping" "4 5"
You might need to change /dev/psaux to /dev/mouse.
This is from my Xfree86Config, note the missing -4, I'm using v4.1.0 and this is the config name in slackware, other distro's will be different, if your using a 4.x.x then look for the -4 first and if its not there then use what is. X will still work with it as long as the format is correct.

Last edited by Aussie; 12-19-2001 at 10:25 AM.
 
Old 12-19-2001, 10:49 AM   #6
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
but the whole point of having the two different files is, according to XFree86.org was when they wrote 4.0 so much was different that they purposely made the files incompatible. but that example you gave aussie is X 4 format.

ok ok.. bail out time.... i can't remember what i'm talking about....
 
Old 12-19-2001, 10:55 AM   #7
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
The name is what dosn't matter, as long as the config file is in the correct format for the X version it will work.
 
Old 12-19-2001, 09:20 PM   #8
braincandy99
LQ Newbie
 
Registered: Dec 2001
Posts: 17

Rep: Reputation: 0
what i did

definitely need that line that defines your mouse to have 5 buttons.

If you are trying to get it to work with netscape, you will need to cut and paste this code into your ~/.Xdefaults file (or create a new one)

code taken from:

http://koala.ilog.fr/colas/mouse-wheel-scroll/


Netscape
Should work with all netscape versions. I tested with 2.02, 3.01, 4.02, 4.04, 4.05, 4.5. Contributed by Sergey V. Kovalyov on June 11, 1998, after attempts by myself and Alexey Marinichev and Alexey Solovyov.
Add to your ~/.Xdefaults:
!## NETSCAPE
Netscape*drawingArea.translations: #replace \
<Btn1Down>: ArmLink() \n\
<Btn2Down>: ArmLink() \n\
~Shift<Btn1Up>: ActivateLink() \n\
~Shift<Btn2Up>: ActivateLink(new-window) \
DisarmLink() \n\
Shift<Btn1Up>: ActivateLink(save-only) \
DisarmLink() \n\
Shift<Btn2Up>: ActivateLink(save-only) \
DisarmLink() \n\
<Btn1Motion>: DisarmLinkIfMoved() \n\
<Btn2Motion>: DisarmLinkIfMoved() \n\
<Btn3Motion>: DisarmLinkIfMoved() \n\
<Motion>: DescribeLink() \n\
<Btn3Down>: xfeDoPopup() \n\
<Btn3Up>: ActivatePopup() \n\
Ctrl<Btn4Down>: PageUp()\n\
Ctrl<Btn5Down>: PageDown()\n\
Shift<Btn4Down>: LineUp()\n\
Shift<Btn5Down>: LineDown()\n\
None<Btn4Down>: LineUp()LineUp()LineUp()LineUp()LineUp()LineUp()\n\
None<Btn5Down>: LineDown()LineDown()LineDown()LineDown()LineDown()LineDown()\n\
Alt<Btn4Down>: xfeDoCommand(forward)\n\
Alt<Btn5Down>: xfeDoCommand(back)\n

Netscape*globalNonTextTranslations: #override\n\
Shift<Btn4Down>: LineUp()\n\
Shift<Btn5Down>: LineDown()\n\
None<Btn4Down>:LineUp()LineUp()LineUp()LineUp()LineUp()LineUp()\n\
None<Btn5Down>:LineDown()LineDown()LineDown()LineDown()LineDown()LineDown()\n\
Alt<Btn4Down>: xfeDoCommand(forward)\n\
Alt<Btn5Down>: xfeDoCommand(back)\n

The above also adds the functionality to scroll netscape windows by one full page with ALT depressed. If you dont want this, just remove the 2 last lines (Alt<BtnXDown>) of each section.

You may also want to enable scrolling with the numeric keypad if you want appending these 6 lines just underneath the above:

<Key>KP_9: PageUp()\n\
<Key>KP_3: PageDown()\n\
<Key>KP_8: LineUp()\n\
<Key>KP_2: LineDown()\n\
<Key>KP_4: ColumnLeft()\n\
<Key>KP_6: ColumnRight()\n

PS: Unrelated hack by Alexey MarinichevWilliam M. Perry: I find this to be really cool as well (applies not only to frames): replace Btn3 entries with the following:

<Btn3Down>: \n\
<Btn3Down>,<Btn3Up>: xfeDoCommand(back)\n\
<Btn3Down>,<Btn3Motion>: xfeDoPopup()\n\

Then, click with the right button sends you back, but click and drag gives you the menu.
Note: To scroll a frame, you must first click inside it, othwerwise netscape doesn't seem to known which you you can scroll (In other words: it is too dumb to look at the pointer position :-)


hope that helps

(seems to be that the msg board didn't keep the tabbing from the web page, dunno if that matters)

bc99
 
Old 12-19-2001, 10:41 PM   #9
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Or you could just get the latest version of netscape (6.2.1) because it supports wheel mice as well as mozilla does.....

Last edited by Aussie; 12-19-2001 at 10:46 PM.
 
Old 12-19-2001, 10:43 PM   #10
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Re: what i did

Quote:
Originally posted by braincandy99
definitely need that line that defines your mouse to have 5 buttons.

If you are trying to get it to work with netscape, you will need to cut and paste this code into your ~/.Xdefaults file (or create a new one)

code taken from:

http://koala.ilog.fr/colas/mouse-wheel-scroll/


Netscape
Should work with all netscape versions. I tested with 2.02, 3.01, 4.02, 4.04, 4.05, 4.5. Contributed by Sergey V. Kovalyov on June 11, 1998, after attempts by myself and Alexey Marinichev and Alexey Solovyov.
Add to your ~/.Xdefaults:
!## NETSCAPE
Netscape*drawingArea.translations: #replace \
<Btn1Down>: ArmLink() \n\
<Btn2Down>: ArmLink() \n\
~Shift<Btn1Up>: ActivateLink() \n\
~Shift<Btn2Up>: ActivateLink(new-window) \
DisarmLink() \n\
Shift<Btn1Up>: ActivateLink(save-only) \
DisarmLink() \n\
Shift<Btn2Up>: ActivateLink(save-only) \
DisarmLink() \n\
<Btn1Motion>: DisarmLinkIfMoved() \n\
<Btn2Motion>: DisarmLinkIfMoved() \n\
<Btn3Motion>: DisarmLinkIfMoved() \n\
<Motion>: DescribeLink() \n\
<Btn3Down>: xfeDoPopup() \n\
<Btn3Up>: ActivatePopup() \n\
Ctrl<Btn4Down>: PageUp()\n\
Ctrl<Btn5Down>: PageDown()\n\
Shift<Btn4Down>: LineUp()\n\
Shift<Btn5Down>: LineDown()\n\
None<Btn4Down>: LineUp()LineUp()LineUp()LineUp()LineUp()LineUp()\n\
None<Btn5Down>: LineDown()LineDown()LineDown()LineDown()LineDown()LineDown()\n\
Alt<Btn4Down>: xfeDoCommand(forward)\n\
Alt<Btn5Down>: xfeDoCommand(back)\n\

Netscape*globalNonTextTranslations: #override\n\
Shift<Btn4Down>: LineUp()\n\
Shift<Btn5Down>: LineDown()\n\
None<Btn4Down>:LineUp()LineUp()LineUp()LineUp()LineUp()LineUp()\n\
None<Btn5Down>:LineDown()LineDown()LineDown()LineDown()LineDown()LineDown()\n\
Alt<Btn4Down>: xfeDoCommand(forward)\n\
Alt<Btn5Down>: xfeDoCommand(back)\n\

The above also adds the functionality to scroll netscape windows by one full page with ALT depressed. If you dont want this, just remove the 2 last lines (Alt<BtnXDown>) of each section.

You may also want to enable scrolling with the numeric keypad if you want appending these 6 lines just underneath the above:

<Key>KP_9: PageUp()\n\
<Key>KP_3: PageDown()\n\
<Key>KP_8: LineUp()\n\
<Key>KP_2: LineDown()\n\
<Key>KP_4: ColumnLeft()\n\
<Key>KP_6: ColumnRight()\n\

PS: Unrelated hack by Alexey MarinichevWilliam M. Perry: I find this to be really cool as well (applies not only to frames): replace Btn3 entries with the following:

<Btn3Down>: \n\
<Btn3Down>,<Btn3Up>: xfeDoCommand(back)\n\
<Btn3Down>,<Btn3Motion>: xfeDoPopup()\n\

Then, click with the right button sends you back, but click and drag gives you the menu.
Note: To scroll a frame, you must first click inside it, othwerwise netscape doesn't seem to known which you you can scroll (In other words: it is too dumb to look at the pointer position :-)


hope that helps

(seems to be that the msg board didn't keep the tabbing from the web page, dunno if that matters)

bc99
Lets play spot the code correction
(sorry....I've been to the pub for lunch...'tis the season and all)

Last edited by Aussie; 12-19-2001 at 10:44 PM.
 
  


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
Logitech 3 button mouse.. WHERE'S THE ROLLER BALL GONE? theAntic Linux - Newbie 20 04-25-2005 01:19 AM
ZAxisMapping under Slackware 10.0 doesn't work KingofBLASH Slackware 7 09-21-2004 11:01 PM
ZAxisMapping does not work in slackware 10 Timeturtle Slackware 12 08-21-2004 07:33 AM
Mouse roller problem rabside Linux - Hardware 2 04-11-2004 02:10 PM
Roller mouse not working! HDD Linux - Hardware 1 03-08-2004 03:19 PM


All times are GMT -5. The time now is 02:41 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration