]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/log
deb_pkgs/autorandr.git
8 years agoImprove usage information with GetoptError
Daniel Hahler [Sun, 17 May 2015 15:47:59 +0000 (17:47 +0200)]
Improve usage information with GetoptError

 - print to stderr
 - do not display help automatically

8 years agoAdded @blueyed to the contributors list
Phillip Berndt [Sun, 17 May 2015 08:12:07 +0000 (10:12 +0200)]
Added @blueyed to the contributors list

8 years agoReformated main exception handler (Breaks PEP 8; I'm not a fan of the 80 cols rule)
Phillip Berndt [Sun, 17 May 2015 08:09:41 +0000 (10:09 +0200)]
Reformated main exception handler (Breaks PEP 8; I'm not a fan of the 80 cols rule)

8 years agoImprove main exception handling: display traceback, handle BdbQuit
Daniel Hahler [Sat, 16 May 2015 23:43:19 +0000 (01:43 +0200)]
Improve main exception handling: display traceback, handle BdbQuit

It handles "empty" exceptions (e.g. from BdbQuit (via ipdb.set_trace))
better and just makes Python display any uncaught exceptions (with
traceback) by raising them.

This removes the additional newlines, too.

9 years agoFixed exception handler
Phillip Berndt [Tue, 14 Apr 2015 07:23:00 +0000 (09:23 +0200)]
Fixed exception handler

9 years agoMode names need not be of the form <width>x<height>, but can be arbitrary
Phillip Berndt [Tue, 14 Apr 2015 07:15:39 +0000 (09:15 +0200)]
Mode names need not be of the form <width>x<height>, but can be arbitrary

In the hope for _some_ sanity, the code still asumes that there is no
whitespace in mode names. This fixes #25.

9 years agoMore useful error messages
Phillip Berndt [Fri, 10 Apr 2015 09:36:48 +0000 (11:36 +0200)]
More useful error messages

9 years agoFixed output parsing error messages
Phillip Berndt [Wed, 8 Apr 2015 08:14:55 +0000 (10:14 +0200)]
Fixed output parsing error messages

9 years agoDetect modes that have *current at the end of the mode line
Phillip Berndt [Wed, 8 Apr 2015 08:14:39 +0000 (10:14 +0200)]
Detect modes that have *current at the end of the mode line

9 years agoDetect tracking/border information for --panning
Phillip Berndt [Wed, 8 Apr 2015 08:14:19 +0000 (10:14 +0200)]
Detect tracking/border information for --panning

9 years agoDetect negative positions
Phillip Berndt [Wed, 8 Apr 2015 08:13:36 +0000 (10:13 +0200)]
Detect negative positions

9 years agoSupport for RandR 1.3 --panning
Phillip Berndt [Mon, 6 Apr 2015 15:51:09 +0000 (17:51 +0200)]
Support for RandR 1.3 --panning

9 years agoA screen can be disabled yet primary
Phillip Berndt [Sun, 5 Apr 2015 23:26:32 +0000 (01:26 +0200)]
A screen can be disabled yet primary

9 years agoTemporarily undo transformations when applying configurations
Phillip Berndt [Mon, 30 Mar 2015 06:05:42 +0000 (08:05 +0200)]
Temporarily undo transformations when applying configurations

Haswell chips have problems if this is not done, they report:

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  7 (RRSetScreenSize)
  Serial number of failed request:  41
  Current serial number in output stream:  43

This commit circumvents this problem.

9 years agoScreens can be connected but unused, but also disconnected and still in use
Phillip Berndt [Fri, 27 Mar 2015 16:33:08 +0000 (17:33 +0100)]
Screens can be connected but unused, but also disconnected and still in use

Detect that.

9 years agoUpdated README with missing contributors
Phillip Berndt [Thu, 26 Mar 2015 15:13:54 +0000 (16:13 +0100)]
Updated README with missing contributors

9 years agoUse a dummy EDID if an EDID is unavailable for an output
Phillip Berndt [Thu, 26 Mar 2015 08:28:59 +0000 (09:28 +0100)]
Use a dummy EDID if an EDID is unavailable for an output

9 years agoMerge pull request #22 from victorhaggqvist/patch-1
Phillip Berndt [Tue, 24 Mar 2015 10:41:32 +0000 (11:41 +0100)]
Merge pull request #22 from victorhaggqvist/patch-1

Fix `block` script filename in Python version

9 years agofix: make block script name correspond to docs
Victor Häggqvist [Mon, 23 Mar 2015 21:01:59 +0000 (22:01 +0100)]
fix: make block script name correspond to docs

9 years agotypo
Phillip Berndt [Sun, 8 Mar 2015 17:16:53 +0000 (18:16 +0100)]
typo

9 years agoPrevent, in apply_configuration, a xrandr call that disables all screens
Phillip Berndt [Sun, 8 Mar 2015 17:14:06 +0000 (18:14 +0100)]
Prevent, in apply_configuration, a xrandr call that disables all screens

See pull request #20

9 years agoLeave one monitor active when applying configurations
Phillip Berndt [Sat, 7 Mar 2015 17:44:25 +0000 (18:44 +0100)]
Leave one monitor active when applying configurations

See https://github.com/phillipberndt/autorandr/pull/20

9 years agoAccept empty lines in setup files
Phillip Berndt [Sat, 7 Mar 2015 17:45:20 +0000 (18:45 +0100)]
Accept empty lines in setup files

9 years agoExplain why we enable outputs in pairs of two
Phillip Berndt [Fri, 6 Mar 2015 08:45:55 +0000 (09:45 +0100)]
Explain why we enable outputs in pairs of two

See issue #21

9 years agoDetect if xrandr fails completely
Phillip Berndt [Mon, 23 Feb 2015 10:20:43 +0000 (11:20 +0100)]
Detect if xrandr fails completely

Xrandr 1.0.2 didn't output --verbose like output at all. This change
detects that and outputs an error, instead of producing an empty
configuration.

9 years agoEnforce stable output order
Phillip Berndt [Mon, 23 Feb 2015 10:20:26 +0000 (11:20 +0100)]
Enforce stable output order

This is useful for automated testing

9 years agoRemember the last choice for competing configurations (with equal setups)
Phillip Berndt [Mon, 23 Feb 2015 09:42:54 +0000 (10:42 +0100)]
Remember the last choice for competing configurations (with equal setups)

fixes #16

9 years agoIf disabling outputs failed, try to disable them together with the second xrandr...
Phillip Berndt [Wed, 18 Feb 2015 07:02:18 +0000 (08:02 +0100)]
If disabling outputs failed, try to disable them together with the second xrandr call

My notbook complains when I remove it from its docking station that
RRSetScreenSize failed if I disable a screen. Issuing the whole xrandr
command in one single call works fine.

This is related to f4cce4dc3928ba3f917208c31693abc807b1ff3c

9 years agoFix "transform" parsing
Phillip Berndt [Tue, 17 Feb 2015 10:07:24 +0000 (11:07 +0100)]
Fix "transform" parsing

See related commit 376005b

9 years agoFix parsing of EDID
Phillip Berndt [Tue, 17 Feb 2015 09:51:45 +0000 (10:51 +0100)]
Fix parsing of EDID

See bug #19.

9 years agoTransformation matrices can contain negative indices
Phillip Berndt [Wed, 11 Feb 2015 09:54:16 +0000 (10:54 +0100)]
Transformation matrices can contain negative indices

9 years agoFollow XDG completely: Also load configurations from the system-wide directories
Phillip Berndt [Mon, 9 Feb 2015 07:24:25 +0000 (08:24 +0100)]
Follow XDG completely: Also load configurations from the system-wide directories

I doubt this will be used widely, but there clearly is a use-case for
multi-user or centrally administrated systems. Per-user profiles always
override system-wide profiles.

9 years agoUpdated help texts with XDG directory
Phillip Berndt [Mon, 9 Feb 2015 07:24:10 +0000 (08:24 +0100)]
Updated help texts with XDG directory

9 years agoFixed bash-completion (Lacked an `else')
Phillip Berndt [Mon, 9 Feb 2015 07:15:13 +0000 (08:15 +0100)]
Fixed bash-completion (Lacked an `else')

9 years agoUse XDG Base Directory Specification for config files
Benjamin Cremer [Fri, 6 Feb 2015 19:47:44 +0000 (20:47 +0100)]
Use XDG Base Directory Specification for config files

9 years agoPython 3 issue in XRANDR_DEFAULTS
Phillip Berndt [Tue, 27 Jan 2015 07:30:30 +0000 (08:30 +0100)]
Python 3 issue in XRANDR_DEFAULTS

9 years agoRemoved legacy autorandr (see the legacy branch)
Phillip Berndt [Tue, 27 Jan 2015 07:25:04 +0000 (08:25 +0100)]
Removed legacy autorandr (see the legacy branch)

9 years agoLog to stderr (Required to allow users to redirect --dry-run output)
Phillip Berndt [Mon, 26 Jan 2015 06:48:06 +0000 (07:48 +0100)]
Log to stderr (Required to allow users to redirect --dry-run output)

9 years agoRun xrandr disabling connected, but inactive outputs before any other xrandr commands
Phillip Berndt [Mon, 26 Jan 2015 06:46:45 +0000 (07:46 +0100)]
Run xrandr disabling connected, but inactive outputs before any other xrandr commands

Related to bug #13

9 years agoPython version: Fix detection of already loaded old setups with md5sum'ed EDID
Phillip Berndt [Mon, 26 Jan 2015 06:45:48 +0000 (07:45 +0100)]
Python version: Fix detection of already loaded old setups with md5sum'ed EDID

9 years agoPython version: Remove default values from existing configurations
Phillip Berndt [Mon, 26 Jan 2015 06:45:28 +0000 (07:45 +0100)]
Python version: Remove default values from existing configurations

9 years agoPython version: xrandr < 1.3.1 does not report it's version even with -v
Phillip Berndt [Fri, 23 Jan 2015 12:06:07 +0000 (13:06 +0100)]
Python version: xrandr < 1.3.1 does not report it's version even with -v

9 years agoPython version: xrandr 1.2.0 didn't output a *current modeline, ignore the missing...
Phillip Berndt [Fri, 23 Jan 2015 10:14:21 +0000 (11:14 +0100)]
Python version: xrandr 1.2.0 didn't output a *current modeline, ignore the missing information

9 years agoDo not fail if no profile directory exists yet
Phillip Berndt [Fri, 23 Jan 2015 06:54:04 +0000 (07:54 +0100)]
Do not fail if no profile directory exists yet

9 years agoallow legacy autorandr to be off while connected
Rasmus Wriedt Larsen [Thu, 22 Jan 2015 20:50:05 +0000 (21:50 +0100)]
allow legacy autorandr to be off while connected

9 years agoKeep outputs with edid when loading profiles
Rasmus Wriedt Larsen [Thu, 22 Jan 2015 14:29:08 +0000 (15:29 +0100)]
Keep outputs with edid when loading profiles

fixes #13

9 years agoAdd @RasmusWL as a contributor
Phillip Berndt [Thu, 22 Jan 2015 13:28:27 +0000 (14:28 +0100)]
Add @RasmusWL as a contributor

9 years agoCorrectly handle connected, but unused screens.
Phillip Berndt [Thu, 22 Jan 2015 13:27:29 +0000 (14:27 +0100)]
Correctly handle connected, but unused screens.

bugs #13

9 years agoMerge pull request #14 from RasmusWL/fix-debug_regexp
Phillip Berndt [Thu, 22 Jan 2015 13:18:48 +0000 (14:18 +0100)]
Merge pull request #14 from RasmusWL/fix-debug_regexp

fix infinite loop in debug_regexp

9 years agofix infinite loop in debug_regexp
Rasmus Wriedt Larsen [Thu, 22 Jan 2015 12:29:54 +0000 (13:29 +0100)]
fix infinite loop in debug_regexp

9 years agoPython version: Correctly determine the mode of transformed outputs
Phillip Berndt [Thu, 22 Jan 2015 10:41:48 +0000 (11:41 +0100)]
Python version: Correctly determine the mode of transformed outputs

9 years agoExplained why there are two versions of autorandr here
Phillip Berndt [Fri, 16 Jan 2015 07:51:01 +0000 (08:51 +0100)]
Explained why there are two versions of autorandr here

This is a temporary solution.

9 years agoMerge branch 'rate' into license
Phillip Berndt [Fri, 16 Jan 2015 07:32:25 +0000 (08:32 +0100)]
Merge branch 'rate' into license

9 years agoPrefer xrandr edid probing over sysfs
Phillip Berndt [Fri, 16 Jan 2015 07:26:41 +0000 (08:26 +0100)]
Prefer xrandr edid probing over sysfs

To normalize the fingerprints, we have to fiddle a lot with the sysfs
variant. The awk code is much simpler. In the long run I'd like to
remove the sysfs code altogether.

9 years agoAdjusted license information
Phillip Berndt [Fri, 16 Jan 2015 07:24:04 +0000 (08:24 +0100)]
Adjusted license information

See https://github.com/phillipberndt/autorandr/issues/7
and https://github.com/wertarbyte/autorandr/issues/24, where the
original author wrote:

> After a while, I finally got around to this - licence should be GPLv3,
> so feel free to package :-)

9 years agoxxd replacement for systems without xxd
Phillip Berndt [Fri, 16 Jan 2015 07:22:11 +0000 (08:22 +0100)]
xxd replacement for systems without xxd

9 years agoRevert "Removed non-trivial code by Stefan Tomanek"
Phillip Berndt [Fri, 16 Jan 2015 06:51:53 +0000 (07:51 +0100)]
Revert "Removed non-trivial code by Stefan Tomanek"

This reverts commit bbe8f8b547256542ad332bfee1614cf7137f9e5d.
See https://github.com/wertarbyte/autorandr/issues/24

Conflicts:
autorandr

9 years agoPython: Python 3 compatibility restored
Phillip Berndt [Wed, 14 Jan 2015 07:56:03 +0000 (08:56 +0100)]
Python: Python 3 compatibility restored

9 years agoPython version: Better error message for missing profiles
Phillip Berndt [Mon, 12 Jan 2015 09:39:28 +0000 (10:39 +0100)]
Python version: Better error message for missing profiles

9 years agoPython version: Add unused outputs' --off parameter upon loading, and ignore stored...
Phillip Berndt [Mon, 12 Jan 2015 09:36:15 +0000 (10:36 +0100)]
Python version: Add unused outputs' --off parameter upon loading, and ignore stored --off parameters

9 years agoPython version: Add unused options on the fly when loading, rather than when storing...
Phillip Berndt [Mon, 12 Jan 2015 09:35:21 +0000 (10:35 +0100)]
Python version: Add unused options on the fly when loading, rather than when storing, configurations

9 years agoPython version: Bugfix, --dry-run shouldn't always be used
Phillip Berndt [Thu, 8 Jan 2015 09:54:57 +0000 (10:54 +0100)]
Python version: Bugfix, --dry-run shouldn't always be used

9 years agoPython version: Option handling for unrecognized options
Phillip Berndt [Thu, 8 Jan 2015 08:55:36 +0000 (09:55 +0100)]
Python version: Option handling for unrecognized options

9 years agoPython version: Python3 compatible error handling
Phillip Berndt [Thu, 8 Jan 2015 08:54:05 +0000 (09:54 +0100)]
Python version: Python3 compatible error handling

9 years agoPython version: Added error messages
Phillip Berndt [Thu, 8 Jan 2015 08:51:01 +0000 (09:51 +0100)]
Python version: Added error messages

9 years agoMerge pull request #10 from tachylatus/license
Phillip Berndt [Wed, 7 Jan 2015 18:09:00 +0000 (19:09 +0100)]
Merge pull request #10 from tachylatus/license

Fix for python3 TypeError for 'dict_keys'

9 years agoFix for python3 TypeError for 'dict_keys'
tachylatus [Wed, 7 Jan 2015 11:42:48 +0000 (12:42 +0100)]
Fix for python3 TypeError for 'dict_keys'

TypeError: 'dict_keys' object does not support indexing

Explanation:
In python2x, edid_map.keys() returned a list.
With python3.x, it returns a dict_keys object, which behaves more like a set instead of list.

Inspired from:
http://stackoverflow.com/questions/17322668/xi-xj-xj-xi-typeerror-dict-keys-object-does-not-support-indexing

I tested this change with python2, and it seems to work.

9 years agoPython version: Virtual profile support (common, horizontal, vertical)
Phillip Berndt [Wed, 7 Jan 2015 11:56:28 +0000 (12:56 +0100)]
Python version: Virtual profile support (common, horizontal, vertical)

9 years agoPython version: Support reflections, parse output modes (for virtual profiles)
Phillip Berndt [Wed, 7 Jan 2015 10:25:20 +0000 (11:25 +0100)]
Python version: Support reflections, parse output modes (for virtual profiles)

9 years agoSort fingerprint file in python version (for legacy compatibility)
Phillip Berndt [Wed, 7 Jan 2015 08:58:18 +0000 (09:58 +0100)]
Sort fingerprint file in python version (for legacy compatibility)

9 years agoxrandr parsing regex updated
Phillip Berndt [Tue, 6 Jan 2015 20:36:03 +0000 (21:36 +0100)]
xrandr parsing regex updated

9 years agoExperimental Python implementation of autorandr
Phillip Berndt [Tue, 6 Jan 2015 20:13:13 +0000 (21:13 +0100)]
Experimental Python implementation of autorandr

Still incomplete, virtual profiles are missing.

9 years agoLicense information (2/2)
Phillip Berndt [Fri, 2 Jan 2015 10:34:30 +0000 (11:34 +0100)]
License information (2/2)

9 years agoRemoved non-trivial code by Stefan Tomanek
Phillip Berndt [Fri, 2 Jan 2015 10:21:01 +0000 (11:21 +0100)]
Removed non-trivial code by Stefan Tomanek

9 years agoLicense information (1/2)
Phillip Berndt [Fri, 2 Jan 2015 09:53:31 +0000 (10:53 +0100)]
License information (1/2)

9 years agoDetect and process legacy fingerprint (setup) files
Phillip Berndt [Fri, 2 Jan 2015 09:06:54 +0000 (10:06 +0100)]
Detect and process legacy fingerprint (setup) files

9 years agoReimplemented the setup_fp methods
Phillip Berndt [Fri, 2 Jan 2015 08:23:20 +0000 (09:23 +0100)]
Reimplemented the setup_fp methods

In order to resolve bug #7, we need to remove non-trivial pieces of code
by @wertarbyte, who does not react to requests currently. All other
authors agreed to any suitable OSS license. See
 https://github.com/phillipberndt/autorandr/issues/7
for further discussion.

A side-effect of my reimplementation is that both methods now return the
same fingerprint, such that they are interchangeable. A downside is that
the fingerprints change with this version.

9 years agoStore refresh rate
Phillip Berndt [Wed, 31 Dec 2014 12:21:30 +0000 (13:21 +0100)]
Store refresh rate

See https://github.com/wertarbyte/autorandr/issues/6

9 years agoEnable outputs in pairs of two (Follow-up to commit f4cce4d)
Phillip Berndt [Sat, 13 Dec 2014 14:59:41 +0000 (15:59 +0100)]
Enable outputs in pairs of two (Follow-up to commit f4cce4d)

9 years agoEnable xrandr outputs one-by-one, --pos 0x0 first
tachylatus [Fri, 12 Dec 2014 13:51:19 +0000 (14:51 +0100)]
Enable xrandr outputs one-by-one, --pos 0x0 first

Enabling more than one or two outputs at once may result in this error:
/usr/bin/xrandr: Configure crtc 1 failed
This happens on my Dell Latitude E7440 with three monitors connected.

Disabling many outputs at once still seems safe.

Output positioning may be ignored by xrandr in some cases.
To circumvent this, make sure the output with --pos 0x0 is enabled first.

9 years agoremoved trailing slash
Christian Autermann [Mon, 3 Nov 2014 11:00:31 +0000 (12:00 +0100)]
removed trailing slash

9 years agoreplaced w with who as w cuts off long user names
Christian Autermann [Sun, 27 Jul 2014 13:26:07 +0000 (15:26 +0200)]
replaced w with who as w cuts off long user names

Conflicts:
pm-utils/40autorandr

9 years agoFixed integer test expressions
Phillip Berndt [Sun, 20 Jul 2014 11:21:47 +0000 (13:21 +0200)]
Fixed integer test expressions

9 years agoMerge remote-tracking branch 'bingmann/master'
Phillip Berndt [Sun, 20 Jul 2014 11:20:34 +0000 (13:20 +0200)]
Merge remote-tracking branch 'bingmann/master'

9 years agoPrint error when profile does not exist and fixing use of IS_VIRTUAL_PROFILE.
Timo Bingmann [Sun, 20 Jul 2014 11:14:05 +0000 (13:14 +0200)]
Print error when profile does not exist and fixing use of IS_VIRTUAL_PROFILE.

9 years agoUse same virtual profile detection code in all places
Phillip Berndt [Sun, 20 Jul 2014 11:17:51 +0000 (13:17 +0200)]
Use same virtual profile detection code in all places

9 years agoAdd 'horizontal' and 'vertical' stacked virtual profiles.
Timo Bingmann [Sun, 20 Jul 2014 11:05:05 +0000 (13:05 +0200)]
Add 'horizontal' and 'vertical' stacked virtual profiles.
Small fixes to virtual profile code.

9 years agoInform users about virtual configurations, prevent name collisions, prefer existing...
Phillip Berndt [Sun, 20 Jul 2014 10:38:40 +0000 (12:38 +0200)]
Inform users about virtual configurations, prevent name collisions, prefer existing configuration files over virtual configurations

9 years agoOutput "same-as" in the "common" virtual configuration
Phillip Berndt [Sun, 20 Jul 2014 10:38:11 +0000 (12:38 +0200)]
Output "same-as" in the "common" virtual configuration

9 years agoSet virtual 'common' config via load_cfg_xrandr by piping into the sed.
Timo Bingmann [Sun, 20 Jul 2014 10:05:46 +0000 (12:05 +0200)]
Set virtual 'common' config via load_cfg_xrandr by piping into the sed.

9 years agoAdded a virtual profile named 'common', which calculates the lowest common resolution...
Timo Bingmann [Sat, 19 Jul 2014 18:01:25 +0000 (20:01 +0200)]
Added a virtual profile named 'common', which calculates the lowest common resolution for all attached displays.

9 years agoAdding emacs Local Variables block at the end.
Timo Bingmann [Fri, 4 Jul 2014 19:02:04 +0000 (21:02 +0200)]
Adding emacs Local Variables block at the end.

10 years agoMerge pull request #4 from stormc/master
Phillip Berndt [Mon, 10 Feb 2014 19:45:46 +0000 (20:45 +0100)]
Merge pull request #4 from stormc/master

fix load() causing 'exit 1' on missing optional file $PROFILES/postswitch

10 years agofix load() causing 'exit 1' on missing optional file $PROFILES/postswitch
Christian Storm [Mon, 10 Feb 2014 18:01:35 +0000 (19:01 +0100)]
fix load() causing 'exit 1' on missing optional file $PROFILES/postswitch

    load() should return 1 and hence cause 'exit 1' on a missing
    config file but it should not implicitly return 1 on a missing
    optional file $PROFILES/postswitch

10 years agoMerge pull request #3 from tachylatus/master
Phillip Berndt [Fri, 31 Jan 2014 10:33:08 +0000 (02:33 -0800)]
Merge pull request #3 from tachylatus/master

Revert to general rotation detection

10 years agoApply normal rotation unless another one is set (ver.2)
tachylatus [Thu, 30 Jan 2014 17:43:53 +0000 (18:43 +0100)]
Apply normal rotation unless another one is set (ver.2)

10 years agoRevert "Apply normal rotation unless another one is set"
tachylatus [Thu, 30 Jan 2014 17:42:25 +0000 (18:42 +0100)]
Revert "Apply normal rotation unless another one is set"

This reverts commit 007920e83cf934f765d4424fab8148c9611eaacc.

10 years agoFixed indentation of commit f131585
Phillip Berndt [Thu, 30 Jan 2014 15:36:26 +0000 (16:36 +0100)]
Fixed indentation of commit f131585

10 years agoApply normal rotation unless another one is set
Phillip Berndt [Thu, 30 Jan 2014 15:35:07 +0000 (16:35 +0100)]
Apply normal rotation unless another one is set

10 years agoOnly output "rotate" once
tachylatus [Thu, 30 Jan 2014 13:57:58 +0000 (14:57 +0100)]
Only output "rotate" once