Configure scrolling using Logitech Trackball on VMWareExtra mouse buttons not working in virtualization (VMware/VirtualBox, ubuntu host)Logitech Mouse Appearing IncorrectlyLogitech T620 middle mouse scrolling stopped workingxinput script for device with 2 entriesHow to enable natural scrolling with Logitech Trackman and libinputUbuntu 18 touchpad not working properlyMake xinput settings permanent after boot

Multivariate Limits

What is the lowest level at which a human can beat the 100m world record (or: the presumed human limit) without using magic?

Why rounding odd font sizes to even?

What spells can be countered?

How much money would I need to feel secure in my job?

Can I permanently banish a devil from one layer of the Hells to another using the Banishment spell?

At what point in time would humans notice a 21st century satellite observing them?

Should a middle class person emulate a very wealthy investor for % of cash hold?

Basic Accidental Question

Why use [FormalN]?

Dissecting the exotic bulbfish

CO₂ level is high enough that it reduces cognitive ability. Isn't that a reason to worry?

Best angle to attack

Is it sportsmanlike to waste opponents' time by giving check at the end of the game?

"Chess is 90% tactics" - should a player focus more on tactics in order to improve?

Completing the square to solve limit problems

Why did the Bohr Model Successfully calculate some of the energy levels in hydrogen?

Dicht antonym - what is it?

When does Scandinavian Mountains Airport open?

Which fallacy: "If white privilege exists, why did Elizabeth Warren pretend to be an Indian?"

What are standard cryptographic assumptions?

Which act of Congress authorized the Ukrainian aid which was allegedly withheld?

Why did a shuttle astronaut have an open book during ascent?

Can we rotate symbols in LaTeX? How should we make this diagram?



Configure scrolling using Logitech Trackball on VMWare


Extra mouse buttons not working in virtualization (VMware/VirtualBox, ubuntu host)Logitech Mouse Appearing IncorrectlyLogitech T620 middle mouse scrolling stopped workingxinput script for device with 2 entriesHow to enable natural scrolling with Logitech Trackman and libinputUbuntu 18 touchpad not working properlyMake xinput settings permanent after boot






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









2

















Background



A Windows 10 host is running VMWare Workstation Pro 15.1.0. The guest OS is running X11. The pointer hardware is a Logitech Marble Mouse having configuration information on the Ubuntu community site. On Windows, scrolling by holding the small right button works with TrackballScroll. The following image shows how xorg references Logitech's buttons:



Logitech Marble Mouse Trackball



The VMWare .vmx file has the following configuration settings, which allows more than 3 different buttons to trigger mouse events in the guest OS:



usb.generic.allowHID = "TRUE"
mouse.vusb.enable = "TRUE"
mouse.vusb.useBasicMouse = "FALSE"


With these lines all mouse button events are sent to the guest OS.



The output from xinput list in the guest OS is:



xinput list 
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ VMware VMware Virtual USB Mouse id=7 [slave pointer (2)]
⎜ ↳ VMware VMware Virtual USB Mouse id=8 [slave pointer (2)]
⎜ ↳ VirtualPS/2 VMware VMMouse id=10 [slave pointer (2)]
⎜ ↳ VirtualPS/2 VMware VMMouse id=11 [slave pointer (2)]


Running xinput test-xi2 --root details events for all four buttons 1, 8, 9, and 3 (from the above picture):



EVENT type 5 (ButtonRelease)
device: 8 (8)
detail: 1
EVENT type 5 (ButtonRelease)
device: 8 (8)
detail: 8
EVENT type 5 (ButtonRelease)
device: 8 (8)
detail: 9
EVENT type 5 (ButtonRelease)
device: 8 (8)
detail: 3


This shows that the button click events are being passed from the host to the guest successfully using device 8. Of slight concern is that there are two mice assigned the same name, but having different ids:



⎜ ↳ VMware VMware Virtual USB Mouse id=7 [slave pointer (2)]
⎜ ↳ VMware VMware Virtual USB Mouse id=8 [slave pointer (2)]


Problem



Scrolling by holding down the small right button (9) while moving the trackball fails. Running xinput test-xi2 --root shows the failure:



EVENT type 4 (ButtonPress)
device: 8 (8)
detail: 9
EVENT type 1 (DeviceChanged)
device: 2 (7)
reason: SlaveSwitch
Reporting 7 classes:
Class originated from: 7. Type: XIButtonClass
Buttons supported: 11
X Error of failed request: BadAtom (invalid Atom parameter)
Major opcode of failed request: 17 (X_GetAtomName)
Atom id in failed request: 0x282
Serial number of failed request: 34
Current serial number in output stream: 34
Button labels: "Button Left" "Button Middle" "Button Right"


The file .../xorg.conf.d/50-trackball.conf configures X11 as follows:



Section "InputClass"
Identifier "Logitech Marble Mouse"
MatchIsPointer "true"
#MatchProduct "Mouse"
#MatchVendor "VMWare"
Driver "libinput"
Option "ScrollMethod" "button"
Option "ScrollButton" "9"
Option "MiddleEmulation" "true"
Option "HorizontalScrolling" "false"
Option "ButtonMapping" "1 2 3 4 5 6 7 9 8"
EndSection


The output from xinput list-props 7 shows:



Device 'VMware VMware Virtual USB Mouse':
Device Enabled (124): 1
Coordinate Transformation Matrix (126): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Calibration Matrix (261): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Calibration Matrix Default (262): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (263): 0
libinput Natural Scrolling Enabled Default (264): 0
libinput Send Events Modes Available (244): 1, 0
libinput Send Events Mode Enabled (245): 0, 0
libinput Send Events Mode Enabled Default (246): 0, 0
libinput Left Handed Enabled (265): 0
libinput Left Handed Enabled Default (266): 0
libinput Scroll Methods Available (267): 0, 0, 1
libinput Scroll Method Enabled (268): 0, 0, 1
libinput Scroll Method Enabled Default (269): 0, 0, 1
libinput Button Scrolling Button (270): 9
libinput Button Scrolling Button Default (271): 2
libinput Middle Emulation Enabled (272): 0
libinput Middle Emulation Enabled Default (273): 0
Device Node (247): "/dev/input/event5"
Device Product ID (248): 3599, 3
libinput Drag Lock Buttons (274): <no items>
libinput Horizontal Scroll Enabled (275): 1


Question



What needs to change in the X Configuration File so that the small right button when held allows vertical scrolling using the trackball in an X11 session that's running inside VMWare?



Related



Related links include:



  • https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse

  • https://help.ubuntu.com/community/Logitech_Marblemouse_USB

  • https://unix.stackexchange.com/questions/58117/determine-xinput-device-manufacturer-and-model

  • https://www.x.org/releases/current/doc/man/man5/xorg.conf.5.xhtml

  • https://www.mankier.com/4/libinput

  • http://www.russet.org.uk/blog/3156

Additional Details



Some extra information about attempts to resolve the problem and ways that work but are less than ideal.



Disconnect from Host



Note that it is possible to disconnect the mouse from the host OS by using the Connect option, which then permits scrolling as desired. The downside is that this makes switching between the guest and host systems a bit awkward in that it takes several steps to switch between systems. Ideally, the guest OS would use a single mouse click to give it focus, scrolling would "just work", then Ctrl+Alt to release control back to the host OS.



Disconnect from Host



Changing Driver



Changing the driver from libinput to evdev does not work, such as:



 Driver "evdev"


xinput



Even though VMWare lists two entries for the USB Mouse, id=8 does not appear to have any effect; whereas, id=7 can be disabled using:



xinput set-prop 7 124 0


Where 7 is the mouse ID, 124 is the Device Enabled setting, and 0 indicates false. This disables the pointer altogether; changing 0 to 1 re-enables the pointer.



Alternative Solutions



Configuring the trackball from the command-line is an acceptable solution, though changing 50-trackball.conf is preferable.










