Re: 4 apcupsd problems using USB to connect on FreeBSD 7.2-RELEASE

2009-05-31 Thread Chun-fan Ivan Liao
On Sun, May 10, 2009 at 8:23 PM, Ion-Mihai Tetcu  wrote:
> On Sun, 10 May 2009 17:08:03 +0800
> Chun-fan Ivan Liao  wrote:
>
>> OS version: FreeBSD 7.2 RELEASE
>> apcupsd version: 3.14.5
>> UPS model: APC-MGE Back-UPS RS 1000VA (BR1000TW)
>> UPS cable type: usb
>>
>> 3 important lines in /usr/local/etc/apcupsd/apcupsd.conf:
>> -
>> UPSCABLE usb
>> UPSTYPE usb
>> DEVICE
>> -
>> Other lines are default.
>>
>>
>> Problem Description:
>> 1.
>> The APC box cannot be detected when connected to the FreeBSD system on
>> system boot. (apcupsd_enable="YES" is set in /etc/rc.conf )
>>
>> The associated messages in /var/log/messages:
>> -
>> May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd FATAL ERROR in
>> bsd-usb.c at line 735 Cannot find UPS device -- For a link to detailed
>> USB trouble shooting information, please see
>> .
>> May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd error shutdown
>> completed -
>
> Please post your /var/run/dmesg.boot after a roobot.
>

Please see http://www.ivangelion.tw/~cfliao/dmesg.boot.

>> 2.
>> Continuing 1, if I unplug the connecting USB then re-plug it to the
>> same port, the USB cannot be identified.
>>
>> The associated message in /var/log/messages:
>> -
>> May 10 16:36:17 aura-cosmetics kernel: uhub0: device problem
>> (TIMEOUT), disabling port 3
>> -
>
> I'd say we hava a problem here.
>
> I'd be curios to know if you see the same thing with a kernel w/o usb
> in it and the following klds loaded: usb.ko, ugen.ko, umass.ko
>

The result is the same. I've commented all the usb devices in my
kernel, and put the following 3 lines in /boot/loader.conf:
  usb_load="YES"
  ugen_load="YES"
  umass_load="YES"

>
>
> --
> IOnut - Un^d^dregistered ;) FreeBSD "user"
>  "Intellectual Property" is   nowhere near as valuable   as "Intellect"
> FreeBSD committer -> ite...@freebsd.org, PGP Key ID 057E9F8B493A297B
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: 4 apcupsd problems using USB to connect on FreeBSD 7.2-RELEASE

2009-05-31 Thread Chun-fan Ivan Liao
On Mon, May 11, 2009 at 2:00 AM, Frank Shute  wrote:
>
> On Sun, May 10, 2009 at 05:08:03PM +0800, Chun-fan Ivan Liao wrote:
> >
> > OS version: FreeBSD 7.2 RELEASE
> > apcupsd version: 3.14.5
> > UPS model: APC-MGE Back-UPS RS 1000VA (BR1000TW)
> > UPS cable type: usb
> >
> > 3 important lines in /usr/local/etc/apcupsd/apcupsd.conf:
> > -
> > UPSCABLE usb
> > UPSTYPE usb
> > DEVICE
> > -
> > Other lines are default.
>
> I've got an APC SmartUPS 750 (USB on 6.4-RELEASE).
>
> When I hacked my apcupsd.conf (sometime ago now), I put in:
>
> DEVICE ugen0
>
> I don't know if that's your problem i.e: you haven't specified the
> DEVICE.
>

The reason that I did not specify the DEVICE is because the
instruction in apcupsd.conf said so. And specifying DEVICE ugen0
yielded the same result.

> >
> >
> > Problem Description:
> > 1.
> > The APC box cannot be detected when connected to the FreeBSD system on
> > system boot. (apcupsd_enable="YES" is set in /etc/rc.conf )
> >
> > The associated messages in /var/log/messages:
> > -
> > May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd FATAL ERROR in
> > bsd-usb.c at line 735 Cannot find UPS device -- For a link to detailed
> > USB trouble shooting information, please see
> > .
> > May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd error shutdown 
> > completed
> > -
> >
> > 2.
> > Continuing 1, if I unplug the connecting USB then re-plug it to the
> > same port, the USB cannot be identified.
> >
> > The associated message in /var/log/messages:
> > -
> > May 10 16:36:17 aura-cosmetics kernel: uhub0: device problem
> > (TIMEOUT), disabling port 3
> > -
> >
> > 3.
> > Contiuning 2, changing the port to plug the USB will do, and
> > /var/log/messages reads:
> > -
> > May 10 16:41:07 aura-cosmetics root: Unknown USB device: vendor 0x051d
> > product 0x0002 bus uhub1
> > May 10 16:41:08 aura-cosmetics kernel: ugen0:  > Conversion Back-UPS RS 1000 FW:7.g9a.D USB FW:g9a, class 0/0, rev
> > 1.10/1.06, addr 2> on uhub1
> > -
> >
> > But when starting the apcupsd now using [apcupsd start], there is no
> > "freebsd startup succeeded" message appearing in /var/log/messages.
> >
> > However using [ps ax| grep apcupsd], there is the following associated
> > procedure in the standard output:
> > -
> > 1264  ??  Ss 0:00.01 apcupsd start
> > -
> >
> > 4.
> > The last problem continuing 3, if stopping the apcupsd now using
> > [apcupsd stop], the following error messages occur in
> > /var/log/messages:
> > -
> > May 10 16:48:11 aura-cosmetics apcupsd[1270]: Valid lock file for
> > pid=1264, but not ours pid=1270
> > May 10 16:48:11 aura-cosmetics apcupsd[1271]: apcupsd FATAL ERROR in
> > bsd-usb.c at line 735 Cannot find UPS device -- For a link to detailed
> > USB trouble shooting information, please see
> > .
> > May 10 16:48:11 aura-cosmetics apcupsd[1271]: Valid lock file for
> > pid=1264, but not ours pid=1271
> > May 10 16:48:11 aura-cosmetics apcupsd[1271]: apcupsd error shutdown 
> > completed
> > -
> >
> > Any help will be greatly appreciated.
>
> Regards,
>
> --
>
>  Frank
>
>
>  Contact info: http://www.shute.org.uk/misc/contact.html
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: 4 apcupsd problems using USB to connect on FreeBSD 7.2-RELEASE

2009-05-10 Thread Frank Shute
On Sun, May 10, 2009 at 05:08:03PM +0800, Chun-fan Ivan Liao wrote:
>
> OS version: FreeBSD 7.2 RELEASE
> apcupsd version: 3.14.5
> UPS model: APC-MGE Back-UPS RS 1000VA (BR1000TW)
> UPS cable type: usb
> 
> 3 important lines in /usr/local/etc/apcupsd/apcupsd.conf:
> -
> UPSCABLE usb
> UPSTYPE usb
> DEVICE
> -
> Other lines are default.

I've got an APC SmartUPS 750 (USB on 6.4-RELEASE).

When I hacked my apcupsd.conf (sometime ago now), I put in:

DEVICE ugen0

I don't know if that's your problem i.e: you haven't specified the
DEVICE.

> 
> 
> Problem Description:
> 1.
> The APC box cannot be detected when connected to the FreeBSD system on
> system boot. (apcupsd_enable="YES" is set in /etc/rc.conf )
> 
> The associated messages in /var/log/messages:
> -
> May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd FATAL ERROR in
> bsd-usb.c at line 735 Cannot find UPS device -- For a link to detailed
> USB trouble shooting information, please see
> .
> May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd error shutdown completed
> -
> 
> 2.
> Continuing 1, if I unplug the connecting USB then re-plug it to the
> same port, the USB cannot be identified.
> 
> The associated message in /var/log/messages:
> -
> May 10 16:36:17 aura-cosmetics kernel: uhub0: device problem
> (TIMEOUT), disabling port 3
> -
> 
> 3.
> Contiuning 2, changing the port to plug the USB will do, and
> /var/log/messages reads:
> -
> May 10 16:41:07 aura-cosmetics root: Unknown USB device: vendor 0x051d
> product 0x0002 bus uhub1
> May 10 16:41:08 aura-cosmetics kernel: ugen0:  Conversion Back-UPS RS 1000 FW:7.g9a.D USB FW:g9a, class 0/0, rev
> 1.10/1.06, addr 2> on uhub1
> -
> 
> But when starting the apcupsd now using [apcupsd start], there is no
> "freebsd startup succeeded" message appearing in /var/log/messages.
> 
> However using [ps ax| grep apcupsd], there is the following associated
> procedure in the standard output:
> -
> 1264  ??  Ss 0:00.01 apcupsd start
> -
> 
> 4.
> The last problem continuing 3, if stopping the apcupsd now using
> [apcupsd stop], the following error messages occur in
> /var/log/messages:
> -
> May 10 16:48:11 aura-cosmetics apcupsd[1270]: Valid lock file for
> pid=1264, but not ours pid=1270
> May 10 16:48:11 aura-cosmetics apcupsd[1271]: apcupsd FATAL ERROR in
> bsd-usb.c at line 735 Cannot find UPS device -- For a link to detailed
> USB trouble shooting information, please see
> .
> May 10 16:48:11 aura-cosmetics apcupsd[1271]: Valid lock file for
> pid=1264, but not ours pid=1271
> May 10 16:48:11 aura-cosmetics apcupsd[1271]: apcupsd error shutdown completed
> -
> 
> Any help will be greatly appreciated.

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: 4 apcupsd problems using USB to connect on FreeBSD 7.2-RELEASE

2009-05-10 Thread Ion-Mihai Tetcu
On Sun, 10 May 2009 17:08:03 +0800
Chun-fan Ivan Liao  wrote:

> OS version: FreeBSD 7.2 RELEASE
> apcupsd version: 3.14.5
> UPS model: APC-MGE Back-UPS RS 1000VA (BR1000TW)
> UPS cable type: usb
> 
> 3 important lines in /usr/local/etc/apcupsd/apcupsd.conf:
> -
> UPSCABLE usb
> UPSTYPE usb
> DEVICE
> -
> Other lines are default.
> 
> 
> Problem Description:
> 1.
> The APC box cannot be detected when connected to the FreeBSD system on
> system boot. (apcupsd_enable="YES" is set in /etc/rc.conf )
> 
> The associated messages in /var/log/messages:
> -
> May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd FATAL ERROR in
> bsd-usb.c at line 735 Cannot find UPS device -- For a link to detailed
> USB trouble shooting information, please see
> .
> May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd error shutdown
> completed -

Please post your /var/run/dmesg.boot after a roobot.
 
> 2.
> Continuing 1, if I unplug the connecting USB then re-plug it to the
> same port, the USB cannot be identified.
> 
> The associated message in /var/log/messages:
> -
> May 10 16:36:17 aura-cosmetics kernel: uhub0: device problem
> (TIMEOUT), disabling port 3
> -

I'd say we hava a problem here.

I'd be curios to know if you see the same thing with a kernel w/o usb
in it and the following klds loaded: usb.ko, ugen.ko, umass.ko



-- 
IOnut - Un^d^dregistered ;) FreeBSD "user"
  "Intellectual Property" is   nowhere near as valuable   as "Intellect"
FreeBSD committer -> ite...@freebsd.org, PGP Key ID 057E9F8B493A297B


signature.asc
Description: PGP signature