something like: opt.add_session_config_entry("powerPreference", preference) where preference is HighPerformance or LowPower