From: Kir <forlin@yandex.ru> To: community@altlinux.ru Subject: [Comm] VMware и USB Date: Mon, 11 Aug 2003 13:36:33 +0400 Message-ID: <20030811133633.429a999b.forlin@yandex.ru> (raw) Здравствуйте! Поставил на машину "VMware Workstation 4" - в основном, для того, чтобы запускать под Вынь Finereader, сканировать и распознавать русские тексты. Наткнулся на нежелание VMWW4 определять сканнер Mustek 1200 CU Plus. Полез во встроенный Help VMWW4, нашел следующие указания: >Use the checkbox beside Automatically connect new USB devices to this virtual machine >when it has focus to determine what happens when you plug a new USB device into your >host computer. If you clear the checkbox, new USB devices are connected to the host computer. >... >You can use up to two USB devices in your virtual machine if both your host operating system >and your guest operating system support USB. >... Выставил Automatically connect new USB devices. Оба окошка USB в меню Edit VMWW4 по-прежнему "слепые" и недоступны для настройки. Читаем дальше: >... >You can use up to two USB devices in your virtual machine if both your host operating system >and your guest operating system support USB. >... >Only one operating system - host or guest - can have control of a USB device at any one time. >Note: WorkstationIf your device is in use by the host and you try to connect it to the guest >using the Edit menu, a dialog box appears, informing you that there is a problem connecting to the device. >To disconnect the device from the host, you must unload the device driver. You can unload the driver >manually as root (su) using the "rmmod" command. >... Посмотрел на модули: [root@localhost root]# lsmod Module Size Used by Tainted: PF mga 97816 17 agpgart 31304 3 binfmt_misc 5640 1 vmnet 18312 6 vmmon 22932 0 (unused) lp 6048 0 (autoclean) autofs4 8148 1 (autoclean) apm 9600 2 snd-pcm-oss 37700 0 snd-mixer-oss 10872 0 [snd-pcm-oss] snd-via82xx 10188 4 snd-pcm 54720 0 [snd-pcm-oss snd-via82xx] snd-timer 9832 0 [snd-pcm] snd-ac97-codec 27592 0 [snd-via82xx] snd-mpu401-uart 2688 0 [snd-via82xx] snd-rawmidi 12224 0 [snd-mpu401-uart] snd-seq-device 3744 0 [snd-rawmidi] snd 28428 7 [snd-pcm-oss snd-mixer-oss snd-via82xx snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device] soundcore 3460 5 [snd] ipt_limit 856 3 (autoclean) ipt_LOG 3352 4 (autoclean) ipt_state 568 5 (autoclean) ip_conntrack 17344 1 (autoclean) [ipt_state] iptable_filter 1604 1 (autoclean) ip_tables 11000 4 [ipt_limit ipt_LOG ipt_state iptable_filter] floppy 46652 0 (autoclean) serial 55620 1 (autoclean) isa-pnp 29252 0 (autoclean) [serial] scanner 9208 0 (unused) usb-uhci 21260 0 (unused) usbcore 57780 1 [scanner usb-uhci] nls_cp866 3804 1 (autoclean) vfat 9836 1 (autoclean) fat 29848 0 (autoclean) [vfat] nls_cp1251 3580 3 (autoclean) ntfs 73260 2 (autoclean) ide-scsi 7764 0 parport_pc 25288 2 (autoclean) ppa 9880 0 (unused) scsi_mod 91812 2 [ide-scsi ppa] parport 22976 2 [lp parport_pc ppa] rtc 6012 0 (autoclean) ext3 59980 1 jbd 36668 1 [ext3] ... Отключил USB серис: [root@localhost root]# service usb stop Unmounting USB filesystem: [ OK ] Unloading USB interface (usb-uhci): [ OK ] ... Глянул в модули еще раз: [root@localhost root]# lsmod Module Size Used by Tainted: PF mga 97816 17 agpgart 31304 3 binfmt_misc 5640 1 vmnet 18312 6 vmmon 22932 0 (unused) lp 6048 0 (autoclean) autofs4 8148 1 (autoclean) apm 9600 2 snd-pcm-oss 37700 0 snd-mixer-oss 10872 0 [snd-pcm-oss] snd-via82xx 10188 4 snd-pcm 54720 0 [snd-pcm-oss snd-via82xx] snd-timer 9832 0 [snd-pcm] snd-ac97-codec 27592 0 [snd-via82xx] snd-mpu401-uart 2688 0 [snd-via82xx] snd-rawmidi 12224 0 [snd-mpu401-uart] snd-seq-device 3744 0 [snd-rawmidi] snd 28428 7 [snd-pcm-oss snd-mixer-oss snd-via82xx snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device] soundcore 3460 5 [snd] ipt_limit 856 3 (autoclean) ipt_LOG 3352 4 (autoclean) ipt_state 568 5 (autoclean) ip_conntrack 17344 1 (autoclean) [ipt_state] iptable_filter 1604 1 (autoclean) ip_tables 11000 4 [ipt_limit ipt_LOG ipt_state iptable_filter] floppy 46652 0 (autoclean) serial 55620 1 (autoclean) isa-pnp 29252 0 (autoclean) [serial] scanner 9208 0 (unused) usbcore 57780 0 [scanner] nls_cp866 3804 1 (autoclean) vfat 9836 1 (autoclean) fat 29848 0 (autoclean) [vfat] nls_cp1251 3580 3 (autoclean) ntfs 73260 2 (autoclean) ide-scsi 7764 0 parport_pc 25288 2 (autoclean) ppa 9880 0 (unused) scsi_mod 91812 2 [ide-scsi ppa] parport 22976 2 [lp parport_pc ppa] rtc 6012 0 (autoclean) ext3 59980 1 jbd 36668 1 [ext3] ... Выгрузил модули, связанные с USB: [root@localhost root]# rmmod scanner [root@localhost root]# rmmod usbcore Еще оаз глянул в модули - ничего, связанного с USB, вроде бы нет: [root@localhost root]# lsmod Module Size Used by Tainted: PF mga 97816 17 agpgart 31304 3 binfmt_misc 5640 1 vmnet 18312 6 vmmon 22932 0 (unused) lp 6048 0 (autoclean) autofs4 8148 1 (autoclean) apm 9600 2 snd-pcm-oss 37700 1 snd-mixer-oss 10872 0 [snd-pcm-oss] snd-via82xx 10188 5 snd-pcm 54720 0 [snd-pcm-oss snd-via82xx] snd-timer 9832 0 [snd-pcm] snd-ac97-codec 27592 0 [snd-via82xx] snd-mpu401-uart 2688 0 [snd-via82xx] snd-rawmidi 12224 0 [snd-mpu401-uart] snd-seq-device 3744 0 [snd-rawmidi] snd 28428 7 [snd-pcm-oss snd-mixer-oss snd-via82xx snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device] soundcore 3460 5 [snd] ipt_limit 856 3 (autoclean) ipt_LOG 3352 4 (autoclean) ipt_state 568 5 (autoclean) ip_conntrack 17344 1 (autoclean) [ipt_state] iptable_filter 1604 1 (autoclean) ip_tables 11000 4 [ipt_limit ipt_LOG ipt_state iptable_filter] floppy 46652 0 (autoclean) serial 55620 1 (autoclean) isa-pnp 29252 0 (autoclean) [serial] nls_cp866 3804 1 (autoclean) vfat 9836 1 (autoclean) fat 29848 0 (autoclean) [vfat] nls_cp1251 3580 3 (autoclean) ntfs 73260 2 (autoclean) ide-scsi 7764 0 parport_pc 25288 2 (autoclean) ppa 9880 0 (unused) scsi_mod 91812 2 [ide-scsi ppa] parport 22976 2 [lp parport_pc ppa] rtc 6012 0 (autoclean) ext3 59980 1 jbd 36668 1 [ext3] ... Тем не менее во вкладке Edit виртуальной машины оба окошка USB по-прежнему "слепы" Читаю дальше: >Or, if the driver was automatically loaded by hotplug, you can disable it in the >hotplug configuration files in the /etc/hotplug directory. See your Linux >distribution's documentation for details on editing these configuration files. >... Смотрю в указанную директорию и вижу: [aaa@localhost aaa]$ dir /etc/hotplug blacklist ieee1394.agent pci.agent usb.agent usb.handmap usb.usermap hotplug.functions net.agent pci.rc usb.distmap usb.rc Действительно, есть USB. Но что ж мне теперь - эти файлы удалять? Тогда я не смогу, отключив VMWW4, работать со сканером напрямую из Линукса. Подскажите, пожалуйста, как решить проблему таким образом, чтобы можно было использовать мой сканнер как в хостовой системе, так и в гостевой без перезагрузки и стирания-записывания файлов. То есть нормально грузить Lin, при необходимости перед загрузкой VMWW4 запустить скрипт, отключающий нужные USB модули, и работать со сканером в VMWW4. А после отключения VMWW4 запустить другой скрипт, подгружающий модули в Lin, и снова иметь возможность работать со сканнером из хостовой системы. На машине стоит АЛМ22, апдейт с ftp Мастера. --- С уважением, Kir
next reply other threads:[~2003-08-11 9:36 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-08-11 9:36 Kir [this message] 2003-08-12 2:34 ` Maxim.Savrilov 2003-08-12 12:21 ` Kir 2003-08-12 15:09 ` [Comm] " Sergey Vlasov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030811133633.429a999b.forlin@yandex.ru \ --to=forlin@yandex.ru \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git