LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Unable To Configure Left-Hand Mouse With KDE 3.5.8 In Current (https://www.linuxquestions.org/questions/slackware-14/unable-to-configure-left-hand-mouse-with-kde-3-5-8-in-current-607171/)

Woodsman 12-16-2007 04:25 PM

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.

Any thoughts about where to troubleshoot?

Eternal_Newbie 12-16-2007 04:58 PM

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.

Woodsman 12-16-2007 05:11 PM

Thanks for confirming!

For additional information, I am not using HAL (older hardware --- very static box). Anybody else have an idea?

Woodsman 01-21-2008 01:20 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.

cdrigby 02-21-2008 07:31 PM

Work-around for left-handed mouses in KDE
 
Greetings All,

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:

  1. I created the file ~/.kde/Autostart/LeftHandMouse
  2. Its contents:
    Code:

    #!/bin/sh
    # This command will swap the buttons of ALL mouses under KDE

    xmodmap -e "pointer = 3 2 1"

  3. 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.

Regards
CDRigby

Woodsman 02-24-2008 12:08 PM

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.

cdrigby 02-26-2008 06:40 PM

Hello Woodsman,

I just checked - my ArchLinux installation is currently at 3.5.8-3. I'll see if the situation changes once the update propagates through to my system.

Thanks for the response.

Cheers
CDR

Kerrysl 05-09-2008 10:51 PM

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

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Synaptics" "CorePointer"
InputDevice "USB Mouse" "AlwaysCore"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules"
EndSection

Section "ServerFlags"
Option "AIGLX" "on"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us+inet"
EndSection

Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto-dev"
Option "Emulate3Buttons" "yes"
EndSection

Section "InputDevice"
Identifier "USB Mouse"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "3 2 1 4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "fglrx"
Option "OpenGLOverlay" "off"
Option "VideoOverlay" "on"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "DRI"
Mode 0666
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection
So far this works for me. Hope it works for you as well.


All times are GMT -5. The time now is 04:59 AM.