LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Crazy jumping mouse cursor after fresh install--did I choose the wrong mouse type? (https://www.linuxquestions.org/questions/slackware-14/crazy-jumping-mouse-cursor-after-fresh-install-did-i-choose-the-wrong-mouse-type-4175414151/)

Didier Spaier 07-03-2012 11:41 AM

Well, in the working Xorg.0.log the synaptics driver is not used at all. Instead, the touchpad is taken care of by the generic evdev driver, but only as a generic mouse. This probably explain why you can't scroll with it. FYI modules names end in _drv.so, so that's easy to check:
Code:

bash-4.1$ grep _drv.so *Xorg.0.log
problemXorg.0.log:[  155.850] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
problemXorg.0.log:[  155.850] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
problemXorg.0.log:[  156.090] (II) Unloading /usr/lib64/xorg/modules/drivers/vesa_drv.so
problemXorg.0.log:[  156.232] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
problemXorg.0.log:[  156.353] (II) Loading /usr/lib64/xorg/modules/input/synaptics_drv.so
tpWorking-Xorg.0.log:[  236.655] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
tpWorking-Xorg.0.log:[  236.686] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
tpWorking-Xorg.0.log:[  237.065] (II) Unloading /usr/lib64/xorg/modules/drivers/vesa_drv.so
tpWorking-Xorg.0.log:[  237.679] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
bash-4.1$

The reason you have the line ending in 'InputClass "touchpad"' in the "bad" log is that in this case your touchpad is recognized as a 'SynPS/2 Synaptics TouchPad' (two lines above in the log) not as a '"PS/2 Synaptics TouchPad" (type: MOUSE)' like it is in the "good" log. This is normal and you shouldn't worry about the "bad" log showing two InputClass lines: a device can be associated to several InputClasses.

So at this point of time my guess is that even the 1.6.2 version of your xf86-video-thinkpad driver... Doesn't drive so well your touchpad :(

Oh, and don't worry about unloading of the vesa video module: the intel video module takes precedence and that's normal as it is more specific to your hardware.

PS I didn't notice till your last post that you are running a 64 bit Slackware. But I don't think that change anything.

Kallaste 07-03-2012 02:18 PM

Quote:

Originally Posted by Didier Spaier (Post 4718261)
Well, in the working Xorg.0.log the synaptics driver is not used at all. Instead, the touchpad is taken care of by the generic evdev driver, but only as a generic mouse. This probably explain why you can't scroll with it. FYI modules names end in _drv.so, so that's easy to check:
Code:

bash-4.1$ grep _drv.so *Xorg.0.log
problemXorg.0.log:[  155.850] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
problemXorg.0.log:[  155.850] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
problemXorg.0.log:[  156.090] (II) Unloading /usr/lib64/xorg/modules/drivers/vesa_drv.so
problemXorg.0.log:[  156.232] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
problemXorg.0.log:[  156.353] (II) Loading /usr/lib64/xorg/modules/input/synaptics_drv.so
tpWorking-Xorg.0.log:[  236.655] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
tpWorking-Xorg.0.log:[  236.686] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
tpWorking-Xorg.0.log:[  237.065] (II) Unloading /usr/lib64/xorg/modules/drivers/vesa_drv.so
tpWorking-Xorg.0.log:[  237.679] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
bash-4.1$


Oh, I see, thank you! So my touchpad is un-drivable with current software, then. Oh well, I guess you can't have everything. But I wish the driver gods would fix that. :)

So, how do I tell it to load the generic evdev driver instead of the Synaptics one, even without the USB mouse plugged in? A non-scrolling touchpad is better than a crazy-jumpy one.

P.S. Yes, sorry I forgot to mention the 64 bit. I think it was a bad choice to install it, and now that I think of it I will probably switch to 32.

Didier Spaier 07-03-2012 02:44 PM

There are probably ways to do that using a config file you would put in /etc/X11/modprobe.d, see "man xorg.conf"

But the simplest way is probably this one:
Code:

removepkg xf86-input-synaptics
If X can't start and you see in Xorg.0.log that there is no core pointer available, come back here and we will find something more sophisticated ;)

In any case the driver is not lost, 'installpkg' or 'slackpkg install' would re-install it for you.

Kallaste 07-03-2012 04:21 PM

Oh, my. I removed the package, and even though it is now using the evdev driver, the mouse is worse than ever. It is still jumping around when I try to drag (though scroll still does nothing with this driver), and now, additionally, it is vibrating when I try to move it, or even when I just place my finger on the touchpad without moving. Now I can't even hold it still to click on anything!

Code:

grep _drv.so Xorg.0.log
returns exactly what yours did in the "good" log above, so I surely do not understand it. Unlike before, it does this regardless of whether the USB mouse is plugged in or not.

Maybe I should mention that these mouse troubles have always occurred even before I start X, when I am just in a raw terminal. Does that make any difference?

Thanks. :)

Didier Spaier 07-03-2012 04:42 PM

Quote:

Originally Posted by BloomingNutria (Post 4718485)
Maybe I should mention that these mouse troubles have always occurred even before I start X, when I am just in a raw terminal. Does that make any difference?:)

Of course, as then some kernel driver (not to be confused with an X driver as 'evdev' or 'synaptics') should have a problem driving your touchpad.

To investigate further please first type as root "rm /var/log/messages", then reboot with no mouse plugged in, but do not start X.
1) Type 'lsmod | sort' in a raw terminal and append the output to your next post (the "|" sign is the vertical bar, not a capital i or a lowcase l)
2) Plug-in an USB mouse and again type 'lsmod | sort' and append the new output to your next post.
3) To make good measure append to your next post as well the whole /var/log/messages file, in its state after step 2)

Time to sleep for me, so see you tomorrow ;)

PS You may re-install the xf86-input-synaptics package to get a better working state under X, it won't change the results of aforementioned steps anyway.

ReaperX7 07-03-2012 08:35 PM

Blooming. This is just a raw suggestion of what to try, but this may or may not help you.

Try to disable /etc/rc.d/rc.gpm at boot time and see if the problem clears up.

Run
Code:

chmod -x /etc/rc.d/rc.gpm
and reboot and see if your touchpad at least works within X11 using the Synaptic driver.

Kallaste 07-04-2012 01:07 PM

3 Attachment(s)
Didier Spaier: I am sorry about that. I began to suspect that was the case about half way through the thread when I started learning more, but when I started this thread I had no idea if the drivers were kernel specific or X specific or what got loaded when. Then, since the mouse problem outside of X is not really the same (all that happens in the terminal is when I try to drag to select text, it drags in the opposite direction: when I try to drag in an upward motion it goes "down," and vice versa) I thought maybe that dragging with the touchpad just wasn't supported outside of X and the driver was supposed to fix it. Then I thought that doesn't make sense, because if dragging were not supported there would just not be any functionality at all instead of glitchy functionality.

Anyway, please forgive my uninformed mistake. Here are those files. Thank you!

P.S. I had to save the var/log/messages files as a text file to get LQ to let me upload it, so I hope some formatting has been preserved. On my Linux computers it looks fine, but on Windows it's a mess.

Kallaste 07-04-2012 01:09 PM

Reaper: I will read some more about that and figure out how I can undo it if it does not work. Thanks!

And of course, since Didier Spaier offered to look at that information, I would like to wait until he does first.

ReaperX7 07-04-2012 02:00 PM

Curious question but what desktop environment are you using?

Kallaste 07-04-2012 02:44 PM

I switch between XFCE and KDE.

Didier Spaier 07-04-2012 03:00 PM

Don't be sorry, you are learning fast and your answers are smart and sensible, so it's a pleasure to try to help you. Furthermore I could have asked you if you noticed the problems with your touchpad long ago.

I will be able to answer your post with the appended files in two hours or so.

Meanwhile, please send the output of following command as well:
Code:

lspci -k
This way we will know for each piece of hardware connected to a PCI bus which are the kernel driver in use and the kernel modules.

I should have asked that before, sorry about that.

Kallaste 07-04-2012 04:29 PM

1 Attachment(s)
Here it is. And I am in no rush at all. Just thankful you are helping me!

Didier Spaier 07-04-2012 05:44 PM

Well, I think that the "psmouse" kernel driver is used to drive your thinkpad.

This can seem odd, as the 'modinfo psmouse' command says 'description: PS/2 mouse driver' but it's how it is, at least here. I have another model of touchpad but I think this is true for yours as well. Anyway it's easy to check: if I type as root 'rmmod psmouse' the mouse still works but the touchpad is inactive. In fact, in my case at least, the kernel driver for the USB mouse is 'usbhid' (FYI, hid stands for 'Human Input Device').

Enough with this digression, back to the topic. On the raw console the mouse is made available by the 'gpm' command, launched at startup by the file /etc/rc.d/rc.gpm.

Typing 'man gpm' I saw that the '-t' option allows to choose the type of 'mouse' used. The command (typed as root, again) 'gpm -t help' shows the different types available, among which I guess that 'synps2 The "Synaptics" PS/2 TouchPad' is the one which fit best your touchpad. Thus I suggest you try this:
1) Edit as root the file /etc/rc.d/rc.gpm (e.g. 'nano /etc/rc.d/rc.gpm' - nano being an easy to use text editor) in order to replace in the two lines showing :
Code:

  /usr/sbin/gpm -m /dev/mouse -t <mouse type>
whichever mouse type shows at the end of the line with "synps2" (without the quotes),
then save the updated file (if you use nano: Ctrl+o to save then Ctrl+x to quit)
2) So that the change takes effect, type, still as root:
/etc/rc.d/rc.gpm restart

You can do all that in a raw terminal, see what have changed in the touchpad's behavior, then 'startx' and again see what have changed.

I also was wondering if some of your problems could be at least partially due to the fact that you have two graphic cards, but one thing at a time ;)

PS I didn't see anything worrying in the files I looked at.

Kallaste 07-05-2012 08:33 AM

Alas, it did not work. It was using "ps2" as the mouse type in the /etc/rc.d/rc.gpm file, so I changed those two lines to "synps2," as you said (without quotes of course :)). Then I issued the restart command, and nothing had changed either in the raw console or in X.

When I type 'modinfo psmouse,' the description on my machine is exactly the same as yours. I also went through the man and help pages you mentioned, and in both cases found the information to be identical to what you described.

About the graphics cards, yes, I do have two. The computer came with "switchable" graphics, which is supposed to preserve my battery life by allowing me to switch to the slower one when I am not playing graphics-intensive games or the like (which I never do). Do you think this might be causing a conflict of some sort with the mouse driver? If the faster card could be disabled then that would be fine with me, since I have never noticed the slightest difference in performance between them. I was wanting to deal with this issue first because I did not think the two were related, but now that you mention it, there is definitely a problem with my graphics. They are of very poor quality, and I also saw that error in the messages file I attached earlier about it.

Also, about 30 % of the time, I get about halfway through the boot process and then hang at a black screen, so I have to restart. I thought this was a problem with the VESA settings, because I read that not all the options (I choose between 20 or so of them at every start-up) are compatible with all cards and that I would need to "experiment" to see which one would be best for my hardware. (I did not know about the VESA module being overridden by the Intel one, and I still do not know if this happens this early in the boot process or if the VESA module is used for a while and thus may still cause problems requiring "experiments.") I planned to look into this later, after the mouse issue was resolved. But perhaps it is more likely that the superfluous card is responsible. Could it be the culprit for the touchpad problem as well?

Didier Spaier 07-05-2012 11:19 AM

Out of curiosity, could you list all the options you choose at every start-up? Do you type it or are they included in /etc/lilo.conf? Anyhow, please send your lilo.conf.

To make sure vesa be not used at boot time, simply include 'vga=normal' in your /etc/lilo.conf (instead of "vga=<some number>" as it probably is). You won't have fancy small characters on the raw console, but I guess you don't really need that.

To make sure that the intel driver be used by X, the simplest way is to include following line in a new file /etc/X1/rc.d/video.conf (or any filename ending in .conf):
Code:

Section "Device"
Identifier "whatever"
Driver "intel"
EndSection

If you want to use another driver, adapt accordingly.

By the way, I noticed that though kernel drivers for your two cards be loaded at start-up (namely, i915 for INTEL and radeon for ATI), X doesn't load a driver for ATI.

I don't know why but I guess that then your ATI card is not used under X at all.

EDIT To make sure the above video.conf file works, there shouldn't exist any other file ending in .conf in /etc/X11 and /etc/X11/rc.d. "man xorg.conf" will tell you more in case you didn't look at it already.

Also, to switch between your graphic cards the "switcheroo" feature is available (it is built-in Slackware kernels as shows output of 'grep -i switcheroo config*'). I didn't see any reference about its use with Slackware (maybe I didn't search enough) but this article looks interesting.


All times are GMT -5. The time now is 01:20 PM.