分类: LINUX
2014-02-18 16:48:32
hald 是硬件访问层进程,运行的几个hald进程是为了跟踪系统安装的硬件,包括usb设备和热插拔设备的变化 。
引用原文如下 :
The – Hardware Access Layer Daemon – runs several processes in order to keep track of what hardware is installed on your system. This includes polling USB Drives and ‘hot-swap’ devices to check for changes along with a host of other tasks.
You might see it running on your system as follows:
1
2 3 4 |
2474 ? S 0:00 \_ hald-runner
2481 ? S 0:00 \_ hald-addon-acpi: listening on acpid socket /var/run/acpid.socket 2487 ? S 0:00 \_ hald-addon-keyboard: listening on /dev/input/event0 2495 ? S 41:47 \_ hald-addon-storage: polling /dev/hdc |
If your system is static and the devices do not change, you can actually disable this service using a policy entry.
Create a file in your policy directory, for example /etc/hal/fdi/policy/99-custom.fdi. Add the text:
1
2 3 4 5 6 7 8 9 |
version="1.0" encoding="UTF-8"?>
> > > |
Save and reload the hald using /etc/init.d/haldaemon restart.
And you will find that service no longer is polling your hardware.
Of course to turn it back on, remove that policy entry and restart the haldaemon again, it will be back in service.
- See more at: