/etc/init.d/855resolution has to be restarted instead of just started see bug http://bugs.gentoo.org/show_bug.cgi?id=141204 for details). Patch applied.
Created attachment 104945 [details, diff] restart instead of start
Thanks! Added. Next time, please submit only your modifications, it will be easier to apply.
Not sure why the patch changes i915resolution, when there is a 915resolution ebuild (that I need and is ~amd64) in addition to 855resolution. I think unifying both ebuilds would make sense, and have this unified tweak called in the script, rather than fight if the options should be for 855 or 915/945*/965 chips (I have a 945GM).
I think 915resolution is not in portage that long, is it? Because I could only find 855resolution when I proposed the patch originally. 915resolution seems newer (more maintained?), probably makes 855resolution obsolete. Both won't be needed much longer quoting 915's homepage http://www.geocities.com/stomljen/ : "Using 915resolution from within an Xserver 915resolution is going to be incorporated into the i810 driver from X.org. It should be in an upcoming release. This will void the need to run 915resolution manually." Let's hope this will work with hibernation smoothly.
Actually, I think the put-915resolution-inside-i810-driver patches were rejected, because future versions of i810 will not use the video BIOS at all (like Windows). Either way, these apps wont be required at some point in the near future.
OK. I will drop the patch of 915->855 so people with start using 915 (Original requirement from upstream).
Not so fast! You still need a little bit of patching, because the init.d-script in gentoo is called "/etc/init.d/915resolution", not "/etc/init.d/i915resolution", and it also has to be "restarted" instead of just started. But for 915 you only need to patch this one line in "/usr/share/hibernate/scriptlets.d/hardware_tweaks", right. 915resolution works just as fine as 855resolution for me. Be it as it may, I think all this whole thing really does can be replaced by a one-liner in /etc/hibernate/common.conf: OnResume 98 /etc/init.d/855resolution restart -or- OnResume 98 /etc/init.d/915resolution restart Maybe it's not worth the patch. But it's better to have an option in the config file that works rather than one that pretends to do what you want.
Done. Please check.
Patrick, I will open a new bug for treecleaner to remove 855resolution.
(In reply to comment #8) > Done. > Please check. > Works fine for me, thanks.