Skip to content

question about the behaviour of DebugConfig::render_drm_device #827

Answered by YaLTeR
nyawox asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, that line is from a test. You can see above in a big string where I set that option to that value for the test:

render-drm-device "/dev/dri/renderD129"

The setting defaults to None (unset), which causes niri to try to get the primary (boot) GPU from udev:

niri/src/backend/tty.rs

Lines 253 to 272 in 9c7e8d0

let (primary_node, primary_render_node) = primary_node_from_config(&config.borrow())
.ok_or(())
.or_else(|()| {
let primary_gpu_path = udev::primary_gpu(&seat_name)
.context("error getting the primary GPU")?
.context("couldn't find a GPU")?;
let primary_node = DrmNode::from…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nyawox
Comment options

Answer selected by nyawox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants