LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 06-07-2006, 08:26 PM   #1
jaredhanks
LQ Newbie
 
Registered: May 2006
Posts: 23

Rep: Reputation: 15
Disable Right Click button for user


I am using Redhat 9. How can I disable the right mouse button? I was able to disable it on Redhat 7.3 via some file (can't remember what file it was though). I would like the button to just not do anything when pressed.

Any help is greatly appreciated.

Thanks,
Jared
 
Old 06-07-2006, 11:27 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 70
Completely disabling the right mouse button would require either a small change in your kernel's mouse driver or a small change in the hardware (get a one-button mouse or unscrew it and cut one wire). If you mean just not allowing the right mouse button to do anything in your DE, you should post more information about your DE.

P.S.
Unless you have old hardware, I suggest upgrading to a more modern distro (than RH9).
 
Old 06-08-2006, 11:27 AM   #3
jaredhanks
LQ Newbie
 
Registered: May 2006
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for the suggestions. I was able to do it by editting /etc/X11/XF86Confg-4 and added some additional options for "Input Device" so it now has the following entry...

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "1"
Option "Buttons" "1"
Option "Emulate3Buttons" "no"
EndSection
 
Old 11-17-2010, 08:40 PM   #4
ck_at_work
LQ Newbie
 
Registered: Sep 2010
Posts: 22

Rep: Reputation: 0
not working for me,

here is my xorg.conf for mouse


Section "InputDevice"
Identifier "Synaptics Mouse"
Driver "synaptics"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "LeftEdge" "1700"
Option "RightEdge" "5300"
Option "TapButton1" "1"
Option "TopEdge" "1700"
Option "BottomEdge" "4200"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "EmulateMidButtonTime" "75"
Option "Buttons" "1"
# Option "ButtonMapping" "1 2 1 4 5 6 7 8 9"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "MinSpeed" "0.05"
Option "MaxSpeed" "0.12"
Option "AccelFactor" "0.0015"
Option "SHMConfig" "on"
Option "SendCoreEvents" "true"
# Option "Repeater" "/dev/ps2mouse"
EndSection


Thank you.
 
Old 11-22-2010, 05:43 PM   #5
jaredhanks
LQ Newbie
 
Registered: May 2006
Posts: 23

Original Poster
Rep: Reputation: 15
It's been awhile since I've looked at this, but I'm thinking you need a ZaxisMapping setting. Here's what my xorg.conf file looks like

Code:
# Xorg configuration created by system-config-display

Section "ServerLayout"
        Identifier     "single head configuration"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"
EndSection

Section "InputDevice"

#       Option      "Emulate3Buttons" "yes"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "ZaxisMapping" "1"
        Option      "Buttons" "1"
EndSection

Section "Monitor"

 ### Comment all HorizSync and VertSync values to use DDC:
 ### Comment all HorizSync and VertSync values to use DDC:
 ### Comment all HorizSync and VertSync values to use DDC:
 ### Comment all HorizSync and VertSync values to use DDC:
 ### Comment all HorizSync and VertSync values to use DDC:
 ### Comment all HorizSync and VertSync values to use DDC:
        Identifier   "Monitor0"
        ModelName    "LCD Panel 1024x768"
 ### Comment all HorizSync and VertSync values to use DDC:
        HorizSync    31.5 - 48.5
        VertRefresh  40.0 - 70.0
        Option      "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "i810"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     16
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
EndSection
 
Old 11-23-2010, 01:03 AM   #6
ck_at_work
LQ Newbie
 
Registered: Sep 2010
Posts: 22

Rep: Reputation: 0
Thank you for that will have a look at that.. Between as a quick fix I ended up using

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

cheers
 
  


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
Unable to create box with button click ...using Javascript Manashi Programming 7 03-30-2006 12:48 AM
make thumb button/third button double-click taboom Linux - Hardware 0 03-20-2006 03:39 PM
Click back browser button 1inxs LQ Suggestions & Feedback 4 10-12-2005 08:07 PM
Command line way to click a mouse button. danielw Linux - General 6 09-02-2003 04:52 AM
Unwanted border on button click Rachel Carter Programming 1 02-11-2003 01:22 PM


All times are GMT -5. The time now is 06:55 PM.

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