linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Hanson <cph@zurich.ai.mit.edu>
To: linux-hotplug@vger.kernel.org
Subject: xhotplugd -- project idea
Date: Fri, 14 Jun 2002 18:04:13 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-102407792107855@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-102406538226828@msgid-missing>

   Date: Fri, 14 Jun 2002 19:55:22 +0200
   From: Tim Jansen <tim@tjansen.de>

   On Friday 14 June 2002 16:34, Ilya Konstantinov wrote:
   >   2. Providing a way to run graphical (X) applications on HotPlug
   > triggers. xhotplugd would not provide a GUI, but only means for
   > applications to "register" a file to be executed upon a HotPlug event.

   Functionality like this is certainly needed and I would be
   insterested in helping to realize it. But you could probably also
   extend the the current hotplug script to communicate with GUI apps.
   What you would need is a script/program that can send events to the
   GUI apps, for example by sending information about the event to a
   named pipe. A daemon of the desktop environment could then listen
   to that pipe. The advantage of this solution is that a) you can
   base such an app on the current hotplug system and b) you do not
   depend on X11, it would also work for console/DirectFB/etc...

I agree with this, although I think it doesn't go far enough.  I think
there's a need for a general event-signalling mechanism.  This can be
used in a number of contexts: hotplug events, apm/acpi events, network
configuration, pcmcia.  The advantage of doing it this way is that it
provides a uniform signalling interface, therefore making it easier to
modularize the signalling and handling code.  This is as opposed to
the current system, in which all of the event-signalling mechanisms
have their own idiosyncratic interfaces, which nearly always are
conventions for invoking shell scripts.  This problem is particularly
obvious in the context of laptop network configuration, in which there
are many different packages, each of which is composed of several
parts built into a monolithic program; if all of these programs used a
standard event mechanism, they could be modularized and the end user
to use each module separately, even mixing modules from different
packages.

I've designed and started implementing this mechanism, and plan to
deploy it both for APM and for network configuration in Debian.  The
design is very general, and is based on sockets so that it can easily
be extended to handle inter-machine signalling if that ever turns out
to be useful.  The protocol will be implemented on top of BEEP, so
that it is easy to maintain and to secure.

I'd be interested in discussing this further if anyone is interested.
Although perhaps it's not really on-topic for this mailing list.

Chris

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  parent reply	other threads:[~2002-06-14 18:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-14 14:34 xhotplugd -- project idea Ilya Konstantinov
2002-06-14 15:59 ` Bill Nottingham
2002-06-14 16:49 ` Greg KH
2002-06-14 17:55 ` Tim Jansen
2002-06-14 18:04 ` Chris Hanson [this message]
2002-06-15  0:22 ` Ilya Konstantinov
2002-06-15  0:38 ` Tim Jansen
2002-06-15  0:48 ` Ilya Konstantinov
2002-06-15  9:44 ` Tim Jansen
2002-06-18 17:14 ` Jim.Gettys
2002-06-19 20:19 ` Ilya Konstantinov
2002-06-20 14:06 ` Jim.Gettys
2002-06-20 17:28 ` David Brownell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-hotplug-102407792107855@msgid-missing \
    --to=cph@zurich.ai.mit.edu \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).