Hi Janeks, On Thu, Nov 06, 2008 at 09:08:36PM +0200, Janeks Kamerovskis wrote: > Thanks, Alexander for your help! > > Finaly I got to manage to compile NUT. > > Now I am configuring it: > my ups.conf: > [mustekUPS] > driver = megatec_usb > port = /dev/usb/hiddev0 > # port = auto
port is ignored. You can leave it to auto. > desc = "Mustek PowerMust 600 USB" > > But I am getting errors: > > /usr/local/ups/bin/upsdrvctl start > Network UPS Tools - UPS driver controller 2.2.2 > Network UPS Tools 2.2.2 - Megatec protocol driver 1.5.14 [megatec_usb] > Carlos Rodrigues (c) 2003-2008 > > Serial-over-USB transport layer for Megatec protocol driver [megatec_usb] > Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c) 2007 > > ser_send_pace: Device detached? (error -1: error sending control message: > Operation not permitted) > Successfully reconnected > ser_send_pace: Device detached? (error -1: error sending control message: > Operation not permitted) > Successfully reconnected > ser_send_pace: Device detached? (error -1: error sending control message: > Operation not permitted) > Successfully reconnected > ser_send_pace: Device detached? (error -1: error sending control message: > Operation not permitted) > Successfully reconnected > ser_send_pace: Device detached? (error -1: error sending control message: > Operation not permitted) > Successfully reconnected > Megatec protocol UPS not detected. > Driver failed to start (exit status=1) > > Also I am not shure how to configure hotplugging scripts for permissions. The easiest way is to install the packages I provided for you. They put hotplugging scripts where they should be. If this is not ok, you'll have to install them yourself. Look at scripts/udev. > I did like for serial ports using /dev/usb/diddev0 /dev/usb/hiddev* is not used. We use /dev/bus/usb/<bus>/<device>. Or you can specify -u root when starting the driver. -- Alexander _______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

