net-misc/socat-1.7.4.4::gentoo USE="bindist ipv6 readline ssl -tcpd" app-emulation/qemu-8.0.2::gentoo USE="aio bzip2 doc fdt fuse gnutls ncurses nfs nls pin-upstream-blobs seccomp static-user usb usbredir vhost-net xattr -accessibility -alsa -bpf -capstone -curl -debug -filecaps -glusterfs -gtk -infiniband -io-uring -iscsi -jack -jemalloc -jpeg -lzo -multipath -numa -opengl -oss -pam -plugins -png -pulseaudio -python -rbd -sasl -sdl -sdl-image (-selinux) -slirp -smartcard -snappy -spice -ssh -systemtap -test -udev -vde -virgl -virtfs -vnc -vte -xen -zstd" PYTHON_TARGETS="python3_10 -python3_11" QEMU_SOFTMMU_TARGETS="aarch64 arm x86_64 -alpha -avr -cris -hppa -i386 -loongarch64 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -nios2 -or1k -ppc -ppc64 -riscv32 -riscv64 -rx -s390x -sh4 -sh4eb -sparc -sparc64 -tricore -xtensa -xtensaeb" QEMU_USER_TARGETS="aarch64 arm x86_64 -aarch64_be -alpha -armeb -cris -hexagon -hppa -i386 -loongarch64 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -mipsn32 -mipsn32el -nios2 -or1k -ppc -ppc64 -ppc64le -riscv32 -riscv64 -s390x -sh4 -sh4eb -sparc -sparc32plus -sparc64 -xtensa -xtensaeb" app-emulation/qemu-init-scripts-0.3.0-r1::gentoo # rc-service kvm.testvm stop Does not send the ACPI event 'button/power PBTN 00000080 00000000' when using socat. The init script uses the command: echo system_powerdown | socat -u - UNIX-CONNECT:/run/vm/kvm.testvm.monitor and a running acpi_listen in the vm does not detect the event. Manually running [removing the -u option (unidirectional)]: echo system_powerdown | socat - UNIX-CONNECT:/run/vm/kvm.testvm.monitor does send the ACPI button event which the vm's acpi_listen detects.