LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 03-14-2003, 06:21 PM   #61
mbatalla82
LQ Newbie
 
Registered: Mar 2003
Posts: 9

Rep: Reputation: 0

Hi,

I have a script that executes when i login, like this

#!/bin/sh

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


If i login under a non-root user, the wheel works, but the side buttons do not, until i su to root and run the command imwheel -k -b "67"

How can i make the side buttons work when i login as a non-root user?

Thanks a lot.
 
Old 03-14-2003, 08:01 PM   #62
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Where is the script located?
You want it to run when you start the x server, and you want to have the .imwheelrc installed to your $HOME directory.
 
Old 03-14-2003, 11:09 PM   #63
mbatalla82
LQ Newbie
 
Registered: Mar 2003
Posts: 9

Rep: Reputation: 0
I don't know where it is. I set it up in RH 8 by going to Menu -> Extras -> Preferences -> Sessions -> Startup programs.

It is being read because if I remove it, then the wheel doesn't work. The problem is that without being root, the command imwheel -k -b "67" seems to fail.

.imwheelrc is in my home directory.
 
Old 03-14-2003, 11:33 PM   #64
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Try "chmod 755 /PATH-TO/imwheel".
 
Old 03-15-2003, 12:32 AM   #65
trn
Member
 
Registered: Feb 2003
Distribution: freebsd/gentoo
Posts: 68

Rep: Reputation: 15
I had the same issues with premissions for imwheel, worked fine for root but did nada for user. I chmod'd the hell outa everything i could think of... still nothing. No clue why it did that but if you add the -p option in my script it works just fine.

#!/bin/sh
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -p -b "67"
 
Old 03-15-2003, 12:32 PM   #66
mbatalla82
LQ Newbie
 
Registered: Mar 2003
Posts: 9

Rep: Reputation: 0
the -p option did it, thanks trn.
thanks for the help too, Aussie
 
Old 04-19-2003, 04:59 PM   #67
Anxiety
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Rep: Reputation: 0
Question .xinitrc won't run

I'm so close, but my .xinitrc won't run on startup. After statup I can run the two commands and the buttons and wheel all work fine.
I've got a new install of Redhat 9 and my .xinitrc script is in my ~/home directory.
Is there a way to get it running, or another way to configure a startup script?

Thanks.
 
Old 04-20-2003, 01:38 AM   #68
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
Put the exact command you want to run in /etc/rc.local
 
Old 04-20-2003, 07:27 AM   #69
Anxiety
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Rep: Reputation: 0
I had tried that, and no dice. I also tried adding a line to the Sessions editor in Redhat to run my script, to no avail.
After bootup I can run: sh MyDamnStartupScript and execute it with no problems, so I know it works, I just can't automate it.

Is there someway I can put a debug line in there to see if it's even hitting my script? Or is there another way to check if my script is getting run? Even if you could point me to some good information I'd surely appreciate it. I've looked and looked but can't find anything pertinent.

Thanks.
 
Old 04-22-2003, 12:50 PM   #70
tslugmo
LQ Newbie
 
Registered: Apr 2003
Posts: 10

Rep: Reputation: 0
I've gone through all these steps and got the mouse to work great. Then I did a Halt, and upon reboot, the mouse is not being recognized. In the bootup process the search for new hardware fails. I then removed xinitrc from the startup routine, but to no avail. When I run imwheel from the console, it warns me that imwheel is not checking/writing a pid file. Is this normal?

After bootup, I get the login window with the mouse cursor just sitting there. My optical mouse lights up when I move it, and it works in Windows, just not in Linux. Any suggestions?

EDIT: Nevermind, reinstalled with newly burned CD's, and everything's well with the world again.

However, has anybody tried versions later than 1.0.0 pre1?

Last edited by tslugmo; 04-24-2003 at 03:05 AM.
 
Old 05-03-2003, 12:52 AM   #71
zaphraud
LQ Newbie
 
Registered: Jan 2003
Distribution: Slackware, Redhat
Posts: 27

Rep: Reputation: 15
They all just sort of worked in RH9 with a compuse generic 5 button mouse. Not sure why. It just set itself up. I know thats not too helpful, but..
 
Old 06-02-2003, 02:04 PM   #72
asommer
Member
 
Registered: Mar 2003
Location: North Carolina
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
Is there a way to get the side buttons to make a browser like Konqueror go back and forward.

I tried editing the .imwheelrc to use

None, Up, Alt_L|Back
None, UP, Alt_L|Forward

But that didn't work as planned. Should I change something else?

BTW...I followed the steps above and got it to side scroll just fine.
 
Old 08-08-2003, 01:37 PM   #73
dilbert622
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
I just wanted to thank everyone that posted here in this thread. this info was more than enough for me to get my forward and back buttons working.

But, in case anyone else has the following problem, here is something I had trouble with.

Putting things in the ~/.xdefaults and in the /kde/Autostart didn't seem to be working for me. I couldn't figure out what was going on. After restarting X, my wheel would act like forward and back buttons when I moved it up or down instead of scrolling up and down like I wanted and the extra buttons on the side of my mouse didn't seem to do anything. I could make it work manually though.

Finally I realized imwheel was already getting loaded somewhere else. In order to get it to work, I had to kill it and then restart it. I am running Mandrake 9.1. I eventually found it in /etc/X11/xinit.d/imwheel

There was a line there like this

[ "$WHEEL" = yes -a -n "$BINARY" ] && $BINARY -p

that I changed to

[ "$WHEEL" = yes -a -n "$BINARY" ] && $BINARY -p -b "67"

and now everything is working perfectly.

I also moved
None, Up, Alt_L|Left
None, Down, Alt_L|Right

from ~/.imwheelrc to /etc/X11/imwheelrc

Thanks again everyone. This thread was very very helpful!
 
Old 08-14-2003, 03:37 PM   #74
bigcletus
LQ Newbie
 
Registered: Jun 2003
Posts: 16

Rep: Reputation: 0
err... I'm loosing my patience with getting this to work. I think I am having a problem with imwheel. First off, I can't start imwheel without being root, then the mouse buttons get all messed up. The side buttons only do up and down not back and forth and the wheel does some other weird functions.

I was unable to 'make' imwheel, it would stop at:
tex gpm.texinfo
make[3]: tex: Command not found

So I installed an rpm for imwheel which seemed to work I guess but I'm not sure if that was a good idea or not. I read all of the instructions earlier on in this post and have had no luck. The xev program sees all of the buttons, its just some how not getting mapped properly. What can I do to fix this before I end up pulling all of my hair out? Thanks for any help in advance.


If it helps, I am using red hat 9 and optical intellimouse explorer w/ 5 buttons.
 
Old 08-30-2003, 10:53 PM   #75
red_five
LQ Newbie
 
Registered: Aug 2003
Posts: 1

Rep: Reputation: 0
Post Slightly different config in .imwheelrc

I had to use a slightly different config in .imwheelrc, for my Trackball Optical v1.0, connected via USB.

XFConfig:
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "ButtonNumber" "7"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "6 7"
Option "Emulate3Buttons" "no"
EndSection

.imwheelrc:
".*"
None, Left, Alt_R|Left
None, Right, Alt_R|Right

You'll note the use of Left and Right instead of Up and Down in the second portion of each line. In imwheel --config, it reported buttons 6 and 7 as Left and Right, and the wheel buttins as Up and Down. This got my Trackball Optical working perfectly.
 
  


Reply

Tags
mouseconfig


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
SuSE 9.1 and Intellimouse Optical side buttons STuPiDiCuS Linux - Hardware 1 09-23-2004 11:23 PM
side mouse buttons on intellimouse Slack10 Earth Slackware 7 07-18-2004 12:50 PM
Intellimouse side buttons (yet again?) Toker Linux - Newbie 7 10-05-2003 02:55 AM
Intellimouse AND Side Buttons, HOW TO- Alternate Caoster Linux - Hardware 0 07-18-2003 05:53 AM
side-buttons. intellimouse ! sapilas Linux - Distributions 2 05-24-2002 05:29 AM


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