nickguletskii / GLXOSD

GLXOSD is an extensible on-screen display (OSD)/overlay for OpenGL applications running on Linux with X11 which aims to provide similar functionality to MSI Afterburner/RivaTuner OSD. It can show FPS, frame timings, temperatures and more in OpenGL games and applications. It can also be used to benchmark games, much like voglperf.
https://glxosd.nickguletskii.com
MIT License
123 stars 20 forks source link

Can't hide sensor #86

Open kraxarn opened 7 years ago

kraxarn commented 7 years ago

I tried messing around a little bit, but as you can see here, this applesmc-isa-0300 Takes up a lot of space and I want to hide it. I tried some different methods, including chip_filter_function, but either I couldn't figure out how to use it, or it just didn't work and ignored it. A huge enhancement to the documentation would be to have simple examples, so you know what to do.

nickguletskii commented 7 years ago

I am sorry for not replying at an earlier date. You are right, I should add some examples to the documentation, but I don't have enough time to do that right now.

In your case, however, the chip_filter_function should be quite simple:

chip_filter_function = function(self, chip)
    return chip.name ~= "applesmc-isa-0300"
end,    
kraxarn commented 7 years ago

Tried that under the LibsensorsDataProvider_formats function, but it still doesn't work :confused:

nickguletskii commented 7 years ago

Hmm, maybe the name of the chip is not exact? Could you please try something like this?

chip_filter_function = function(self, chip)
    return not string.match(chip.name, ".*0300.*")
end,
kraxarn commented 7 years ago

Nope, still doesn't work

nickguletskii commented 7 years ago

That's weird... Could you try setting it to return false? Maybe the filter isn't being called at all?