General :: Programmatically Detecting A USB Device?

Dec 14, 2010

I have a USB modem and a large C++ application that needs to detect whether that device is present or not. I was hoping to get advice for what the best method to do so would be. The only solution I've thought of is to parse the output of lsusb and look for the vendor and product ID of my device, but that seems a little hack-ish and inefficient. Is there a command or program that I can provide it a vendor/product ID for a USB device and it can tell me whether or not such a device is present in the system? Or another, better way to detect the device than parsing the lsusb output that I've been thinking

View 2 Replies


ADVERTISEMENT

General :: Usb Device Not Detecting?

May 3, 2011

usb based device is showing in the log message using command "lsusb -v" why this is not showing

View 1 Replies View Related

General :: How To Stop Fan Programmatically

May 27, 2011

My system doesn't reacts at writing values below 255 to /sys/class/hwmon/hwmon0/device/pwm(2,3) which correspond to 3-wire case fans connected via M/B (ga-890gpa-ud3h) headers. The idea was taken from [url]

ls /sys/class/hwmon/hwmon0/device/

It indeed shows the actual speed:

But refuses to write to fanX_input: permission denied (even for root).

More specs: kernel 2.6.38.4, sensors output is:

I do not run any daemons for fan control, but suppose the speed may be set by CPU in-kernel governor. How to stop a fan under this conditions without doing hardware tricks?

Upd: part of pwmconfig's output:

Devices:

Found the following PWM controls:

hwmon0/device/pwm2 is currently setup for automatic speed control. In general, automatic mode is preferred over manual mode, as it is more efficient and it reacts faster. Are you sure that you want to setup this output for manual control? (n) y hwmon0/device/pwm3 hwmon0/device/pwm3 is currently setup for automatic speed control.

In general, automatic mode is preferred over manual mode, as it is more efficient and it reacts faster. Are you sure that you want to setup this output for manual control? (n) y

Test:

Warning! This program will stop your fans, one at a time, for approximately 5 seconds each! This may cause your processor temperature to rise! If you do not want to do this hit control-C now!

Hit return to continue:

Would you like to generate a detailed correlation (y)? y

This was stopping CPU fan. And:

View 2 Replies View Related

General :: Programmatically Connect To A Box Running Ssh From A Windows Pc?

May 11, 2010

I am writing an application that has a web service client on a Windows PC that needs to call a web service on a Linux server. In order to create the client, I need to be able to programmatically read the WSDL on the server and use it to create the client. I'm using the web tools in MyEclipse to build the client.

The Linux server is running Red Hat, I believe, with ssh enabled. I can connect from Linux to Windows with no problem, but I can't reach the Linux box from Windows. I get one of three errors when I try: no path to host, connection reset, or unknown error number, depending on the port I use. I've googled for an answer, but haven't found anything yet.Is there some way to add the Windows IP to a permission file on the Linux machine so it will be recognized when it queries for the WSDL?

View 9 Replies View Related

General :: Create A Png Or Jpeg File Programmatically?

Oct 3, 2010

Given a matrix with 0,1 entries, how can I create a graphic in linux such that we have a black square or pixel if the entry is one and white otherwise?

For example, if the matrix is:

0001000
0011100
0111110
0000000

then I want a graphic that looks like:

[code]....

I will be working with many large matrices, e.g. 1000x1000, or 5000x1000 so I need to do this automatically.

View 6 Replies View Related

OpenSUSE Network :: Network Manager Not Detecting Wireless Device?

Sep 25, 2010

Having a hard time getting NM to detect wireless usb device: Linksys model WUSB600N. Here are a few commands I do know about.

iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
irda0 no wireless extensions.

[code]....

View 9 Replies View Related

Ubuntu :: Programmatically Finding Out The Application Font

Jan 10, 2011

I am writing an Air application and I would like to have the app use the font indicated in Appearance Preferences.

A similar problem to this one :

[URL]

I do not have Gtk::Settings and I have looked in ~/.gconf/desktop/gnome/ but I do not have an interface folder and none of the others I opened have any font details.

I have tried simply not setting a font within my application but it is using a font not specified in the Appearance Preferences at all. It looks like Times.

Ideally I would like to be able to get this information from Ubuntu using a native process :

[URL]

get the font name of the Application font or would I have to write a script and call that from inside Air?

I have a default installation of Ubuntu 10.4 with Unity running on top of Gnome. (I think this is correct. I certainly can get Nautilus running quite easily and as I mentioned earlier I have ~/.gconf/desktop/gnome/ folders).

The brief is to get the application working on the default installation so I cannot install anything but the target machine I am using has got 'gconftool'.

View 2 Replies View Related

Ubuntu :: Generate Pdf Documents Programmatically Using Ruby

Apr 1, 2011

I need to generate pdf documents programmatically using Ruby. i.e. I don't want a GUI interface but an API interface. The bulk of my document is text but there are images included as well. I've looked at this thread: [URL] and it's 2 main recommendations PDFEdit and ImageMagik. PDFEdit has scripting available but I can't get my head round how to call this using Ruby. ImageMagik has a number of Ruby wrappers and is the kind of thing I want but as far as I can tell it only deals with Images and my stuff is mainly text.

View 1 Replies View Related

Programming :: Programmatically Getting Standard File Dialog

Jul 14, 2010

Is it possible to do the following in C/C++ in Linux:Without direct linking (my program should NOT depend on Qt or GTK), display a GTK or Qt based file dialog.The behaviour should be something like this when my program runs, when you want to open a file:The program scans whether you have Qt installed. If so, it somehow manages to link itself to Qt (e.g. dynamically loading the .so file) and display its file dialog and get the path from it. If Qt wasn't found, it tries the same with GTK. If that also wasn't found, it displays a less powerful replacement dialog instead (better than nothing).

Or is there any other simple way in Linux to get a standard file dialog somehow (similar to when compiling for Windows you can very easily get its standard file dialog, no matter what version of Windows, in your code, even if your program doesn't use any other Windows GUI at all).

View 4 Replies View Related

Networking :: Programmatically Check Process Down / Up Stream

Aug 31, 2010

I wonder if there's a way to capture the same information I can get from nethogs to a file. All I need it per process (rather than per interface) what is the sent/received traffic.

View 1 Replies View Related

Software :: How To Programmatically Determine Monitor Type

Jul 7, 2010

I know the tool system-config-display can tell me all about my display but it's not available on all systems and so I'm looking for alternative ways to get my monitor type. Ideally, I could just look in /proc but I don't see anything there and I would like to be able to do so from a script perhaps written in bash or perl. Is there some place to get this info, say in a config file somewhere?

View 2 Replies View Related

Programming :: Programmatically Set File Associations In Gnome/KDE?

Jun 3, 2010

I would like to associate my program with several file extensions programatically.

Everything I've been finding online is how a user would set a file association, does anyone know how to do this progormatically (bash, C++, etc)?

I would mostly like to get this to work with Gnome, but KDE would be nice as well.

View 3 Replies View Related

Programming :: Get Default Browser Name And Mail Client Name By Programmatically?

May 4, 2009

I am developing a application in which i have to show the name of default browser and mail client. i want to run this application on RedHat, SuSE, Mandriva, and Ubuntu. I have checked similar threads but not found any useful information.

View 8 Replies View Related

General :: Usb Not Detecting In Rhel4?

Jan 2, 2010

i try to install web cam in redhat by useing wine, but it showing no. web cam connected even if i connnect

View 1 Replies View Related

General :: Not Detecting USB Pen Drive?

Aug 1, 2011

I have installed Ubuntu 10.04 for ma Pc..I have successfully installd the o/s but usb drivers are not detecting to my pc.But I connected ma mabile using data cable..Its working.

View 3 Replies View Related

General :: Software For Detecting Phone - Add To Iso?

Feb 10, 2011

I have downloaded the ISO and would happily say Sayanora to my Win xp sp3 if I can clear my doubts. I had installed Mandriva 2009.1 which had trouble in detecting my mobile phone. I forgot what I did but in the end I got it done in the end. 1. Does it need any software etc for detecting my phone? 2.If yes, can I add it to the iso? 3. Is LiLi a good tool to create live usb thumb drive images? 4. Does the system would hang or become slow if I choose KDE (for Amd Athlon 3200+,640mb ddr1 ram, Asus k8sla mb)? 5. If yes, should I install LXDE or just install Openbox and choose the rest of the pakages as I like?

View 1 Replies View Related

General :: Ubuntu - Find The Device Node File For USB Device?

Aug 23, 2011

I've bought an X10 Home Automation USB interface: the CM15.

This is the information lsusb gives:

skerit@KIP-DU-SKER:~$ lsusb Bus 008 Device 002: ID 0bc7:0001 X10 Wireless Technology, Inc. ActiveHome (ACPI-compliant)

But this tells me nothing about where the device file is! How can I find that, or create one myself?

View 1 Replies View Related

General :: Detecting Source Of Memory Usage On A Box?

Jan 9, 2011

I have a toy Linux box with 256mb RAM running Ubuntu 10.04.1 LTS. Here is the output of free -m:

total used free shared buffers cached
Mem: 245 122 122 0 19 64
-/+ buffers/cache: 38 206

[code]....

View 3 Replies View Related

General :: Detecting WWID Number Of HBA On SLES11

Jul 2, 2010

I have SLES11 installed on server. I have attached 2 SAS cables which are connected to External storage device. I have connected 3 machines to external storage device. It shows total 6 ID�s. I want to know which 2 are from which machine. I would like to find out the WWID number of HBA�s on SLES 11 machine.

View 11 Replies View Related

General :: Dual Boot OS(Lan Cable Is Not Detecting?)

Dec 24, 2010

I installed the linux(CentOS 5) as a dual boot in my laptop.When i entered in WindowsOS-XP my lan cable is detecting but when i boot in CentOS my lan cable is not detecting ie., i can`t able to connect the internet.Please help me out in this issue as soon as possible.U can reply me to this mail id sandhya.531@gmail.com tooooooooo

View 3 Replies View Related

General :: Detecting Atheros Wireless Card On HP?

Sep 2, 2009

I am using Ubuntu 8.04 and when I open up my network settings, It shows my ethernet card and my modem but my wireless card doesn't show up. Under "Hardware Drivers" it says that my driver for my wireless card is a "proprietary driver" and that there is no driver I can get for it for Linux. Is there any way that I can get my wireless card to work? I tried going to the HP website and downloading a driver for it, but all of the drivers only work for Windows....

View 2 Replies View Related

General :: Ubuntu Not Detecting Wireless Network?

Jan 21, 2011

im dual-booting Ubuntu on my computer with windows 7. When I use windows the internet works fine, however when i switch over to Ubuntu and click on network manager no wireless networks appear.

View 5 Replies View Related

General :: USB Data Card Is Not Detecting In 2.6.36 Kernel

Jan 10, 2011

I am using a linux FC-12 machine which is running on 2.6.36 kernel. I wanted to use the USB data card with that machine. But it is not detecting the device. I found that the modules usbserial, option, qcserial were missing. I installed them using "insmod".After that I have removed and reconnected the device. Still the OS is not detecting the device.After the reboot of the machine, again the modules related to USB are missing.

View 2 Replies View Related

General :: WICD Not Detecting WLAN Card

Jul 22, 2011

My ubuntu was working fine till morning but all of a sudden in the evening , its WICD manager stopped detecting my wlan card , because of this it couldn't detect any wireless network.I formatted and installed the fresh copy, but the problem remains the same.Interesting thing is that the same lan card works fine for Win7 OS.Even earlier in ubuntu it was working fine.I have dual boot machine...

View 9 Replies View Related

General :: PS2 Mouse Is Not Auto Detecting In Linux 2.6.33.3 Kernel

Jul 26, 2010

I am working on linux kernel building and customising for our requirement.All these days we were using 2.6.9EL5 kernel to create our own Bootable kernel. Lately we moved to 2.6.33.3 as SATA CDROM support was not available during booting with the earlier kernel.Now with the new kernel i have got all the updates i wanted with respect to hardware detection during booting but having an issue with my PS2 mouse not auto detecting while booting. However i can configure the mouse with the popup that comes during booting by selecting the generic PS2 3 button mouse option. With this my mouse works properly. I am wondering is there a way to make the mouse auto detectable.I have attached one of the Xconfig file that is part of our process.

View 2 Replies View Related

General :: Detecting MMC Card \ Host Does Not Support Reading Read-only Switch?

Dec 12, 2010

I am porting the kernel on my hardware board...dmesg shows that...

mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new high speed SDHC card at address aaaa

[code]....

View 14 Replies View Related

General :: Detecting Then Assigning Laptop's Start Button To Power Key In GNOME

Sep 4, 2010

How would I do this? First part of the thread title is because I'm not sure if the install of Debian Squeeze would even detect the Start key. (Btw, is there a small enough sticker of the GNOME logo I could buy and put over the Windows logo? )

I read this thread: [URL] but I'm confused about what linmix is saying. Is there a way to get the power key to do the equivalent of what it would in Windows?

I don't find this an essential task, but it would make life a lot easier.

Edit: I mean Super Key not Power.

View 1 Replies View Related

General :: Ubuntu 10.04 Not Detecting Built In Webcam And Microphone On Asus Laptop?

Aug 16, 2010

I have a asus g50v laptop with a built in webcam and microphone running ubuntu 10.04 32 bit and its not detecting the webcam / microphone

View 12 Replies View Related

General :: Can't Find Boot Device - Error "Unable To Determine Major/minor Number Of Root Device"

Mar 17, 2011

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:

[Code]....

View 10 Replies View Related

General :: CrunchBang 10 "Statler" R20110207 Install Hangs - Detecting Network Devices

May 3, 2011

I was wondering if anyone had any issues with this. I recently tried installing CrunchBang and it got stuck while detecting the network device. (Would not recover)I had the same issue when attempting to install the Debian Testing release. I finally got Testing up and going but I had to start with Squeeze and then upgrade. Unfortunately I don't see how I could do that with Crunch Bang.

I tried the live cd of CrunchBang and found it to be a great minimalistic approach to a desktop.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved