LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-01-2006, 11:06 AM   #1
eternal64
LQ Newbie
 
Registered: Apr 2006
Location: Sweden
Distribution: SuSe v10.0
Posts: 14

Rep: Reputation: 0
Setting up mouse


Hi,


Code:
".*"
 None, Up,   Alt_L|Left
 None, Down, Alt_L|Right
[INSTR]
...the next two lines instruct imwheel on what to do when the buttons are pressed.[/INSTR]

When what buttons are pressed? The instructions talk about xmodmap and mousebuttons referd to by numbers and suddenly they talk about up and down.

[INSTR]Create a file called ~/.imwheelrc and put this into it:[/INSTR]

With "this" they are refering to the code above. There is a file called imwheelrc in the imwheel programfolder ,can i put the code in that? If i create a file somwhere else do i have to link it in anyway to the program?
 
Old 04-01-2006, 11:20 PM   #2
eternal64
LQ Newbie
 
Registered: Apr 2006
Location: Sweden
Distribution: SuSe v10.0
Posts: 14

Original Poster
Rep: Reputation: 0
Code:
Alt_L|Left
By this they mean "Left ALT + Left Arrow" ?

Please offer some assistance to this issue ,i've searched both this forum and google and nowhere they explaine the code how to SET the buttons ,just how to find them. Like ,whats the syntax for the code above? Using the code above is like using a function without knowing what variables going where.

PLEASE SOMEONE ?!
 
Old 04-02-2006, 03:11 AM   #3
kg4ysy
Member
 
Registered: May 2005
Location: North Carolina
Distribution: Gentoo
Posts: 123

Rep: Reputation: 19
Go to your mouse section of xorg.conf. Change protocol to ExplorerPS/2 and if your mouse has 2 extra buttons, change ZAxis to 6 7...buttons to 7.



32 Section "InputDevice"
33 Identifier "Mouse0"
34 Driver "mouse"
35 Option "Protocol" "ExplorerPS/2"
36 Option "Device" "/dev/input/mice"
37 Option "ZAxisMapping" "6 7"
38 Option "Buttons" "7"
39 Option "Emulate3Buttons" "yes"
40 EndSection

After you set this up, restart your xserver and type the following in a terminal...

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

this will allow 6 and 7 to be scroll otherwise the side buttons will act as a scrollwheel. In order to keep from running this command everytime you start the xserver, put it in the alias portion of ~/.bashrc

Let us know if this works

--Jim
 
Old 04-02-2006, 07:35 AM   #4
eternal64
LQ Newbie
 
Registered: Apr 2006
Location: Sweden
Distribution: SuSe v10.0
Posts: 14

Original Poster
Rep: Reputation: 0
Thanx for the answer kg4ysy but that part i've managed. I have read the forum here where i found the instructions how to make linux find all the buttons on my mouse.
The problem is after that i want to SET the buttons to do what i want. The help i got so far is that i should use imwheel (which i now have installed) but neither here or the imwheel officalsite seems to explaine how to set the buttons. The code posted first is an example from the imwheels offical site but i cant make it work an also i would like to see the syntax for it so i can understand and make my own.
 
Old 04-02-2006, 10:36 AM   #5
kg4ysy
Member
 
Registered: May 2005
Location: North Carolina
Distribution: Gentoo
Posts: 123

Rep: Reputation: 19
using the default example you listed above, hitting those buttons in firefox should activate back/forward. Does this work. Depending on this, we can come up with a solution
 
Old 04-02-2006, 10:56 AM   #6
eternal64
LQ Newbie
 
Registered: Apr 2006
Location: Sweden
Distribution: SuSe v10.0
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by eternal64
The code posted first is an example from the imwheels offical site but i cant make it work
No, like i said it doesnt work. On a site i read that i should replace Up with Left and Down with Right because i have a MX700 mouse. Still wont work neither with the original (Up and Down) or (Left and Right).

Seems a little strange that i write Up,Down,Left,Right in the script when linux (xmodmapp -pp) descibe the button as numbers (1-10). But i've tried replacing Up ,Down in the script with numbers instead but with no luck.
 
Old 04-02-2006, 11:11 AM   #7
kg4ysy
Member
 
Registered: May 2005
Location: North Carolina
Distribution: Gentoo
Posts: 123

Rep: Reputation: 19
What function do you want the extra buttons to do?
 
