Has thd any vital roles on a Raspbian system?

I've never used this daemon before, and I don't know what it exactly does. I'm preparing a RPi for a remote hosting location, so it will be a headless, SSH only machine.

Is it safe to remove or does it serve any special purpose?

1 Answer 1


According to the documentation:

Triggerhappy is a hotkey daemon developed with small and embedded systems in mind, e.g. linux based routers. It attaches to the input device files and interprets the event data received and executes scripts configured in its configuration.

Keyboard volume control is one of the areas where it proves useful, according to this post.

Based on that, it probably won't be of much use in the remote headless scenario for most people, but given its versatility it can be used in many other interesting situations. One such example is shutting down a headless Raspberry Pi with a mouse button. See this post on hackernoon for details on how to do that. If you often find yourself ssh'ing onto your Pi (or connecting a keyboard and display) to launch some simple command (like shutdown), thd might be for you.

  • 10
    Its incredibly useful on a headless machine, you can plug a controller in and press a button to control it!
    – Wilf
    Commented Jul 29, 2015 at 19:48
  • 4
    Just to add... if you do want to remove it, run sudo apt-get remove triggerhappy Commented Dec 6, 2019 at 8:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.