Skip to content

Mouse fix - fixes No mouse control when trying to run preinstalled catalina #766 #819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sickcodes
Copy link
Owner

As per @gilelias comment #766 (comment)

I introduced a bug with mouse on old versions by switching

-usb -device usb-kbd -device usb-tablet
to
-device qemu-xhci,id=xhci -device usb-kbd,bus=xhci.0 -device usb-tablet,bus=xhci.0

This PR reverts the Dockerfile to use in the launch script:

    && tee -a Launch.sh <<< '${XHCI_STRING:--usb -device usb-kbd -device usb-tablet} \' \

And adds runtime option for newer machines:

-e XHCI_STRING="-device qemu-xhci,id=xhci -device usb-kbd,bus=xhci.0 -device usb-tablet,bus=xhci.0"

Untested.

…w images use runtime option `-e XHCI_STRING="-device qemu-xhci,id=xhci -device usb-kbd,bus=xhci.0 -device usb-tablet,bus=xhci.0"`
@@ -202,8 +202,7 @@ RUN touch Launch.sh \
&& tee -a Launch.sh <<< '-cpu ${CPU:-Penryn},${CPUID_FLAGS:-vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,}${BOOT_ARGS} \' \
&& tee -a Launch.sh <<< '-machine q35,${KVM-"accel=kvm:tcg"} \' \
&& tee -a Launch.sh <<< '-smp ${CPU_STRING:-${SMP:-4},cores=${CORES:-4}} \' \
&& tee -a Launch.sh <<< '-device qemu-xhci,id=xhci \' \
&& tee -a Launch.sh <<< '-device usb-kbd,bus=xhci.0 -device usb-tablet,bus=xhci.0 \' \
&& tee -a Launch.sh <<< '${XHCI_STRING:--usb -device usb-kbd -device usb-tablet} \' \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only worked for me this way

Suggested change
&& tee -a Launch.sh <<< '${XHCI_STRING:--usb -device usb-kbd -device usb-tablet} \' \
&& tee -a Launch.sh <<< '-usb -device usb-kbd -device usb-tablet \' \
Machine information
Linux pop-os 6.12.10-76061203-generic #202412060638~1743109366~22.04~1fce33b SMP PREEMPT_DYNAMIC Thu M x86_64 x86_64 x86_64 GNU/Linux
:1
1
NAME="Pop!_OS"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
Sist. Arq.      Tam. Usado Disp. Uso% Montado em
/dev/nvme0n1p1  219G   58G  151G  28% /
QEMU emulator version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6.26)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 8.0.0
               total       usada       livre    compart.  buff/cache  disponível
Mem.:          7,6Gi       3,3Gi       2,0Gi       356Mi       2,3Gi       3,4Gi
Swap:          7,7Gi       2,6Gi       5,1Gi
4
8
crw-rw----+ 1 root kvm 10, 232 mai 14 10:17 /dev/kvm
total 912K
drwxrwxrwt  2 root       root       4,0K mai 14 08:03 .
drwxrwxrwt 28 root       root       904K mai 14 10:13 ..
srwxrwxrwx  1 jlucfarias jlucfarias    0 mai 14 08:03 X1
root        1422  1.8  0.6 3588068 54256 ?       SNsl 08:01   2:38 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
jlucfar+   31798  0.0  0.0  19036  2396 pts/2    S+   10:20   0:00 grep --color=auto dockerd
Run command
docker run -it --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" -e SHORTNAME=high-sierra  -e RAM=6 docker-osx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants