Hi,
I'm using modeswitch with two USB MIMO Monzter monitors (v: 0x17e9 p: 0x0288). The usb-modeswitch is able to switch only one device, since the vendor-, product ID and the device class remains the same after switching device.
Here is a workaround for usb_modeswitch.c to allow the selection of the device to switch:
Code:
87c87
< char NeedResponse=0, NoDriverLoading=0, InquireDevice=1, sysmode=0;
---
> char NeedResponse=0, NoDriverLoading=0, InquireDevice=1, sysmode=0, num=0;
253c253
< c = getopt_long (argc, argv, "heWQDndHSOGTRIv:p:V:P:C:m:M:2:3:w:r:c:i:u:a:s:",
---
> c = getopt_long (argc, argv, "heWQDndHSOGTRIv:p:V:P:C:m:M:2:3:w:r:c:i:u:a:s:N:",
285a286
> case 'N': num = strtol(optarg, NULL, 10); break;
1275c1276,1278
< right_dev = dev;
---
> if((*numFound)==num+1)
> right_dev = dev;
>
1285a1289
> printf("Device class %02x\n",devClass);
1537a1542
> printf (" -N Number of device to switch\n");
Sample usage:
Code:
# usb_modeswitch -v 0x17e9 -p 0x0288 -u 1 -N 0
# usb_modeswitch -v 0x17e9 -p 0x0288 -u 1 -N 1