If you use Logitech's Unifying Receiver on Linux check out the open source 'Solaar' app. It makes it easier to pair and manage wireless keyboard and mice.