Porting DeviceKit-power to non-Linux

Arnaud Quette aquette.dev at gmail.com
Thu Jul 30 14:42:13 PDT 2009


2009/7/29 Richard Hughes <hughsient at gmail.com>

> 2009/7/29 Arnaud Quette <aquette.dev at gmail.com>:
> > I take this opportunity to recall that the UPS support code in DK-p is
> Linux
> > only, since it relies on the hiddev Linux driver.
>
> Yup.
>
> > Richard: do you have any plan in this area, and possibly according to the
> > proposition I once made (using NUT as a bridge...)? I've not yet had time
> to
> > look at the above branch, but the main issue was to provide info to DK-p
> > from an external source...
>
> I don't have any plan on making data from NUT available in DK-p -- to
> be honest, I think a lot of the driver quirks can be done in kernel
> space rather than userspace, and have userspace just use the simple
> hiddev device.
>

I was really talking about the other platforms here. I'm not trying to push
NUT here again ;-)

I don't know if Solaris or FreeBSD uhid or any other else can do the job.
Maybe Lin can tell us more about Solaris current status? I've not looked at
it since the work on ugen with Jan Van Bruene.

so, just to say that if only publishing data over DBus is required, then NUT
can do the job, as it does for HAL, at least as an interim. It's possibly
not the best solution, but it fills a lack, without affecting dkp's code.


> I still don't think putting the hid parsing in userspace is a good idea.
>

In the case of NUT, I disagree. but for dkp, I agree.
most manufacturers are moving toward HID real compliance, so things are
fine.
for other USB devs that are not HID compliant (or more complex setup, as we
discussed), NUT is the open door.

cheers,
Arnaud
-- 
Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/devkit-devel/attachments/20090730/d64fe9a9/attachment.htm 


More information about the devkit-devel mailing list