Sponsored Content
Top Forums UNIX for Advanced & Expert Users Detecting USB Flash Devices (plugged and hot-plugged) Post 302201326 by era on Monday 2nd of June 2008 01:52:43 AM
Old 06-02-2008
If this is a HAL system, look into lshal -m
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

USB Hot Plug Mandrake 9.0

I recently installed Mandrake Linux 9.0 on my intel machine, with a view to migrating completely from Windows within the next few months. First I need to get things working. My modem, sound card, scanner and printer all fail to work. This isn't going to put me off because I love the interface... (1 Reply)
Discussion started by: saabir
1 Replies

2. Red Hat

USB Devices

I am trying to get a flash card reader to work with my machine. My question is, are all of my USB ports screwed up? Do I need to buy a seperate USB controller? I does not appear that the onboard USB ports work. In trying to get it to work, I typed cat /proc/scsi/scsi and got this: # cat... (2 Replies)
Discussion started by: davidkretsch
2 Replies

3. Solaris

Can this be disabled? interface turned of when console cable plugged in.

Whenever I plug a console cable into the back of my sunfire v240 it automatically turns of bge0 which is the interface that connects to my network and the only interface i use on the box (and it stays shutdown until reboot). Is there anyway to stop this from happening or can someone please explain... (12 Replies)
Discussion started by: kingdbag
12 Replies

4. Shell Programming and Scripting

disableing my USB devices using a script

hi guys I would like to disable my USB devices using a shell script(Linux machine) i.e(hoteplug,kernelpcmciacs,pcmciacs) Kindly suggest me at the earliest Thnks in advance regards ash (0 Replies)
Discussion started by: whizkidash
0 Replies

5. BSD

Detecting usb stick in freebsd

I inserted a 8GB usb stick in a number of machine with FreeBSD 7.1, but the medium was not detected: $ dmesg | grep MB usable memory = 4263022592 (4065 MB) avail memory = 4082540544 (3893 MB) pci0: <serial bus, SMBus> at device 31.3 (no driver attached) ad0: 238475MB <WDC WD2500BEVT-00ZCT0... (6 Replies)
Discussion started by: figaro
6 Replies

6. SCO

Occasional Core Dump with hot swap USB Thumb Drive

Hello Unix World, I've been having this issue for the longest time. Here is my setup OS: SCO OpenServer 6.0 with mp4, mp3 Server: Dell PowerEdge 840, 800, 2900 USB Stick: Patriot 16GB High Speed, and many other different brands. Occasinaly while system is running and USB is pluged in the... (0 Replies)
Discussion started by: miles556
0 Replies

7. Shell Programming and Scripting

Detecting A USB Storage Device From A Script

I need a way to reliably detect a USB storage device from a bash script. I know how to use 'lsusb' to list the USB devices - but then how can I match a device listed in 'lsusb' output to an actual disk device? Is there some way to map one to the other? Any help appreciated. (3 Replies)
Discussion started by: dmaddox099
3 Replies

8. Solaris

Detecting wirelss USB Adapter

Hi, i try to plug in my USB wireless adapter to my sun solaris server. However, it cannot detect it. How do i set it so that it can detect it? (1 Reply)
Discussion started by: lkyow
1 Replies

9. Solaris

/devices/pseudo/md - detecting problems?

Got an informix DB that won't start because DB chunk is offline. Its a raw device. See below:- lrwxrwxrwx 1 root root 29 Feb 6 2013 /dev/DB -> /devices/pseudo/md@0:0,10,raw How do I tell what that refers to? I've checked metadb and metastat and cant see any issues? (2 Replies)
Discussion started by: psychocandy
2 Replies

10. UNIX for Beginners Questions & Answers

Regular Expressions : grab flash devices

I know its an art and it takes a little time .. but is there a better way to do this ? (sup-)?boot(disk|flash)|flash\d*|disk\d Thanks in advance Pop (1 Reply)
Discussion started by: popeye
1 Replies
virtualkm(7D)															     virtualkm(7D)

