[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#818244: Request to close



On mer., 2016-04-06 at 13:13 +0200, Yves-Alexis Perez wrote:
> On mer., 2016-04-06 at 04:04 -0700, Erik Haller wrote:
> > 
> > I have never seen xrandr use monitor0|1. I am running lightdm.
> That just means xfdesktop4 didn't get a monitor name. It gets a name
> from gdk_screen_get_monitor_plug_name() [1,2] which in turns gets it from
> X11
> [3] using XRRGetCrtcInfo(). So my guess is that this behavior changed after
> the xorg update.
> 
Actually the name comes from XRRGetOutputInfo(), not XRRGetCrtcInfo() but the
point still stands.

Can you check with the attached program and report back the monitor names with
both xorg versions?

Regards,
-- 
Yves-Alexis

#include <stdio.h>
#include <stdlib.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xrandr.h>

/* build with gcc -W monitor.c -o monitor -lXrandr -lX11 */

int main(void) {
    Display *display = XOpenDisplay(getenv("DISPLAY"));
    Window   window = DefaultRootWindow(display);
    XRRScreenResources *resources = XRRGetScreenResources(display, window);
    for (int i = 0; i < resources->ncrtc; ++i) {
      XRROutputInfo *output = XRRGetOutputInfo (display, resources, resources->outputs[i]);
      printf("monitor %d name: %s\n", i, output->name);
      XRRFreeOutputInfo(output);
    }
    XRRFreeScreenResources(resources);
    return 0;
}

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: