Bug#891061: --default doesn't work as expected

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#891061: --default doesn't work as expected

martin f krafft
Package: autorandr
Version: 1.4-1
Severity: normal

I don't think --default works. If I run

  autorandr --default home

then it applies the home profile immediately, but if I plug in an
unknown monitor, then it doesn't switch to the home profile.

On this note, it would be awesome if I could specify

  autorandr --default common

so that autorandr configures my screen layout according to the
virtual "common" layout whenever no better match is found among the
configured profiles.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8), LANGUAGE=en_NZ:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages autorandr depends on:
ii  python             2.7.14-4
ii  x11-xserver-utils  7.7+7+b1

autorandr recommends no packages.

autorandr suggests no packages.

-- debconf-show failed


--
 .''`.   martin f. krafft <[hidden email]> @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems

digital_signature_gpg.asc (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#891061: --default doesn't work as expected

Don Armstrong-2
Control: retitle -1 document how --default works (and how Debian runs autorandr) better

On Thu, 22 Feb 2018, martin f krafft wrote:
> I don't think --default works. If I run
>
>   autorandr --default home
>
> then it applies the home profile immediately, but if I plug in an
> unknown monitor, then it doesn't switch to the home profile.

Hrm; this should be documented better. The udev rule runs
systemctl start --no-block autorandr.service; and autorandr.service runs
autorandr --batch --change --default default;

> On this note, it would be awesome if I could specify
>
>   autorandr --default common
>
> so that autorandr configures my screen layout according to the
> virtual "common" layout whenever no better match is found among the
> configured profiles.

So to do this, you can just do:

systemctl edit autorandr.service;
and add:

[Service]
ExecStart=/usr/bin/autorandr --batch --change --default common;

--
Don Armstrong                      https://www.donarmstrong.com

Fate and Temperament are two words for one and the same concept.
 -- Novalis [Hermann Hesse _Demian_]