Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X/Mouse Extra Buttons HOWTO
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
firephoto
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1599
Location: +48° 5' 23.40", -119° 48' 30.00"

PostPosted: Thu Jun 10, 2004 6:20 am    Post subject: Reply with quote

Try checking out:
/etc/X11/xinit/.Xmodmap
and put a line in it like this.
Code:
pointer = 1 2 3 6 7 4 5

If the file doesn't exist, make one.

For the imwheel part, or your xmodmap if you don't want to do the above part.
~/.kde/Autostart/imwheel.desktop
Code:
[Desktop Entry]
Comment=
Comment[en_US]=
Encoding=UTF-8
Exec=imwheel -k -b "67" -p &
GenericName=
GenericName[en_US]=
Icon=exec
MimeType=
Name=
Name[en_US]=
Path=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-DCOP-ServiceType=nonexbindkeys
X-KDE-SubstituteUID=false
X-KDE-Username=


~/.kde/Autostart/xmodmap.desktop
Code:
[Desktop Entry]
Comment=
Comment[en_US]=
Encoding=UTF-8
Exec=xmodmap -e "pointer = 1 2 3 6 7 4 5"
GenericName=
GenericName[en_US]=
Icon=exec
MimeType=
Name=
Name[en_US]=
Path=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-DCOP-ServiceType=none
X-KDE-SubstituteUID=false
X-KDE-Username=
Back to top
View user's profile Send private message
gen2fox
Guru
Guru


Joined: 25 May 2004
Posts: 544

PostPosted: Thu Jun 10, 2004 12:47 pm    Post subject: Reply with quote

ereptor wrote:
ok, i imagine this is a newb question and i don't even know if this is the forum i should be posting it in but here goes...i don't know how to get my mousewheel on my mouse to work, i have a logitech mouse, 2 button and a mousewheel

here is my input device setion in my XF86Config for my mouse

Section "InputDevice"


Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Buttons" "3"

EndSection


Remove: Option "Buttons" "3"
Change the protocol to: Option "Protocol" "IMPS/2"
Back to top
View user's profile Send private message
gen2fox
Guru
Guru


Joined: 25 May 2004
Posts: 544

PostPosted: Thu Jun 10, 2004 1:14 pm    Post subject: Reply with quote

Gibberx wrote:
I've just picked up this Compaq Wireless Desktop keyboard/mouse combo from Radio Shack yesterday. The mouse has two buttons on the sides, but according to xev, they generate the same events as buttons 2 and 3. Is there any way to change the events generated? I'm thinking a driver would be necessary to do something like that.


My mouse side buttons used to generate events for buttons 2 and 3 too, I followed the instructions and they work fine now.
Back to top
View user's profile Send private message
demitrix
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2004
Posts: 124

PostPosted: Fri Jun 11, 2004 9:37 pm    Post subject: Reply with quote

i followed the instructions too and they still generate events 2 and 3 D:
Back to top
View user's profile Send private message
mlavalle
n00b
n00b


Joined: 29 May 2004
Posts: 19
Location: North Bay, Ontario, Canada

PostPosted: Sat Jun 12, 2004 2:11 am    Post subject: Logitech USB Scrolling Not Working Reply with quote

I have a USB scroll mouse by Logitech, and the scroll option doesn't work (it was working with Fedora and Windows). I have the following in /etc/X11/XF86Config-4:

Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/mouse"
Option "Buttons" "5"

/dev/mouse is a symlink to /dev/psaux. I am using Kernel 2.4.25-gentoo-r1, and XFree86 with WindowMaker (no Gnome at this time). I've tried a few suggestions as posted in the alt.linux.gentoo newsgroup, but nothing has worked so far and this is really starting to frustrate me. :x

Has anyone run into this before? I'm thinking of maybe trying "imwheel", but as I understand it XFree86 is supposed to support this wheel natively, and I am worried not all of my applications will support imwheel (such as Neverwinter Nights and Doom 3, when it's released).
Back to top
View user's profile Send private message
Jazz
Guru
Guru


Joined: 16 Nov 2003
Posts: 543
Location: Melbourne, Australia

PostPosted: Mon Jun 14, 2004 3:24 am    Post subject: Reply with quote

Hmm, ok i got the butons to work but i want some extra functionality from my mouse !

For example i want the mouse scroll button to minimize all the windows, and the right thumb button to fire up konqueror,.

How can i do this ? except this stupid glitch everything seems to be working just perfect !

Kudos.

Bye,
Jazz
_________________
In 2010, M$ Windows will be a quantum processing emulation layer for a 128-bit mod of a 64-bit hack of a 32-bit patch to a 16-bit GUI for an 8-bit operating system written for a 4-bit processor from a 2-bit company that can't stand 1 bit of competition.
Back to top
View user's profile Send private message
Jazz
Guru
Guru


Joined: 16 Nov 2003
Posts: 543
Location: Melbourne, Australia

PostPosted: Fri Jun 18, 2004 1:45 am    Post subject: Reply with quote

Umm no replies ! can any one help me with this ?
Or can anyone give example for passing a Ctrl+Alt+K combination ? that way i'll configure kde to start the konqueror..

BYe,
Jazz
_________________
In 2010, M$ Windows will be a quantum processing emulation layer for a 128-bit mod of a 64-bit hack of a 32-bit patch to a 16-bit GUI for an 8-bit operating system written for a 4-bit processor from a 2-bit company that can't stand 1 bit of competition.
Back to top
View user's profile Send private message
firephoto
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1599
Location: +48° 5' 23.40", -119° 48' 30.00"

PostPosted: Fri Jun 18, 2004 4:57 am    Post subject: Reply with quote

Well if you are using kde it's simple for keyboard shortucts.
Just right click on the kicker and go into the menu editor and find the app you want to have a shortucut too and at the bottom it says "Current shortucut key:" click the box and do your key combo, change any other apps you want to then click close, then save, it updates the system, and you're good to go.

For the mouse to do commands do the xbindkeys and xvkbd would be the easiest. Just do like it says in the MX700 post I made, lots of info there.
Back to top
View user's profile Send private message
ajs
n00b
n00b


Joined: 08 Jan 2004
Posts: 22

PostPosted: Sun Jun 27, 2004 2:57 pm    Post subject: Reply with quote

i'm just about to give up. i have an ms intellimouse optical mouse and have never been able to get any output from the two thumb buttons in xev. scrolling works fine though.

here is a snip from XF86Config
Code:
Section "InputDevice"

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

EndSection
i then run
Code:
xmodmap -e "pointer = 1 2 3 6 7 4 5"

manually from a console, but i still get no output from the buttons in xev.
i'm using kde-3.2.3 and vanilla kernel 2.6.7.
any help is most appreciated.
Back to top
View user's profile Send private message
baitken
n00b
n00b


Joined: 28 Jun 2004
Posts: 64
Location: Calgary, Alberta, Canada

PostPosted: Mon Jun 28, 2004 5:54 am    Post subject: Re: Wheel works but side buttons don't Reply with quote

greenbob wrote:
I have followed all the instructions I can find but am still unable to get my side buttons to work.
The wheel works fine in mozilla but the side buttons only scroll up in mozilla


I had that same proble so I tried using the 9 button setup mentioned earlier on this board and now it works.
Back to top
View user's profile Send private message
frodoontop
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2004
Posts: 86

PostPosted: Fri Jul 02, 2004 8:36 am    Post subject: Reply with quote

@ajs: Try to switch back to kernel 2.6.6. The 2.6.7 kernel didn't respond to my sidebuttons in xev, where 2.6.6 did.

<edit> When pulling out the usbTOps2 convertor and plugging my mouse directly in usb, sidebuttons worked again in 2.6.7 kernel. I didn't even have to restart, thanks to hotplug and udev (I think). </edit>


Last edited by frodoontop on Sun Jul 11, 2004 2:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
mlt
n00b
n00b


Joined: 03 Jul 2004
Posts: 9
Location: Sunny SoCal

PostPosted: Mon Jul 05, 2004 5:13 am    Post subject: Reply with quote

