SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sure thing, I'll just give you the mouse part of my XF68Config....
XF86Config
Code:
Section "InputDevice"
# Identifier and driver
Identifier "mouse1"
Driver "mouse"
# On platforms where PnP mouse detection is supported the following
# protocol setting can be used when using a newer PnP mouse:
#Option "Protocol" "mouse"
# The available mouse protocols types that you can set below are:
# Auto BusMouse GlidePoint GlidePointPS/2 IntelliMouse IMPS/2
# Logitech Microsoft MMHitTab MMSeries Mouseman MouseManPlusPS/2
# MouseSystems NetMousePS/2 NetScrollPS/2 OSMouse PS/2 SysMouse
# ThinkingMouse ThinkingMousePS/2 Xqueue
Option "Protocol" "ExplorerPS/2"
# The mouse device. The device is normally set to /dev/mouse,
# which is usually a symbolic link to the real device.
Option "Device" "/dev/mouse"
# Option "Device" "/dev/psaux"
# Option "Device" "/dev/ttyS0"
# Option "Device" "/dev/ttyS1"
# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.
# Option "Protocol" "Xqueue"
# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.
# Option "BaudRate" "9600"
# Option "SampleRate" "150"
# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)
#Option "Emulate3Buttons"
#Option "Emulate3Timeout" "300"
#Option "ZAxisMapping" "6 7 "
# ChordMiddle is an option for some 3-button Logitech mice
#Option "ChordMiddle"
#Option "ZAxisMapping" "6 7 "
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection
.xinitrc
Code:
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# Start the window manager:
startkde
/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
Hi, i have a MX310 with 6 buttons plus the scroll wheel. All my buttons work correctly but i don't know how i assign them to do something i want. Or neither how i make my scroll wheel actualy scroll the page. Any tip?
so i need to edit only /etc/X11/xinit/xinitrc and add xmodmap -e "pointer = 1 2 3 6 7 4 5", it'll work? what do i set it to for a 3 button mouse (3rd button is the wheel's click). i haven't installed imwheel or anything of the sort. do i need to for this functionality?
if you dont have forward/backward buttons on your mouse then you only need to configure 5 buttons instead of 7, so replace the 6 and 7 with 4 and 5, and you shouldnt have to install imwheelrc
bnice, that worked quite well thank you. So far it works awsome save for it's backwards on boot. Mouse wheel is back foward and thumbbuttons are up down. But to fix this I just hit the xmodmap command in to the konsole and it works fine. I thank you most kindly for your help.
if you boot straight into X, rather than the command prompt, you can put the xmodmap command in /etc/X11/xinit/xinitrc.whatever you use... in my case it's xinitrc.kde
here's the error i got when i added 'xmodmap -e pointer = "1 2 3 4 5"' to my-home/.xinitrc:
Code:
xmodmap: commandline:0: bad buttons input line
xmodmap: unable to open file '=' for reading
xmodmap: unable to open file '1 2 3 4 5' for reading
xmodmap: 3 errors encountered, aborting.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.