LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices



Reply
 
Search this Thread
Old 08-20-2009, 08:19 AM   #1
paldebojyoti
Member
 
Registered: Aug 2009
Posts: 32

Rep: Reputation: 15
USB insertion notification


Hi,

How do my user space application get the notification of USB device insertion / removal from the USB core? I don't want UDEV rule to be used to get the notification.

Thanks in advance.

Regards,
Deb
 
Old 08-20-2009, 10:09 AM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
System notification is handled via D-BUS on Linux. UDEV is used to create device nodes for connected hardware, which is a separate issue entirely.
 
Old 08-20-2009, 10:30 AM   #3
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Wheezy (Fluxbox WM)
Posts: 1,368
Blog Entries: 52

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
You may be able to use the 'libhal_ctx_set_device_added' to set a callback function at the hal layer (see tutorial here).
 
Old 08-21-2009, 06:32 AM   #4
paldebojyoti
Member
 
Registered: Aug 2009
Posts: 32

Original Poster
Rep: Reputation: 15
Hi neonsignal,

Thanks a lot, this link helps me a lot.

Regards,
Dev
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creation of device node after USB insertion paldebojyoti Linux - Distributions 6 08-20-2009 07:01 AM
usb device detection, manual insertion card(smart card) reader problem, zapkhiel Linux - Hardware 4 07-17-2009 09:50 AM
Running a script when auto-mounter detects USB thumb-drive insertion... Bane73 Linux - Desktop 4 10-24-2008 04:08 AM
How to detect insertion/removal of flash card in usb reader? logularjason Linux - Hardware 9 06-24-2006 04:11 AM
SuSe Linux 9.2 Freezes After Insertion of USB Flash Drive deepgrewal Suse/Novell 13 04-13-2005 02:55 AM


All times are GMT -5. The time now is 08:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration