Remove the option, because it is hard to use.
Drm connector ids are hard to reach for users,
and they can change when kernel or device tree
is modified.
Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
[Pekka: bump WESTON_DRM_BACKEND_CONFIG_VERSION]
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
#if defined(BUILD_DRM_COMPOSITOR)
fprintf(stderr,
"Options for drm-backend.so:\n\n"
- " --connector=ID\tBring up only this connector\n"
" --seat=SEAT\t\tThe seat that weston should run on\n"
" --tty=TTY\t\tThe tty to use\n"
" --use-pixman\t\tUse the pixman (CPU) renderer\n"
wet->drm_use_current_mode = false;
const struct weston_option options[] = {
- { WESTON_OPTION_INTEGER, "connector", 0, &config.connector },
{ WESTON_OPTION_STRING, "seat", 0, &config.seat_id },
{ WESTON_OPTION_INTEGER, "tty", 0, &config.tty },
{ WESTON_OPTION_BOOLEAN, "current-mode", 0, &wet->drm_use_current_mode },
int32_t cursor_width;
int32_t cursor_height;
- uint32_t connector;
uint32_t pageflip_timeout;
};
if (connector == NULL)
continue;
- if (connector->connection == DRM_MODE_CONNECTED &&
- (b->connector == 0 ||
- connector->connector_id == b->connector)) {
+ if (connector->connection == DRM_MODE_CONNECTED) {
ret = create_output_for_connector(b, resources,
connector, drm_device);
if (ret < 0)
continue;
}
- if (b->connector && (b->connector != connector_id)) {
- drmModeFreeConnector(connector);
- continue;
- }
-
connected[i] = connector_id;
if (drm_output_find_by_connector(b, connector_id)) {
goto err_sprite;
}
- b->connector = config->connector;
-
if (create_outputs(b, drm_device) < 0) {
weston_log("failed to create output for %s\n", b->drm.filename);
goto err_udev_input;
extern "C" {
#endif
-#define WESTON_DRM_BACKEND_CONFIG_VERSION 2
+#define WESTON_DRM_BACKEND_CONFIG_VERSION 3
struct libinput_device;
struct weston_drm_backend_config {
struct weston_backend_config base;
- /** The connector id of the output to be initialized.
- *
- * A value of 0 will enable all available outputs.
- */
- int connector;
-
/** The tty to be used. Set to 0 to use the current tty. */
int tty;
.B weston
will understand the following additional command line options.
.TP
-\fB\-\-connector\fR=\fIconnectorid\fR
-Use the connector with id number
-.I connectorid
-as the only initial output.
-.TP
.B \-\-current\-mode
By default, use the current video mode of all outputs, instead of
switching to the monitor preferred mode.