I have a Logitech MX Keyboard and I use it with my Ubuntu Mate. The Fn + Esc keys work but turn off when I switch to a different sound source.
I also have Solaar, installed, which provides the battery percentage and most important to lock the Function keys to have my volume keys work all the time, even after I have rebooted, shut down, and start up the next day, or simply change a sound source. Solaar isn’t as optimal as the Logi Options to be used with a Windows or Mac computer, but it does the job for my needs.