First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 133743
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Project Gentopia <gentopia@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: BDKoepke <bdkoepke@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
hal-system-power-suspend.patch patch to add real suspend capability to gnome-power-manager patch Gilles Dartiguelongue 2006-06-05 03:14 0000 463 bytes Details | Diff
hal-0.5.7.1-hibernate.patch revised suspend patch for hibernate-script patch Huanwen Qu 2006-09-23 02:27 0000 461 bytes Details | Diff
hal-0.5.7-hald-scripts.patch hal-0.5.7-hald-scripts.patch patch Gilles Dartiguelongue 2007-01-18 21:59 0000 8.65 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 133743 depends on: Show dependency tree
Show dependency graph
Bug 133743 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-05-18 21:54 0000
/usr/share/hal/hal-system-power-suspend needs detection script for either vbe
tool 
or for hibernate-ram. (For advanced hibernation configuration). Works with
gnome-power-manager. (deleted other configuration added lines
/usr/sbin/hibernate-ram)

------- Comment #1 From BDKoepke 2006-05-18 22:39:22 0000 -------
(In reply to comment #0)
> /usr/share/hal/hal-system-power-suspend needs detection script for either vbe
> tool 
> or for hibernate-ram. (For advanced hibernation configuration). Works with
> gnome-power-manager. (deleted other configuration added lines
> /usr/sbin/hibernate-ram)
> should have added script
elseif [ -x "/usr/sbin/hibernate-ram" ] ; then
/usr/sbin/hibernate-ram
RET=$?

------- Comment #2 From BDKoepke 2006-05-22 16:18:13 0000 -------
gnome-power-manager does not auto reload config on boot. 
To fix it added 
> elseif [ -x "/usr/sbin/hibernate-ram" ] ; then
> /usr/sbin/hibernate-ram
> killall gnome-power-manager 
>RET=$?
> gnome-power-manager
now it reloads with the correct ammount of power (normally shows empty)

------- Comment #3 From Doug Goldstein 2006-05-27 20:33:47 0000 -------
DBKoepke,

You're really not being clear on what the issue is... what needs to be changed.
etc.

------- Comment #4 From BDKoepke 2006-05-28 16:53:37 0000 -------
basically the file /usr/share/hal/hal-system-power-suspend needs a detection
script for hibernate-ram, on my system and probably many others, suspend only
works with the hibernate-script, or vbetool. If you could add vbetool support
to the hald scripts than that would work, however it would be easier if you
just added the lines above so then it will execute 'hibernate-ram' instead of
'echo "mem" > /sys/power/state' (which is the default). This is really only
important for those people who have to use the suspend2-sources kernel for
suspend. 

------- Comment #5 From Gilles Dartiguelongue 2006-06-05 03:14:14 0000 -------
Created an attachment (id=88413) [edit]
patch to add real suspend capability to gnome-power-manager

here is the patch, tested and working here, please consider adding it to the
gnome-power-manager ebuild.

------- Comment #6 From Saleem Abdulrasool 2006-06-05 20:39:22 0000 -------
The issue is with HAL, not gnome-power-manager

------- Comment #7 From BDKoepke 2006-06-05 21:11:51 0000 -------
I agree, I should have directed this towards HAL and not gnome as this is a
global HAL problem. 

------- Comment #8 From Saleem Abdulrasool 2006-06-05 21:58:48 0000 -------
Fixed the patch and added it.

------- Comment #9 From Gilles Dartiguelongue 2006-06-05 22:49:12 0000 -------
shall we report upstream as a patch for supporting gentoo ?

------- Comment #10 From BDKoepke 2006-06-06 10:30:59 0000 -------
this is just a patch for people that have to use the hibernate-script in order
to suspend to ram. This is not a gentoo specific problem, anyone that uses the
hibernate script (even under another distrobution) will have the same problem.
It may be better to report this directly to the HAL project, however I do not
know if the hibernate-script is part of another distrobution or not. If someone
else agrees that this is neccesairy, then I will report it directly to hal, and
not as a gentoo-specific patch. 

------- Comment #11 From BDKoepke 2006-06-06 17:43:57 0000 -------
At the moment, the patch doesn't work. I should have mentioned, the script must
go before is detects the raw kernel interface otherwise it will always run echo
mem /sys/power/state. 
it should look like this:
        elif [ -x "/usr/sbin/hibernate-ram" ] ; then
           # Use hibernate-ram if detected
           /usr/sbin/hibernate-ram
           RET=$?
        elif [ -w "/sys/power/state" ] ; then
            # Use the raw kernel sysfs interface
            echo "mem" > /sys/power/state
            RET=$?
        else
            # TODO: add other scripts support
            unsupported
            fi
sorry for the mix up

------- Comment #12 From Gilles Dartiguelongue 2006-06-12 21:58:28 0000 -------
isn't it in hal-0.5.7-r3 already ?

------- Comment #13 From BDKoepke 2006-06-12 22:10:01 0000 -------
(In reply to comment #12)
> isn't it in hal-0.5.7-r3 already ?

yes it is, however because it is placed after :
        elif [ -w "/sys/power/state" ] ; then
            # Use the raw kernel sysfs interface
            echo "mem" > /sys/power/state
            RET=$?
hibernate-ram never runs because the HAL always detects the raw kernel system
interface and executes echo "mem" > /sys/power/state. (in order for suspend2 to
work, you have to also have "mem" in /sys/power/state). The only way this will
work is if the hibernate-ram detection is placed before the raw kernel
interface is detected. 

------- Comment #14 From Huanwen Qu 2006-09-22 16:24:48 0000 -------
(In reply to comment #13)
> (In reply to comment #12)
> > isn't it in hal-0.5.7-r3 already ?
> 
> yes it is, however because it is placed after :
>         elif [ -w "/sys/power/state" ] ; then
>             # Use the raw kernel sysfs interface
>             echo "mem" > /sys/power/state
>             RET=$?
> hibernate-ram never runs because the HAL always detects the raw kernel system
> interface and executes echo "mem" > /sys/power/state. (in order for suspend2 to
> work, you have to also have "mem" in /sys/power/state). The only way this will
> work is if the hibernate-ram detection is placed before the raw kernel
> interface is detected. 
> 

I'm very supprised that this bug is still there:(

Nobody cares about it?

------- Comment #15 From Huanwen Qu 2006-09-23 02:27:27 0000 -------
Created an attachment (id=97825) [edit]
revised suspend patch for hibernate-script

------- Comment #16 From Joseph Pingenot 2006-10-08 19:14:10 0000 -------
Can we please patch the existing, stable (x86) package, and push it out?  It's
BROKEN for me on may laptop (#@%$! ATI).  This should fix the problem, since I
*must* use hibernate-ram to have a shot at having anything but funky lines show
up on my screen after suspend.

------- Comment #17 From Jakub Moc 2006-10-26 00:24:00 0000 -------
*** Bug 141694 has been marked as a duplicate of this bug. ***

------- Comment #18 From Jakub Moc 2006-10-26 00:24:16 0000 -------
*** Bug 152829 has been marked as a duplicate of this bug. ***

------- Comment #19 From John N. Laliberte (RETIRED) 2006-10-30 11:38:53 0000 -------
*** Bug 152163 has been marked as a duplicate of this bug. ***

------- Comment #20 From Jakub Moc 2006-12-13 03:23:26 0000 -------
*** Bug 158004 has been marked as a duplicate of this bug. ***

------- Comment #21 From Jakub Moc 2006-12-14 17:26:38 0000 -------
*** Bug 158178 has been marked as a duplicate of this bug. ***

------- Comment #22 From Jakub Moc 2007-01-09 18:40:25 0000 -------
*** Bug 161131 has been marked as a duplicate of this bug. ***

------- Comment #23 From Jakub Moc 2007-01-10 08:52:30 0000 -------
*** Bug 161131 has been marked as a duplicate of this bug. ***

------- Comment #24 From Frittella Laurento 2007-01-10 09:01:57 0000 -------
I think hibernate-ram was wrongly added to hal-system-power-hibernate too.

I noticed the new script /usr/share/hal/scripts/hal-system-power-hibernate in
sys-apps/hal-0.5.7.1-r2 contains (before the "hibernate section"):

[...]
elif [ -x "/usr/sbin/hibernate-ram" ] ; then
  /usr/sbin/hibernate-ram
  RET=$?
[...]

We need to drop them out from the hibernate script (and leave it only in the
suspend script).
For example, with the actual version, if I try to hibernate the system from the
gnome-power-manager my pc going to suspend.

------- Comment #25 From Jakub Moc 2007-01-16 07:42:13 0000 -------
*** Bug 162325 has been marked as a duplicate of this bug. ***

------- Comment #26 From Jon Howell 2007-01-16 19:13:08 0000 -------
Note that the two patches here are almost identical but different in an
important way: the older patch tries hibernate-ram *after* the dumb kernel
suspend, which means hibernate-ram never gets used. We want the second patch,
instead.

------- Comment #27 From Gilles Dartiguelongue 2007-01-16 21:12:22 0000 -------
(From update of attachment 88413 [edit])
To make this crystal clear, I'm marking my patch as obsolete.

------- Comment #28 From Doug Goldstein 2007-01-18 05:25:11 0000 -------
Fixed in hal-0.5.7.1-r3

------- Comment #29 From Santiago Gala 2007-01-18 11:26:28 0000 -------
The ebuild, as of now, fails to unpack:

 * Failed Patch: hal-0.5.7.1-hibernate-fix-r1.patch !
 *  ( /usr/portage/sys-apps/hal/files/hal-0.5.7.1-hibernate-fix-r1.patch )

------- Comment #30 From Doug Goldstein 2007-01-18 14:20:20 0000 -------
Well since neither of the patches actually apply to anything, you guys are
going to have to deal with it broken for some more time. Until someone can
provide a working patch.

------- Comment #31 From Martin von Gagern 2007-01-18 20:59:57 0000 -------
Notice bug 162624 about the fact that the patch from comment 15 won't apply.
There is a conflict between that one and hal-0.5.7-hald-scripts.patch.
So if this patch is what you want, make those two patches play nice.

Should hibernate-ram be before or after this block?

elif  [ "$HAL_PROP_POWER_MANAGEMENT_TYPE" = "pmu" ]; then
  #PMU systems cannot use /sys/power/state yet, so use a helper to issue an
ioctl
  hal-system-power-pmu sleep

------- Comment #32 From Gilles Dartiguelongue 2007-01-18 21:59:39 0000 -------
Created an attachment (id=107396) [edit]
hal-0.5.7-hald-scripts.patch

Drop in replacement for current hal-0.5.7-hald-scripts.patch, this one should
do the right thing (tm),

you should remove :
hal-0.5.7-hibernate.patch
hal-0.5.7.1-hibernate-fix.patch

which are either obsoleted by this patch or don't do what they are supposed to
do.

------- Comment #33 From Serge Gavrilov 2007-01-21 09:41:06 0000 -------
It seems this trivial bug will never be fixed :(

------- Comment #34 From Doug Goldstein 2007-01-22 00:46:22 0000 -------
I've attempted to fix it 4 times. I don't use hibernate support at all,
unfortunately, NO one can provide a functional patch ever.

I will try Gilles latest patch for the next revision.

------- Comment #35 From Gilles Dartiguelongue 2007-01-22 07:43:13 0000 -------
Doug, thanks for taking care of this. I hope I can help with hibernate stuff as
soon as I'll be a gentoo dev (which I hope should be soon).

------- Comment #36 From Daniel Gryniewicz 2007-01-26 02:33:22 0000 -------
*** Bug 158527 has been marked as a duplicate of this bug. ***

------- Comment #37 From Doug Goldstein 2007-01-30 16:01:34 0000 -------
Still does not apply.

------- Comment #38 From Doug Goldstein 2007-01-30 16:05:50 0000 -------
Fixed for hal-0.5.7.1-r4

------- Comment #39 From Gilles Dartiguelongue 2007-02-03 21:40:54 0000 -------
yes, the scripts are good now, thanks you so much :)

First Last Prev Next    No search results available      Search page      Enter new bug