linuxmint / xapp

Cross-desktop libraries and common resources
GNU Lesser General Public License v3.0
126 stars 44 forks source link

Use switcheroo-control to determine if GPU offload is supported #170

Closed BlindRepublic closed 1 year ago

BlindRepublic commented 1 year ago

Instead of using Ubuntu specific tooling, this commit makes xapp_util_gpu_offload_supported check net.hadess.SwitcherooControl's property HasDualGPU.

Fixes #166

mtwebster commented 1 year ago

We already added support for this: https://github.com/linuxmint/xapp/commit/5826b7ea92c034e3cae0d112ede4c78dd6ee2822

edit: mintmenu uses this now: https://github.com/linuxmint/mintmenu/commit/e4eab43d06850030451605a4dc9ea3b367e819ff Cinnamon also fully supports it.

I left the util function as a fallback if switcheroo isn't available.

BlindRepublic commented 1 year ago

We already added support for this: 5826b7e

edit: mintmenu uses this now: linuxmint/mintmenu@e4eab43 Cinnamon also fully supports it.

I left the util function as a fallback if switcheroo isn't available.

Oh, apologies. My issue wasn't closed.

mtwebster commented 1 year ago

Ah sorry, I usually search for issues to close, I must have forgotten.