kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Run a program when DP monitor is plugged in/out
@ 2014-04-11 13:19 arun c
  2014-04-11 15:46 ` pramod gurav
  0 siblings, 1 reply; 3+ messages in thread
From: arun c @ 2014-04-11 13:19 UTC (permalink / raw)
  To: kernelnewbies

Hi,

I want to run a program when DP monitor is plugged in/out.
My linux kernel ( 3.14.0-00348-gbfcbf45) gets an interrupt when DP cable is
removed or inserted.
>From the graphics driver interrupt handler I can differentiate the two
events.

I want to run a user space program when this removal/insertion happens.
What are the possible
ways to achieve this?

when I google for this I am seeing examples related to udev(How to run a
script when a usb device is inserted/removed); but in my case it is not
device insertion/removal. There is no need for a device creation when the
DP monitor is plugged in/out(There is no device node available for me).
Basically I want to send this removal/insertion event from my kernel
interrupt handler to
user space program.

Regards,
Arun C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140411/08277123/attachment.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-11 16:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-11 13:19 Run a program when DP monitor is plugged in/out arun c
2014-04-11 15:46 ` pramod gurav
2014-04-11 16:29   ` Subramaniam Appadodharana

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).