share|improve this question


































    2

















    Background



    A Windows 10 host is running VMWare Workstation Pro 15.1.0. The guest OS is running X11. The pointer hardware is a Logitech Marble Mouse having configuration information on the Ubuntu community site. On Windows, scrolling by holding the small right button works with TrackballScroll. The following image shows how xorg references Logitech's buttons:



    Logitech Marble Mouse Trackball



    The VMWare .vmx file has the following configuration settings, which allows more than 3 different buttons to trigger mouse events in the guest OS:



    usb.generic.allowHID = "TRUE"
    mouse.vusb.enable = "TRUE"
    mouse.vusb.useBasicMouse = "FALSE"


    With these lines all mouse button events are sent to the guest OS.



    The output from xinput list in the guest OS is:



    xinput list 
    ⎡ Virtual core pointer id=2 [master pointer (3)]
    ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
    ⎜ ↳ VMware VMware Virtual USB Mouse id=7 [slave pointer (2)]
    ⎜ ↳ VMware VMware Virtual USB Mouse id=8 [slave pointer (2)]
    ⎜ ↳ VirtualPS/2 VMware VMMouse id=10 [slave pointer (2)]
    ⎜ ↳ VirtualPS/2 VMware VMMouse id=11 [slave pointer (2)]


    Running xinput test-xi2 --root details events for all four buttons 1, 8, 9, and 3 (from the above picture):



    EVENT type 5 (ButtonRelease)
    device: 8 (8)
    detail: 1
    EVENT type 5 (ButtonRelease)
    device: 8 (8)
    detail: 8
    EVENT type 5 (ButtonRelease)
    device: 8 (8)
    detail: 9
    EVENT type 5 (ButtonRelease)
    device: 8 (8)
    detail: 3


    This shows that the button click events are being passed from the host to the guest successfully using device 8. Of slight concern is that there are two mice assigned the same name, but having different ids:



    ⎜ ↳ VMware VMware Virtual USB Mouse id=7 [slave pointer (2)]
    ⎜ ↳ VMware VMware Virtual USB Mouse id=8 [slave pointer (2)]


    Problem



    Scrolling by holding down the small right button (9) while moving the trackball fails. Running xinput test-xi2 --root shows the failure:



    EVENT type 4 (ButtonPress)
    device: 8 (8)
    detail: 9
    EVENT type 1 (DeviceChanged)
    device: 2 (7)
    reason: SlaveSwitch
    Reporting 7 classes:
    Class originated from: 7. Type: XIButtonClass
    Buttons supported: 11
    X Error of failed request: BadAtom (invalid Atom parameter)
    Major opcode of failed request: 17 (X_GetAtomName)
    Atom id in failed request: 0x282
    Serial number of failed request: 34
    Current serial number in output stream: 34
    Button labels: "Button Left" "Button Middle" "Button Right"


    The file .../xorg.conf.d/50-trackball.conf configures X11 as follows:



    Section "InputClass"
    Identifier "Logitech Marble Mouse"
    MatchIsPointer "true"
    #MatchProduct "Mouse"
    #MatchVendor "VMWare"
    Driver "libinput"
    Option "ScrollMethod" "button"
    Option "ScrollButton" "9"
    Option "MiddleEmulation" "true"
    Option "HorizontalScrolling" "false"
    Option "ButtonMapping" "1 2 3 4 5 6 7 9 8"
    EndSection


    The output from xinput list-props 7 shows:



    Device 'VMware VMware Virtual USB Mouse':
    Device Enabled (124): 1
    Coordinate Transformation Matrix (126): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Calibration Matrix (261): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Calibration Matrix Default (262): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Natural Scrolling Enabled (263): 0
    libinput Natural Scrolling Enabled Default (264): 0
    libinput Send Events Modes Available (244): 1, 0
    libinput Send Events Mode Enabled (245): 0, 0
    libinput Send Events Mode Enabled Default (246): 0, 0
    libinput Left Handed Enabled (265): 0
    libinput Left Handed Enabled Default (266): 0
    libinput Scroll Methods Available (267): 0, 0, 1
    libinput Scroll Method Enabled (268): 0, 0, 1
    libinput Scroll Method Enabled Default (269): 0, 0, 1
    libinput Button Scrolling Button (270): 9
    libinput Button Scrolling Button Default (271): 2
    libinput Middle Emulation Enabled (272): 0
    libinput Middle Emulation Enabled Default (273): 0
    Device Node (247): "/dev/input/event5"
    Device Product ID (248): 3599, 3
    libinput Drag Lock Buttons (274): <no items>
    libinput Horizontal Scroll Enabled (275): 1


    Question



    What needs to change in the X Configuration File so that the small right button when held allows vertical scrolling using the trackball in an X11 session that's running inside VMWare?



    Related



    Related links include:



    • https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse

    • https://help.ubuntu.com/community/Logitech_Marblemouse_USB

    • https://unix.stackexchange.com/questions/58117/determine-xinput-device-manufacturer-and-model

    • https://www.x.org/releases/current/doc/man/man5/xorg.conf.5.xhtml

    • https://www.mankier.com/4/libinput

    • http://www.russet.org.uk/blog/3156

    Additional Details



    Some extra information about attempts to resolve the problem and ways that work but are less than ideal.



    Disconnect from Host



    Note that it is possible to disconnect the mouse from the host OS by using the Connect option, which then permits scrolling as desired. The downside is that this makes switching between the guest and host systems a bit awkward in that it takes several steps to switch between systems. Ideally, the guest OS would use a single mouse click to give it focus, scrolling would "just work", then Ctrl+Alt to release control back to the host OS.



    Disconnect from Host



    Changing Driver



    Changing the driver from libinput to evdev does not work, such as:



     Driver "evdev"


    xinput



    Even though VMWare lists two entries for the USB Mouse, id=8 does not appear to have any effect; whereas, id=7 can be disabled using:



    xinput set-prop 7 124 0


    Where 7 is the mouse ID, 124 is the Device Enabled setting, and 0 indicates false. This disables the pointer altogether; changing 0 to 1 re-enables the pointer.



    Alternative Solutions



    Configuring the trackball from the command-line is an acceptable solution, though changing 50-trackball.conf is preferable.










    share|improve this question






























      2












      2








      2








      Background



      A Windows 10 host is running VMWare Workstation Pro 15.1.0. The guest OS is running X11. The pointer hardware is a Logitech Marble Mouse having configuration information on the Ubuntu community site. On Windows, scrolling by holding the small right button works with TrackballScroll. The following image shows how xorg references Logitech's buttons:



      Logitech Marble Mouse Trackball



      The VMWare .vmx file has the following configuration settings, which allows more than 3 different buttons to trigger mouse events in the guest OS:



      usb.generic.allowHID = "TRUE"
      mouse.vusb.enable = "TRUE"
      mouse.vusb.useBasicMouse = "FALSE"


      With these lines all mouse button events are sent to the guest OS.



      The output from xinput list in the guest OS is:



      xinput list 
      ⎡ Virtual core pointer id=2 [master pointer (3)]
      ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
      ⎜ ↳ VMware VMware Virtual USB Mouse id=7 [slave pointer (2)]
      ⎜ ↳ VMware VMware Virtual USB Mouse id=8 [slave pointer (2)]
      ⎜ ↳ VirtualPS/2 VMware VMMouse id=10 [slave pointer (2)]
      ⎜ ↳ VirtualPS/2 VMware VMMouse id=11 [slave pointer (2)]


      Running xinput test-xi2 --root details events for all four buttons 1, 8, 9, and 3 (from the above picture):



      EVENT type 5 (ButtonRelease)
      device: 8 (8)
      detail: 1
      EVENT type 5 (ButtonRelease)
      device: 8 (8)
      detail: 8
      EVENT type 5 (ButtonRelease)
      device: 8 (8)
      detail: 9
      EVENT type 5 (ButtonRelease)
      device: 8 (8)
      detail: 3


      This shows that the button click events are being passed from the host to the guest successfully using device 8. Of slight concern is that there are two mice assigned the same name, but having different ids:



      ⎜ ↳ VMware VMware Virtual USB Mouse id=7 [slave pointer (2)]
      ⎜ ↳ VMware VMware Virtual USB Mouse id=8 [slave pointer (2)]


      Problem



      Scrolling by holding down the small right button (9) while moving the trackball fails. Running xinput test-xi2 --root shows the failure:



      EVENT type 4 (ButtonPress)
      device: 8 (8)
      detail: 9
      EVENT type 1 (DeviceChanged)
      device: 2 (7)
      reason: SlaveSwitch
      Reporting 7 classes:
      Class originated from: 7. Type: XIButtonClass
      Buttons supported: 11
      X Error of failed request: BadAtom (invalid Atom parameter)
      Major opcode of failed request: 17 (X_GetAtomName)
      Atom id in failed request: 0x282
      Serial number of failed request: 34
      Current serial number in output stream: 34
      Button labels: "Button Left" "Button Middle" "Button Right"


      The file .../xorg.conf.d/50-trackball.conf configures X11 as follows:



      Section "InputClass"
      Identifier "Logitech Marble Mouse"
      MatchIsPointer "true"
      #MatchProduct "Mouse"
      #MatchVendor "VMWare"
      Driver "libinput"
      Option "ScrollMethod" "button"
      Option "ScrollButton" "9"
      Option "MiddleEmulation" "true"
      Option "HorizontalScrolling" "false"
      Option "ButtonMapping" "1 2 3 4 5 6 7 9 8"
      EndSection


      The output from xinput list-props 7 shows:



      Device 'VMware VMware Virtual USB Mouse':
      Device Enabled (124): 1
      Coordinate Transformation Matrix (126): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
      libinput Calibration Matrix (261): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
      libinput Calibration Matrix Default (262): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
      libinput Natural Scrolling Enabled (263): 0
      libinput Natural Scrolling Enabled Default (264): 0
      libinput Send Events Modes Available (244): 1, 0
      libinput Send Events Mode Enabled (245): 0, 0
      libinput Send Events Mode Enabled Default (246): 0, 0
      libinput Left Handed Enabled (265): 0
      libinput Left Handed Enabled Default (266): 0
      libinput Scroll Methods Available (267): 0, 0, 1
      libinput Scroll Method Enabled (268): 0, 0, 1
      libinput Scroll Method Enabled Default (269): 0, 0, 1
      libinput Button Scrolling Button (270): 9
      libinput Button Scrolling Button Default (271): 2
      libinput Middle Emulation Enabled (272): 0
      libinput Middle Emulation Enabled Default (273): 0
      Device Node (247): "/dev/input/event5"
      Device Product ID (248): 3599, 3
      libinput Drag Lock Buttons (274): <no items>
      libinput Horizontal Scroll Enabled (275): 1


      Question



      What needs to change in the X Configuration File so that the small right button when held allows vertical scrolling using the trackball in an X11 session that's running inside VMWare?



      Related



      Related links include:



      • https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse

      • https://help.ubuntu.com/community/Logitech_Marblemouse_USB

      • https://unix.stackexchange.com/questions/58117/determine-xinput-device-manufacturer-and-model

      • https://www.x.org/releases/current/doc/man/man5/xorg.conf.5.xhtml

      • https://www.mankier.com/4/libinput

      • http://www.russet.org.uk/blog/3156

      Additional Details



      Some extra information about attempts to resolve the problem and ways that work but are less than ideal.



      Disconnect from Host



      Note that it is possible to disconnect the mouse from the host OS by using the Connect option, which then permits scrolling as desired. The downside is that this makes switching between the guest and host systems a bit awkward in that it takes several steps to switch between systems. Ideally, the guest OS would use a single mouse click to give it focus, scrolling would "just work", then Ctrl+Alt to release control back to the host OS.



      Disconnect from Host



      Changing Driver



      Changing the driver from libinput to evdev does not work, such as:



       Driver "evdev"


      xinput



      Even though VMWare lists two entries for the USB Mouse, id=8 does not appear to have any effect; whereas, id=7 can be disabled using:



      xinput set-prop 7 124 0


      Where 7 is the mouse ID, 124 is the Device Enabled setting, and 0 indicates false. This disables the pointer altogether; changing 0 to 1 re-enables the pointer.



      Alternative Solutions



      Configuring the trackball from the command-line is an acceptable solution, though changing 50-trackball.conf is preferable.










      share|improve this question

















      Background



      A Windows 10 host is running VMWare Workstation Pro 15.1.0. The guest OS is running X11. The pointer hardware is a Logitech Marble Mouse having configuration information on the Ubuntu community site. On Windows, scrolling by holding the small right button works with TrackballScroll. The following image shows how xorg references Logitech's buttons:



      Logitech Marble Mouse Trackball



      The VMWare .vmx file has the following configuration settings, which allows more than 3 different buttons to trigger mouse events in the guest OS:



      usb.generic.allowHID = "TRUE"
      mouse.vusb.enable = "TRUE"
      mouse.vusb.useBasicMouse = "FALSE"


      With these lines all mouse button events are sent to the guest OS.



      The output from xinput list in the guest OS is:



      xinput list 
      ⎡ Virtual core pointer id=2 [master pointer (3)]
      ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
      ⎜ ↳ VMware VMware Virtual USB Mouse id=7 [slave pointer (2)]
      ⎜ ↳ VMware VMware Virtual USB Mouse id=8 [slave pointer (2)]
      ⎜ ↳ VirtualPS/2 VMware VMMouse id=10 [slave pointer (2)]
      ⎜ ↳ VirtualPS/2 VMware VMMouse id=11 [slave pointer (2)]


      Running xinput test-xi2 --root details events for all four buttons 1, 8, 9, and 3 (from the above picture):



      EVENT type 5 (ButtonRelease)
      device: 8 (8)
      detail: 1
      EVENT type 5 (ButtonRelease)
      device: 8 (8)
      detail: 8
      EVENT type 5 (ButtonRelease)
      device: 8 (8)
      detail: 9
      EVENT type 5 (ButtonRelease)
      device: 8 (8)
      detail: 3


      This shows that the button click events are being passed from the host to the guest successfully using device 8. Of slight concern is that there are two mice assigned the same name, but having different ids:



      ⎜ ↳ VMware VMware Virtual USB Mouse id=7 [slave pointer (2)]
      ⎜ ↳ VMware VMware Virtual USB Mouse id=8 [slave pointer (2)]


      Problem



      Scrolling by holding down the small right button (9) while moving the trackball fails. Running xinput test-xi2 --root shows the failure:



      EVENT type 4 (ButtonPress)
      device: 8 (8)
      detail: 9
      EVENT type 1 (DeviceChanged)
      device: 2 (7)
      reason: SlaveSwitch
      Reporting 7 classes:
      Class originated from: 7. Type: XIButtonClass
      Buttons supported: 11
      X Error of failed request: BadAtom (invalid Atom parameter)
      Major opcode of failed request: 17 (X_GetAtomName)
      Atom id in failed request: 0x282
      Serial number of failed request: 34
      Current serial number in output stream: 34
      Button labels: "Button Left" "Button Middle" "Button Right"


      The file .../xorg.conf.d/50-trackball.conf configures X11 as follows:



      Section "InputClass"
      Identifier "Logitech Marble Mouse"
      MatchIsPointer "true"
      #MatchProduct "Mouse"
      #MatchVendor "VMWare"
      Driver "libinput"
      Option "ScrollMethod" "button"
      Option "ScrollButton" "9"
      Option "MiddleEmulation" "true"
      Option "HorizontalScrolling" "false"
      Option "ButtonMapping" "1 2 3 4 5 6 7 9 8"
      EndSection


      The output from xinput list-props 7 shows:



      Device 'VMware VMware Virtual USB Mouse':
      Device Enabled (124): 1
      Coordinate Transformation Matrix (126): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
      libinput Calibration Matrix (261): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
      libinput Calibration Matrix Default (262): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
      libinput Natural Scrolling Enabled (263): 0
      libinput Natural Scrolling Enabled Default (264): 0
      libinput Send Events Modes Available (244): 1, 0
      libinput Send Events Mode Enabled (245): 0, 0
      libinput Send Events Mode Enabled Default (246): 0, 0
      libinput Left Handed Enabled (265): 0
      libinput Left Handed Enabled Default (266): 0
      libinput Scroll Methods Available (267): 0, 0, 1
      libinput Scroll Method Enabled (268): 0, 0, 1
      libinput Scroll Method Enabled Default (269): 0, 0, 1
      libinput Button Scrolling Button (270): 9
      libinput Button Scrolling Button Default (271): 2
      libinput Middle Emulation Enabled (272): 0
      libinput Middle Emulation Enabled Default (273): 0
      Device Node (247): "/dev/input/event5"
      Device Product ID (248): 3599, 3
      libinput Drag Lock Buttons (274): <no items>
      libinput Horizontal Scroll Enabled (275): 1


      Question



      What needs to change in the X Configuration File so that the small right button when held allows vertical scrolling using the trackball in an X11 session that's running inside VMWare?



      Related



      Related links include:



      • https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse

      • https://help.ubuntu.com/community/Logitech_Marblemouse_USB

      • https://unix.stackexchange.com/questions/58117/determine-xinput-device-manufacturer-and-model

      • https://www.x.org/releases/current/doc/man/man5/xorg.conf.5.xhtml

      • https://www.mankier.com/4/libinput

      • http://www.russet.org.uk/blog/3156

      Additional Details



      Some extra information about attempts to resolve the problem and ways that work but are less than ideal.



      Disconnect from Host



      Note that it is possible to disconnect the mouse from the host OS by using the Connect option, which then permits scrolling as desired. The downside is that this makes switching between the guest and host systems a bit awkward in that it takes several steps to switch between systems. Ideally, the guest OS would use a single mouse click to give it focus, scrolling would "just work", then Ctrl+Alt to release control back to the host OS.



      Disconnect from Host



      Changing Driver



      Changing the driver from libinput to evdev does not work, such as:



       Driver "evdev"


      xinput



      Even though VMWare lists two entries for the USB Mouse, id=8 does not appear to have any effect; whereas, id=7 can be disabled using:



      xinput set-prop 7 124 0


      Where 7 is the mouse ID, 124 is the Device Enabled setting, and 0 indicates false. This disables the pointer altogether; changing 0 to 1 re-enables the pointer.



      Alternative Solutions



      Configuring the trackball from the command-line is an acceptable solution, though changing 50-trackball.conf is preferable.







      xorg mouse vmware logitech






      share|improve this question
















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 19 at 15:15







      Dave Jarvis

















      asked Jul 22 at 17:50









      Dave JarvisDave Jarvis

      5781 gold badge7 silver badges23 bronze badges




      5781 gold badge7 silver badges23 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          0


















          Firstly, when entries are duplicated in xinput users appear uninterested in removing duplicates. They seem more interested in applying configuration changes to both first and duplicate entries in xinput with a script like this. Although you are only changing device ID 7 it could be beneficial to make the same changes to device ID 8.



          The bad atom error message seems to be related to SSH:




          • Why do remote programs crash with an X Error of failed request: BadAtom?. VMware does have a configuration option for X11Forwarding to fix this too: Solved: No able to perform vmrun via ssh

          I found the following VMWare links to research. None provided a definitive answer but the questions and answers might provide clues:




          • Workstation 14 - no Logitech mouse wheel in guest - Solution was to disable Logitech smooth scrolling


          • Cannot scroll in VMs with trackpad - Not solved but help article to read was recommended


          • Horizontal scrolling with a trackball mouse? - Not answered


          • Mouse click partially works!!! - Not answered


          • Mouse Click Release - One user found removing Kensington driver and using generic driver solved issue.





          share|improve this answer


























          • Thank you, that's a lot of information! Disabling Logitech smooth scrolling isn't an option because it would mean installing the Logitech driver, which I don't do because it prevents configuring the small mouse buttons for both Back/Forward and scrolling (see the TrackballScroll alternative). Kensington and Logitech are different beasts. The scrolling event appears to make it into the VM, but configuring X11 to translate the trackball events into window scrolling events appears to be the problem.

            – Dave Jarvis
            Aug 15 at 15:39













          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1160226%2fconfigure-scrolling-using-logitech-trackball-on-vmware%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown


























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0


















          Firstly, when entries are duplicated in xinput users appear uninterested in removing duplicates. They seem more interested in applying configuration changes to both first and duplicate entries in xinput with a script like this. Although you are only changing device ID 7 it could be beneficial to make the same changes to device ID 8.



          The bad atom error message seems to be related to SSH:




          • Why do remote programs crash with an X Error of failed request: BadAtom?. VMware does have a configuration option for X11Forwarding to fix this too: Solved: No able to perform vmrun via ssh

          I found the following VMWare links to research. None provided a definitive answer but the questions and answers might provide clues:




          • Workstation 14 - no Logitech mouse wheel in guest - Solution was to disable Logitech smooth scrolling


          • Cannot scroll in VMs with trackpad - Not solved but help article to read was recommended


          • Horizontal scrolling with a trackball mouse? - Not answered


          • Mouse click partially works!!! - Not answered


          • Mouse Click Release - One user found removing Kensington driver and using generic driver solved issue.





          share|improve this answer


























          • Thank you, that's a lot of information! Disabling Logitech smooth scrolling isn't an option because it would mean installing the Logitech driver, which I don't do because it prevents configuring the small mouse buttons for both Back/Forward and scrolling (see the TrackballScroll alternative). Kensington and Logitech are different beasts. The scrolling event appears to make it into the VM, but configuring X11 to translate the trackball events into window scrolling events appears to be the problem.

            – Dave Jarvis
            Aug 15 at 15:39
















          0


















          Firstly, when entries are duplicated in xinput users appear uninterested in removing duplicates. They seem more interested in applying configuration changes to both first and duplicate entries in xinput with a script like this. Although you are only changing device ID 7 it could be beneficial to make the same changes to device ID 8.



          The bad atom error message seems to be related to SSH:




          • Why do remote programs crash with an X Error of failed request: BadAtom?. VMware does have a configuration option for X11Forwarding to fix this too: Solved: No able to perform vmrun via ssh

          I found the following VMWare links to research. None provided a definitive answer but the questions and answers might provide clues:




          • Workstation 14 - no Logitech mouse wheel in guest - Solution was to disable Logitech smooth scrolling


          • Cannot scroll in VMs with trackpad - Not solved but help article to read was recommended


          • Horizontal scrolling with a trackball mouse? - Not answered


          • Mouse click partially works!!! - Not answered


          • Mouse Click Release - One user found removing Kensington driver and using generic driver solved issue.





          share|improve this answer


























          • Thank you, that's a lot of information! Disabling Logitech smooth scrolling isn't an option because it would mean installing the Logitech driver, which I don't do because it prevents configuring the small mouse buttons for both Back/Forward and scrolling (see the TrackballScroll alternative). Kensington and Logitech are different beasts. The scrolling event appears to make it into the VM, but configuring X11 to translate the trackball events into window scrolling events appears to be the problem.

            – Dave Jarvis
            Aug 15 at 15:39














          0














          0










          0









          Firstly, when entries are duplicated in xinput users appear uninterested in removing duplicates. They seem more interested in applying configuration changes to both first and duplicate entries in xinput with a script like this. Although you are only changing device ID 7 it could be beneficial to make the same changes to device ID 8.



          The bad atom error message seems to be related to SSH:




          • Why do remote programs crash with an X Error of failed request: BadAtom?. VMware does have a configuration option for X11Forwarding to fix this too: Solved: No able to perform vmrun via ssh

          I found the following VMWare links to research. None provided a definitive answer but the questions and answers might provide clues:




          • Workstation 14 - no Logitech mouse wheel in guest - Solution was to disable Logitech smooth scrolling


          • Cannot scroll in VMs with trackpad - Not solved but help article to read was recommended


          • Horizontal scrolling with a trackball mouse? - Not answered


          • Mouse click partially works!!! - Not answered


          • Mouse Click Release - One user found removing Kensington driver and using generic driver solved issue.





          share|improve this answer














          Firstly, when entries are duplicated in xinput users appear uninterested in removing duplicates. They seem more interested in applying configuration changes to both first and duplicate entries in xinput with a script like this. Although you are only changing device ID 7 it could be beneficial to make the same changes to device ID 8.



          The bad atom error message seems to be related to SSH:




          • Why do remote programs crash with an X Error of failed request: BadAtom?. VMware does have a configuration option for X11Forwarding to fix this too: Solved: No able to perform vmrun via ssh

          I found the following VMWare links to research. None provided a definitive answer but the questions and answers might provide clues:




          • Workstation 14 - no Logitech mouse wheel in guest - Solution was to disable Logitech smooth scrolling


          • Cannot scroll in VMs with trackpad - Not solved but help article to read was recommended


          • Horizontal scrolling with a trackball mouse? - Not answered


          • Mouse click partially works!!! - Not answered


          • Mouse Click Release - One user found removing Kensington driver and using generic driver solved issue.






          share|improve this answer













          share|improve this answer




          share|improve this answer










          answered Aug 15 at 11:30









          WinEunuuchs2UnixWinEunuuchs2Unix

          60.7k18 gold badges123 silver badges237 bronze badges




          60.7k18 gold badges123 silver badges237 bronze badges















          • Thank you, that's a lot of information! Disabling Logitech smooth scrolling isn't an option because it would mean installing the Logitech driver, which I don't do because it prevents configuring the small mouse buttons for both Back/Forward and scrolling (see the TrackballScroll alternative). Kensington and Logitech are different beasts. The scrolling event appears to make it into the VM, but configuring X11 to translate the trackball events into window scrolling events appears to be the problem.

            – Dave Jarvis
            Aug 15 at 15:39


















          • Thank you, that's a lot of information! Disabling Logitech smooth scrolling isn't an option because it would mean installing the Logitech driver, which I don't do because it prevents configuring the small mouse buttons for both Back/Forward and scrolling (see the TrackballScroll alternative). Kensington and Logitech are different beasts. The scrolling event appears to make it into the VM, but configuring X11 to translate the trackball events into window scrolling events appears to be the problem.

            – Dave Jarvis
            Aug 15 at 15:39

















          Thank you, that's a lot of information! Disabling Logitech smooth scrolling isn't an option because it would mean installing the Logitech driver, which I don't do because it prevents configuring the small mouse buttons for both Back/Forward and scrolling (see the TrackballScroll alternative). Kensington and Logitech are different beasts. The scrolling event appears to make it into the VM, but configuring X11 to translate the trackball events into window scrolling events appears to be the problem.

          – Dave Jarvis
          Aug 15 at 15:39






          Thank you, that's a lot of information! Disabling Logitech smooth scrolling isn't an option because it would mean installing the Logitech driver, which I don't do because it prevents configuring the small mouse buttons for both Back/Forward and scrolling (see the TrackballScroll alternative). Kensington and Logitech are different beasts. The scrolling event appears to make it into the VM, but configuring X11 to translate the trackball events into window scrolling events appears to be the problem.

          – Dave Jarvis
          Aug 15 at 15:39



















          draft saved

          draft discarded















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1160226%2fconfigure-scrolling-using-logitech-trackball-on-vmware%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown









          Popular posts from this blog

          Tamil (spriik) Luke uk diar | Nawigatjuun

          Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

          Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?