Bug 242577
| Summary: | --set-resolution CLI does not work | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Jack Neely <jjneely> | ||||||||||||||
| Component: | rhpxl | Assignee: | Adam Jackson <ajax> | ||||||||||||||
| Status: | CLOSED ERRATA | QA Contact: | desktop-bugs <desktop-bugs> | ||||||||||||||
| Severity: | high | Docs Contact: | |||||||||||||||
| Priority: | high | ||||||||||||||||
| Version: | 5.0 | CC: | akarlsso, astokes, cmeadors, cward, jplans, jwest, lance, ltroan, mgordon, ofourdan, syeghiay, tao, xgl-maint | ||||||||||||||
| Target Milestone: | rc | Keywords: | Patch | ||||||||||||||
| Target Release: | 5.5 | ||||||||||||||||
| Hardware: | All | ||||||||||||||||
| OS: | Linux | ||||||||||||||||
| Whiteboard: | |||||||||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||||
| Clone Of: | Environment: | ||||||||||||||||
| Last Closed: | 2010-03-30 09:07:22 UTC | Type: | --- | ||||||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||||||
| Documentation: | --- | CRM: | |||||||||||||||
| Verified Versions: | Category: | --- | |||||||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||
| Embargoed: | |||||||||||||||||
| Bug Depends On: | |||||||||||||||||
| Bug Blocks: | 499522 | ||||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
Jack Neely
2007-06-04 21:22:46 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. 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. Created attachment 217461 [details]
xorg log file
Using no xorg configuration (rm /etc/X11/xorg.conf)
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.
Created attachment 217501 [details]
xorg configuration - desired configuration
This is the xorg.conf generated by the above invocation of s-c-display
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.
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
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. 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. 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. Thanks, Adam 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 "?". 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.
2277402 build (dist-5E-qu-candidate, /cvs/dist:rpms/rhpxl/RHEL-5:rhpxl-0_41_1-9_el5) completed successfully MODIFIED 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. http://rhn.redhat.com/errata/RHBA-2010-0318.html |