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
Garak128
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2004
Posts: 93

PostPosted: Fri Apr 09, 2004 1:41 am    Post subject: Reply with quote

I don't get it, none of the mentioned startup scripts work for me. I mean this worked fine, run xmodmap then imwheel and it loads up nicely. But putting the same commands in like /etc/xinit/xinitrc or any of the mentioned ones doesn't work.

I don't think there run at all.
The only place that worked was ~/.bashrc, but that runs it every time you open a console, which spams the imwheel text.

I'm just trying to get it to load on gnome at startup. Isn't there a simple place to put user startup scripts that gnome 2.4 will run no matter what?
Back to top
View user's profile Send private message
Garak128
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2004
Posts: 93

PostPosted: Mon Apr 12, 2004 9:33 pm    Post subject: Reply with quote

Got it to work on KDE.
I put it in the /home/user/.kde/Autostart dir.
Made a file that runs xmodmap and imwheel, with full paths and as root so it works for sure.
Still working on gnome, gota find a good spot to put it there.
Back to top
View user's profile Send private message
pontifikas
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2003
Posts: 138
Location: Greece

PostPosted: Wed Apr 28, 2004 12:27 pm    Post subject: Reply with quote

God damn it, all of the sudden the side buttons ceased to work.
I have a Microsoft intelli mouse with 5 buttons.Everything was working smoothly (thanks to this Howto).Suddently it stoped.It happened soon after I updated to kde3.2.2.(I dont know if this is relevant though).
I dont know what happened. :cry: I cannot play ET without my side buttons :cry:

What is curious,is that sometimes it gets to work after I run fglrxconfig and fill the appropriate Options.But not always.
Has anyone any idea what might be happening.
I'm running kde and xmodmap together with imwheel comands are in the script "init_kde" located in /bin and also having a link into /home/user/.kde3.2/Autostart

Thanks
_________________
Crimes against humanity??Dunno!!Maybe that chimp-face guy over there can help you.
Ehrr...don't push him hard though.He's kinda slow.
Back to top
View user's profile Send private message
abiczo
n00b
n00b


Joined: 05 Nov 2003
Posts: 6
Location: Budapest, Hungary

PostPosted: Wed Apr 28, 2004 8:46 pm    Post subject: Reply with quote

Edit: My Opera tip actually didn't work. Opera seems to behave strangely with imwheel.
Back to top
View user's profile Send private message
ereptor
n00b
n00b


Joined: 17 Apr 2004
Posts: 34

PostPosted: Sat May 01, 2004 2:49 pm    Post subject: Reply with quote

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
_________________
never regret the things you do, only the things you don't
Back to top
View user's profile Send private message
WaterSoul
Apprentice
Apprentice


Joined: 31 Jan 2004
Posts: 158

PostPosted: Sat May 01, 2004 3:11 pm    Post subject: Reply with quote

ereptor wrote:

Section "InputDevice"

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

EndSection


You should try getting rid of the Option "Buttons" "3" Since your mouse have the normal aamount of buttons. The Buttons option override the defaults to get a bigger number for mouse with 7 or 10 mouse buttons.
Back to top
View user's profile Send private message
ereptor
n00b
n00b


Joined: 17 Apr 2004
Posts: 34

PostPosted: Sat May 01, 2004 3:18 pm    Post subject: Reply with quote

i have tried that but it didn't work either :(
_________________
never regret the things you do, only the things you don't
Back to top
View user's profile Send private message
scourage
n00b
n00b


Joined: 15 Aug 2003
Posts: 71
Location: UCLA (upper corner of lower Alabama)

PostPosted: Fri May 07, 2004 2:17 am    Post subject: Reply with quote

I'm using X.org's Xserver and had problems with the default imwheel command:

imwheel -k -b "67"

but I've found (in another thread by somebody else) that by adding a couple more flags and it works fine:

imwheel -f -p -k -b "67"

Cheers,

Bob
_________________
Halfway down the trail to Hell...
Back to top
View user's profile Send private message
Gibberx
Apprentice
Apprentice


Joined: 20 Oct 2002
Posts: 217
Location: UMBC

PostPosted: Sun May 09, 2004 5:46 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Nate_S
Guru
Guru


Joined: 18 Mar 2004
Posts: 414

PostPosted: Wed May 19, 2004 3:56 pm    Post subject: Reply with quote

