Martin Ivanov
2011-Jun-29 09:52 UTC
[Nut-upsuser] tcgetattr: Inappropriate ioctl for device
Dear nut users,
I am running nut-2.6.0 on Slackware-Linux-13.37.0 with kernel 2.6.37.6.
I am trying to get the software work for a repotec UPS with model name:
RPT-1003AU. The UPS communicates with the computer via USB. I know that the
model is not officially supported but I want to try out whether it will work
with some of the repotec drivers. Here is the result with the genericups
upstype=13 driver:
ups.conf:
[repotec]
driver = genericups upstype=13
port = /dev/bus/usb/002/006
upstype = 13
desc = "UPS"
error:
root at alhana:/etc/nut# /etc/rc.d/rc.ups start
Network UPS Tools - UPS driver controller 2.6.0
Network UPS Tools - Generic contact-closure UPS driver 1.36 (2.6.0)
UPS type: Repoteck RPT-800A, RPT-162A
tcgetattr: Inappropriate ioctl for device
Driver failed to start (exit status=1)
Does this mean that the driver is not supported or am I missing something?
Best regards,
M. Ivanov
Arjen de Korte
2011-Jun-29 10:12 UTC
[Nut-upsuser] tcgetattr: Inappropriate ioctl for device
Citeren Martin Ivanov <tramni at abv.bg>:> root at alhana:/etc/nut# /etc/rc.d/rc.ups start > Network UPS Tools - UPS driver controller 2.6.0 > Network UPS Tools - Generic contact-closure UPS driver 1.36 (2.6.0) > UPS type: Repoteck RPT-800A, RPT-162A > tcgetattr: Inappropriate ioctl for device > Driver failed to start (exit status=1) > > Does this mean that the driver is not supported or am I missing something?The genericups driver is for serial devices only. Only if the UPS has a supported USB to serial converter on board that is recognized by the kernel, you can use it. But in that case, you'd need to configure the /dev/ttyUSBx port that is created, not the USB port. Best regards, Arjen -- Please keep list traffic on the list (off-list replies will be rejected)
Seemingly Similar Threads
- Writing tests with Filecheck without emitting output to stdin
- Long to wide format without time variable
- Writing tests with Filecheck without emitting output to stdin
- Writing tests with Filecheck without emitting output to stdin
- Writing tests with Filecheck without emitting output to stdin