For Logitec wireless keyboards, namely my K400+, you can install Solaar from hereinstall Solaar from here.
It has an option to switch Fn keys to behave like normal F keys by default, just beware that the packaged versions (e.g. ppa) for some reason do not seem to include that option - I had to install from source from the latest master branch as pointed out in discussion on Github.
 In short, clone the repo (git clone https://github.com/pwr/Solaar.git), run install.sh from rules.d dir, then you can run solaar from bin dir, which will start the tray GUI which contains the option "Swap Fx function" that you can toggle.
However, it doesn't seem to remember the state on reboot. What I did instead is added a line like:
~/Solaar/bin/solaar config 1 fn-swap 0
 to any script that runs on startup (.bashrc or your window manager startup) which does the trick without adding the tray icon which you really don't need if you only want to use Solaar to switch the Fn keys behavior.
 
                