Getting APCUPSD to talk to an APC ES 750
I can not get my new APC Back-UPS ES 750 to talk to Mandriva 10.1 over the supplied usb cable.
uname -a reports - Quote:
Quote:
I did some research and found a package to support APC-UPS. Here is what is installed on my 64 bit system. Quote:
From the doc supplied, I appear to have all the correct drivers loaded. Here is what the doc calls for for a 2.6 kernel. Quote:
Quote:
Quote:
I don't have a clew on building a kernel. Use udev? How? BTW, the usb ports seem to work just fine for the other usb devices I have. The ups is seen by Ubuntu, so I know the cable should not be the problem, or the code on the UPS, since it works with Ubuntu. Has anyone got a APC UPS working with Mandriva? If so, how? BTW, I saw some threads with similar hot plugging issues, and one solution was to use modprobe to unload the ehci_hcd driver and use only ohci_hcd. Of course this means you run all devices at the slower 1.0 usb speed. On some systems this got around a problem. On this bug it made no difference. |
Have you used MCC to set up your UPS? I do not use a UPS here, but MCC has an applet (icon) named "Set up a UPS for power monitoring" in the hardware category.
1. Open MCC (Tools > System Tools > Configure your computer in the menu system) 2. Select Hardware in the category list at the left. 3. Open the Set up a UPS for power monitoring icon in the main pane. Follow the prompts from there. HTH, |
ernie,
Yes, that was the first thing I tried. It fails because the system is not seeing the device on the usb bus. I have not been able to find out what error 71 is for the usb, yet. (First set of error messages I posted.) The interesting thing I found out is this function uses NUT to try and talk to the device. I have that working now on my netbook running Ubuntu 10.1. So, at this point I know the UPS is O.K. The last quote I posted basically says Mandrake will not work with this type of USB device using hiddev. Then it lists my choices. I was hoping someone who knows Mandriva very well could give me some idea of how to use udev. I sure don't want to build a custom kernel to get it working. If it comes to that, I will install a distro known to run hiddev. |
You can try adding the modules to /etc/modprobe.preload which should ensure that they are loaded at boot time, then add the commands that create the device nodes you need to the end of /etc/profile. Better yet, to avoid typos, copy the script you used to create the device nodes to /bin, or /usr/bin, then call the script from /etc/profile. To call the script, (assuming the script name is installUPSdeviceNodes, and you copied it to /usr/bin) add the full path name to the end of /etc/profile (/usr/bin/installUPSdeviceNodes). See if that works.
The file /etc/modprobe.preload does just what its name indicates, it is used to list (one module per line) the modules that should be loaded at boot time. I do not currently have to use /etc/modprobe.preload to load any modules here, but I have had to do so in the past (with earlier releases of Mandriva). What follows is the comment text found in the default file: Quote:
HTH, |
Thank-you for the reply. I will give it a try that way, and see what happens. I'll post back.
|
Some progress. I now have the needed modules loading a boot time. ( At least I think I have them all loaded ). I edited /etc/modprobe.preload and added hid, usbhid and hidusb-ups. No errors, and the modules show up with lsmod.
I can not get the shell script to add the nodes however, be editing /etc/profile. I tried calling the script, that failed, then I put the command into the file. Either way, after boot, /dev/usb/hid/ does not exist. If I run the command as root, ie 'sh make-hiddev' it works. For the record, here is the contents of the file. Quote:
Quote:
|
OK, I goofed. /etc/profile is not the place to call your script. I did a small experiment. I put commands in /etc/profile to create a test file in my $HOME directory with the value contained in $UID (root = 0), and I got back a my user uid (10001). It has been too long since I did any shell scripting . . .
Try adding the call to the script in /etc/rc.local. Remember to use the full path name as described in post # 4 of this thread. HTH, |
Well, progress is slow. I got the script to work when I boot the system. That is the good news. The bad news is the ups still does not show up when I do a lsusb. dmesg shows errors as before.
So, at this point I have the NUT utilities installed and configure. They are running, I get a message that the UPS is not available. I'm going to do some more scratching around to see if I can figure out why the UPS shows up on Ubuntu and not Mandrake. |
have you played with usb speed settings in the bios changing them to max resolved a usb detection issue i had with a card reader a while ago.
|
Quote:
Quote:
I had another look at the BIOS settings. I do not see any speed settings for USB. For the record, the system board is a Gigabyte GA-M61SME-S2 and the BIOS level is F4. |
An update. I have installed the latest BIOS for my Gigabyte system board. It is now at level F10a. There is no change in the problem. The UPS is still not detected by Mandriva.
I'm looking into configuring my own kernel. This is a learning process, I have never created my own kernel. I compiled the kernel without CONFIG_USB_DYNAMIC_MINORS and it made no difference. I still do not see the device with lsusb. |
All times are GMT -5. The time now is 09:38 AM. |