APC UPS USB on 1.2



  • Hello,

    I updated to pfsense 1.2 yesterday and since then been trying to get APC UPS working that used to work before with 1.0.1. I tried nut package and tried apcupsd and both dont detected it anymore. Is the USB support changed in the 1.2 version ? Or am I doing something wrong ? It worked with out a problem on 1.0.1. Thanks in advance.

    Please help.



  • Its not really a package problem as the system doesnt see the device hoba….....
    did usb support change in 1.2 ? as this worked with 1.0.1 with out a problem the system saw the device as soon as it was plugged in. In the system.log all I see is when I disconnect it, not when I connected it. Here is what it says when I disconnect it

    "Apr 13 15:24:53 pfsense kernel: (null): at uhub0 port 1 (addr 2) disconnected"

    Is the kernel no compiled with the uhid or no ugen as apcupsd uses that support ?



  • No one can comment on this issue ?



  • uhub0 and ugen are both there.



  • Why wouldnt the UPS show up as a device at all ? Here is a list from /dev

    ls

    acd0            cuad1          net11          nfs4            ttyv3
    acpi            cuad1.init      net12          nfslock        ttyv4
    ad0            cuad1.lock      net13          null            ttyv5
    ad0s1          devctl          net14          pci            ttyv6
    ad0s1a          devstat        net15          pf              ttyv7
    ad0s1b          fd              net16          ppi0            ttyv8
    ad0s1c          fd0            net17          ptyp0          ttyv9
    agpgart        fido            net18          random          ttyva
    apm            geom.ctl        net19          speaker        ttyvb
    ata            io              net2            stderr          ttyvc
    atkbd0          kbd0            net20          stdin          ttyvd
    bpf0            kbd1            net21          stdout          ttyve
    bpf1            kbdmux0        net22          sysmouse        ttyvf
    bpf2            klog            net23          ttyd0          urandom
    bpf3            kmem            net24          ttyd0.init      usb
    bpf4            lpt0            net3            ttyd0.lock      usb0
    console        lpt0.ctl        net4            ttyd1          usb1
    consolectl      md0            net5            ttyd1.init      xpt0
    crypto          mdctl          net6            ttyd1.lock      zero
    ctty            mem            net7            ttyp0
    cuad0          net            net8            ttyv0
    cuad0.init      net1            net9            ttyv1
    cuad0.lock      net10          network        ttyv2

    and here is output of the dmesg | grep u

    All buffers synced.
    FreeBSD is a registered trademark of The FreeBSD Foundation.
    FreeBSD 6.2-RELEASE-p11 #0: Sun Feb 24 16:32:58 EST 2008
        sullrich@builder6.pfsense.com:/usr/obj.pfSense/usr/src/sys/pfSense.6
    Timecounter "i8254" frequency 1193182 Hz quality 0
      Origin = "GenuineIntel"  Id = 0xf13  Stepping = 3
      Features=0x3febfbff <fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,htt,tm>kbd1 at kbdmux0
    acpi0: Power Button (fixed)
    Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
    cpu0: <acpi cpu="">on acpi0
    acpi_throttle0: <acpi cpu="" throttling="">on cpu0
    acpi_button0: <power button="">on acpi0
    pci0: <acpi pci="" bus="">on pcib0
    pci1: <pci bus="">on pcib1
    pci3: <acpi pci="" bus="">on pcib2
    miibus0: <mii bus="">on rl0
    rlphy0: <realtek internal="" media="" interface="">on miibus0
    rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    miibus1: <mii bus="">on rl1
    rlphy1: <realtek internal="" media="" interface="">on miibus1
    rlphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    isa0: <isa bus="">on isab0
    uhci0: <intel 82801ba="" bam="" (ich2)="" usb="" controller="" usb-a="">port 0xd800-0xd81f irq 11 at device 31.2 on pci0
    uhci0: [GIANT-LOCKED]
    usb0: <intel 82801ba="" bam="" (ich2)="" usb="" controller="" usb-a="">on uhci0
    usb0: USB revision 1.0
    uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub0: 2 ports with 2 removable, self powered
    pci0: <serial bus,="" smbus="">at device 31.3 (no driver attached)
    uhci1: <intel 82801ba="" bam="" (ich2)="" usb="" controller="" usb-b="">port 0xdc00-0xdc1f irq 10 at device 31.4 on pci0
    uhci1: [GIANT-LOCKED]
    usb1: <intel 82801ba="" bam="" (ich2)="" usb="" controller="" usb-b="">on uhci1
    usb1: USB revision 1.0
    uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub1: 2 ports with 2 removable, self powered
    acpi_button1: <sleep button="">on acpi0
    ppbus0: <parallel port="" bus="">on ppc0
    lpt0: <printer>on ppbus0
    lpt0: Interrupt-driven port
    ppi0: <parallel i="" o="">on ppbus0
    sc0: VGA <16 virtual consoles, flags=0x300>
    Timecounter "TSC" frequency 1703871700 Hz quality 800
    Timecounters tick every 1.000 msec
    Fast IPsec: Initialized Security Association Processing.
    Trying to mount root from ufs:/dev/ad0s1a
    pflog0: promiscuous mode enabled
    rl0: promiscuous mode enabled

    What am I doing wrong here ? I just plug it in and nothing comes up anywhere else ?</parallel></printer></parallel></sleep></intel></intel></serial></intel></intel></isa></realtek></mii></realtek></mii></acpi></pci></acpi></power></acpi></acpi></fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,htt,tm>



  • Check the rest of the dmesg if something else is using irq10. Also disable everything in the bios that you don't need (serial ports, lpt ports, soundcards,…). If the bios has an option for pnp os make sure it is set to "no".



  • Thanks  hoba

    The network card is on irq 10

    dmesg | grep "irq 10"

    rl1: <d-link 10="" dfe-530tx+="" 100basetx="">port 0xb800-0xb8ff mem 0xdfeffe00-0xdfeffeff irq 10 at device 5.0 on pci3
    uhci1: <intel 82801ba="" bam="" (ich2)="" usb="" controller="" usb-b="">port 0xdc00-0xdc1f irq 10 at device 31.4 on pci0
    rl1: <d-link 10="" dfe-530tx+="" 100basetx="">port 0xb800-0xb8ff mem 0xdfeffe00-0xdfeffeff irq 10 at device 5.0 on pci3
    uhci1: <intel 82801ba="" bam="" (ich2)="" usb="" controller="" usb-b="">port 0xdc00-0xdc1f irq 10 at device 31.4 on pci0
    rl1: <d-link 10="" dfe-530tx+="" 100basetx="">port 0xb800-0xb8ff mem 0xdfeffe00-0xdfeffeff irq 10 at device 5.0 on pci3
    uhci1: <intel 82801ba="" bam="" (ich2)="" usb="" controller="" usb-b="">port 0xdc00-0xdc1f irq 10 at device 31.4 on pci0

    I guess thats the issue ? I wonder how I can change that, should I try a different PCI slot ?</intel></d-link></intel></d-link></intel></d-link>



  • You could try that, or as I suggested disable other unneeded devices in the bios. There's usually a lot of stuff that you can turn off as you don't need it to run pfSense to free up some hardwareressources.



  • Got you will try tommorow as this is a headless machine. Thanks.



  • Ok I was able to do it now. The irq 10 is clean now, still no luck with the devices

    dmesg | grep "irq 10"

    uhci1: <intel 82801ba="" bam="" (ich2)="" usb="" controller="" usb-b="">port 0xdc00-0xdc1f irq 10 at device 31.4 on pci0

    ls

    acd0            cuad1          net11          nfs4            ttyv3
    acpi            cuad1.init      net12          nfslock        ttyv4
    ad0            cuad1.lock      net13          null            ttyv5
    ad0s1          devctl          net14          pci            ttyv6
    ad0s1a          devstat        net15          pf              ttyv7
    ad0s1b          fd              net16          ppi0            ttyv8
    ad0s1c          fd0            net17          ptyp0          ttyv9
    agpgart        fido            net18          random          ttyva
    apm            geom.ctl        net19          speaker        ttyvb
    ata            io              net2            stderr          ttyvc
    atkbd0          kbd0            net20          stdin          ttyvd
    bpf0            kbd1            net21          stdout          ttyve
    bpf1            kbdmux0        net22          sysmouse        ttyvf
    bpf2            klog            net23          ttyd0          urandom
    bpf3            kmem            net24          ttyd0.init      usb
    bpf4            lpt0            net3            ttyd0.lock      usb0
    console        lpt0.ctl        net4            ttyd1          usb1
    consolectl      md0            net5            ttyd1.init      xpt0
    crypto          mdctl          net6            ttyd1.lock      zero
    ctty            mem            net7            ttyp0
    cuad0          net            net8            ttyv0
    cuad0.init      net1            net9            ttyv1
    cuad0.lock      net10          network        ttyv2

    I dont have to reinstall do I ?</intel>



  • The funny thing is that when I disconnect the UPS I get this messages,

    Apr 14 22:58:09 pfsense kernel: (null): at uhub0 port 1 (addr 2) disconnected
    Apr 14 23:00:02 pfsense kernel: (null): at uhub0 port 2 (addr 2) disconnected

    but nothing on connect to eather port, and this was all good before :(



  • Reinstallation should not be neccessary but maybe it would help. Try to fire up the livecd and see if it detects the hotplug of the ups before reinstalling.

    Oh, and did you try to reset the ups? Maybe it has crashed and doesn't provide useful information anymore to the system?



  • I tried with another UPS and all the same, for some reason it doesn't see that kind of UPS, I was able to use a USB keyboard, USB jumpdrive all fine hotpluged and everything, but when I plug in the UPS I get nothing…...... I disabled everything in the BIOS even the floppy...... This is very strange I wonder whats different here vs 1.0.1

    For reference its a APC Backup UPS ES 350R



  • I would start searching freebsd lists regarding usb and that ups. 1.0.1 and 1.2 have different freebsd versions. 1.2 is much newer of course.



  • Yeah I figured as much, I looked last night, couldn't really find much. I cant remember what version of FreeBSD was 1.0.1 on ?



  • 6.1 iirc.



  • Well I looked around, and I cant find anything. I will try installing 6.2 on a white box and try connecting to it to see what happenes.



  • Worth visiting the NUT (Network UPS Tools) list archive too.  ISTR that FreeBSD and USB UPS support is still pretty poor.



  • Thanks tried everything and nothing works. SO maybe downgrade is in  my future. :(



  • Rather than downgrading, you can look the other way to see if that will help. pfSense 1.2.1 should be here by the end of the month, and will be based on FreeBSD 6.3-RELEASE (rather than the 6.2-RELEASE used in 1.2).

    Click here for the development snapshots. The ISO works fine on my Dell Poweredge R200, which, being ICH9 based, will not work with FreeBSD 6.2-RELEASE. However, it's not advised to use this in production.


Log in to reply