UPS driver

Peter Senna Tschudin peter.senna at gmail.com
Sat May 5 21:13:49 EDT 2012


Dear list,

Is there a specific mailing list for POWER SUPPLY CLASS/SUBSYSTEM and DRIVERS?

I'm writing a driver for the UPS:
http://www.sms.com.br/produtos/Nobreak-SMS/Manager-III-Senoidal

The communication protocol between PC and UPS is simple and I did
userspace tool for that.
https://github.com/petersenna/nobreakSMS/blob/master/userland/nobreakSMS.c

Now I'm writing the Linux driver for it. I want to present the UPS as
AC+Battery to the user. But when using POWER_SUPPLY_TYPE_UPS (defined
at: include/linux/power_supply.h), gnome-power* do not present the UPS
to the user even the values being available though /sys. It this a bug
for gnome-power*? Or is it expected to not present UPS information to
the user as AC+Battery?

About the battery type should I make a patch for adding lead acid
battery type? This is still very common as battery type for UPS.
Anything like:
--//--
diff -Nrp a/power_supply.h b/power_supply.h
*** a/power_supply.h	2012-05-05 21:57:30.136563463 -0300
--- b/power_supply.h	2012-05-05 21:58:53.293402380 -0300
*************** enum {
*** 63,68 ****
--- 63,69 ----
  	POWER_SUPPLY_TECHNOLOGY_LiFe,
  	POWER_SUPPLY_TECHNOLOGY_NiCd,
  	POWER_SUPPLY_TECHNOLOGY_LiMn,
+ 	POWER_SUPPLY_TECHNOLOGY_PbH2SO4,
  };

  enum {
--//--

Any idea if the maintainers are accepting drivers for devices like this UPS?

Kind Regards,

Peter

-- 
Peter Senna Tschudin
peter.senna at gmail.com
gpg id: 48274C36



More information about the Kernelnewbies mailing list