Bug#527738: fails to read properties from callout script

2009-05-09 Thread martin f krafft
also sprach Michael Biebl bi...@debian.org [2009.05.08.2258 +0200]:
 What are you trying to do, why do you need such a --direct option for
 hal-get-property?
 Could you please describe in more detail what your problem is.

#524098 -- I was trying to implement your suggestion in that bug
report: remove properties and only assign defaults to ones that were
empty by the time the callout is invoked. For that, I need
hal-get-property, right?

I don't care about --direct or not, but if hal-set-property works in
the same script where hal-get-property does not, and --direct is the
most obvious difference between them, I am lead to believe that
--direct for hal-get-property would let me get on with things.

-- 
 .''`.   martin f. krafft madd...@d.o  Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
seen on an advertising for an elaborate swiss men's watch:
  almost as complicated as a woman. except it's on time


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Bug#527738: fails to read properties from callout script

2009-05-08 Thread martin f krafft
Package: hal
Version: 0.5.12~git20090406.46dc48-2
Severity: important
File: /usr/bin/hal-get-property

I cannot get a property from a HAL callout script:

  + hal-get-property --udi 
/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input 
--key input.xkb.variant
  Could not initialise connection to hald.
  Normally this means the HAL daemon (hald) is not running or not ready.

HAL is started (or the callout wouldn't run), so the only
explanation I have is that HAL does not able to answer queries while
processing callouts. It seems hal-set-property has the --direct
option (not documented in the manpage) to work around this, but
hal-get-property does not recognise that option.

How am I to read parameters from HAL during the execution of a HAL
callout script, if the standard user interface methods don't work?

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages hal depends on:
ii  acl  2.2.47-2Access control list utilities
ii  adduser  3.110   add and remove users and groups
ii  consolekit   0.3.0-2 framework for defining and trackin
ii  dbus 1.2.12-1simple interprocess messaging syst
ii  hal-info 20090309-1  Hardware Abstraction Layer - fdi f
ii  libc62.9-7   GNU C Library: Shared libraries
ii  libdbus-1-3  1.2.12-1simple interprocess messaging syst
ii  libdbus-glib 0.80-3  simple interprocess messaging syst
ii  libexpat12.0.1-4 XML parsing C library - runtime li
ii  libgcc1  1:4.4.0-1~exp2  GCC support library
ii  libglib2.0-0 2.20.1-1The GLib library of C routines
ii  libhal-stora 0.5.12~git20090406.46dc48-2 Hardware Abstraction Layer - share
ii  libhal1  0.5.12~git20090406.46dc48-2 Hardware Abstraction Layer - share
ii  libpolkit2   0.9-3   library for accessing PolicyKit
ii  libsmbios2   2.0.3.dfsg-1Provide access to (SM)BIOS informa
ii  libstdc++6   4.3.3-8 The GNU Standard C++ Library v3
ii  libusb-0.1-4 2:0.1.12-13 userspace USB programming library
ii  libvolume-id 0.141-1 libvolume_id shared library
ii  lsb-base 3.2-22  Linux Standard Base 3.2 init scrip
ii  mount2.13.1.1-1  Tools for mounting and manipulatin
ii  pciutils 1:3.1.2-3   Linux PCI Utilities
ii  pm-utils 1.2.5-2 utilities and scripts for power ma
ii  policykit0.9-3   framework for managing administrat
ii  udev 0.141-1 /dev/ and hotplug management daemo
ii  usbutils 0.73-10 Linux USB utilities

Versions of packages hal recommends:
ii  eject   2.1.5+deb1+cvs20081104-6 ejects CDs and operates CD-Changer
ii  libsmbios-bin   2.0.3.dfsg-1 Provide access to (SM)BIOS informa

Versions of packages hal suggests:
pn  gnome-device-manager  none (no description available)

-- no debconf information


-- 
 .''`.   martin f. krafft madd...@d.o  Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Bug#527738: fails to read properties from callout script

2009-05-08 Thread Michael Biebl
martin f krafft wrote:
 Package: hal
 Version: 0.5.12~git20090406.46dc48-2
 Severity: important
 File: /usr/bin/hal-get-property
 
 I cannot get a property from a HAL callout script:
 
   + hal-get-property --udi 
 /org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input 
 --key input.xkb.variant
   Could not initialise connection to hald.
   Normally this means the HAL daemon (hald) is not running or not ready.
 
 HAL is started (or the callout wouldn't run), so the only
 explanation I have is that HAL does not able to answer queries while
 processing callouts. It seems hal-set-property has the --direct
 option (not documented in the manpage) to work around this, but
 hal-get-property does not recognise that option.
 
 How am I to read parameters from HAL during the execution of a HAL
 callout script, if the standard user interface methods don't work?

What are you trying to do, why do you need such a --direct option for
hal-get-property?
Could you please describe in more detail what your problem is.

Thanks,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature