[clug] auto detection of USB device and HAL

Adrian Blake adrian.blake at ieee.org
Wed Jun 6 10:55:23 GMT 2007


Problem resolved, with a few tense moments.  Thanks

Adrian

Chris Smart wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Adrian Blake wrote:
>>
>> Adrian Blake wrote:
>>> I have done some upgrades and in the process stuffed the auto
>>> detection of plugin USB devices like my camera and memory stick. I
>>> have determined that it probably stems from the fact that hald is not
>>> running. This diagnostic may be the clue:
>>>
>>> [root at adios adrian]# hald --verbose=yes  --daemon=no
>>> 11:36:56.931 [I] hald.c:497: hal 0.5.9
>>> 11:36:56.932 [I] hald.c:562: Will not daemonize
>>> 11:36:56.932 [I] hald_dbus.c:4574: local server is listening at
>>> unix:abstract=/var/run/hald/dbus-HYSmHObIEJ,guid=aa868ecfd92ffef012bc5e0046660fb8
>>>
>>> 11:36:56.933 [I] hald_runner.c:299: Runner has pid 6566
>>> 11:36:56.933 [W] ci-tracker.c:199: Could not get uid for connection:
>>> org.freedesktop.DBus.Error.NameHasNoOwner Could not get UID of name
>>> 'org.freedesktop.DBus': no such name
>>> 11:36:56.933 [E] hald_dbus.c:4238: Cannot get caller info for
>>> org.freedesktop.DBus
>>> Runner started - allowed paths are
>>> '/usr/lib:/usr/lib/hal/scripts:/usr/bin'
>>> 11:36:56.934 [I] hald_runner.c:180: runner connection is 0x8095840
>>> 11:36:56.934 [I] mmap_cache.c:161: Regenerating fdi cache..
>>> Run started hald-generate-fdi-cache (10000) (0)
>>> !  full path is '/usr/lib/hald-generate-fdi-cache', program_dir is
>>> '/usr/lib'
>>> 11:36:56.935 [I] create_cache.c:608: Loading rules
>>> 11:36:56.965 [E] create_cache.c:525: Cannot scan
>>> '/etc/hal/fdi/information': No such file or directory
>>> 11:36:56.965 [E] create_cache.c:683: Error generating fdi cache
>>> /usr/lib/hald-generate-fdi-cache exited
>>> 11:36:56.966 [I] mmap_cache.c:137: In regen_cache_cb exit_type=0,
>>> return_code=1
>>> 11:36:56.966 [E] mmap_cache.c:190: fdi cache regeneration failed!
>>> 11:36:56.966 [I] mmap_cache.c:193: fdi cache generation done
>>> 11:36:56.966 [I] mmap_cache.c:251: cache mtime is 1181073922
>>> 11:36:56.966 [E] osspec.c:310: Unable to inotify_add_watch() for
>>> '/etc/hal/fdi/information': No such file or directory
>>> *** [DIE] osspec.c:watch_fdi_files():389 : Error watching fdi files
>>>
>>> But what should be in /etc/hal/fdi/information  ?
>>>
>>> Any other suggestions
>> Further investigation reveals more:
>>
>> [root at adios init.d]# hal-device-manager
>> Traceback (most recent call last):
>>   File "/usr/bin/hal-device-manager", line 20, in <module>
>>     DeviceManager()
>>   File "/usr/share/hal/device-manager/DeviceManager.py", line 59, in
>> __init__
>>     "/org/freedesktop/Hal/Manager")
>>   File "/usr/lib/python2.5/site-packages/dbus/_dbus.py", line 410, in
>> get_object
>>     follow_name_owner_changes=follow_name_owner_changes)
>>   File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 230, in
>> __init__
>>     _dbus_bindings.UInt32(0))
>>   File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 169, in
>> __call__
>>     reply_message =
>> self._connection.send_message_with_reply_and_block(message, timeout)
>> dbus.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name
>> org.freedesktop.Hal was not provided by any .service files
>>
>> Does this help in the location of the problem??
>>
> 
> Sounds like hal, dbus or python are all borked. Have you tried removing
> them all and re-installing from the official repository?
> 
> Just a thought..
> 
> - -c
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFGZnP/hZNk0P/rW0sRAg01AKDswbnVvyemXgILGOm864AeTgAK8QCeKIOE
> +6OBUFZpvJq/G4c1QpBa+jw=
> =5z7p
> -----END PGP SIGNATURE-----
> 

-- 
Adrian Blake
Molonglo Radio Observatory
University of Sydney
1152 Hoskinstown Rd
Bungendore 2621
ph. 02 80042212  mobile 0407 232 978

http://150.101.125.30/pics


More information about the linux mailing list