Bug 242577 - --set-resolution CLI does not work
Summary: --set-resolution CLI does not work
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rhpxl   
(Show other bugs)
Version: 5.0
Hardware: All Linux
Target Milestone: rc
: 5.5
Assignee: Adam Jackson
QA Contact: desktop-bugs@redhat.com
Keywords: Patch
Depends On:
Blocks: 499522
TreeView+ depends on / blocked
Reported: 2007-06-04 21:22 UTC by Jack Neely
Modified: 2018-10-27 14:37 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-03-30 09:07:22 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
xorg log file (104.30 KB, text/plain)
2007-10-05 14:26 UTC, Jack Neely
no flags Details
xorg log file (94.58 KB, text/plain)
2007-10-05 14:32 UTC, Jack Neely
no flags Details
xorg configuration - desired configuration (673 bytes, text/plain)
2007-10-05 14:32 UTC, Jack Neely
no flags Details
log after running --set-resoultion (94.48 KB, text/plain)
2007-10-05 14:36 UTC, Jack Neely
no flags Details
xorg configuration - after --set-resolution (586 bytes, text/plain)
2007-10-05 14:38 UTC, Jack Neely
no flags Details
Proposed patch (502 bytes, patch)
2009-06-22 16:11 UTC, Olivier Fourdan
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0318 normal SHIPPED_LIVE rhpxl bug fix update 2010-03-29 14:42:55 UTC

Description Jack Neely 2007-06-04 21:22:46 UTC
Description of problem:
I have a Dell Optiplex 745 connected to a Dell 1907FP lcd monitor which has a
max resolution of 1280x1024.  For whatever reason X believes this monitor is
capable of 1400x1050.

Running the GUI of system-config-display and selecting the proper resolution
from the dialogs produces a modified xorg.conf with a Modes line that starts
with "1280x1024" as expected.  X then runs in the correct resolution.

However, if I use system-config-display --set-resolution "1280x1024" there is no
change in xorg.conf (save a comment) and X continues to try to run in the
highest resolution that it discovers.

I believe this is also affecting my kickstart installs of these machines.  Using
"xconfig --resolution "1280x1024" --depth 24" or "monitor --monitor="LCD Panel
1280x1024"" have no affect on the produced xorg.conf and the machine starts up
with its bad X configuration.

I need to configure this via kickstart for large deployments and there doesn't
seem to be a way besides providing my own custom xorg.conf which I'd rather not do.

Version-Release number of selected component (if applicable):

Comment 1 Matěj Cepl 2007-09-04 12:40:37 UTC
Thanks for the bug report.  We have reviewed the information you have provided
above, and there is some additional information we require that will be helpful
in our diagnosis of this issue.

Please attach your X server config file (/etc/X11/xorg.conf) and X server log
file (/var/log/Xorg.*.log) to the bug report as individual uncompressed file
attachments using the bugzilla file attachment link below.

Could you please also try to run without any /etc/X11/xorg.conf whatsoever and
let X11 autodetect your display and video card? Attach to this bug
/var/log/Xorg.0.log from this attempt as well, please.

We will review this issue again once you've had a chance to attach this information.

Thanks in advance.

Comment 2 Matěj Cepl 2007-10-05 13:43:40 UTC
Reporter, could you please reply to the previous question? If you won't reply in
one month, I will have to close this bug as INSUFFICIENT_DATA. Thank you.

Comment 3 Jack Neely 2007-10-05 14:26:56 UTC
Created attachment 217461 [details]
xorg log file

Using no xorg configuration (rm /etc/X11/xorg.conf)

Comment 4 Jack Neely 2007-10-05 14:32:00 UTC
Created attachment 217491 [details]
xorg log file

Xorg log file generated by X after using s-c-display and selecting the proper
resolution from the dialog.  This is the desired configuration.

Comment 5 Jack Neely 2007-10-05 14:32:59 UTC
Created attachment 217501 [details]
xorg configuration - desired configuration

This is the xorg.conf generated by the above invocation of s-c-display

Comment 6 Jack Neely 2007-10-05 14:36:57 UTC
Created attachment 217531 [details]
log after running --set-resoultion

After running system-config-display --set-resolution "1280x1024" this was the
log file produced.  X is running in 1400x1050 again.

Comment 7 Jack Neely 2007-10-05 14:38:00 UTC
Created attachment 217551 [details]
xorg configuration - after --set-resolution

This is the config file after running system-config-display --set-resolution
"1280x1024" where X runs in 1400x1050

Comment 8 Jack Neely 2007-10-05 14:41:20 UTC
Files attached.  This machine is using an ATI card PCI ID 7183 (x1300) (as RHEL5
doesn't recognize the card yet.)  I have the LCD display connected via the
analog VGA cable.

Comment 9 Lance A. Brown 2008-01-17 21:24:14 UTC
I need to be able to set the resolution from the CLI on a variety of Dell
Optiplex and other workstations that are not correctly autoprobed under CentOS
5.0 and CentOS 5.1.  The --set-resolution option appears to be flat out ignored
in all my testing.

Comment 10 Adam Stokes 2008-11-05 15:35:02 UTC
This problem also seems to occur on s-c-d GUI as well. After defining the resolution from the drop down box an updated xorg.conf gets written without the defined modes so X server will always probe via ddc for a correct resolution.


Comment 11 RHEL Product and Program Management 2009-03-26 16:51:54 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 18 Olivier Fourdan 2009-06-22 16:11:17 UTC
Created attachment 348937 [details]
Proposed patch

Seems the list of resolutions is not emptied in set_resolution (in rhpxl-0.41.1/rhpxl/xhwstate.py) prior to appending the new one.

So what happens is that a new list is built starting from the resolution asked for, appended to the already existing list that contains higher resolutions and therefore the resolution asked for is not selected by X (since there are other higher mode listed).

The attached patch seems to work in my test case.

Comment 36 Adam Jackson 2010-02-23 20:15:34 UTC
2277402 build (dist-5E-qu-candidate, /cvs/dist:rpms/rhpxl/RHEL-5:rhpxl-0_41_1-9_el5) completed successfully


Comment 40 errata-xmlrpc 2010-03-30 09:07:22 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.