Sponsored Content
Top Forums Shell Programming and Scripting Detect USB keyboard and other peripherals Post 302331225 by TonyFullerMalv on Saturday 4th of July 2009 07:49:48 PM
Old 07-04-2009
The obvious idea that comes to mind is to watch for messages from dmesg (or the /var/adm/messages file?) as USB devices are plugged in, it is how I normally find out what the device path for a USB stick is anyway...
 

9 More Discussions You Might Find Interesting

1. Programming

mont of peripherals

hello i'm working on redhat linux which is installed with windows on the same hard disk i would like to get access to windows files throw linux the question is: how to mount hard disk and peripherals ? think you (0 Replies)
Discussion started by: selim
0 Replies

2. UNIX for Dummies Questions & Answers

USB keyboard in Solaris

I have a USB keyboard/mouse combo hooked up to an x86 box and when it loads the mouse works fine, but the ctrl, shift, alt, and i think the function keys don't do anything. Is there a setting I need to change, or a way to manually configure them. There are no drivers, it is supposed to emulate a... (0 Replies)
Discussion started by: Winzernotman
0 Replies

3. UNIX for Dummies Questions & Answers

Can't detect usb thumbdrive anymore

hey everyone! i have a Solaris 8 box with me, and i had been using my usb thrumbdrive on it all the time. one day, i was in a rush and i pulled out the thumbdrive without ejecting it or anything. and now i can't detect any thumbdrives at all. i had tried using another thumbdrive, but with no... (2 Replies)
Discussion started by: feef
2 Replies

4. Programming

How to detect usb storage arrival and its mount path from C

Hi, I am a newbi to linux, i wana to write a program in C that can detect arrival of a usb flash memory. I want also to find the actual mount point of new inserted flash disk. can anyone help me? thanks a lot (6 Replies)
Discussion started by: aghashahi
6 Replies

5. Shell Programming and Scripting

BASH Script to Detect and List USB Flash Drives

Hello. This is my first post to this forum. I've read many of the posts over the last two or three years and I've learned a lot. I'm creating a live Linux distribution using the Linux Live Scripts -- just as a hobby project -- and I'm wanting to create an automated way for a user to copy the... (7 Replies)
Discussion started by: godzillarama
7 Replies

6. Linux

How to read keys from USB keyboard on AT91SAM9260

Hi Everyone, I am using 2.6.26.3-olimex kernel(Embedded system) running on AT91SAM9260. I am using a Logitech USB keyboard. It is detected as "/dev/input/event0". I don't know how to detect key press events and read the keys? Why can't I read the keys using scanf() like funtions? ... (7 Replies)
Discussion started by: siva4ever
7 Replies

7. Shell Programming and Scripting

script to detect a file from inserted usb and puts into a Variable

There is a same named log file that I have on my 2 different android phones. When I plug it into my computer, it appears in the media folder, For example the first android phone: /media/F6BA-0AF5/folder/A.log I want to put that into a variable to be manipulated.... (3 Replies)
Discussion started by: tobenguyen
3 Replies

8. OS X (Apple)

Detect active usb device used by app

I've searched a number of sites but thought I'd post it here. I'm want to a detect certain usb device (external camera) that is actively being used by an app on a mac. My search has led me through looking at the system events log to see if there is a ProductID indicator logged. The device is... (2 Replies)
Discussion started by: dallas88
2 Replies

9. HP-UX

Configure X windows with both keyboard and USB barcode reader

Greetings. Seeking guidance on adding a USB barcode reader (BCR) to an HP c3750 workstation with HP-UX 11.11 which is essentially configuring X windows to accept input from both a primary keyboard and a secondary keyboard that happens to be the BCR. Historically, I have successfully added a BCR... (2 Replies)
Discussion started by: mnkaltenbach
2 Replies
usb_as(7D)							      Devices								usb_as(7D)

NAME
usb_as - USB audio streaming driver SYNOPSIS
sound@unit-address DESCRIPTION
The usb_as driver is a USBA (Solaris USB Architecture) compliant client driver that supports the USB Audio Class 1.0 specification. The usb_as driver processes audio data messages during play and record and sets sample frequency, precision, encoding and other functions on request from the USB audio control driver. See usb_ac(7D). This driver is plumbed under the USB audio control driver and does not directly interface with the user application. FILES
/kernel/drv/usb_as 32-bit x86 ELF kernel module /kernel/drv/amd64/usb_as 64-bit x86 ELF kernel module /kernel/drv/sparcv9/usb_as 64-bit SPARC ELF kernel module ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+------------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+------------------------------+ |Architecture |SPARC, x86, PCI-based systems | +-----------------------------+------------------------------+ |Availability |SUNWusb | +-----------------------------+------------------------------+ |Stability level |Evolving | +-----------------------------+------------------------------+ SEE ALSO
mixerctl(1), attributes(5), usba(7D), usb_ac(7D), audio(7I), mixer(7I), streamio(7I) Writing Device Drivers Universal Serial Bus Specification 1.0 and 1.1 System Administration Guide: Basic Administration http://www.sun.com/io DIAGNOSTICS
In addition to being logged, the following messages may appear on the system console. All messages are formatted in the following manner: Warning: <device path> (usb_as<instance num>): Error Message... where <device path> is the physical path to the device in /devices directory. No bandwidth available. There is no bandwidth available for the isochronous pipe. As a result, no data will be transferred during play and record. Operating a full/high speed audio device on a high speed port is not supported. The USB software does not currently support full or high speed audio devices connected to an external USB 2.0 hub that is linked to a port of a USB 2.0 host controller. Audio devices must be connected directly to a port of a USB 2.0 controller or to any USB 1.1 port. Cannot access device. Please reconnect <name>. There was an error in accessing the device during reconnect. Please reconnect the device. Device is not identical to the previous one on this port. Please disconnect and reconnect. A USB audio streaming interface was hot-removed while open. A new device was hot-inserted which is not identical to the original USB audio device. Please disconnect the USB device and reconnect the device to the same port. NOTES
The USB audio streaming interface will be power managed if the device is idle. SunOS 5.10 9 Oct 2004 usb_as(7D)
All times are GMT -4. The time now is 03:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy