Bug 1585050
| Summary: | portrait rotation seems to be broken | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Tomas Pelka <tpelka> | ||||||||
| Component: | xorg-x11-server | Assignee: | Adam Jackson <ajax> | ||||||||
| Status: | CLOSED WONTFIX | QA Contact: | Desktop QE <desktop-qa-list> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 7.6 | CC: | adam.winberg, mboisver, ofourdan | ||||||||
| Target Milestone: | rc | ||||||||||
| Target Release: | 7.8 | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2021-02-15 07:39:15 UTC | Type: | Bug | ||||||||
| 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: | 1738389 | ||||||||||
| Attachments: |
|
||||||||||
I would appreciate any kind of advice how to debug. From attachment 1446566 [details]: [ 8590.904] (II) modeset(0): Allocate new frame buffer 5760x2160 stride [ 8590.977] failed to add rotate fb Possibly https://bugs.freedesktop.org/show_bug.cgi?id=106715 Oh an I forgot to mention 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 620 [8086:5916] (rev 02) You may want to capture the kernel drm debug logs at the time the framebuffer allocation fails, that would give some indication as to why it fails, which limit we hit there.
To do so:
1. Increase the kernel log buffer so we don't fill it up too quickly,
reboot and add"log_buf_len=1M" to the kernel command line
2. As root, increase drm debug loglevel to the max (that's overkill but we
won't miss anything this way...)
# echo 255 > /sys/module/drm/parameters/debug
3. Rotate external monitor (what fails)
4. Post dmesg
dmesg > dmesg.txt
Hopefully the drm.debug logs will tell why it fails to allocate the framebuffer.
Created attachment 1447885 [details]
dmesg.txt
From Xorg.log (attachment 1446566 [details]): “Allocate new frame buffer 5760x2160 stride” → drmmode_xf86crtc_resize() “failed to add rotate fb” → drmmode_shadow_allocate() So drmmode_shadow_allocate() calls drmModeAddFB() which translates as drm_mode_addfb() in the kernel, and that call fails (hence the error message) drm_mode_addfb() → drm_mode_addfb2() → drm_internal_framebuffer_create() drm_internal_framebuffer_create() would log with DRM_DEBUG loglevel, in case of error, one of the following messages: · “bad framebuffer flags ...” · “bad framebuffer width ..., should be >= ... && <= ...” · “bad framebuffer height ..., should be >= ... && <= ...” · “driver does not support fb modifiers” · “could not create framebuffer” But I don't see any of those in the DRM logs from dmesg (attachment 1447885 [details]) - Are we sure we got the complete drm logs? (Also, oddly enough, drmmode_shadow_allocate() hasn't changed in xserver 1.20) Created attachment 1448362 [details]
another dmesg log
Generated new dmseg.log with drm.debug=0xe log_buf_len=1M on kernel cmdline and maxed drm verbosity.
After update to 7.6 beta I'm also affected by this. Dual external monitors, when setting to portrait mode in gnome-control-center the monitor shuts down due to not receiving any video signal (which is different from OP, who still had a visible cursor on screen). In my case this seems to be related to X choosing to wrong driver for my graphics card. Instead of loading 'intel_drv.so' it loaded 'fbdev'. After setting an explicit xorg.conf snippet to instruct X to use the Intel driver, portrait mode works as it should. After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. |
Created attachment 1446566 [details] xorg log Description of problem: when I rotate one of mine external monitor to portrait left/right the background turn to black and only I can see is cursor. Version-Release number of selected component (if applicable): xorg-x11-server-Xorg-1.20.0-0.1.el7 kernel-3.10.0-874.el7.rhel76drm.volta.06 How reproducible: 100% Steps to Reproduce: 1. rotate external monitor 2. 3. Actual results: only mouse cursor is visible on the screen not background no windows etc. Just black screen with cursor. Expected results: it should work Additional info: