Re: [opensuse] Attempting (and failing) to use my UPS



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Wednesday, 2008-11-19 at 08:44 -0500, Patrick Shanahan wrote:

Yes, that's correct. But the driver is loaded/run as plain user and it has
no permission to access the USB raw, and thus, it fails. When the driver is
run as root it works (/usr/lib/ups/driver/megatec_usb -DDD -a myups), but
then it can not be daemonized.

At least, that's my current hypothesis.

You have a problem in upsd.conf, which contains "access control data",
or upsd.users, which sets permissions for the ups daemon. My ups
driver and monitor daemons run as user:upsd, which was created in
upsd.users which I quoted in a previous mail in this thread.

Possibly, but my main problem is not the daemon, but the driver. First I have to get the driver talking to the ups; once that works, I'll worry about the daemon.

The init script starts three things:

upsdrvctl (message "Starting NUT UPS drivers failed")
upsd (Starting NUT UPS server failed)
upsmon (Starting NUT UPS monitor failed)

As the driver fails, the other two will fail too, so worrying about their permissions is not important yet. My main problem is the driver part, and I think it is also a permission problem.


- -- Cheers,
Carlos E. R.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkkkt6EACgkQtTMYHG2NR9WnuACeP2rNLDr/iscOn0gdAsYmHJvw
D/UAnjluxMt0PxgDV3sxJssW59WUz0DT
=4+XU
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [opensuse] Attempting (and failing) to use my UPS
    ... upsdrvctl (message "Starting NUT UPS drivers failed") ... My main problem is the driver part, ... As I say, if the driver fails to load, the script exits and does not start the daemon, so it does not matter how it is configured. ...
    (SuSE)
  • Re: Laptop shock detection and harddisk protection
    ... There's another issue with the current sysfs interface, ... I had in mind another daemon listening for "unload now" events, ... This driver * provides access and mutual exclusion for the EC ... ALRD -> is used by the driver to read out registers of the accelerometer ...
    (Linux-Kernel)
  • Re: tty line discipline driver advice sought, to do a 1-byte header and 2-byte CRC checksum
    ... You can do both - use a pty/tty pair to front the daemon ... what i was hoping was, like the motorola e680/a780 'mux_cli' driver, ... the way that harald plans to do this is to have a userspace daemon which ... and then hands it _back_ to kernelspace ...
    (Linux-Kernel)
  • Re: [PATCH 3/4] MFD: AB3550 core driver v2
    ... This adds a core driver for the AB3550 mixed-signal circuit ... the number of ranges in the list ... It is assumed that write permission implies read permission ... +static void ab3550_unmask ...
    (Linux-Kernel)
  • [PATCH 3/4] MFD: AB3550 core driver v2
    ... This adds a core driver for the AB3550 mixed-signal circuit ... the number of ranges in the list ... It is assumed that write permission implies read permission ... +static void ab3550_unmask ...
    (Linux-Kernel)