Created attachment 136176 [details] [review]
I am using the fbdev driver for a rotated display with the following device section:
Option "Rotate" "CCW"
The screen is properly rotated after a normal boot, but after hibernating and resuming the system, X fails with the following error message:
(EE) FBDEV(0): FBIOPUT_VSCREENINFO: Invalid argument
Fatal server error:
(EE) EnterVT failed for screen 0
Please consult the The X.Org Foundation support
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE) Server terminated with error (1). Closing log file.
The error happens during EnterVT() in the fbdevHWSetMode() function, which reads the virtual size from the ScrnInfo, but the fbdev driver updated the virtualX and virtualY after the initial modeset with the X and Y for the rotated screen.
The attached patch removes the update of these fields and switches to temporary variables for width and height as it was done before commit 43236f5b ("Fix shadow framebuffer, and by extension rotation.").
-- 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/driver/xf86-video-fbdev/issues/7.