HAL daemon doesn't work after I compile the new linux kernel version 2.6.25.4 on my FC8 box.
Without haldaemon I must mount any portal media or disk (like USB disk, CD, MMC) manually. I hate to do it. I like my FC8 box shows the portal media and let me access it automatically.
I google the haldaemon, here is the key messages and hints.
HAL requires the Linux kernel 2.6, D-BUS, glib (this dep will be dropped soon) and a recent version of linux-hotplug and udev.
Okay. the key facts are db-bus, linux-hotplug and udev. Let's go!
[@more@]Here are the introduction and concept about DB-bus and udev, http://dbus.freedesktop.org/
and the architecture of HAL on FC offical site.
check the config file of new kernel, make sure these feature is compiled into kernel or as module
I check all item about udev,and hotplug. and make new kernel, no useful ideal. HAL daemon still doesn't work.
Finally I get the useful ideal from kernel starting info.... just two breaken words.. udev can't .... inotify. I find the items in File system section.
Dnotify is a directory-based per-fd file change notification system that uses signals to communicate events to user-space. There exist superior alternatives, but some applications may still rely on
Inotify is a file change notification system and a replacement for dnotify. Inotify fixes numerous shortcomings in dnotify and introduces several new features including multiple file events, one-shot support, and unmount
inotify support for userspace, including the associated system calls. Inotify allows monitoring of both files and directories via a single open fd. Events are read from the file descriptor, which is also select()- and poll()-able.
so config these items if make into kernel
DNOTIFY =y
INOTIFY_USER =y
INOTIFY =y
# make && make modules_install && make install
open the messagebus service for all level
# checkconfig --level all messagebus on
# reboot
WOW, now Hal daemon works...
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/46332/viewspace-1006626/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/46332/viewspace-1006626/