Windows mouse software not see mouse via wine

I run Pulsar mouse software via "Bottles" and software not see my mouse pluged. How I can fix this?
23 Replies
matiko13
matiko13OP•2w ago
No description
HikariKnight
HikariKnight•7d ago
software that tries to interact with hardware directly almost never work through wine, this is expected
matiko13
matiko13OP•7d ago
Oh. On another discord someone used bootles and for him works. He have other linux distro.
HikariKnight
HikariKnight•7d ago
they are either using an unofficial bottles system package or they have done something with flatseal for bottles to give it the right permissions or done some other settings to get it to work. my experience has always been to not bother with tools that try to interact directly with hardware.
matiko13
matiko13OP•7d ago
Oh. So in this case only VM for editing mouse. via this software 😦 .
HikariKnight
HikariKnight•7d ago
its how i do it VM with usb passthrough, worst case usb controller passthrough with pci passthrough (check if you have a usb controller in its own iommu group before doing this, use it only if you absolutely must)
matiko13
matiko13OP•7d ago
"(check if you have a usb controller in its own iommu group before doing this, use it only if you absolutely must) " --> how check this? I using this:
matiko13
matiko13OP•7d ago
No description
matiko13
matiko13OP•7d ago
No description
HikariKnight
HikariKnight•7d ago
dont need to bother if just normal usb passthrough works so check that first
matiko13
matiko13OP•7d ago
This works
No description
HikariKnight
HikariKnight•7d ago
some usb devices do funny things when you plug them in and require the whole controller yeah then you dont need to think about the usb controller if you can use that to change the mouse in the VM
matiko13
matiko13OP•7d ago
And I don't know how disable this to using mouse again in my PC
HikariKnight
HikariKnight•7d ago
using the software
matiko13
matiko13OP•7d ago
I can't use mouse in software. Mouse stay in VM.
HikariKnight
HikariKnight•7d ago
shut down the vm when youre done
matiko13
matiko13OP•7d ago
I prefer save. So in this case I just shut down like normal windows.
matiko13
matiko13OP•7d ago
No description
HikariKnight
HikariKnight•7d ago
if you absolutely need save then you need to ssh into your host and manually disconnect the mouse
matiko13
matiko13OP•7d ago
And this is stay
No description
matiko13
matiko13OP•7d ago
Good I have 2nd mouse to plug
HikariKnight
HikariKnight•7d ago
here is a script that will let you do that
#!/usr/bin/env bash
devices=(1234:5678 9ABC:DEFG)
vmname=$(virsh list | sed -n '3p' | sed -nr 's/ *[0-9]+ +(.*) +running/\1/p')

attach_device() {
vmname=$1
device=(${2//:/ })
action=$3
xml_name=/tmp/device-${device[0]}:${device[1]}.xml

echo "<hostdev mode='subsystem' type='usb'>" > $xml_name
echo " <source>" >> $xml_name
echo " <vendor id='0x${device[0]}'/>" >> $xml_name
echo " <product id='0x${device[1]}'/>" >> $xml_name
echo " </source>" >> $xml_name
echo "</hostdev>" >> $xml_name

virsh $action-device $vmname $xml_name
}

if [ "$1" == "attach" ];
then
for dev in "${devices[@]}"
do
attach_device "$vmname" $dev attach
done
else
for dev in "${devices[@]}"
do
attach_device "$vmname" $dev detach
done
fi
#!/usr/bin/env bash
devices=(1234:5678 9ABC:DEFG)
vmname=$(virsh list | sed -n '3p' | sed -nr 's/ *[0-9]+ +(.*) +running/\1/p')

attach_device() {
vmname=$1
device=(${2//:/ })
action=$3
xml_name=/tmp/device-${device[0]}:${device[1]}.xml

echo "<hostdev mode='subsystem' type='usb'>" > $xml_name
echo " <source>" >> $xml_name
echo " <vendor id='0x${device[0]}'/>" >> $xml_name
echo " <product id='0x${device[1]}'/>" >> $xml_name
echo " </source>" >> $xml_name
echo "</hostdev>" >> $xml_name

virsh $action-device $vmname $xml_name
}

if [ "$1" == "attach" ];
then
for dev in "${devices[@]}"
do
attach_device "$vmname" $dev attach
done
else
for dev in "${devices[@]}"
do
attach_device "$vmname" $dev detach
done
fi
just add the device id for the mouse into the devices array, save the file and execute it with sudo sudo vm-attach detach you can also do sudo vm-attach attach to attach the moude then through ssh but you need to SSH from the guest into the host you can setup that yourself
matiko13
matiko13OP•7d ago
I think I will stay with default.
Want results from more Discord servers?
Add your server