Scroll Sensitivity Issue
- Dominant language
- Swift
- Stars
- 35.5k
- Forks
- 1.8k
- Avg merge
- 5d 5h
- Merged PRs (30d)
- 7
Description
**Describe the issue**
Hi everyone! So I installed Debian (11), Ubuntu (20) and Windows (11) in my MacBook Air M1. All OSs are running fine, and they are all using the ARM64 architecture.
But there is a common issue I'm facing in all three guests: there must be some problem for the UTM to send over the mouse/trackpad scrolling inputs to the guests OSs. In sum, while in any of these guests, I have to slide my fingers in the built in trackpad for some distance before the page (be it a system page or any app) "jumps" either down or up, left or right. I then tried out using my Magic Mouse, same issue... I also have a regular bluetooth mouse with the traditional wheel on it. When I connected it, I could assert having to scroll about 10-12 wheel "clicks" for the guest system to input what should be one wheel "click".
I have had the same issue once with VMWare Fusion, in there I could fix the issue adding these bellow lines in the .vmx file of each guest OS:
```
mouse.vusb.enable = "TRUE"
mouse.vusb.useBasicMouse = "FALSE"
mks.mouse.pixelScrollSensitivity = "1"
```
I tried searching online for some solution on UTM, but haven't had any luck so far, the closest I got was this thread [https://github.com/utmapp/UTM/issues/2400](url), but it didn't quite addresses my issues here.
**Configuration**
* UTM Version: 2.4.1 (40)
* OS Version: macOs Monterey 12.0.1 (host)
* Intel or Apple Silicon? Apple Silicon
Debug log
I'm not really sure if this log is going to help, basically I just enabled Debug Log in my Debian VM, turned it on, opened Firefox, scrolled down a bit, verified the occurrence of the issue, powered off the VM and exported the log, it follows bellow:
```
Running: -L /Applications/UTM.app/Contents/Resources/qemu -S -qmp tcp:127.0.0.1:4000,server,nowait -nodefaults -vga none -spice "unix=on,addr=/Users/gabriel/Library/Group Containers/WDNLXAD4W8.com.utmapp.UTM/E69A7C1C-F7ED-4EC2-89C0-D1C735D9509B.spice,disable-ticketing=on,image-compression=off,playback-compression=off,streaming-video=off,gl=on" -device virtio-ramfb-gl -cpu cortex-a72 -smp cpus=4,sockets=1,cores=4,threads=1 -machine virt,highmem=off -accel hvf -accel tcg,thread=multi,tb-size=1024 -drive if=pflash,format=raw,unit=0,file=/Applications/UTM.app/Contents/Resources/qemu/edk2-aarch64-code.fd,readonly=on -drive if=pflash,format=raw,unit=1,file=/Users/gabriel/Library/Containers/com.utmapp.UTM/Data/Documents/Debian.utm/Images/efi_vars.fd -boot menu=on -m 4096 -device intel-hda -device hda-duplex -name Debian -device qemu-xhci,id=usb-bus -device usb-tablet,bus=usb-bus.0 -device usb-mouse,bus=usb-bus.0 -device usb-kbd,bus=usb-bus.0 -device ich9-usb-ehci1,id=usb-controller-0 -device ich9-usb-uhci1,masterbus=usb-controller-0.0,firstport=0,multifunction=on -device ich9-usb-uhci2,masterbus=usb-controller-0.0,firstport=2,multifunction=on -device ich9-usb-uhci3,masterbus=usb-controller-0.0,firstport=4,multifunction=on -chardev spicevmc,name=usbredir,id=usbredirchardev0 -device usb-redir,chardev=usbredirchardev0,id=usbredirdev0,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev1 -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev2 -device usb-redir,chardev=usbredirchardev2,id=usbredirdev2,bus=usb-controller-0.0 -device nvme,drive=drive0,serial=drive0,bootindex=0 -drive if=none,media=disk,id=drive0,file=/Users/gabriel/Library/Containers/com.utmapp.UTM/Data/Documents/Debian.utm/Images/disk-0.qcow2,cache=writethrough -device usb-storage,drive=drive1,removable=true,bootindex=1,bus=usb-bus.0 -drive if=none,media=cdrom,id=drive1 -device virtio-net-pci,mac=8A:08:55:F6:6C:B5,netdev=net0 -netdev vmnet-macos,mode=shared,id=net0 -device virtio-serial -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -chardev spicevmc,id=vdagent,debug=0,name=vdagent -device virtserialport,chardev=charchannel1,id=channel1,name=org.spice-space.webdav.0 -chardev spiceport,name=org.spice-space.webdav.0,id=charchannel1 -uuid E69A7C1C-F7ED-4EC2-89C0-D1C735D9509B -rtc base=localtime
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: info: Started vmnet interface with configuration:
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: info: MTU: 1500
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: info: Max packet size: 1514
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: info: MAC: 4a:34:43:ca:d5:39
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: info: DHCP IPv4 start: 192.168.64.1
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: info: DHCP IPv4 end: 192.168.64.254
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: info: IPv4 subnet mask: 255.255.255.0
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: info: UUID: 1AF6D5C3-23C9-497E-8B53-DC7EC3B18240
qemu-aarch64-softmmu: warning: Spice: playback:0 (0x1558d0120): setsockopt failed, Operation not supported on socket
qemu-aarch64-softmmu: warning: Spice: record:0 (0x1558d01d0): setsockopt failed, Operation not supported on socket
gl_version 30 - es profile enabled
WARNING: running without ARB/KHR robustness in place may crash
vrend_renderer_fill_caps: Entering with stale GL error: 1280
GLSL feature level 130
```
VM Config
I'll be attaching bellow the config.plist of all my guest OSs.
**Debian 11**
```xml
ConfigurationVersion
2
Debug
DebugLog
IgnoreAllConfiguration
Display
ConsoleFont
Menlo
ConsoleFontSize
12
ConsoleOnly
ConsoleTheme
Default
DisplayCard
virtio-ramfb-gl
DisplayDownscaler
linear
DisplayFitScreen
DisplayRetina
DisplayUpscaler
linear
Drives
DriveName
drive0
ImagePath
disk-0.qcow2
ImageType
disk
InterfaceType
nvme
DriveName
drive1
ImageType
cd
InterfaceType
usb
Removable
DriveName
408A57DB-5FC0-47A1-B8C4-1B6FFAD9AE34
ImagePath
efi_vars.fd
ImageType
none
InterfaceType
Info
Icon
debian
IconCustom
Input
InputLegacy
Networking
NetworkCard
virtio-net-pci
NetworkCardMAC
8A:08:55:F6:6C:B5
NetworkMode
shared
Printing
Sharing
ClipboardSharing
DirectorySharing
Usb3Support
UsbRedirectMax
3
Sound
SoundCard
intel-hda
SoundEnabled
System
AddArgs
Architecture
aarch64
BootDevice
BootUefi
CPU
cortex-a72
CPUCount
4
ForceMulticore
JITCacheSize
0
MachineProperties
highmem=off
Memory
4096
SystemUUID
E69A7C1C-F7ED-4EC2-89C0-D1C735D9509B
Target
virt
```
____
**Ubuntu 20**
```xml
ConfigurationVersion
2
Debug
Display
ConsoleFont
Menlo
ConsoleFontSize
12
ConsoleOnly
ConsoleTheme
Default
DisplayCard
virtio-ramfb-gl
DisplayDownscaler
linear
DisplayFitScreen
DisplayUpscaler
linear
Drives
DriveName
drive0
ImagePath
disk-0.qcow2
ImageType
disk
InterfaceType
nvme
DriveName
drive1
ImageType
cd
InterfaceType
usb
Removable
DriveName
EEED43A1-440B-4977-BFDE-C15863D644C1
ImagePath
efi_vars.fd
ImageType
none
InterfaceType
Info
Icon
ubuntu
IconCustom
Input
InputInvertScroll
InputLegacy
Networking
NetworkCard
virtio-net-pci
NetworkCardMAC
6E:8A:11:ED:84:C9
NetworkMode
shared
Printing
Sharing
ClipboardSharing
DirectorySharing
Usb3Support
UsbRedirectMax
3
Sound
SoundCard
intel-hda
SoundEnabled
System
Architecture
aarch64
BootDevice
BootUefi
CPU
cortex-a72
CPUCount
4
ForceMulticore
JITCacheSize
0
MachineProperties
highmem=off
Memory
4096
SystemUUID
9F3B496B-D294-44FC-AADF-5FDC736BB1FC
Target
virt
```
____
**Windows 11**
```xml
ConfigurationVersion
2
Debug
Display
ConsoleFont
Menlo
ConsoleFontSize
12
ConsoleOnly
ConsoleTheme
Default
DisplayCard
virtio-ramfb-gl
DisplayDownscaler
linear
DisplayFitScreen
DisplayRetina
DisplayUpscaler
linear
Drives
DriveName
drive0
ImagePath
disk-0.qcow2
ImageType
disk
InterfaceType
nvme
DriveName
drive1
ImageType
cd
InterfaceType
none
Removable
DriveName
7B3E7C43-91B4-4CCB-97F1-52656B41D524
ImagePath
efi_vars.fd
ImageType
none
InterfaceType
Info
Icon
windows
IconCustom
Input
InputInvertScroll
InputLegacy
Networking
NetworkCard
virtio-net-pci
NetworkCardMAC
EA:0B:EA:66:FF:A4
NetworkMode
shared
Printing
Sharing
ClipboardSharing
DirectorySharing
Usb3Support
UsbRedirectMax
3
Sound
SoundCard
intel-hda
SoundEnabled
System
AddArgs
-device
usb-storage,drive=drive1,removable=true,bootindex=1,bus=usb-bus.0
Architecture
aarch64
BootDevice
BootUefi
CPU
default
CPUCount
4
ForceMulticore
JITCacheSize
0
MachineProperties
highmem=off,virtualization=on
Memory
4096
SystemUUID
751BB571-C919-4740-ADF6-EDB49785B02D
Target
virt
```
Contributor guide
Research direction
The payload names no source files or tests. Reproduce the issue with the listed Debian, Ubuntu, and Windows guests, then trace the generated QEMU input configuration, especially the usb-tablet and usb-mouse devices; done means trackpad and mouse-wheel scrolling responds at a normal sensitivity across the affected guests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, macos
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100