Programming :: Get Information About Description Number Usb Device
May 10, 2011
How can I know what number descriptor is used by my usb device indicate via libusb_device_handle structure ? I can't find declaration of libusb_device_handle structure. I need this information to use poll() function where I need decripttion number of device.
How can I know what number descriptor is used by my usb device indicate via libusb_device_handle structure ? I can't find declaration of libusb_device_handle structure. I need this information to use poll() function where I need decripttion number of device.
where I can to find mapping between man section number and it's description in standalone mashine.In other words, where I can to find description of some man section when I have not connection to Internet? For example:
1 -> User commands 2, 3 -> Linux programmer's manual and so on..
I have a microphone that I connected via USB. When I do dmesg it shows [37830.040274] usb 5-1: new full speed USB device using uhci_hcd and address 4 How do I find out what /dev/??? identifier has been associated with the device? I want to record something using XVidCap and need to set the microphone for it to work.
I just compiled my first own kernel (I'm using Arch Linux), following the tutorial on the german site. Now I tried to boot it, I ended up failing with this message: Code: Waiting 10 seconds for device /dev/sda1 ... Root device '/dev/sda1' doesn't exist, Attempting to create it. ERROR: Unable to determine major/minor number of root device '/dev/sda1' Here is the important part of my menu.lst:
[Code]....
I simply copy&pasted the Arch-entry, i.e. I also had the disk by uuid there. The failure message was the same, just the root device name was the different name Also, at first I did not have the initrd line in my menu.lst (as written in my tutorial that I may not need it). In this case I had this error message:
OS: CentOS 5.6 yesterday i bought a new HP network printer/scanner (OfficeJet Pro 8500). It installed correctly using hplip drivers. I can print and scan without any problem, very nice and fast device. I did some research where the information where the device port is stored in sane, but cannot find anything. I tried to remove my old network device port for my Brother scanner, but did not find the config file where this information is stored. Neither /etc/sane.d/* nor ~/.sane/xsane/* contains this information.
I'm currently running Ubuntu (w/ GRUB) and Windows XP. I'd like to remove Ubuntu and run the recovery on Windows XP because it has started not running correctly. The computer is about 5 years old and I figured I'd just wipe it clean and start over (read: remove Ubuntu and reinstall windows via the recovery console).
I intend to follow the tutorial here: [URL]
However, I'm confused about determining the boot device number for Windows. I've run "sudo fdisk -l" and I can identify the windows drive in the list it says:
I have 2 network cards eth0 and eth1, for eth0 i set a manual MACADDR in network scripts. Ok so every time i boot, if the cable is plugged in, my eth0 fails to mount or i don't know.. i get this after bood when i type ifoncifg eth0 (eth0: error fetching interface information:Device not found). So i have to unplug the cable when i boot, then plug it in and do a service network restart.
My only issue that I can't figure out thus far is the remote. I'm using a Hauppauge Nova-T USB Stick, and generally the setup for the Nova-T 500 is good. No problem with lircd.conf, .lircrc etc. My problem is that the remote doesn't work on startup. Looked in /etc/lirc/hardware.conf and it says, as expected: REMOTE_DEVICE="/dev/lirc0"
Which doesn't work because I have no /dev/lirc0 (I do have a /dev/lircd). However, running /proc/bus/input/devices, I discover that my IR receiver is event5, so if I change the /etc/lirc/hardware.conf to: REMOTE_DEVICE="/dev/input/event5"
And restart lirc, it works fine. Unfortunately, upon restarting the PC, the IR receiver doesn't always have the same path - eg it could be event6 or event8 etc - so then I need to fix the /etc/lirc/hardware.conf again.
I tried using cut command but it also gives me the same problem. If i do not assign it to a variable, how am i able to format it to display it in the correct format?
My network name is eth2 it was changed by some reason and now i got these errors... i installed, reinstalled, re re installed, tried to run the asistant but no luck :/
Code:
* Stopping the Firestarter firewall... eth0: error fetching interface information: Device not found eth0: error fetching interface information: Device not found eth0: error fetching interface information: Device not found
I would like to make program that reads a *.TXT file and searches for last line and constatly refreshing the search. So last line would look something like this:Mike Had A 100.0 Pound Shark.So there are multplie category of "fish"(Shark, Dolphin, etc.) and each of them have allowed weight (ie. minimum 70.0 Pound Shark, 50.0 Pound Dolphin). If in the found sentence Shark or Dolphin doesn't meet requierments than program named False.exe should be started. I dont know how to make it my self so any help is much appreciated. My knowledge on programming is very low but I'm opend for learning.
when compiling a c++ program in g++ on Linux, how can I add version information to that executable and if possible is there a Linux utility to read the version information?
I'm writing a Plug-gable authentication module for ssh. I am looking for prompting for some extra information after user name and password verification but before giving access to user.Actually after SSH I want to extend the same for some other services. So I am looking at some PAM module level suggestion.
I tried using conversation method with message style=PAM_PROMPT_ECO_ON but it results in PAM_CONV_ERR and conversation fails. Is it right way to interact or please suggest me If I'm doing wrong somewhere. When I use message style=PAM_PROMPT_ECO_OFF communication succeeds but message is not shown and interaction doesn't happen.
I need to extract the Info from the RC column for the first 4 players of liverpool. The test code i have does the same,but can anyone show me a better way of doing it.I could do it easily with gawk -F"|" and print the respective column,but i need to do this in perl.
I was having ubuntu 9.10 on my desktop installed as "WUBI"(installed inside windows). Very recently(yesterday) i had some package upgrades showing up. I installed the upgrades, among them one was called "GRUB PC". I though it was a normal gurb update. what i see is the my windows boot loader also has been corrupted and GRUB cant access my UBUNTU also. The error which i get is this
I have some code that opens a directory and reads in the names of files which are e.g. 0001, 0002, 0003 up to 9999I need to get all these numbers and then generate a new number that is not one of these numbers already.here is my code to check the files in the directory
I want to get the hardware information in linux. As in windows we can have API to get the network adapter information and all. But in linux why dont we have? i try to read network adapter info in /proc/bus/devices file.. but that file is very hard to parse.and i looked at the lspci source c ode. but unfortunately I dint undersatnd that code to get the network adapter information.
Is there any way to edit text files with information in a database? The file is supposed to be always the same.. the information is going to be addedd in a specific format