device-driver

system_tray to receive notifications of device removal

天大地大妈咪最大 提交于 2019-12-13 22:28:59
问题 I'm writing an application which check for my usb device and if the device is avialable make a dial-up connection. I use Rasdial to establish the connection. Unfortunately if I remove the USB cable the connection is not getting disconnected or notified to the user. So here I'm in a situation to check for the device removal . I Planned to run my application in system tray and wait for the device removal. Am I right here? If am right how to make the application wait for device removal,

No kernel file specified Error On KEXT MAC Environment

老子叫甜甜 提交于 2019-12-13 06:55:23
问题 I try implement KEXT for USBHID Device. If i am checking on Terminal It able to load KEXT ie Newtok:Desktop Rasheed$ kextutil -nt SampleKextDriver.kext No kernel file specified; using running kernel for linking. SampleKextDriver.kext appears to be loadable (including linkage for on-disk libraries). But Unfortunately I Got the above Message. My plist File is <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0

chrome speech recognition WebKitSpeechRecognition() not accepting input of fake audio device --use-file-for-fake-audio-capture or audio file

夙愿已清 提交于 2019-12-13 05:09:15
问题 I would like to use chrome speech recognition WebKitSpeechRecognition() with the input of an audio file for testing purposes. I could use a virtual microphone but this is really hacky and hard to implement with automation, but when I tested it everything worked fine and the speechrecognition converted my audio file to text. now I wanted to use the following chrome arguments: --use-file-for-fake-audio-capture="C:/url/to/audio.wav" --use-fake-device-for-media-stream --use-fake-ui-for-media

pins to control screen rotation, which API for linux kernel<->userspace to choose?

旧巷老猫 提交于 2019-12-13 01:19:14
问题 I have lcd screen connected to arm cpu, and there are two pins on this lcd screen to control where is left,top corner on the screen (2 pins = 4 variants). And I don't know which API to use to control left,top corner from userspace? The most simple one just export this pins via gpio sysfs interface, but I don't like this solution, because of user app should not know such details, as gpio number connected to lcd panel. The another solution modify fbdev video driver and add paramter to control

Replacing Touchscreen driver in Android Kernel

孤街醉人 提交于 2019-12-12 08:46:49
问题 I'm adapting a Gingerbread kernel for my custom board. I'm trying to replace a resistive touch screen that uses an on-chip ADC controller (S5PV210 processor from Samsung). In my design, I need a capacitive controller supported by eGalaxyTouch driver. It's connected to the USB. The driver can be easily enabled from the "make xconfig" menu. It somewhat works since I added some traces on the serial console and I can see it installing during the kernel boot and I see it install and uninstall

How to register this tablet to Ubuntu udev list?

依然范特西╮ 提交于 2019-12-12 08:32:59
问题 I've got a cheap android tablet and I need to use it to test apps on it. I am using Ubuntu so I first have to add the device to udev list. I connected the tablet, but adb does not see it $ adb devices List of devices attached $ The I tried using lsusb , but the device is not identified to the Ubuntu (USB debugging is checked! in tablet's properties) $ lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003

How to set and read pins on the parallel port from C++?

自闭症网瘾萝莉.ら 提交于 2019-12-12 07:16:16
问题 I am helping a friend to finish a final year project in which he has this circuit that we want to switch on and off using a C++ program. I initially thought it would be easy, but I have failed to implement this program. The main problem is that Windows XP and above don't allow direct access to hardware so some websites are suggesting that I need to write a driver or find a driver. I have also looked at some projects online but they seem to work for Windows XP but fail to work for Windows 7.

Install usb device without manager prompt

笑着哭i 提交于 2019-12-12 04:37:16
问题 We have a usb device and the drivers (.inf, libusb.dll, libusb.sys) and can install it using Windows' Device Installation Wizard (by pointing to the .inf file). However, we need to install the drivers without using the wizard (passively, so the user doesn't need to do anything). Does anyone know how this can be achieved? 回答1: You added the "installer" tag, so I'm assuming you're talking about some kind of installation package, like Windows Installer, InstallShield InstallScript, etc. If that

Rename a USB HID device under Windows

血红的双手。 提交于 2019-12-12 02:58:48
问题 I wrote a firmware to a USB device that uses the generic HID class for communicating with the host PC. When connecting the device to the PC, it shows the hard-coded string I put in the firmware, but after the driver installation is over (using the generic Windows driver), the device's name is changed to a generic "USB Input Device". How can I rename the device back? 回答1: You can't do that. The device manager shows the string that is registered at installation by the device driver - in your

linux non-standard serial console

橙三吉。 提交于 2019-12-12 02:48:32
问题 I am porting linux to one of the custom architectures. My serial console is unconventional, in the sense it does not work on interrupts. I am trying to output messages from linux boot process onto kernel console. I used register_console and printk started working. Now I can see kernel printk messages being printed on console. Now I am trying to get messages from the user space process onto console. I was under the impression that console registered for kernel will also work for user processes