Unable To Configure Left-Hand Mouse With KDE 3.5.8 In Current
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.
Unable To Configure Left-Hand Mouse With KDE 3.5.8 In Current
I've run into an oddball problem with Current.
I use some alternate partitions to mirror my 12.0 partitions and then from those partitions I install/update to Current for testing. I run a script to automate most of the process.
I have KDE configured for a left-handed mouse (swap buttons). When I update to Current I cannot configure KDE to swap the buttons for left-hand use. I can change the Control Center, but with no effect. I temporarily renamed the user .kde directory and created a new directory (temporarily suffering the idiotic bouncing cursor ), but to no avail. Therefore the problem does not seem to be a corrupt KDE configuration file.
I wiped the partitions, re-mirrored my test partitions, and updated everything in Current except X. No issues. I then exited X/KDE, updated all files in X, restarted X/KDE and the problem reappeared.
The problem seems to be X related. However, oddly, the problem does not occur in Xfce, even with all X files from Current installed.
In my 12.0 setup, several weeks ago I updated KDE to 3.5.8 from Current, and have experienced no similar problem.
I can confirm this, KDE 3.5.8 on current, xorg-server 1.4.0.90, mouse remains right-handed. XFCE swaps mouse handedness fine. I wonder if is another of those annoying Xorg 7.3/HAL bugs?
EDIT: spelling, etc.
Last edited by Eternal_Newbie; 12-16-2007 at 05:04 PM.
I realize that the Current branch development has slowed the past few weeks, but this past weekend I tried another testing update of Current. The same problem exists with being unable to configure the KDE mouse buttons for left-handed use. The problem does not appear until I update the x/* tree of files and the problem does not exist in Xfce. A fresh copy of the user .kde folder does not solve the problem.
So there appears to be a conflict between KDE 3.5.8 and X 7.3.
I informed PV several weeks ago, although I have no clue where the root cause might be.
I'm adding this post merely to bump the thread in case others experience this same problem.
I ran across this thread while searching for a solution to the same problem while setting up KDE 3.5.8 under Arch Linux i686. From bits of half-remember X-lore, I cobbled together a work-around:
I created the file ~/.kde/Autostart/LeftHandMouse
Its contents:
Code:
#!/bin/sh
# This command will swap the buttons of ALL mouses under KDE
xmodmap -e "pointer = 3 2 1"
I made it executable:
Code:
chmod u+x ~/.kde/Autostart/LeftHandMouse
Then I logged out, restarted Xorg for good measure, and my USB mouse buttons behaved as desired. This is a pretty generic work-around, so it should work for Slackware and other distros, possibly even *BSD if its KDE setup is equivalent.
I also found an explanation of why things work the way they do on the KDE bugtraq list. I cannot post URLs here (golly - my first post!), but go to bugs.kde.org and search for bug 129045 if you are interested.
It appears to be one of those "it's not a bug - it's a feature" situations. My knowledge of Xorg is rather cursory, and my attempts to fiddle with xorg.conf did not yield useful results. I did not try using another mouse to see if I could recreate the situation described in in that bug listing.
I tested the latest Current branch as of Thursday Feb 21 (I have not updated with the changes of this past weekend). No more left-hand mouse issues. Perhaps the fix was in KDE 3.5.9. Perhaps something else. I don't know, but all is well.
I had similar problems with none of the GUI tools correctly setting left handedness of the mouse. I have a Dell laptop 6400/E105 and using the standard Dell mouse. As reported by others Gnome seems to be able to set correct values but KDE does not. I think GNOME intercepts the signals being sent to X server and converts them. Anyway I have found for me on KDE 3.5.9-5.fc8 on obviously Fedora 8 I have found that modifying the Xorg.conf file solves the problem.
One precaution I would suggest is make a copy of Xorg.conf both before and after making the changes suggested below because there are several GUI tools that will write to Xorg.conf and may undo your changes. Here is my Xorg.conf file take note of the USB mouse line in the ServerLayout section and the InputDevice section for "USBMouse"
Quote:
# Xorg configuration created by livna-config-display
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.