Bug 105313 - xrandr --output LVDS --prefs should output preferences to only one monitor
Summary: xrandr --output LVDS --prefs should output preferences to only one monitor
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/xrandr (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Keith Packard
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-01 14:18 UTC by paulo
Modified: 2018-08-10 20:34 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description paulo 2018-03-01 14:18:58 UTC
xrandr output is 'all or nothing' which makes it very hard to script with grep and awk. Finding connected monitors is 'easy' because the ' connected ' string is in the same line as the monitor name.

However, finding properties for a single monitor is actually very hard to do (to the point there are 'parsers' libraries only for xrandr output in the wild).

Obviously, the output is structured already but it's quite unfriendly to 'casual' script hacking usage.

My suggestion is to make some combinations that do nothing today, such as

xrandr --output MONITOR --prefs
xrandr --output MONITOR -q
xrandr --output MONITOR (maybe)

to output the section of the information from the correspondent command without '--output MONITOR' relating to the specified device.
Comment 1 GitLab Migration User 2018-08-10 20:34:57 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/app/xrandr/issues/37.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.