<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3562" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=398522008-03082009><FONT face=Arial 
color=#0000ff size=2>Thanks for the info.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=398522008-03082009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=398522008-03082009><FONT face=Arial 
color=#0000ff size=2>I use the first approach. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=398522008-03082009><FONT face=Arial 
color=#0000ff size=2>So, if I understood well, the nut-hal support (ie, the 
--with-hal) is used only for the 2nd approach. Udev rules are dealt when using 
--with-usb.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=398522008-03082009><FONT face=Arial 
color=#0000ff size=2>Is that correct?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=398522008-03082009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=398522008-03082009><FONT face=Arial 
color=#0000ff size=2>If so, I might be able to rebuild the nut-2.4.1 pachage for 
RHEL4.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=398522008-03082009><FONT face=Arial 
color=#0000ff size=2>For packaging help (I think I might need some for the next 
stage ;-) ) do I continue this thread or use the nut-packaging list (or 
both).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=398522008-03082009></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=398522008-03082009></SPAN>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De&nbsp;:</B> Arnaud Quette 
[mailto:aquette.dev@gmail.com] <BR><B>Envoyé&nbsp;:</B> vendredi 31 juillet 2009 
21:41<BR><B>À&nbsp;:</B> Antoine Gatineau<BR><B>Cc&nbsp;:</B> Charles Lepple; 
nut-upsuser<BR><B>Objet&nbsp;:</B> Re: [Nut-upsuser] Usbhip-ups going 
wild<BR></FONT><BR></DIV>
<DIV></DIV>salut Antoine,<BR><BR>
<DIV class=gmail_quote>2009/7/31 Antoine Gatineau <SPAN dir=ltr>&lt;<A 
href="mailto:antoine.gatineau@alcatel-lucent.com">antoine.gatineau@alcatel-lucent.com</A>&gt;</SPAN><BR>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">I 
  might ask a stupid question but isn't hal used to manage the UPS device<BR>and 
  connection through udev rules?<BR>I though that hal was mostly usefull with 
  usb...<BR><BR>In the nut-hal document, it is said that HAL "allows NUT drivers 
  to feed the<BR>HAL system, which will itself feeds<BR>applications such as the 
  Gnome Power Manager"<BR>Does that mean hal is not used for managing the 
  battery itself but sees the<BR>nut driver as a "pseudo real &nbsp;battery"? In 
  this case, indeed, I do not need<BR>it.<BR>I use upsmon for power 
  management.<BR>
  <DIV class=im></DIV></BLOCKQUOTE>
<DIV><BR>not at all. there are 2 approaches:<BR>- the standard one, where you 
have a driver (usbhid-ups), upsd and upsmon.<BR>udev only applies the device 
privileges rules.<BR>- the Integrated Power Management approach, where NUT USB 
driver can feed data to HAL (instead of upsd), replacing the basic USB/HID 
support in HAL.<BR>Note that HAL is being superseded by DeviceKit and 
DeviceKit-power.<BR>This approach will probably be abandonned...<BR><BR></DIV>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
  <DIV class=im><BR>-----Message d'origine-----<BR>De : Charles Lepple 
  [mailto:<A 
  href="mailto:clepple@gmail.com">clepple@gmail.com</A>]<BR></DIV>Envoyé : 
  vendredi 31 juillet 2009 15:08<BR>
  <DIV>
  <DIV></DIV>
  <DIV class=h5>À : Antoine Gatineau<BR>Cc : 'nut-upsuser'<BR>Objet : Re: 
  [Nut-upsuser] Usbhip-ups going wild<BR><BR>On Jul 31, 2009, at 9:03 AM, 
  Antoine Gatineau wrote:<BR><BR>&gt; Indeed, nut depends on some packages not 
  the distribution itself.<BR>&gt; You are surely right.<BR>&gt;<BR>&gt; Anyway, 
  here are the links :<BR>&gt; RHEL 4 : <A 
  href="ftp://rpmfind.net/linux/EPEL/4ES/SRPMS/" 
  target=_blank>ftp://rpmfind.net/linux/EPEL/4ES/SRPMS/</A><BR>&gt; 
  nut-2.2.0-4.el4.src.rpm<BR>&gt; RHEL 5 : nut-2.4.1 found only on this 
  one<BR>&gt; <A href="http://wolfy.fedorapeople.org/nut/SRPM/" 
  target=_blank>http://wolfy.fedorapeople.org/nut/SRPM/</A><BR></DIV></DIV></BLOCKQUOTE>
<DIV><BR>use that one.<BR>install it and edit the spec.<BR>modifying --with-all 
by --with-usb should be sufficient.<BR></DIV></DIV><BR 
clear=all>cheers,<BR>Arnaud<BR>-- <BR>Linux / Unix Expert R&amp;D - Eaton - <A 
href="http://www.eaton.com/mgeops">http://www.eaton.com/mgeops</A><BR>Network 
UPS Tools (NUT) Project Leader - <A 
href="http://www.networkupstools.org/">http://www.networkupstools.org/</A><BR>Debian 
Developer - <A href="http://www.debian.org">http://www.debian.org</A><BR>Free 
Software Developer - <A 
href="http://arnaud.quette.free.fr/">http://arnaud.quette.free.fr/</A><BR><BR></BODY></HTML>