Bug 37300 - Radeon KMS needs chvt in my dual-monitor (one rotated) setup
Summary: Radeon KMS needs chvt in my dual-monitor (one rotated) setup
Status: RESOLVED WONTFIX
Alias: None
Product: pm-utils
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-17 17:54 UTC by Frank Myhr
Modified: 2018-06-29 19:57 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
proposed patch to do chvt even when using kms (782 bytes, patch)
2011-05-19 13:28 UTC, Frank Myhr
Details | Splinter Review

Description Frank Myhr 2011-05-17 17:54:00 UTC
I recently installed an Asus EAH5450 Silent 512MB GPU in my GA-MA770-UD3 mainboard. Two monitors are connected, partial xrandr output:

DVI-0 connected 1920x1200+0+0 (normal left inverted right x axis y axis)
HDMI-0 connected 1024x1280+1920+0 left (normal left inverted right x axis y axis)

Note that the 2nd monitor is rotated, and has a different resolution than the primary monitor. The system runs Kubuntu 11.04 Natty AMD64, pm-utils 1.4.1, custom 2.6.38.6 kernel with radeon kms. From KDE, clicking "Launcher: Sleep" suspends the system to RAM with no problems, but resume fails about 50% of the time. (Seems to work once, then fail the 2nd time.) When resume fails, the system and screens power up, but remain unresponsive. I can ping the system but not log in through ssh; the dreaded reset button becomes necessary.

With only the primary DVI monitor connected, the system resumes perfectly every time. But I want to run both monitors. Then I tried suspending by switching from KDE to a root console and running pm-suspend. Subsequent resumes worked every time.

Finally I copied /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler to /etc/pm/sleep.d/98video-quirk-db-handler and commented out the --quirk-no-chvt line as follows

	elif using_kms; then
            # Using kernel modesetting?  No quirks, and do not change vts.
	    remove_parameters $possible_video_quirks
	    # FHM 2011-05-17: Want to use chvt anyway on my system
	    #add_parameters --quirk-no-chvt
	    echo "Kernel modesetting video driver detected, not using quirks. But DO chvt."

That did the trick -- suspend & resume from KDE have been working ever since.
Comment 1 Frank Myhr 2011-05-19 13:28:18 UTC
Created attachment 46918 [details] [review]
proposed patch to do chvt even when using kms

Doing a chvt even when kms is active is safer, given that there are some setups like my dual-screen radeon one that need it. Is there a downside to chvt other than a trivial amount of time taken to do it?
Comment 2 Adam Jackson 2018-06-29 19:57:12 UTC
pm-utils hasn't been touched in eight years, none of this is likely to get addressed. Closing bugs and disabling the bz product.


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.