networkupstools / nut

The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271 Please star NUT on GitHub, this helps with sponsorships!
https://networkupstools.org/
Other
1.94k stars 346 forks source link

USB integration on Solaris #17

Open aquette opened 11 years ago

aquette commented 11 years ago

USB support on Solaris exists for years. But it has never been fully completed.

Some information:

Things to do:

jimklimov commented 6 years ago

One interesting pointer to look at (perhaps cover in configure somehow): https://alioth-lists.debian.net/pipermail/nut-upsdev/2014-December/006863.html

>>> I’ve recently installed OmniOS (running virtualized in VmWare ESXi with USB pass-through) and I got myself used APC SUA750I with USB port.
>>> I’ve successfully installed NUT tools. All seemed to work fine…. however I got no change updates, e.g. if I disconnected AC there was no report about it via NUT.
>>> Status was locked on OL, battery charge on 100% and so on… sometimes a value got updated, but this was very rare occasion (status was always OL).
>>> System reboot helped to get recent values.
>>> 
>>> I’ve tried apcupsd and it worked flawlessly.
>>> Then I wnt back to nut and I’ve noticed that interrupt processing is was disabled in NUT:
>>> 
>>> #if 1 //ndef SUN_LIBUSB
>>> bool_t use_interrupt_pipe = TRUE;
>>> #else
>>> bool_t use_interrupt_pipe = FALSE;
>>> #endif
>>> 
>>> A hack to a hack to enable it… fixed it. Now it works as it should.
>>> 
>>> It seems that SUN (well, Oracle) has fixed/updated their implementation… and requires IRQ to be processed.
jimklimov commented 4 years ago

Started an in-tree document (summarizing the bits of mails and blogs from the past decade or more) at #755