mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-08 11:33:21 +00:00
enable usb2 controller by default
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
daca220d29
commit
42869ac07d
@ -2192,23 +2192,11 @@ sub config_to_command {
|
|||||||
|
|
||||||
push @$cmd, '-daemonize';
|
push @$cmd, '-daemonize';
|
||||||
|
|
||||||
my $use_usb2 = 0;
|
push @$devices, '-readconfig', '/usr/share/qemu-server/pve-usb.cfg';
|
||||||
for (my $i = 0; $i < $MAX_USB_DEVICES; $i++) {
|
|
||||||
next if !$conf->{"usb$i"};
|
|
||||||
$use_usb2 = 1;
|
|
||||||
}
|
|
||||||
# include usb device config
|
|
||||||
push @$devices, '-readconfig', '/usr/share/qemu-server/pve-usb.cfg' if $use_usb2;
|
|
||||||
|
|
||||||
# enable absolute mouse coordinates (needed by vnc)
|
# enable absolute mouse coordinates (needed by vnc)
|
||||||
my $tablet = defined($conf->{tablet}) ? $conf->{tablet} : $defaults->{tablet};
|
my $tablet = defined($conf->{tablet}) ? $conf->{tablet} : $defaults->{tablet};
|
||||||
if ($tablet) {
|
push @$devices, '-device', 'usb-tablet,id=tablet,bus=ehci.0,port=6' if $tablet;
|
||||||
if ($use_usb2) {
|
|
||||||
push @$devices, '-device', 'usb-tablet,bus=ehci.0,port=6';
|
|
||||||
} else {
|
|
||||||
push @$devices, '-usbdevice', 'tablet';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# host pci devices
|
# host pci devices
|
||||||
for (my $i = 0; $i < $MAX_HOSTPCI_DEVICES; $i++) {
|
for (my $i = 0; $i < $MAX_HOSTPCI_DEVICES; $i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user