I think I've found a better way to set xmodmap to run when X starts. If you notice in the file /etc/X11/xinit/xinitrc (which actually seems to be symlinked from /usr/X11R6/lib/X11/xinit/xinitrc,) It already has provisions for doing just that. It checks first if there is a file ~/.Xmodmap, and if so runs 'xmodmap ~/.Xmodmap.' Then checks for and runs 'xmodmap /usr/X11R6/lib/X11/xinit/.Xmodmap' if the file exists. So simply by creating a file called .Xmodmap with the line 'pointer = 1 2 3 6 7 4 5' (without the quotes, and modify to your needs,) you can get it to run on a per user basis, (as I belive it was intended for keymaps,) or, more usefully for a mouse, for any user.

Hope this is what some of you were looking for,
Nate
Back to top
View user's profile Send private message
gmalleus
n00b
n00b


Joined: 23 Nov 2003
Posts: 29
Location: Pennsylvania, USA

PostPosted: Fri May 21, 2004 1:28 pm    Post subject: Reply with quote

I followed the directions and got my mouse working perfectly! Then the next day when I booted up my side buttons stop producing events! Anybody else experience this problem? I put the xmodmap and imwheel commands in my fluxbox startup file so they would be run when I start my gui. Wheel works fine after I boot up, but side buttons stopped prodcing events all together. Can't understand why... And I also noticed that Opera behaves strangely with imwheel. After mapping the buttons for it, and it working, next time I started Opera, it had changed the buttons that control forward and backward from alt left and right to just z and x. Strange...

Any Help Greatly Appreciated...
_________________
You Can Do Anything You Set Your Mind To When You Have Vision, Determination, And An Endless Supply Of Cheap Labor.
Back to top
View user's profile Send private message
Nate_S
Guru
Guru


Joined: 18 Mar 2004
Posts: 414

PostPosted: Sat May 22, 2004 4:01 pm    Post subject: Reply with quote

Are you sure that fluxbox startup file is getting executed on startup? What happens if you try executing the commands again manually? I can't comment on opera as I use firefox.
Back to top
View user's profile Send private message
gmalleus
n00b
n00b


Joined: 23 Nov 2003
Posts: 29
Location: Pennsylvania, USA

PostPosted: Mon May 24, 2004 6:03 pm    Post subject: Reply with quote

I'm positive that the file gets executed at startup, That the file where I set my background and other various little things, and they all execute. Even if rerun the commands my I still see that no events are being produced by the side buttons in xev.
_________________
You Can Do Anything You Set Your Mind To When You Have Vision, Determination, And An Endless Supply Of Cheap Labor.
Back to top
View user's profile Send private message
dthomson
n00b
n00b


Joined: 16 May 2004
Posts: 22

PostPosted: Wed May 26, 2004 1:07 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.


I have the exact same problem with my intellimouse explorer
Back to top
View user's profile Send private message
Nate_S
Guru
Guru


Joined: 18 Mar 2004
Posts: 414

PostPosted: Thu May 27, 2004 6:02 pm    Post subject: Reply with quote

And you're both sure you're using the 'ExplorerPS/2' protocol? that's needed for more than 3 buttons to produce seperate events. here's the relevant section form my xorg.conf

Code:
# Identifier and driver
 
    Identifier  "Mouse1"
    Driver "mouse"
    Option "Protocol"   "ExplorerPS/2"
    Option "ZAxisMapping"   "6 7"
    Option "Buttons"      "7"
    Option "Device"     "/dev/input/mice"
 


also, what versions of X are you using?

-Nate
Back to top
View user's profile Send private message
NathanW
n00b
n00b


Joined: 04 Jun 2004
Posts: 1

PostPosted: Fri Jun 04, 2004 7:14 pm    Post subject: Reply with quote

I'm using suse 9.1. I have all the settings in the proper places yet something is still off.
all actions are coming up correctly with xev. side buttons now mapped as 6 7 scroll wheel functioning as it should. But Buttons 6 and 7 don't do page back or forward. They do how ever (if the page is wide enough) do page side to side. I'm stuck. Help. If anyone can it would be appreciated. Thanks Nathan
Back to top
View user's profile Send private message
monotux
l33t
l33t


Joined: 09 Sep 2003
Posts: 751
Location: Stockholm, Sweden

PostPosted: Fri Jun 04, 2004 7:32 pm    Post subject: Reply with quote

