This is my custom signature.
@nicnut you cannot put it into a message like that. sorry if it wasn't clear. it's a startup flag that you use in the terminal or via ascript when starting the Pd application.
here's more: https://puredata.info/docs/faq/commandline
Haven't gotten pd~ to work here and i don't know if it suits your workflow, but if for starting pd (the program) you add "-alsamidi" on the command-line, pd will be started with ALSA-MIDI checked.
@altibzz were the libraries that you tried compiled for your architecure? as i understand it - and i might be not quite right! - the libraries have to either be pre-compiled for your cpu/os or you compile them yourself. at least that's the case with some objects, i think.
as for [hid] on raspberry (3b+, raspbian stretch), i couldn't find anything on deken, but i think "sudo apt-get install pd-hid" did the trick for me.
it works with my wireless keyboard. i quickly tried an example-patch to find out whether the window's focus has something to do with pd's receiving of the data. with the gui active, i could switch windows and it still worked, but starting Pd with the -nogui flag, it didn't work, because - it seemed that - the keyboard inputs where only interpreted (and thus 'intercepted'?) by the terminal (the terminal's ascii cursor was moved by typing) and not Pd anymore. but this was just a quick and dirty test!