After spending a couple days on this (don't ya just love the ease-of-use of Linux?), I now have my Intellimouse Optical USB mouse thumb buttons automatically working in KDE and kernel 2.6.7. The hard part was to get KDE to automatically remap the buttons (see below).

Here's the mouse section from my /etc/X11/XF86Config:

Code:
Section "InputDevice"
    Identifier  "IntelliMouseOptical"
    Driver      "mouse"
    Option "Protocol"    "ExplorerPS/2"
    Option "Device"      "/dev/mouse"
    Option "ZAxisMapping"  "6 7"
EndSection


Some items of note:
1. I renamed the identifier from "Mouse1" to "IntellimouseOptical" just for my own sake. Of course this means that the other parts of XF86Config where "Mouse1" showed up also had to be renamed.
2. The program "xev" is extremely useful for seeing how changes in the config affect the buttons.
3. My mouse and mousewheel worked with the "Auto" protocol, but it was absolutely necessary to use the "ExplorerPS/2" protocol to get the 2 thumb buttons recognized.
4. Specifying Option "Buttons" "7" appears to be redundant.

Once I had this, I could run:
Code:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -pfb "67"

and everything was peachy (using the .imwheelrc specified earlier in this thread).
Unfortunately, I had a very difficult time getting the xmodmap and imwheel commands to start automatically. They did not work in /etc/X11/xinit/xinitrc, they did not work in ~/.xinitrc. They did not work in the /etc/X11/Sessions/kde-3.2.2 script. Not in a box, not with a fox, not in a house, not with a mouse.

Eventually I put them near the top of the script in
Code:
/usr/kde/3.2/share/config/kdm/Xsession

(i.e., $KDEDIR/share/config/kdm/Xsession)
Now, using the /etc/X11/imwheelrc, I have working thumb buttons for all users on my system :mrgreen:
Hope this helps someone else trying to automatically start xmodmap in KDE.
Back to top
View user's profile Send private message
djdread
n00b
n00b


Joined: 07 Jul 2004
Posts: 5

PostPosted: Fri Jul 09, 2004 12:35 pm    Post subject: Reply with quote

marienZ wrote:
Thanks, now I just have to figure out what to do with the extra button...

I'm using a logitech mx300, which has just one extra button, and your howto works just fine. I think it's a bit odd I have to use the ExplorerPS/2 driver for this mouse, but what the heck, it works ;) (apparently, logitech and microsoft are using the same protocol here, or the linux usb hid driver is, i'm not sure).


I also have the MX300 and would like to use the 5th button as a back button in Firefox. I followed the above exactly just if for some reason it worked, but it doesnt, it screws everything up. Would you or someone else mind posting your config so I can see what I'm missing.

Thanks.
Back to top
View user's profile Send private message
SmokyMcPot
n00b
n00b


Joined: 12 Jul 2004
Posts: 30

PostPosted: Wed Jul 14, 2004 3:52 pm    Post subject: Reply with quote

I'm using Gnome 2.6 and everything works fine when i manually start xmodmap and imwheel. I put it in:

/usr/X11/xinit/xinitrc
/home/smoky/.xinitrc

but it never starts automatically. How can I tell Gnome to start this everytime for every user?

Thx
Back to top
View user's profile Send private message
gen2fox
Guru
Guru


Joined: 25 May 2004
Posts: 544

PostPosted: Wed Jul 14, 2004 5:18 pm    Post subject: Reply with quote

My .xinitrc file is:

Code:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b "67" -p
 
exec gnome-session


Using GNOME 2.4, it works fine.
Back to top
View user's profile Send private message
SmokyMcPot
n00b
n00b


Joined: 12 Jul 2004
Posts: 30

PostPosted: Wed Jul 14, 2004 6:43 pm    Post subject: Reply with quote

And it's placed in /home/USER ?
Back to top
View user's profile Send private message
gen2fox
Guru
Guru


Joined: 25 May 2004
Posts: 544

PostPosted: Wed Jul 14, 2004 8:11 pm    Post subject: Reply with quote

Yes, /home/$USER
Back to top
View user's profile Send private message
SmokyMcPot
n00b
n00b


Joined: 12 Jul 2004
Posts: 30

PostPosted: Wed Jul 14, 2004 8:37 pm    Post subject: Reply with quote

Well, I tried that but didn't work. Hope someone has another idea - couldn't be so difficult I think ...
Back to top
View user's profile Send private message
RealNitro
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jul 2004
Posts: 98

PostPosted: Thu Jul 15, 2004 8:26 am    Post subject: Reply with quote

SmokyMcPot wrote:
Well, I tried that but didn't work. Hope someone has another idea - couldn't be so difficult I think ...

My problem was that 'xmodmap' is not a command on my system. So, the mousewheel and the thumb-buttons were not switched around. As a noob, I don't know how to get that command 'xmodmap' working, so I searched for a different solution in these forums, and I found one:

- Create a file /etc/X11/Xmodmap
- add this content:
Code:
pointer = 1 2 3 6 7 4 5


This seems to to the same thing as executing "xmodmap -e ..."
Back to top
View user's profile Send private message
SmokyMcPot
n00b
n00b


Joined: 12 Jul 2004
Posts: 30

PostPosted: Fri Jul 16, 2004 8:26 am    Post subject: Reply with quote

thx. And what's about imwheel?
Back to top
View user's profile Send private message
RealNitro
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jul 2004
Posts: 98

PostPosted: Fri Jul 16, 2004 8:43 am    Post subject: Reply with quote

SmokyMcPot wrote:
thx. And what's about imwheel?

I put the imwheel message in .xinitrc , but also in some other files. I'll check it out later today.
Back to top
View user's profile Send private message
Kroni
Tux's lil' helper
Tux's lil' helper


Joined: 30 Apr 2004
Posts: 97
Location: Bonn,NRW

PostPosted: Fri Jul 16, 2004 8:59 am    Post subject: Reply with quote

I have another serious problem. If i add ~/.xinitrc file to my box
X wont start anymore :( im not @ home to post special errors but i remmeber it tells me "No Screens found" ...

Anyone maybe knows a solution ?
_________________
Greets Kroni
Back to top
View user's profile Send private message
M_A_D
n00b
n00b


Joined: 08 May 2004
Posts: 17

PostPosted: Fri Jul 16, 2004 12:40 pm    Post subject: Reply with quote

well, thanks to this how-to my thumb buttons on my intellimouse explorer 3.0 are working fine...

but while going through the how-to i found out that i cannot use xev. i mean i start the program, the window appears, but when i click a button over the window or press a key with the xev-window activated it shows nothing...
anyone got an idea why?

oh, and another thing:
you know in windows when i middle-click on something in firefox (which is not a link) i can get this auto-scroll thing and scroll by just moving the mouse up a bit or down a bit...
can i get that in linux too (using kde-3.2.2) ?
_________________

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots. So far, the universe is winning."

Richard Cook
Back to top
View user's profile Send private message
mlt
n00b
n00b


Joined: 03 Jul 2004
Posts: 9
Location: Sunny SoCal

PostPosted: Fri Jul 16, 2004 5:13 pm    Post subject: Reply with quote

Quote:
but while going through the how-to i found out that i cannot use xev. i mean i start the program, the window appears, but when i click a button over the window or press a key with the xev-window activated it shows nothing...

When you start xev, do you start it from a terminal or from the "Run command" menu? You must start it from a terminal, because it spits out all its output on the terminal.
Back to top
View user's profile Send private message
M_A_D
n00b
n00b


Joined: 08 May 2004
Posts: 17

PostPosted: Sat Jul 17, 2004 2:26 pm    Post subject: Reply with quote

mlt wrote:
Quote:
but while going through the how-to i found out that i cannot use xev. i mean i start the program, the window appears, but when i click a button over the window or press a key with the xev-window activated it shows nothing...

When you start xev, do you start it from a terminal or from the "Run command" menu? You must start it from a terminal, because it spits out all its output on the terminal.


thanks...
foolish me did of course run it from the run-command... :oops:
_________________

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots. So far, the universe is winning."

Richard Cook
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 4 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum