Permalink
Switch branches/tags
Nothing to show
Commits on Feb 13, 2012
  1. xrandr: dump configuration in parsable format

    This patch adds the command line switch "--dump" to the xrandr program.
    When specified, xrandr outputs the current display configuration in an
    easily parsable format similar to the command line options accepted by
    xrandr itself. That way, an existing configuration can easily be saved
    and restored later.
    
    Signed-off-by: Stefan Tomanek <stefan.tomanek@wertarbyte.de>
    committed Oct 20, 2010
Commits on Nov 11, 2011
  1. Include strings.h for strcasecmp

    Our minimum requirement for X11 is currently Unix98.  Unix98 provides
    strcasecmp in <strings.h>.  This commit fixes implicit declarations
    of this function on systems that closely adhere to the standard.
    
    Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
    jeremyhu committed Nov 11, 2011
Commits on Aug 7, 2011
  1. xrandr: Preserve current mode when switching crtcs

    When switching output crtcs, preserve any current mode in preference
    to selecting whatever mode is currently in use on that crtc.
    
    Signed-off-by: Keith Packard <keithp@keithp.com>
    keith-packard committed Aug 7, 2011
Commits on Jul 20, 2011
  1. Document the rarer --newmode flags in --help output

    Signed-off-by: Adam Jackson <ajax@redhat.com>
    nwnk committed Jul 20, 2011
Commits on Jun 30, 2011
  1. xrandr 1.3.5

    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    alanc committed Jun 30, 2011
Commits on May 30, 2011
  1. find_mode: Search for the mode closes to the specified rate

    This was the intention of d9aeb4a, but
    find_mode was still picking the first string match rather than the
    match with the closest refresh rate.
    
    xrandr.c:740:3: warning: Value stored to 'bestDist' is never read
                   bestDist = dist;
                   ^          ~~~~
    
    Found-by: clang static analyzer
    Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
    jeremyhu committed May 9, 2011
Commits on May 8, 2011
  1. Dead code removal

    xrandr.c:2978:33: warning: Value stored to 'first' is never read
                        if (!first) printf (" "); first = False;
                                                  ^       ~~~~~
    xrandr.c:2966:30: warning: Value stored to 'first' is never read
                            if (!first) printf (" "); first = False;
                                                      ^       ~~~~~
    
    Found-by: clang static analyzer
    Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
    jeremyhu committed May 8, 2011
  2. Dead code removal

    Removing the redundant setting of format = 32 in the XA_ATOM case.
    It was already set to that earlier whe it was assigned actual_format.
    
    xrandr.c:2770:3: warning: Value stored to 'format' is never read
                    format=0;
                    ^      ~
    xrandr.c:2782:7: warning: Value stored to 'format' is never read
                        format = actual_format;
                        ^        ~~~~~~~~~~~~~
    
    Found-by: clang static analyzer
    Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
    jeremyhu committed May 8, 2011
  3. Mark usage, fatal, and panic as _X_NORETURN

    xrandr.c:634:13: warning: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'output')
        output->next = NULL;
        ~~~~~~  ^
    xrandr.c:1214:6: warning: Access to field 'mode' results in a dereference of a null pointer (loaded from variable 'crtc_info')
            if (crtc_info->mode == None)
                ^~~~~~~~~
    xrandr.c:1252:5: warning: Array access (via field 'outputs') results in a null pointer dereference
        crtc->outputs[crtc->noutput++] = output;
        ^     ~~~~~~~
    xrandr.c:1638:33: warning: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'output_info')
            set_name_string (&output_name, output_info->name);
                                           ^~~~~~~~~~~
    xrandr.c:1725:10: warning: Access to field 'changes' results in a dereference of a null pointer (loaded from variable 'output')
                if (output->changes)
                    ^~~~~~
    xrandr.c:1848:10: warning: Access to field 'mode_info' results in a dereference of a null pointer (loaded from variable 'relation')
                if (relation->mode_info == NULL)
                    ^~~~~~~~
    xrandr.c:3194:11: warning: Array access (from variable 'mode_shown') results in a null pointer dereference
                        if (mode_shown[j]) continue;
                            ^~~~~~~~~~
    
    Found-by: clang static analyzer
    Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
    jeremyhu committed May 8, 2011
Commits on Jan 19, 2011
  1. config: move man pages into their own directory

    Use services provided by XORG_MANPAGE_SECTIONS.
    Use standard Makefile for man pages.
    
    Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
    Gaetan Nadon committed Jan 19, 2011
Commits on Jan 13, 2011
  1. man: replace hard coded man page section with substitution strings

    Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
    Gaetan Nadon committed Jan 13, 2011
  2. man: remove trailing spaces and tabs

    Using s/[ \t]*$//
    
    Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
    Gaetan Nadon committed Jan 13, 2011
Commits on Jan 12, 2011
  1. config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS

    This silences an Autoconf warning
    Gaetan Nadon committed Jan 12, 2011
Commits on Jan 10, 2011
  1. Add --current to usage.

    Matthias Hopf committed Jan 10, 2011
Commits on Oct 30, 2010
  1. xrandr 1.3.4

    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    alanc committed Oct 30, 2010
  2. config: Remove unnecessary calls from configure.ac

    AC_PROG_CC & AC_PROG_INSTALL are provided by XORG_DEFAULT_OPTIONS now
    PKG_CONFIG_MODULES handles AC_SUBST of the CFLAGS & LIBS variables
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    alanc committed Oct 30, 2010
  3. config: upgrade to util-macros 1.8 for additional man page support

    Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS
    The value of MAN_SUBST is the same for all X.Org packages.
    
    Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS
    The existing statement can now be removed from the configuration file.
    
    Use automake provided $(AM_V_GEN) and XORG_DEFAULT_OPTIONS provided $(SED)
    Enables silent rule and use platform appropriate version of sed.
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    alanc committed Oct 30, 2010
  4. config: update AC_PREREQ statement to 2.60

    Unrelated to the previous patches, the new value simply reflects
    the reality that the minimum level for autoconf to configure
    all x.org modules is 2.60 dated June 2006.
    
    ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz
    
    Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Gaetan Nadon committed with alanc Oct 30, 2010
Commits on Oct 13, 2010
  1. Call QueryExtension before any other RandR function (bug#30806)

    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Tested-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Signed-off-by: Julien Cristau <jcristau@debian.org>
    Julien Cristau committed Oct 12, 2010
Commits on Sep 24, 2010
  1. Bug 29348 - dot clock parameter missing from --newmode in man page

    https://bugs.freedesktop.org/show_bug.cgi?id=29348
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Reviewed-by: Julien Cristau <jcristau@debian.org>
    alanc committed Sep 23, 2010
Commits on Jul 19, 2010
  1. Bump to 1.3.3

    Julien Cristau committed Jul 19, 2010
  2. Require xorg-macros 1.4 for XORG_INSTALL

    Julien Cristau committed Jul 19, 2010
  3. Kill cvs keyword

    Julien Cristau committed Jul 19, 2010
Commits on Apr 7, 2010
  1. xrandr: get gamma and brightness

    Even in verbose query mode, gamma and brigthness were not displayed.
    That's because they are not stored in the server the same way they are
    specified on the command line: they are stored as 256 * 3 u16 while
    the command line is 3 + 1 floats.  Still, this is useful info for the
    users, and they don't care about how it's stored in the server.
    
    So we do a regression over the values stored to recover info in the same
    way as on the command line: gamma and brightness.
    
    Signed-off-by: Éric Piel <eric.piel@tremplin-utc.net>
    Reviewed-By: Matthias Hopf <mhopf@suse.de>
    Eric Piel committed with Matthias Hopf Jan 9, 2010
Commits on Apr 6, 2010
  1. xrandr: fix maximum gamma set

    Gamma is an array of 3 16-bit values. Currently, the maximum value assigned is
    255*256, which is only 65280. Make sure that when we set the gamma, the maximum
    value is 65535. It's slightly brighter but also helps to avoid kludges to
    detect clamped values when reading back the gamma.
    
    Signed-off-by: Éric Piel <eric.piel@tremplin-utc.net>
    Reviewed-by: Matthias Hopf <mhopf@suse.de>
    Eric Piel committed with Matthias Hopf Jan 9, 2010
Commits on Feb 11, 2010
  1. config: move CWARNFLAGS from configure.ac to Makefile.am

    Compiler warning flags should be explicitly set in the makefile
    rather than being merged with other packages compiler flags.
    
    Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
    Gaetan Nadon committed Feb 11, 2010
Commits on Jan 12, 2010
  1. xrandr: fix brightness to prevent gamma to overflow and to allow 0

    With the new brightness option, gamma would overflow with values > 1,
    leading to rainbow looking screen.
    
    In addition, have the brightness by default to 1, so that specifying 0
    actually does the expected behaviour of leading to a black screen.
    
    Signed-off-by: Éric Piel <eric.piel@tremplin-utc.net>
    Reviewed-by: Matthias Hopf <mhopf@suse.de>
    Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net>
    Éric Piel committed with Matthias Hopf Jan 6, 2010
Commits on Jan 8, 2010
  1. xrandr: Remove --clone / --extend support code

    Code handling --clone and --extend is not used.
    The usage message regarding those options was already commented out.
    
    Signed-off-by: Yann Droneaud <ydroneaud@mandriva.com>
    Acked-by: Matthias Hopf <mhopf@suse.de>
    ydroneaud committed with Matthias Hopf Nov 17, 2009
Commits on Jan 5, 2010
  1. Language fixes.

    Matthias Hopf committed Jan 5, 2010
Commits on Jan 4, 2010
  1. xrandr: Use a prefix for enum type _policy and _relation like other e…

    …nums in xrandr.c
    
    Try to apply the same coding style to enum _policy and enum _relation.
    
    This patch also workarounds bug #12958 .
    
    Signed-off-by: Yann Droneaud <ydroneaud@mandriva.com>
    Acked-by: Matthias Hopf <mhopf@suse.de>
    ydroneaud committed with Matthias Hopf Nov 17, 2009
  2. Add --brightness for CRTC

    --brightness n.m adjusts gamma set for CRTC in order to compensate
    for overly bright or overly dark unmanageable outputs.
    
    Signed-off-by: Matthias Hopf <mhopf@suse.de>
    dottedmag committed with Matthias Hopf Oct 24, 2009
  3. xrandr: add more information about the transform option in the manpage

    Add information about the transformation, stating it's a homogeneous
    coordinate transformation and adding the (simplified) pixel calculation
    formula. Also and an example of keystone shaping generated using the algorithm
    found in xkeystone.
    
    Based on a patch by Eric Piel <eric.piel@tremplin-utc.net>
    
    Signed-off-by: Matthias Hopf <mhopf@suse.de>
    Matthias Hopf committed Jan 2, 2010
Commits on Dec 22, 2009
  1. xrandr: check_strtod should return double, not int

    check_strtod performs error checking around strtod to ensure that
    arguments are correctly processed. However, it also accidentally(?)
    cast the result to int, which was then universally cast back to double
    by all callers. Narrowing and re-widening the type doesn't make any sense.
    
    Signed-off-by: Keith Packard <keithp@keithp.com>
    Dominik Jasiok committed with keith-packard Dec 22, 2009
Commits on Nov 26, 2009
  1. Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES

    Now that the INSTALL file is generated.
    Allows running make maintainer-clean.
    Gaetan Nadon committed Nov 26, 2009
Commits on Nov 19, 2009
  1. INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206

    Add missing INSTALL file. Use standard GNU file on building tarball
    README may have been updated
    Remove AUTHORS file as it is empty and no content available yet.
    Remove NEWS file as it is empty and no content available yet.
    Gaetan Nadon committed Oct 28, 2009