NAME
virtualkm - Virtual keyboard and mouse SYNOPSIS
/dev/kbd /dev/mouse A virtual keyboard or mouse is an abstraction of one or more physical keyboards or mice (USB or PS2) connected to a system. Input streams for these physical devices are coalesced into a single input stream and appear as a single device to the upper layers. /dev/kbd is the virtual keyboard device file. Inputs from multiple keyboards are coalesced into a single input stream, meaning that all keyboards appear as a single keyboard to a console or window system and accordingly, are treated as a single device. The virtual keyboard layout is consistent with the layout of the first keyboard plugged into the system. Note that on x86 platforms, the virtual keyboard layout can be overloaded by eeprom(1M). /dev/mouse is the virtual mouse device file. Inputs from multiple mice are coalesced into a single input stream, meaning that all mice appear as single mouse to the window system. Commands from applications are dispatched by the virtual keyboard/mouse facility to the underlying physical devices and will succeed pro- vided that one of the underlying devices responds with success. For example, a single command issued to turn on LED's will turn on corre- sponding LED's for all underlying physical keyboards. Although physical keyboards/mice are linked to the virtual keyboard/mouse facility, each may be opened separately by accessing its asso- ciated device file. (For example, /dev/usb/hid0 for a usb mouse). Directly accessing a device file can be useful for multi-seat, gok(1) or similar purposes. When a single physical device is opened via its associated device file, it is automatically removed from the single virtual input stream. When closed, it is automatically re- coalesced into the single virtual input stream. Under the virtualkm facility, the PS/2 mouse is coalesced into a virtual mouse single input stream and can be accessed using the /dev/mouse file. (Note that in previous releases, the PS/2 mouse was accessed via the /dev/kdmouse physical device file). In the current release, you use the /dev/kdmouse file to directly access the physical PS/2 mouse. INTERFACES The virtual mouse provides the following event ID's for mouse capability changes: MOUSE_CAP_CHANGE_NUM_BUT This event is reported when the total number of mouse buttons changes. The Firm_event.value is set to the new button total, which is the maximum number of all mice buttons. Other fields are ignored. MOUSE_CAP_CHANGE_NUM_WHEEL This event is reported when the total number of mouse wheels changes. The Firm_event.value is set to the new wheel total. Other fields are ignored. The event value (Firm_event.value) can be 0 (no wheel), 1 (vertical wheel), or 2 (vertical and horizontal wheel). The Firm_event structure is described in <sys/vuid_event.h>. As with other events, firm events are received using read(2). Event ID's are used by applications (including certain mouse demo applications) that are programmed to graphically represent the actual number of buttons and wheels on a mouse. When an application of this type receives a Firm_event with a ID MOUSE_CAP_CHANGE_NUM_BUT or MOUSE_CAP_CHANGE_NUM_WHEEL event, it is instructed to update its state information using the new value. Consider, for example, a mouse demo application whose sole function is to display a mouse with buttons that graphically correspond to the actual number of buttons on the mouse. If, for example, the system has a single two-button USB mouse attached, the application, by default, will graphically display the mouse with a left and a right button. However, if a another three-button USB mouse is hot-plugged into the system, a MOUSE_CAP_CHANGE_NUM_BUT Firm event with Firm_event.value of three instructs the demo application to update the mouse display to indicate three buttons. /dev/kbd Virtual Keyboard device file. /dev/mouse Virtual Mouse device file. /dev/kdmouse Physical PS/2 mouse device file. /dev/usb/hid* Physical USB keyboard/mouse device file. /etc/dacf.conf Device auto-configuration file. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |Architecture |SPARC, | |Availability |SUNWckr, SUNWcsd, SUNWusb, | | |SUNWpsdcr, SUNWcakr.i | |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
, eeprom(1M), read(2), attributes(5), hid(7D), usba(7D), kb(7M), usbkbm(7M), usbms(7M), vuidmice(7M) See gok(1) in the GNOME man pages, available in the SUNWgnome package. gok(1) is not a SunOS man page. DIAGNOSTICS
The messages described below may appear on the system console as well as being logged. All messages are formatted in the following man- ner: WARNING: Error message... conskbd: keyboard is not available for system debugging: device_path. Errors were encountered while entering kmdb during initialization for debugger mode. As a result, the keyboard is not available. conskbd: keyboard is not available: <device_path> Errors were encountered while exiting kmdb during un-initialization for debugger mode. As a result, the keyboard is not available. Failed to relink the mouse <device_path> underneath virtual mouse An error was encountered and the mouse is unavailable. (When a mouse is physically opened via a physical device file such as /dev/usb/hid0, it is removed from the single virtual input stream (/dev/mouse). When closed, it is re-coalesced into a single virtual input stream beneath /dev/mouse. If an error is encountered, (for example, the mouse has been physically removed), it is unavailable beneath /dev/mouse. NOTES
Currently, the virtualkm device supports only USB and PS2 keyboards and mice. The virtualkm device maintains complete compatibility on select legacy systems, (including Ultra 10's), that are equipped with serial key- board/mouse. 21 June 2005 virtualkm(7D)
All times are GMT -4. The time now is 01:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy