Set Optimus environment variables on Wayland #1005
es20490446e
started this conversation in
Ideas
Replies: 1 comment 1 reply
|
Hi @es20490446e, This makes sense and feels like a clean, pragmatic approach 👍 One thing to consider is scoping: exporting this system-wide might affect non-game apps or hybrid setups unexpectedly. Maybe limiting it to a launcher script or documenting when this is safe vs risky would help adoption. Overall though, this is a nice example of how Wayland simplifies Optimus handling compared to X11. If this answer solve your all doubts so can you please mark my answer as solved |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Since on Wayland most window managers and apps run on EGL, it is easy to support automatic Optimus switch on it for all games, by just having the file below.
/etc/profile.d/optimus.shAll reactions