Conversation
…ster too Every other read of global.videooutput2 in this script uses -master (sees sysconfig-level board defaults, not just user overrides). This one fallback still used the plain lookup, so a board default like ODROID-M1's global.videooutput2=none was invisible here, and a second output got auto-selected anyway. Confirmed live: with the sysconfig default in place and no user override, DSI-1 kept getting auto-selected as a second output every restart. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S6emcPYtMgjwcmPBmUt74u
|
please dont merge. ill check, but im almost sure this fix is not correct |
|
i make sense. i read incorrectly the contrary when i read. |
|
a contrario, i don't get why we take non-master after master: and there are some other places where master should be taken. |
|
i would prefer something like this one https://github.com/batocera-linux/batocera.linux/pull/16449/changes @dmanlfc do you remember why you added a non master check after a check ? (while -master lookup in user settings first) |
|
#16449 merged. |
If screen2 is unset, the script auto-picks a second output. It decides this by checking
global.videooutput2with the plain lookup, but that lookup only sees user overrides in/userdata/system/batocera.conf. It doesn't see sysconfig-level board defaults. Every other read of this setting in the script already uses-master, which does see those defaults.So a board default like
global.videooutput2=none(meaning "don't auto-pick a second output") gets missed here, and the code picks one anyway.Confirmed live: with the sysconfig default in place and no user override, a second output kept getting auto-selected on every restart.
No board upstream sets
global.videooutput2=noneright now, so this isn't hurting anyone else yet. But any board that wants no second output by default will hit the same problem. Better to fix it now than wait for another board to run into it.Fix: use
-masterhere too, same as every other read of this setting in the script.