Closed VitorRamos closed 8 months ago
once its merged... this should fix it... https://github.com/zed-industries/zed/pull/8811 . I tripped over the nvidia/optimus/prime issue a week ago, and its root cause appears to be this: https://github.com/kvark/blade/pull/92
Check for existing issues
Describe the bug / provide steps to reproduce it
cargo run results in panic before i can see anything in the screen:
After some investigation, i found that the issue is in blade, in the current revision it selects the first graphics card it found in this case intel integrated graphics card: [2024-03-04T15:16:55+01:00 INFO blade_graphics::hal::init] Adapter "Intel(R) UHD Graphics 630 (CFL GT2)" [2024-03-04T15:16:55+01:00 INFO blade_graphics::hal::init] No ray tracing extensions are supported This will crash in systems with nv_optimus setup (intel + nvidia), lucky this was fixed in a newer rev: https://github.com/kvark/blade/commit/30c4fa41f1476e932b9c1f104665b0a2904f94c4
After upgrading to this revision everything worked fine:
Environment
Notebook with nvidia optimus setup Linux awesome wm x11 client
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.If you only need the most recent lines, you can run the
zed: open log
command palette action to see the last 1000.No response