Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141204 - hibernate-script-1.93-r3 and 855resolution
Summary: hibernate-script-1.93-r3 and 855resolution
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Christian Heim (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-20 13:17 UTC by Stefan Becker
Modified: 2006-07-21 17:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
855resolution for hibernate-script (hibernate-script-1.93-855resolution.patch,3.18 KB, patch)
2006-07-20 13:19 UTC, Stefan Becker
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Becker 2006-07-20 13:17:50 UTC
When waking up from hibernation some systems having an Intel 855 / 865 / 915 chipset need to replace a video mode in the VBIOS before restarting X in order to get a certain screen resolution, like 1400x1050 in my case. The utility in gentoo for replacing the video mode is called "855resolution". 
hibernate-script supports something called "i915resolution" which does not exist under gentoo but probably is the same as "855resolution" in some other linux distribution. So in order to resume such a system either 855resolution has to change or hibernate-script. I did the latter. A patch is attached that works for me with the current ebuild. (I did not replace all entries of "i915" with "855" because shell variables don't seem to like numbers as their first character, and I think the /etc/init.d-script needs to be "restarted" instead of just "started").
I hope this helps others with their hibernation-problems.
Comment 1 Stefan Becker 2006-07-20 13:19:57 UTC
Created attachment 92340 [details, diff]
855resolution for hibernate-script
Comment 2 Stefan Becker 2006-07-20 23:01:17 UTC
PS: After looking into it a bit more, I suppose adding an "OnResume 98 /etc/init.d/855resolution restart" to the config file and enabling "SwitchToTextMode" achieves the same thing as this one option in the script. So adding this patch is probably not needed, although it's added convenience. Your choice.
Comment 3 Christian Heim (RETIRED) gentoo-dev 2006-07-21 17:34:06 UTC
Should be fixed in CVS now! Thanks for the patch.