Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149253 - genkernel script (3.4.1) does not resume suspend2-sources-2.6.18
Summary: genkernel script (3.4.1) does not resume suspend2-sources-2.6.18
Status: RESOLVED DUPLICATE of bug 148499
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-26 22:17 UTC by BDKoepke
Modified: 2006-09-27 00:59 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BDKoepke 2006-09-26 22:17:52 UTC
the script checks for /proc/suspend2 to decide weither or not to activate suspend2, but in 2.6.18 /proc/suspend2 does not exist. I simple deleted the detection and added /sys/power/suspend2/ in its place and it worked fine.Maybe add a check in the script for both so the depreciated /proc/suspend2 still works.(or maybe my kernel is configured wrong and thats why I dont have /proc/suspend2) 
(ex) (initrd.scripts)
suspend2_resume() {
        if [ -d /sys/power/suspend2 ]; then ## changed from /proc/suspend2
                local splash_theme

                if grep "splash=" /proc/cmdline > /dev/null 2>&1; then
                        splash_theme=`cat /proc/cmdline | sed 's/.*splash=/splash=/' | sed 's/ .*//' | sed 's/.*theme://' | sed 's/,.*//'`
                fi

                local suspend2_userui_program="/sys/power/suspend2/user_interface/program"
                local suspend2_do_resume="/sys/power/suspend2/do_resume"

                modules_scan suspend2

                if which suspend2ui_text > /dev/null 2>&1; then
                        which suspend2ui_text > "${suspend2_userui_program}"
                fi

                if [ -n "${splash_theme}" ]; then
                        ln -s /etc/splash/${splash_theme} /etc/splash/suspend2

                        if which suspend2ui_fbsplash > /dev/null 2>&1; then
                                which suspend2ui_fbsplash > "${suspend2_userui_program}"
                        fi
                fi

                echo > "${suspend2_do_resume}"
        fi
}
any input would be appreciated ( maybe this has been done on purpose, or is already included in unstable genkernel? )
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-27 00:59:52 UTC

*** This bug has been marked as a duplicate of 148499 ***