Re: [Nut-upsuser] Tripp Lite OMNI1000 LCD issues

2008-04-22 Thread John Darrah
On Tue, Apr 22, 2008 at 11:15:27AM +0200, Arjen de Korte wrote: Attached is approx 30 sec of output from the following command: [...] /* Get HID notifications on Interrupt pipe first */ /* TODO: cap number of times we check for events? */ while ((evtCount =

Re: [Nut-upsuser] Tripp Lite OMNI1000 LCD issues

2008-04-21 Thread Arjen de Korte
John Darrah wrote: I have determined that the the socket is never created because the program never reaches dstate_init(). It *must* reach this, otherwise it would never reach the part where it continuously loops through upsdrv_updateinfo(). [...] The following is a section of

Re: [Nut-upsuser] Tripp Lite OMNI1000 LCD issues

2008-04-21 Thread John Darrah
On Mon, Apr 21, 2008 at 09:36:07AM +0200, Arjen de Korte wrote: John Darrah wrote: I have determined that the the socket is never created because the program never reaches dstate_init(). It *must* reach this, otherwise it would never reach the part where it continuously loops through

Re: [Nut-upsuser] Tripp Lite OMNI1000 LCD issues

2008-04-20 Thread John Darrah
On Mon, Mar 31, 2008 at 09:16:03AM +0200, Arjen de Korte wrote: John Darrah wrote: I have determined that the socket is not being created. Even with - the following is never executed: upsdebugx(2, dstate_init: sock %s open on fd %d, sockname, sockfd) With the driver running if did a

Re: [Nut-upsuser] Tripp Lite OMNI1000 LCD issues

2008-03-30 Thread Arjen de Korte
The only reference to /var/run/nut in the strace is a chdir(/var/run/nut). That's where the driver has just dropped priviledges (line 537 in drivers/main.c) and just before it sets up the signals (line 540). Does it create the socket after this this chdir? Yes, but *way* after that in

Re: [Nut-upsuser] Tripp Lite OMNI1000 LCD issues

2008-03-29 Thread John Darrah
On Sat, Mar 29, 2008 at 06:28:38PM +0100, Arjen de Korte wrote: You may also want to checkout that you didn't do something weird to the STATEPATH (the directory where this socket is created). After starting up the driver, you should be able to see a listening socket being created there.