by ghostpepper · 6y ago · 0 comments
I also wonder what the experience is like using Linux on a Mac trackpad. Is it closer to the experience on MacOS or closer to the experience with Linux on commodity hardware? If the latter, maybe it makes sense to improve that first.
Maybe not though, if the synergy between hardware and software is the "secret sauce" that's missing then maybe optimizing the mac trackpad for Linux would be wasted effort.
If you don't like the scrolling in UWP it probably has more to do with it's acceleration graph than its capability. That, and macOS seem to just make their UI animations way smoother than anything I've seen on Windows and Linux. The Windows desktop switching and "expose" animation kills me every time it janks.
I don't know what's stopping Microsoft from porting this scrolling behavior to Win32, and to be fair it seem like they tried (scrolling in Explorer is noticeably different on a precision touchpad even though not as smooth) but probably they're held back by backward compatibility or that it's too much of an effort to make that pig fly.
I have run Linux on my old MBP 2015 though, and the trackpad is usable but as soon as you boot macOS again you realise how crap it was on Linux. Tweaking accels/speeds can bridge the gap a little but it's still not nearly as good.
I have used Linux (fedora-xfce) inside VMWare Fusion on Mac laptops on a daily basis for at least the last decade, and also have run Linux on Thinkpad and System76 hardware from time to time.
In general I find the trackpad experience of Linux-inside-VMWare-on-Mac to be basically identical to that directly on Mac, and much (much) better than either Linux on Thinkpad or on System 76.
There is some oddness in the VMWare setup- in the VMWare parent process, over time, RAM usage grows, and a slight lag is introduced into the UI experience inside Linux (both trackpad and keyboard).
When this gets too noticeable, I kill the VMWare parent (which does not kill the actual VMs), then restart it. The lag is eliminated, the memory leak is cleaned up, and the child VMs are not impacted.
I imagine the abstracted event flow to be:
HW -> Mac driver -> VMWare user space UI loop -> Linux generic driver -> Linux userspace
while the Linux only event flow would be
HW -> Linux driver -> Linux userspace
While there is some jankiness in VMWare's delivery of events to the generic Linux driver that the kernel uses for the VMWare "hardware", the work happening in the Mac driver is the magic that delivers great experience.
As for mouse movement, like you're saying it's pretty good in a VM when it's HW -> macOS -> sending X and Y values to the VM and guest OS.
Windows on hardware, even using Apple's drivers, is a bit "off." I lose drags, moving around is odd, and I feel like I have to be more deliberate with clicking. I never seem to have those issues when using Windows inside a VM.
This might be https://gitlab.freedesktop.org/libinput/libinput/-/issues/34... or https://gitlab.freedesktop.org/libinput/libinput/-/issues/28.... The latter is easy to fix by commenting out hysteresis activation if you know your hardware doesn't need hysteresis. A proper fix would be to improve the wobble detection but neither me nor Peter apparently have time to work on that. :-/
Very annoying "feature" and the worst part is that it can not be disabled nor there are any plans on putting it behind a toggle flag, see https://gitlab.freedesktop.org/libinput/libinput/-/issues/19...
Luckily it can easily be patched on your own.
I miss some of the multi-touch features (three-finger-swipe-up) but it's pretty much identical excepting those. When I close the lid and plug in to a monitor, you can't tell much of a difference.
I ran Lubuntu on a 2012 macbook pro for a couple years and it was much closer to an "Apple" experience compared to my current setup of Pop_OS on a P52S Thinkpad.