Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Mouse acceleration and X11

  1. #1

    Default Mouse acceleration and X11

    Hi guys,

    I've been having some issues with mouse settings (acceleration or flat) intermittently defaulting after having set the speed and acceleration according to how I want them.
    A logout / login solves the problem but whilst in my KDE the problems occurs again. I prefer slower cursor movement and it's rather annoying to discover that the cursor suddenly speeds up.

    I am running X11 Plasma according to the login screen.

    I've tried a hack to xorg.conf :

    Code:
    /etc/X11/xorg.conf.d/50-mouse-acceleration.conf Section "InputClass"
    	Identifier "My Mouse"
    	MatchIsPointer "yes"
    # set the following to 1 1 0 respectively to disable acceleration.
    	Option "AccelerationNumerator" "2"
    	Option "AccelerationDenominator" "1"
    	Option "AccelerationThreshold" "4"
    EndSection
    But no joy.

    Don't ask me why but I also tried the same thing to libinput for Wayland :

    Code:
    /etc/X11/xorg.conf.d/50-mouse-acceleration.conf Section "InputClass"
    	Identifier "My Mouse"
    	Driver "libinput"
    	MatchIsPointer "yes"
    	Option "AccelProfile" "flat"
    	Option "AccelSpeed" "0"
    EndSection
    And voila, the mouse pointer seems to accept this configuration. So far no intermittent defaults.

    But how come this works I am not running a Wayland session?

  2. #2
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    5,127

    Question Re: Mouse acceleration and X11

    @newtoopensuse:

    Did you try, in the KDE Plasma System SettingsHardwareInput DevicesMouse section – to setup the Pointer speed and Acceleration profile settings?
    The Acceleration profile can be either “flat” or “adaptive”.

  3. #3

    Default Re: Mouse acceleration and X11

    Quote Originally Posted by dcurtisfra View Post
    @newtoopensuse:

    Did you try, in the KDE Plasma System SettingsHardwareInput DevicesMouse section – to setup the Pointer speed and Acceleration profile settings?
    The Acceleration profile can be either “flat” or “adaptive”.
    Sorry I should've been more clear, I used the GUI but it reverts to standard setting.

  4. #4
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    5,127

    Default Re: Mouse acceleration and X11

    Quote Originally Posted by newtoopensuse View Post
    I used the GUI but it reverts to standard setting.
    I checked the behaviour here and compared the changed settings to those in a saved copy of ‘~/.config/kcminputrc’
    Code:
     .config> diff -cw ./kcminputrc ~/tmp/KDE/kcminputrc 
    *** ./kcminputrc        2022-09-22 19:16:49.184288014 +0200
    --- /home/xxx/tmp/KDE/kcminputrc  2022-08-23 13:06:20.165850065 +0200
    ***************
    *** 16,23 ****
      MouseButtonMapping=RightHanded
      ReverseScrollPolarity=false
      Threshold=2
    ! XLbInptAccelProfileFlat=true
    ! XLbInptPointerAcceleration=-0.6
      cursorTheme=Oxygen_White
      
      [Tmp]
    --- 16,23 ----
      MouseButtonMapping=RightHanded
      ReverseScrollPolarity=false
      Threshold=2
    ! XLbInptAccelProfileFlat=false
    ! XLbInptPointerAcceleration=0
      cursorTheme=Oxygen_White
      
      [Tmp]
     .config>
    What's interesting is, the value of the parameter “AccelerationProfile” – that doesn't change – it remains with the value “Adaptive” being set …

    I really don't know – when, in the KDE System Settings, I change the Acceleration Profile from “Adaptive” to “Flat” and, reduce the pointer speed somewhat, I get a Mouse Pointer behaviour which is for me, quite sluggish and slow.
    The complete ‘kcminputrc’ section “Mouse” settings, for a slow, sluggish, Mouse Pointer on this machine, set by the System Settings Mouse settings, are:
    Code:
    [Mouse]
    Acceleration=2
    AccelerationProfile=Adaptive
    MouseButtonMapping=RightHanded
    ReverseScrollPolarity=false
    Threshold=2
    XLbInptAccelProfileFlat=false
    XLbInptPointerAcceleration=-0.6
    cursorTheme=Oxygen_White

  5. #5
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    24,434
    Blog Entries
    1

    Default Re: Mouse acceleration and X11

    Quote Originally Posted by newtoopensuse View Post
    But how come this works I am not running a Wayland session?
    Libinput serves both Wayland and Xorg environments. From the libinput wiki page
    https://freedesktop.org/wiki/Software/libinput/
    libinput

    libinput is a library to handle input devices in Wayland compositors and to provide a generic X.Org input driver.
    The Xorg configuration file is specific to Xorg behaviour of course.
    Last edited by deano_ferrari; 22-Sep-2022 at 22:48.
    openSUSE Leap 15.4; KDE Plasma 5

  6. #6
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    2,402

    Default Re: Mouse acceleration and X11

    Quote Originally Posted by newtoopensuse View Post
    ...
    Code:
    ...
        Identifier "My Mouse"
    ...
    I'm not saying it's not... but, is "My Mouse" really the identifier of your mouse?

    What does:
    Code:
    grep -e "Using input driver 'libinput'" /var/log/Xorg.0.log
    show?
    Regards, Paul

  7. #7

    Default Re: Mouse acceleration and X11

    @dcurtisfra - Yes I've tried every setting in GUI and it reverts sporadically.

    @deano_ferrari - Oh okay, so libinput shares its configs to xorg as well. That makes sense. Because ever since I chose libinput to handle my mouse, I'm having zero issues.

    @tannington - I will check my xorg configuration files later, but I'm embarrassed to say I just did a copy and paste from archwiki just to see what happened. :-I

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    24,434
    Blog Entries
    1

    Default Re: Mouse acceleration and X11

    Quote Originally Posted by newtoopensuse View Post
    @deano_ferrari - Oh okay, so libinput shares its configs to xorg as well.
    Actually, it's the the Xorg config file(s) that provide a means to configure input devices using libinput (when using an Xorg environment).

    That makes sense. Because ever since I chose libinput to handle my mouse, I'm having zero issues.
    Good.
    openSUSE Leap 15.4; KDE Plasma 5

  9. #9

    Default Re: Mouse acceleration and X11

    Quote Originally Posted by deano_ferrari View Post
    Actually, it's the the Xorg config file(s) that provide a means to configure input devices using libinput (when using an Xorg environment).
    Yeah. The other way around . Can you imagine me setting up and using a Archlinux system (which I did couple of years back).
    Being a GUI guy I am intrigued to manually configure config files as long as they're aren't too many. But it's definitely interesting to see what happens behind the GUI curtains.

  10. #10
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    5,127

    Default Re: Mouse acceleration and X11

    Quote Originally Posted by newtoopensuse View Post
    @deano_ferrari - Oh okay, so libinput shares its configs to xorg as well. That makes sense. Because ever since I chose libinput to handle my mouse, I'm having zero issues.

    @tannington - I will check my xorg configuration files later, but I'm embarrassed to say I just did a copy and paste from archwiki just to see what happened. :-I
    Hmmm –
    Code:
     > rpm --query --whatprovides /etc/X11/xorg.conf.d/40-libinput.conf 
    xf86-input-libinput-0.28.1-150400.13.10.x86_64
     > 
     > rpm --query --whatrequires xf86-input-libinput
    patterns-base-x11-20200505-lp154.5.2.x86_64
    plasma5-session-wayland-5.24.4-bp154.2.3.1.x86_64
     > rpm --query --whatrecommends xf86-input-libinput
    no package recommends xf86-input-libinput
     > rpm --query --whatsuggests xf86-input-libinput
    no package suggests xf86-input-libinput
     >
    Therefore, assuming that, you've not messed around with the default openSUSE RPM dependencies, you should have a “libinput” configuration file located in the system's X11 configuration directory tree and, that default configuration will cause that, X11 and Wayland use “libinput” by default for the Mouse and, the Keyboard and, whatever else that's available as input devices …
    • To be perfectly honest, what other distributions do regarding the configuration of input devices is often, counterproductive to the openSUSE/SUSE « do as much as possible automagically » approach to configuration …

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •