LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-14-2013, 11:48 AM   #1
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Rep: Reputation: 30
Yet another scrollwheel thread


Running Slackware 14 in VirtualBox under Windows 7. Because of past issues, I am very familiar with needing ZAxisMapping setup in xorg.conf, so that is already done.

In VMs for Fedora (using KDE) and Mint (XFCE), the scrollwheel works fine, but in Slackware (using Fluxbox), my scrollwheel doesn't work. I've tried looking at the xorg.conf files from Fedora and Mint to compare (and see what they're doing to get the scrollwheel to work), but it seems they aren't using xorg.conf for this.

The mouse is a Microsoft USB optical mouse with no bells & whistles. No extra buttons aside from the scrollwheel. I have tried "auto" and "IMPS2", but both have the same results. Is there something else I'm missing? I haven't used Slackware since around version 11.

Thanks
 
Old 01-14-2013, 02:16 PM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,008

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
I've never had any problem with a MS mouse (the only thing that blasted company makes that actually works, eh?) scrollwheel optical mouse, no matter what window manager I'm using (presently Xfce) through a number of Slackware versions.

During setup, I tell the GPM section that it's IMPS2 and, subsequently, it "just works." The relevant entries in /etc/rc.d/rc.gpm look like this:
Code:
#!/bin/sh
# Start/stop/restart the GPM mouse server:

if [ "$1" = "stop" ]; then
  echo "Stopping gpm..."
  /usr/sbin/gpm -k
elif [ "$1" = "restart" ]; then
  echo "Restarting gpm..."
  /usr/sbin/gpm -k
  sleep 1
  /usr/sbin/gpm -m /dev/mouse -t imps2
else # assume $1 = start:
  echo "Starting gpm:  /usr/sbin/gpm -m /dev/mouse -t imps2"
  /usr/sbin/gpm -m /dev/mouse -t imps2
fi
I should note that since Slackware 12 (or so, might be 13.37, I don't remember), you don't need to run xorgsetup (there is no xorg.conf file in /etc/X11). X more or less self-configures. If you have an xorg.conf might be worth a try to move it to xorg.conf.bak, edit /etc/rc.d/rc.gpm as above and see what happens?

By the way, the mouse in Win7 in VirtualBox works just fine, too.

Hope this helps some.

Last edited by tronayne; 01-14-2013 at 02:17 PM.
 
Old 01-14-2013, 02:39 PM   #3
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,572

Rep: Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394
If you're not using the proprietary binary NVidia or ATI drivers, then try removing xorg.conf entirely.

If you are, try removing from your xorg.conf all references to InputDevices. See here: http://blog.tpa.me.uk/2010/04/09/con...-on-slackware/
 
Old 01-14-2013, 07:46 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0/14.1
Posts: 3,479

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Does grep EE /var/log/Xorg.0.log reveal anything?
 
Old 01-14-2013, 11:01 PM   #5
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 797

Rep: Reputation: 247Reputation: 247Reputation: 247
If you don't find anything else that helps, here is another suggestion. I had problems with other versions of Slackware getting scroll wheels or side buttons to work due to a problem with the order that modules are loaded. The problem was only on a couple of laptops. The solution was to reload the "psmouse" module in "/etc/rc.d/rc.local".

Code:
if [[ -n "$(lsmod | cut -f 1 -d " " | grep psmouse)" ]] ; then
        echo "Found psmouse module"
        echo "Reloading psmouse module so that side mouse buttons will work"
        /sbin/rmmod psmouse
        /sbin/insmod /lib/modules/`uname -r`/kernel/drivers/input/mouse/psmouse.ko
fi
Put the commands at the very end of "rc.local" after all the VirtualBox modules have been loaded and any other modules associated with pointing devices.

You can test this manually by unloading and reloading the "psmouse" module from a shell prompt. If that solves your problem then adding the commands to "rc.local" should work.

Last edited by Erik_FL; 01-14-2013 at 11:02 PM.
 
Old 01-15-2013, 11:27 AM   #6
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
Thanks for all the replies, everyone. Here are the results:

I am not using Nvidia or ATI drivers (since I'm running Slackware in VirtualBox), so I renamed xorg.conf to xorg.conf-bak. The scrollwheel still did not work after this (restarted X, and also rebooted system completely).

My /etc/rc.d/rc.gpm file already looks exactly the same as the one posted by tronayne.

I also took Erik_FL's suggestion and added the psmouse info to /etc/rc.d/rc.local, but this also did not get the scrollwheel to work.

Since the other distros were using different WMs, I decided to try KDE and Xfce in Slackware to rule out a Fluxbox config issue, but the wheel still doesn't work on them either.

Here is what "grep EE /var/log/Xorg.0.log" is showing:
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 213.645] (II) Loading extension MIT-SCREEN-SAVER
[ 213.674] (EE) Failed to load module "vboxvideo" (module does not exist, 0)
[ 213.682] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 214.514] (II) XINPUT: Adding extended input device "VirtualBox USB Tablet" (type: TOUCHSCREEN, id 8)
 
Old 01-15-2013, 11:56 AM   #7
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,008

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Have you installed the guest additions in the Slackware virtual machine?

Have you tried right-click on the USB icon at the bottom right 0f the screen and is the Microsoft 3-button mouse highlighted?
 
1 members found this post helpful.
Old 01-15-2013, 12:23 PM   #8
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by tronayne View Post
Have you installed the guest additions in the Slackware virtual machine?
That was it! Thank you very much All is working now.
 
  


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
Scrollwheel is reversed (wacom) rutgerw Linux - Hardware 2 01-15-2007 04:34 PM
Scrollwheel in touchpad maginotjr Linux - Laptop and Netbook 5 07-03-2005 02:36 PM
Scrollwheel not working under FC4 slimjim Linux - Software 7 06-22-2005 03:01 PM
Mouse scrollwheel under SlackTen Social Burn Slackware 2 01-18-2005 02:02 AM
Scrollwheel doesn't work :( GT_Onizuka Slackware 8 11-13-2003 03:16 AM


All times are GMT -5. The time now is 10:47 PM.

Main Menu
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