LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-24-2004, 04:36 PM   #16
Smaks
LQ Newbie
 
Registered: Feb 2004
Posts: 11

Original Poster
Rep: Reputation: 0

paste your XF86Config file here so we can look at it and paste your xinit file here also plus your imwheelrc
 
Old 02-24-2004, 06:29 PM   #17
Wassman
LQ Newbie
 
Registered: Feb 2004
Posts: 11

Rep: Reputation: 0
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"
.imwheelrc
Code:
".*"
4, Left, Alt_L|Left
5, Right, Alt_L|Right

Thanks guys.
 
Old 02-24-2004, 07:55 PM   #18
Cdzin
Member
 
Registered: Jul 2003
Location: Campinas-SP, Brazil
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
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?
 
Old 02-25-2004, 12:02 AM   #19
abs
Member
 
Registered: Oct 2003
Posts: 203

Rep: Reputation: 30
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?
 
Old 02-25-2004, 02:02 AM   #20
Smaks
LQ Newbie
 
Registered: Feb 2004
Posts: 11

Original Poster
Rep: Reputation: 0
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
 
Old 02-25-2004, 10:21 AM   #21
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
Quote:
Originally posted by Wassman
Sure thing, I'll just give you the mouse part of my XF68Config....

XF86Config
Code:
Section "InputDevice"

<trimmed for clarity>

# Identifier and driver

Identifier "mouse1"
Driver "mouse"

Option "Protocol" "ExplorerPS/2"


Option "Device" "/dev/mouse"


Option "Buttons" "7"
Option "ZAxisMapping" "6 7"

EndSection
.xinitrc
Code:
<trimmed for clarity>
# Start the window manager:
startkde

/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
.imwheelrc
Code:
".*"
4, Left, Alt_L|Left
5, Right, Alt_L|Right

Thanks guys.

Wassman:

I dont see a call to imwheel... add this line just above the call to xmodmap:
Code:
imwheel -k -f -b "0067"

and my ~/.imwheelrc looks a little different:

Code:
".*"
 None, Left, Alt_L|Left
 None, Right, Alt_L|Right

I have the same mouse & it all works for me...
 
Old 02-25-2004, 11:54 AM   #22
Wassman
LQ Newbie
 
Registered: Feb 2004
Posts: 11

Rep: Reputation: 0
Thanks bnice. I'll give that a shot. Do you have these files (.imwheelrc and the like) in your .kde/Autostart or just in your home directory?
 
Old 02-25-2004, 12:50 PM   #23
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
Home directory - hidden (dot) files

~/.xinitrc
~/.imwheelrc
 
Old 02-25-2004, 01:00 PM   #24
Wassman
LQ Newbie
 
Registered: Feb 2004
Posts: 11

Rep: Reputation: 0
I did what you said bnice, and it doesn't even run the xmodmap command at startup. I gots to do it manually. Hrm... interesting indeed...
 
Old 02-25-2004, 01:24 PM   #25
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
last section of my ~/.xinitrc:
Code:
 imwheel -k -f -b "0067"

 xmodmap -e "pointer = 1 2 3 6 7 4 5"
# Start the window manager:
startkde
As you can see, I call xmodmap & imwheel *before* calling startkde

otherwise they don't get called until startkde terminates, which is when you exit X.

try moving them

Edit: typo

Last edited by bnice; 02-25-2004 at 01:27 PM.
 
Old 02-25-2004, 02:41 PM   #26
Wassman
LQ Newbie
 
Registered: Feb 2004
Posts: 11

Rep: Reputation: 0
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.
 
Old 02-25-2004, 04:32 PM   #27
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
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
 
Old 02-29-2004, 11:16 PM   #28
abs
Member
 
Registered: Oct 2003
Posts: 203

Rep: Reputation: 30
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.
 
Old 03-01-2004, 12:03 PM   #29
Wassman
LQ Newbie
 
Registered: Feb 2004
Posts: 11

Rep: Reputation: 0
abs, put the "" around pointer too like this:

Code:
xmodmap -e "pointer = 1 2 3 4 5"
 
Old 03-01-2004, 06:39 PM   #30
abs
Member
 
Registered: Oct 2003
Posts: 203

Rep: Reputation: 30
nope, doesn't work either. but it doesn't give the error messages
 
  


Reply



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
Mapping the mouse wheel button jfranks214 *BSD 1 12-19-2004 08:50 PM
Dr.Hank 5-Button + Wheel Mouse Lucas Hartmann Linux - Hardware 1 10-28-2004 08:56 AM
Mouse with a wheel button can't get it to work!! vador Linux - Hardware 12 05-17-2004 08:36 PM
mouse wheel like right button??? Relja Linux - General 0 02-24-2003 03:38 PM
4 button, mouse wheel USB mouse DigiCrime Linux - Hardware 1 12-11-2002 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:36 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
Open Source Consulting | Domain Registration