Old 04-02-2006, 11:19 AM   #8
eternal64
LQ Newbie
 
Registered: Apr 2006
Location: Sweden
Distribution: SuSe v10.0
Posts: 14

Original Poster
Rep: Reputation: 0
If i understand it correctly i can make the extrabuttons do diffrent things in diffrent programs. Im about to use them in a game and the best way for them to work there is to define them as keyboard buttons. So that means i want my two thumb buttons on the mouse react as keypress O and keypress P.

Thats the main thing ,but i would realy like some understanding what the parts of the above code does so i can make more settings after this initial.
 
Old 04-02-2006, 11:24 AM   #9
eternal64
LQ Newbie
 
Registered: Apr 2006
Location: Sweden
Distribution: SuSe v10.0
Posts: 14

Original Poster
Rep: Reputation: 0
Like i wrote in the beginning ,after i have installed imwheel the instructions tell me to create a file called ~imwheelrc and put the code there. But there are no instructions WHERE i should create this file. Does imwheel automaticly find this file or do i have to put in in a specific place? What i found is a file called imwheelrc inside the imwheel-programfolder on my Desktop ,this is where i now put the code .. is that wrong.

Figured this could be a good place to start finding out whats wrong.

Last edited by eternal64; 04-02-2006 at 11:27 AM.
 
Old 04-02-2006, 12:02 PM   #10
kg4ysy
Member
 
Registered: May 2005
Location: North Carolina
Distribution: Gentoo
Posts: 123

Rep: Reputation: 19
the file should go in ~/.imwheelrc (~ meaning your home directory)
 
Old 04-03-2006, 03:09 PM   #11
eternal64
LQ Newbie
 
Registered: Apr 2006
Location: Sweden
Distribution: SuSe v10.0
Posts: 14

Original Poster
Rep: Reputation: 0
Alright ,now the file is in place. In my homedirectory a file named imwheelrc in which the code is placed.
Still i got no functions working from the code.

All buttons respond in xev ,the mousewheel works, but the code doesnt.

Is there a way that i can make sure that the file "imwheelrc" is beeing read?
 
Old 04-03-2006, 03:42 PM   #12
kg4ysy
Member
 
Registered: May 2005
Location: North Carolina
Distribution: Gentoo
Posts: 123

Rep: Reputation: 19
Make sure imwheel is running by typing imwheel in a terminal. If it is already running, then I am running out of ideas. I haven't really played with imwheel much.
 
Old 04-03-2006, 03:46 PM   #13
eternal64
LQ Newbie
 
Registered: Apr 2006
Location: Sweden
Distribution: SuSe v10.0
Posts: 14

Original Poster
Rep: Reputation: 0
Yeah ,im running imwheel through the terminal. Have confirmed it with ps -e too.

You dont have any idea how to confirm that the imwheelrc file is beeing read? Putting a echo or something in it ... i dont know, im not that good at things like that.
 
Old 04-03-2006, 03:50 PM   #14
eternal64
LQ Newbie
 
Registered: Apr 2006
Location: Sweden
Distribution: SuSe v10.0
Posts: 14

Original Poster
Rep: Reputation: 0
Another thing i havnt been able to understand is in the instructions for running imwheel they sometimes talk about uting the -b option with buttonnumbers.

Code:
imwheel -k -b "67"
(The -k kills already running imwheel process(es) before starting the new)

But the -b "67" ... i dont know what it does. Or more important if it has a practical matter in my case.

Last edited by eternal64; 04-03-2006 at 03:51 PM.
 
Old 04-03-2006, 03:50 PM   #15
kg4ysy
Member
 
Registered: May 2005
Location: North Carolina
Distribution: Gentoo
Posts: 123

Rep: Reputation: 19
From here on out I'm not really sure. I haven't really used this program, as I just use the buttons for their defaults of back/forward in firefox. Sorry...
 
  


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
Setting up a USB mouse. adds2one Linux - Newbie 2 08-28-2005 12:28 AM
setting up a ps/2 mouse for x behmjose Linux - Newbie 10 02-27-2004 04:40 PM
setting up a serial mouse Blu-star Linux - Software 2 12-30-2003 11:52 AM
mouse setting allan8989 Linux - Hardware 3 04-03-2003 07:25 PM
Setting The mouse.... juagut Linux - General 0 08-29-2001 10:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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