From: peter.senna@gmail.com (Peter Senna Tschudin)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Driver for UPS
Date: Sun, 8 Apr 2012 14:21:22 -0300 [thread overview]
Message-ID: <CA+MoWDqcxREE2GoY78DOypEUi89pjMLw9mK42o-UXwWXi3ruVg@mail.gmail.com> (raw)
Dear list,
I want to write a driver for my UPS. My goal is to plug the USB cable,
and have the system to recognize the device as battery + AC power
supply. The effect I'm looking for is GNOME showing an icon with
battery load, power source state and time remaining to full and empty
battery. Some UPS from APC behave exactly like this. But it is not
clear how it is done.
I made a C program that talks to the UPS but I need some guidance from
here. How should this be implemented? Should I do a Kernel module or
deal with it on userland?
I found nut (http://www.networkupstools.org/) and apcupsd
(http://www.apcupsd.org/) that are not what I'm looking for.
Any references about APC UPS + Kernel are welcome.
Thanks!
Peter
--
Peter Senna Tschudin
peter.senna at gmail.com
gpg id: 48274C36
reply other threads:[~2012-04-08 17:21 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=CA+MoWDqcxREE2GoY78DOypEUi89pjMLw9mK42o-UXwWXi3ruVg@mail.gmail.com \
--to=peter.senna@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.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).