HAL daemon doesn't work

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.

hal-arch.png

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/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值