Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Apcupsd doesn't work on Odroid XU4

Featured Replies

Hi.
I have a Odroid XU4 with Ubuntu Bionic latest release (5.60), powered with this UPS: APC SmartUPS 750 VA.
Apcupsd doesn't work. The problem seems related to the missing /dev/usb/hiddev0.

 

After searching on Google, I found that apcupsd requires this feature enabled in the kernel.
CONFIG_USB_HIDDEV=Y

 

I build my own kernel enabling it, but no change.
Here the output of the command

# dmesg | grep Smart

[    4.125553] usb 1-1.2: Product: Smart-UPS 750 FW:651.13.I USB FW:7.3
[    4.205622] hid-generic 0003:051D:0002.0001: hidraw0: USB HID v1.10 Device [American Power Conversion Smart-UPS 750 FW:651

On the Rock64 board it works without problem.

Here the output of the command

# dmesg | grep Smart

[    2.175796] usb 3-1: Product: Smart-UPS 750 FW:651.13.I USB FW:7.3
[    3.719981] hid-generic 0003:051D:0002.0001: hiddev0,hidraw0: USB HID v1.10 Device [American Power Conversion Smart-UPS 750 FW:651.13.I USB FW:7.3] on usb-ff5d0000.usb-1/input0

As you can see, on the Rock64 board there is hiddev0

hid-generic 0003:051D:0002.0001: hiddev0,hidraw0

and /dev/usb/hiddev0 exists.

 

In the Odroid forum, I found only this post about CONFIG_USB_HIDDEV
https://forum.odroid.com/viewtopic.php?f=93&t=28978

 

Thanks in advance.

 

  • Author

Same problem with latest Armbian Stretch. In both case I used Desktop version.

 

  • Author
46 minutes ago, Igor said:

You can also switch between different kernels for XU4 if that helps

 

Can you help me? How can I do it?

 

On the Rock64 I have the ayufan Stretch image 0.6.44, kernel 4.4.132. I have to search in that kernel configuration.

And I can try the Rock64 Armbian image to check if apcuspd works with it.

 

Thanks

 

  • Author
41 minutes ago, matteobp said:

And I can try the Rock64 Armbian image to check if apcuspd works with it. 

 

Yes, it works. So I can use the kernel configuration of the Rock64 board, I think this one

linux-rockchip-next.config

 

But it not simple, too many differences ... :-(

 

  • Author

I tried this image, and it works.

https://forum.odroid.com/viewtopic.php?f=95&t=30888

 

[    7.201747] usb 3-1.2.2: Product: Smart-UPS 750 FW:651.13.I USB FW:7.3
[    7.321793] hid-generic 0003:051D:0002.0004: hiddev97,hidraw3: USB HID v1.10 Device [American Power Conversion Smart-UPS 750 FW:651.13.I USB FW:7.3] on usb-xhci-hcd.3.auto-1.2.2/input0

 

All posts I found about hiddev feature are based on old kernel, and refers to CONFIG_USB_DEVICEFS that is deprecated.

 

Can I add a new post under Development section about enabling hiddev node in the kernel, or would it be considered a duplicate post?

 

Thanks.

 

  • Author

Sure, I won't miss it.

 

The problem is that enabling option CONFIG_USB_HIDDEV is not enough, something is still missing.

I wanted to create a specific post in a general section because maybe someone else knows how to do it, but no problem.

 

I'll try to compare the configuration kernel file of the other Ubuntu distribution, which I think is more similar to the Odroid XU4 Armbian configuration file than the Rock64 configuration file.

 

Thanks

 

  • Author

After several unsuccessful attempts, I decided to use the kernel configuration file of the "Ubuntu MATE 18.04 LTS" as it is, without any change, because in that distribution apcupsd works and the node /dev/usb/hiddev0 exists.

 

Regretfully, it doesn't work on Armbian :(:(:(

 

So my conclusion is that the problem is not just about the kernel, but there must be something else, and I have no idea what it might be.


So I had to change and move on to the "Ubuntu Minimal 18.04 LTS" with XFCE Desktop Environment, and it works.

https://wiki.odroid.com/odroid-xu4/os_images/linux/ubuntu_4.14/20180531

 

I can also confirm that I've had this issue for some time.

 

For me, the issue started around the time of the introduction of the 4.x series of kernels, on all distros for the XU4.  When that change occurred, APCUPSD stopped working. 

Has anyone figured out what is preventing APCUPSD to work here? I am having the same issue on Odroid C2 using the latest Ubuntu 18.04 image. Everything works fine on Rock64. 

@PatrikXThere was a driver missing related to USB, it has since been added/enabled. The latest kernel releases should support it, if not building an kernel package yourself will work, have done this myself and the APC UPS works just fine.

I have tested it today and it still does not work. I get "Warning communications lost with UPS". It works on Rock64. Both Odroid C2 and Rock64 use latest Armbian Ubuntu 18.04. 
 

It looks like something is not quite right with the Odroid C2 image. 

2 hours ago, PatrikX said:

It works on Rock64. Both Odroid C2 and Rock64 use latest Armbian Ubuntu 18.04. 


With kernel 4.4.y I suppose?

 

2 hours ago, PatrikX said:

It looks like something is not quite right with the Odroid C2 image. 


Whenever you report a problem, provide armbianmonitor -u ... without its really hard to tell anything.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.