Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Scrollwheel mouse
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Sun Apr 10, 2005 12:25 pm    Post subject: [Solved] Scrollwheel mouse Reply with quote

Hi. I've been trying to setup the scrollwheel of my mouse, but there's nothing to do. I followed some guides from wiki and the gentoo handbook, but the scroll is nover available. This is my xorg.conf:

Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5"

my mouse is a logitech with two buttons + scroll. For you, where's the problem?
Thanks very much.


Last edited by Luc484 on Mon May 02, 2005 8:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
ctachta
n00b
n00b


Joined: 09 Apr 2005
Posts: 39
Location: Glasgow

PostPosted: Sun Apr 10, 2005 12:34 pm    Post subject: Reply with quote

Hi Luc484,

I am also quite new to Linux so here is my guess.

Try to change this Option "ZAxisMapping" "6 7".

In fact try to find which are the proper values by running xev from a terminal and then move your cursor over the window and move the scroll wheel you will see at your terminal the values that your keys have. Place these values to ZAxisMapping.

Restart X.

I hope that helps.

ctachta
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Sun Apr 10, 2005 1:08 pm    Post subject: Reply with quote

I've tried with that tool, but when I move the wheel, nothing appears on the terminal. When I move the mouse or click the buttons, I see, but not when I scroll the wheel. How can I solve the problem?
Thanks.
Back to top
View user's profile Send private message
jdgill0
Veteran
Veteran


Joined: 25 Mar 2003
Posts: 1366
Location: Lexington, Ky -- USA

PostPosted: Sun Apr 10, 2005 1:14 pm    Post subject: Reply with quote

If this is a PS/2 mouse, try changing /dev/mouse to /dev/input/mice (or mouse0) within your xorg.conf.
_________________
Vim has excellent syntax highlighting for configuration files: emerge gentoo-syntax
Learn how to use Vim: vimtutor
Back to top
View user's profile Send private message
iainel
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2005
Posts: 94

PostPosted: Sun Apr 10, 2005 1:15 pm    Post subject: Reply with quote

Following this tutorial should help set it up :D
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Sun Apr 10, 2005 4:19 pm    Post subject: Reply with quote

So, a mouse with a scrollwheel is a mouse which has a number of buttons equals to the number of buttons plus two for the scroll?
Back to top
View user's profile Send private message
shadow_dancer
n00b
n00b


Joined: 25 Feb 2005
Posts: 68
Location: germany

PostPosted: Sun Apr 10, 2005 4:58 pm    Post subject: Reply with quote

Luc484 wrote:
So, a mouse with a scrollwheel is a mouse which has a number of buttons equals to the number of buttons plus two for the scroll?

yep.. you have two scrolls these will be four. and if you can not push the scroll you need to subtract:D

cheers,

sd
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Mon Apr 11, 2005 11:31 am    Post subject: Reply with quote

doh! (to be read homer-style :-)) I tried almost every possible combination of the options buttons and ZAxisMap, but there is nothing to do. The srollwheel doesn't work. What could be the problem? Now I'm using:

Option "Buttons" "5"
Option "ZAxisMapping" "4 5"

with a 2 buttons mouse + clickable scrollwheel.
Thanks for the patience.
Back to top
View user's profile Send private message
shadow_dancer
n00b
n00b


Joined: 25 Feb 2005
Posts: 68
Location: germany

PostPosted: Mon Apr 11, 2005 11:45 am    Post subject: Reply with quote

jdgill0 wrote:
If this is a PS/2 mouse, try changing /dev/mouse to /dev/input/mice (or mouse0) within your xorg.conf.


did you read/try that??
should work. do you have some weird messages in your og file - from the X server?

cheers

sd
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Mon Apr 11, 2005 11:56 am    Post subject: Reply with quote

Yes, I didn't say that, anyway I tried that too. Now I'm using /dev/input/mice but it doesn't work.
Unfortunately I don't know what "weird messages" are. What should I check?
Thanks again.
Back to top
View user's profile Send private message
shadow_dancer
n00b
n00b


Joined: 25 Feb 2005
Posts: 68
Location: germany

PostPosted: Mon Apr 11, 2005 12:13 pm    Post subject: Reply with quote

is this a USB mouse?
you wrote that you read the docu, so you checked that
Code:

If your mouse isn't working, you will first need to find out if it is detected by the kernel at all. PS/2 mice are (device-wise) seen as /dev/psaux. Other mice (like USBs) are seen as /dev/input (or /dev/input/mice). In either case you can check if the devices do represent your mouse by checking the output of those files when you move your mouse. To end the session press Ctrl-C.

Code Listing 4.3: Checking the device files
# cat /dev/input
(Don't forget to press Ctrl-C to end this)


where exactly is your mouse? you can play also with the Protocol. sometimes only "PS/2" works.

weird messages :

Code:

cd /var/log
grep -i mouse XFree86.0.log
grep  -i warning XFree86.0.log
grep -i error  XFree86.0.log
...
...


you need to change the file name. i am in a museum machine, using the old Xfree server. ;)

cheers

sd
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Mon Apr 11, 2005 1:10 pm    Post subject: Reply with quote

shadow_dancer wrote:
is this a USB mouse?
you wrote that you read the docu, so you checked that
Code:

If your mouse isn't working, you will first need to find out if it is detected by the kernel at all. PS/2 mice are (device-wise) seen as /dev/psaux. Other mice (like USBs) are seen as /dev/input (or /dev/input/mice). In either case you can check if the devices do represent your mouse by checking the output of those files when you move your mouse. To end the session press Ctrl-C.

