Have you tried to reconfigure acpid? Here are instructions
for configuring acpid options. Notice the brief suggestion at the beginning regarding the Gnome option, if you happen to be working in the GUI world. Otherwise, some information at the bottom of the article seems to allow reconfiguration of power-influencing events without recompiling the kernel.
Also CentOS has man pages for acpid.