First call phent_settype(), then call phent_enable().