LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Disable Right Click button for user (https://www.linuxquestions.org/questions/red-hat-31/disable-right-click-button-for-user-452577/)

jaredhanks 06-07-2006 07:26 PM

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

osor 06-07-2006 10:27 PM

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).

jaredhanks 06-08-2006 10:27 AM

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

ck_at_work 11-17-2010 07:40 PM

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.

jaredhanks 11-22-2010 04:43 PM

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


ck_at_work 11-23-2010 12:03 AM

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


All times are GMT -5. The time now is 10:38 AM.