From: Nuno Santos <nsantos@edigma.com>
To: linux-input@vger.kernel.org
Subject: Restoring kernel module settings
Date: Tue, 06 Dec 2011 18:34:32 +0000 [thread overview]
Message-ID: <4EDE6038.5080303@edigma.com> (raw)
Hi,
I have developed a kernel module to act as driver for a multitouch input
device,
It happens that the kernel module settings are setted and getted via
binnary attributes.
I know that kernel modules can't save or read files. I need an
alternative way of restoring a saved settings state.
Question:
Is there any way of calling a determined program when a device is
connected to the computer?
My idea is to develop a really small application that sets the saved
settings from the last time the device control panel interacted with the
device.
I think someone has already suggested udev to do it. What functionality
should I search within udev documentation? Is there any other way of
achieving this?
Thank you in advance,
With my best regards,
Nuno
reply other threads:[~2011-12-06 18:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4EDE6038.5080303@edigma.com \
--to=nsantos@edigma.com \
--cc=linux-input@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).