linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arnaud Quette <arnaud.quette@free.fr>
To: linux-hotplug@vger.kernel.org
Subject: [Help] setting up hotplug for USB UPSs
Date: Sat, 18 Jan 2003 15:22:10 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-104290371003982@msgid-missing> (raw)

Hi there,

I'm currently trying to setup hotplug for USB UPSs
and have not yet succeeded :(

I'm running a Debian Sid (unstable) with:
- hotplug 2002_08_26
- hotplug-utils 2002_01_14

I'm first trying understand exactly how I
can handle userland software startup within
hotplug script. But with my below config,
nut script is never called :( Please, tell me
what's wrong...

The thing I'm not sure about is where to put
my files. usb.agent demands
/etc/hotplug/usb/ but seems to be searching
in /etc/hotplug/ ! I've tried both but fail.

Anybody has a small procedure (apart from
jphoto which was my example) or some
advice/help to give ?

Thanks,
Arnaud

1) /etc/hotplug/usb/usb.usermap:
nut 0x0080 0x0463 0x0001 0 0 0 0 0 0 0 0 0
nut 0x0080 0x0463 0xffff 0 0 0 0 0 0 0 0 0

2) /etc/hotplug/usb/nut:
#!/bin/sh
echo "dev = $DEVICE, prod = $PRODUCT, action = $ACTION"  > /dev/pts/1

3) relaunched hotplug (/etc/init.d/hotplug restart)

4) unplug/replug device and tail on /var/log/syslog
 >Jan 18 15:17:17 daneel kernel: hub.c: new USB device 00:01.3-1.4, 
assigned address 4
 >Jan 18 15:17:22 daneel kernel: hiddev0: USB HID v1.00 Device [MGE UPS 
SYSTEMS Evolution] on usb1:4.0
 >Jan 18 15:17:25 daneel /etc/hotplug/usb.agent: Setup hid for USB 
product 463/1/1

But never calls nut !



-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will
allow you to extend the highest allowed 128 bit encryption to all your 
clients even if they use browsers that are limited to 40 bit encryption. 
Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en
_______________________________________________
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

                 reply	other threads:[~2003-01-18 15:22 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=marc-linux-hotplug-104290371003982@msgid-missing \
    --to=arnaud.quette@free.fr \
    --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).