this is one of the better threads I've seen here - so thanks, all of you, for making the only thing I really miss from windows, work in linux! :)
_________________
Computer science is no more about computers than astronomy is about telescopes.
Back to top
View user's profile Send private message
beastmaster
Apprentice
Apprentice


Joined: 24 May 2004
Posts: 230

PostPosted: Sat Jun 05, 2004 12:19 am    Post subject: Reply with quote

for MX500/700 gentoo men, here is the place for you
https://forums.gentoo.org/viewtopic.php?t=178733

:D
Back to top
View user's profile Send private message
monkman
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2003
Posts: 117
Location: germany / kiel

PostPosted: Sat Jun 05, 2004 11:16 am    Post subject: Reply with quote

sorry to freshen this up...... but:

i had my mouse (ms intellimouse optical) running fine under gentoo-2.6.3-r1 then turned to 2.6.6 and back to gentoo..

and now the extra buttons don't work any more.

i've checked:
/usr/X11R6/lib/X11/xinit/xinitrc
/home/USER/.xinitrc
/etc/X11/Sessions/kde-3.2.2

they all contain:

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

but it only works when i start them manually.

how can i force it to start automatically when starting kde (typing startx) ??

thx!!!!
Back to top
View user's profile Send private message
beastmaster
Apprentice
Apprentice


Joined: 24 May 2004
Posts: 230

PostPosted: Sat Jun 05, 2004 4:30 pm    Post subject: Reply with quote

how about putting
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b "67" -p &
in the .xinitrc file
Back to top
View user's profile Send private message
monkman
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2003
Posts: 117
Location: germany / kiel

PostPosted: Sun Jun 06, 2004 5:34 am    Post subject: Reply with quote

i guess you mean the home/USER/.xinitrc file... just what i did, but with no effect...
Back to top
View user's profile Send private message
beastmaster
Apprentice
Apprentice


Joined: 24 May 2004
Posts: 230

PostPosted: Sun Jun 06, 2004 5:50 am    Post subject: Reply with quote

type xmodmap -pp
and see if you got the button mapping sequence as 1 2 3 6 7 4 5,

if not, I think those two lines are not automatically loaded in .xinitrc, you can try putting it in your kde startup script,
(as I dont use kde, so I'm not sure...), but you can put it in the system wide kde startup in
/etc/X11/Sessions/kde-3.2.2
or put it in /etc/X11/xinit/xinitrc
:P
Back to top
View user's profile Send private message
SweetLou
n00b
n00b


Joined: 08 Jun 2004
Posts: 1

PostPosted: Tue Jun 08, 2004 7:52 am    Post subject: Reply with quote

NathanW wrote:
I'm using suse 9.1. I have all the settings in the proper places yet something is still off.
all actions are coming up correctly with xev. side buttons now mapped as 6 7 scroll wheel functioning as it should. But Buttons 6 and 7 don't do page back or forward. They do how ever (if the page is wide enough) do page side to side. I'm stuck. Help. If anyone can it would be appreciated. Thanks Nathan

I am also using SuSE 9.1 and am getting the same results as you. I've been reading this thread over and over trying to discover what I have missed. So far, no luck.
Back to top
View user's profile Send private message
InfinityX
Guru
Guru


Joined: 31 Jan 2004
Posts: 385

PostPosted: Wed Jun 09, 2004 9:11 pm    Post subject: Reply with quote

Been trying to get this work for ages now but nothing seems to be executed. imwheel is never running and xmodmap never changes. I've tried pretty much everything in this thread and the other thread (and I was sure putting the commands in the session file would work).

Is there any reason that commands in ~/.xinitrc or /etc/X11/xinit/xinitrc aren't being executed? :(
Back to top
View user's profile Send private message
beastmaster
Apprentice
Apprentice


Joined: 24 May 2004
Posts: 230

PostPosted: Wed Jun 09, 2004 11:42 pm    Post subject: Reply with quote

InfinityX wrote:
Been trying to get this work for ages now but nothing seems to be executed. imwheel is never running and xmodmap never changes. I've tried pretty much everything in this thread and the other thread (and I was sure putting the commands in the session file would work).

Is there any reason that commands in ~/.xinitrc or /etc/X11/xinit/xinitrc aren't being executed? :(


yeah, I noticed those before, but you can always try putting it in your current windows manager's startup script, it will defintely get executed there.
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 3 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