Hi, this is my first post in this forum. I've been running Kodi on Ubuntu desktop for several years now, and right up front I want to say that I'm not a Linux expert. My main computer runs MacOS, so that gives you some idea of how much I get into Linux stuff. But you can't easily run MacOS on an inexpensive media center computer, and I hate Windows, which is why I have always used Ubuntu for those.
My problem is that Kodi running under Linux does not support 4K HDR. The various posts I have read suggest that it is currently impossible for Kodi to do HDR passthrough under Ubuntu desktop. If you ask about it they typically suggest running LibreELEC, which would be great except I do sometimes do other things in Ubuntu besides running Kodi.
One of the big things is I have installed LIRC (the old version that actually works) and use it not only with Kodi, but to do other things that are not related to Kodi at all. These are controlled using the .lircrc configuration file in the Ubuntu user directory. For example I can turn lights and other devices on and off this way. I can also start Kodi with the options I need.
From what I have read I suspect that LibreELEC does not use nor support LIRC. So I guess my first question is, is there some way to assign certain remote buttons to various functions outside of Kodi (for example, run a shell script, or send a command to another computer on the local network using ssh?). And if so, can it learn buttons from multiple remotes that can then be assigned to these non-Kodi functions? All of that is possible with LIRC, which is how I do it on my current Ubuntu system.
If not then my second question is whether it is possible to put both LibreELEC and Ubuntu Desktop on the same computer and at power up use the remote control to allow booting into one or the other? I think I have seen where some people have it set up so that when their systems boot up they get a text menu that lets them pick what operating system they want to boot into (though I don't know how they accomplish that at the moment) but typically they need to use a keyboard to make the selection.
On my media center computer there is no keyboard attached and no really good place to put one (if I really need to do something that requires keyboard input then I use VNC to get to the Ubuntu desktop from my Mac, but not while I am watching TV). The idea is if I want to watch 4K HDR content I could boot into LibreELEC (which I understand does support 4K HDR) but if I need to do anything else I can boot into Ubuntu desktop, as I do now.
I have never used LibreELEC in the past simply because I assumed I could not use my remote control the way I use it in Ubuntu Desktop, or do anything that I might occasionally want to do using a desktop environment (as rarely happens). So I don't really know how it works. My assumption has always been that it can't do these things, but am I wrong about that?
Or, is there perhaps some other approach to this that I'm not considering? The one thing I don't want to have to do is add any additional hardware; the area around my TV is already too cluttered with devices!