Code Listing 4.3: Checking the device files
# cat /dev/input
(Don't forget to press Ctrl-C to end this)


where exactly is your mouse? you can play also with the Protocol. sometimes only "PS/2" works.


I've tried that, but cannot understand the result. If I use the command with /dev/input it answers that it is a directory, and stops. If I use the other two (/dev/input/mice and /dev/psaux) something appears. Some strange symbols appear on the terminal when I move the mouse. Is it the normal output?

shadow_dancer wrote:

weird messages :

Code:

cd /var/log
grep -i mouse XFree86.0.log
grep  -i warning XFree86.0.log
grep -i error  XFree86.0.log
...
...


you need to change the file name. i am in a museum machine, using the old Xfree server. ;)

cheers

sd


OK. I report you the output:

bash-2.05b# grep -i mouse Xorg.0.log
(**) |-->Input Device "Mouse1"
(II) LoadModule: "mouse"
(II) Loading /usr/lib/modules/input/mouse_drv.o
(II) Module mouse: vendor="X.Org Foundation"
(==) RADEON(0): Silken mouse enabled
(**) Mouse1: Device: "/dev/input/mice"
(**) Mouse1: Protocol: "IMPS/2"
(**) Mouse1: Core Pointer
(**) Mouse1: Emulate3Buttons, Emulate3Timeout: 50
(**) Mouse1: ZAxisMapping: buttons 5 and 6
(**) Mouse1: Buttons: 6
(**) Mouse1: SmartScroll: 1
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)
(II) Mouse1: ps2EnableDataReporting: succeeded
bash-2.05b# nano -w /etc/X11/xorg.conf
bash-2.05b# grep -i warning Xorg.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
bash-2.05b# grep -i error Xorg.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.

Do you see something strange?
Thanks.
Back to top
View user's profile Send private message
shadow_dancer
n00b
n00b


Joined: 25 Feb 2005
Posts: 68
Location: germany

PostPosted: Mon Apr 11, 2005 2:53 pm    Post subject: Reply with quote

Luc484 wrote:

(**) Mouse1: Emulate3Buttons, Emulate3Timeout: 50
(**) Mouse1: ZAxisMapping: buttons 5 and 6
(**) Mouse1: Buttons: 6
(**) Mouse1: SmartScroll: 1
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)
(II) Mouse1: ps2EnableDataReporting: succeeded


why ZAxisMapping 5 and 6 ???? should be 4 and 5 ....
i don't know what is "SmartScroll" ...
:?:

cheers

sd
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Mon Apr 11, 2005 4:54 pm    Post subject: Reply with quote

shadow_dancer wrote:


why ZAxisMapping 5 and 6 ???? should be 4 and 5 ....
i don't know what is "SmartScroll" ...
:?:

cheers

sd


Well, I've tried that too, but nothing changed. The mouse and the buttons work, but the scrollwheel not. The strange fact is that I've never had problems with any other distributions.
Back to top
View user's profile Send private message
shadow_dancer
n00b
n00b


Joined: 25 Feb 2005
Posts: 68
Location: germany

PostPosted: Mon Apr 11, 2005 5:30 pm    Post subject: Reply with quote

Code:

Section "InputDevice"
     Identifier "Mouse3"
     Driver "mouse"
     Option "Protocol" "IMPS/2"
     Option "Device" "/dev/input/mice"
     Option      "Buttons" "5"
     Option      "ZAxisMapping" "4 5"
EndSection


this is my xorg.conf - note that it is a USB mouse. but exact like yours: 5 buttons.
i don't know what to do. this is not a distro problem. somehow xorg and your configuration are in conflict.
sorry, mate.

cheers

sd
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Mon Apr 11, 2005 5:44 pm    Post subject: Reply with quote

My one is equal. The only thing that differs is the Device option. Boh...
Back to top
View user's profile Send private message
titaniumlou
n00b
n00b


Joined: 01 Mar 2005
Posts: 8

PostPosted: Fri Apr 15, 2005 12:56 pm    Post subject: Reply with quote

Hi Luc, have you tried taking out the Emulate3Buttons options?
Back to top
View user's profile Send private message
The New Guy
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2005
Posts: 136
Location: Behind you...

PostPosted: Fri Apr 15, 2005 2:44 pm    Post subject: Reply with quote

Luc484 wrote:
My one is equal. The only thing that differs is the Device option. Boh...


I solved this by playing with the USB options in the kernel config.
_________________
"I could tell that my parents hated me. My bath toys were a toaster and a radio."
--Rodney Dangerfield
_________________
Windows-free since Feb. 12, 2005
Registered Linux User #386012
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Fri Apr 15, 2005 2:53 pm    Post subject: Reply with quote

The New Guy wrote:
Luc484 wrote:
My one is equal. The only thing that differs is the Device option. Boh...


I solved this by playing with the USB options in the kernel config.


Yes, but my mouse is not USB.
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Thu Apr 28, 2005 9:13 am    Post subject: Reply with quote

arg... gays, no one has any idea of how helping me? I've been reading many docs online, but I can't find my problem with this mouse. Well, I can even live without the scrollwheel of course :-), but I would really know at least why it isn't working.
Any suggestion?
Thank you all again.
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Mon May 02, 2005 8:57 pm    Post subject: Reply with quote

Eheheh, this is very strange. Just now, I found out that the scrollwheel has started to work :-). I'm not joking... I've been trying everything, but nothing. Now, without modifying anything, it works. Maybe some upgrade? I've just upgraded everything with emerge world.
Since the problem has been solved I add [Solved] to the subject.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum