Bug#489465: changes from 0.109-5 to -6 disabled sleep button

2008-09-08 Thread Bart Samwel

Hi Krunoslav,

Krunoslav Sever wrote:

On Sun, Sep 07, 2008 at 10:26:13AM +0200 wrote
 Bart Samwel [EMAIL PROTECTED]:


Hi Krunoslav,

Krunoslav Sever wrote:

On Thu, Sep 04, 2008 at 08:36:03PM +0200 wrote
 Bart Samwel [EMAIL PROTECTED]:

Hi Krunoslav,

Krunoslav Sever wrote:

Today I upgraded to -6 which disabled the sleep button on my (old)
HP Omnibook 6000, at least on console. Haven't tested if it still works
from X, though (xfce Desktop).

With -5 the sleep button functioned perfectly from console and from the
xfce Desktop. After downgrading to -5 again, everything works fine again,
so it must be the changes between these two versions.

Before downgrading I tried to revert the change in
/etc/acpi/events/sleepbtn manually and and stop/start
/etc/init.d/acpi-support, but that didn't have any effect, so I guess
there have been some more changes (or I forget to restart something
else?).

The changelog led me to this bug number which I guess is the culprit, so I
hope this is the right place to post this issue.

Maybe you can provide a workaround, otherwise I will be staying with -5
for now.

This is a fairly basic lenny installation, just base and some selected
additional packages, nothing custom. If you should need more details, I
can provide them later (at work right now).

Sorry about the delay, I've been a bit busy. Could you try replacing the
contents of /usr/share/acpi-support/suspendorhibernate by the contents
of the attached file and tell me the results? This change will be
included to fix another suspend problem in 0.109-6, and if this fixes it
for you, then you are experiencing the same problem and I don't have to
change anything else. For more info, see bugs #496911 an d #497570:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496911
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497570

If this doesn't fix things for you, we need to do do some debugging on
your setup. But we'll wait with that until we know that it's necessary!

Cheers,
Bart


No sweat about the delay, since I have a working setup for now, there is no real
urgency.

Anyway, replaced the file, sleep button didn't work (console). Replacing back,
enabled it again.

Let me know what you need for debugging the setup. I did no manual changes, so
it is the setup established by apt, though I suppose there are local settings
involved.

OK, then let's debug this. I would like to see the output of:

bash -x /usr/share/acpi-support/suspendorhibernate suspend


Okay, following occurred: with version -5 I obtained out-5 in the attachment and
notebook suspended. Then I replaced the file you provided earlier and rerun. I
obtained out-7 in the attachment (a few lines differ, may be of help) and the
notebook suspended again (but the button does not work): button assignment?

I haven't retested but I think I tried something like this command to obtain a 
manual
suspend command with version -6 and it did not suspend. May be I will retry 
later.
For now I am quite optimistic the current results will help you.


Yes, this helps. It must be a button handler problem. Could you show me 
the output of:


bash -x /etc/acpi/sleepbtn.sh

and also tell me if the laptop suspends when you do this?

Cheers,
Bart



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#489465: changes from 0.109-5 to -6 disabled sleep button: SOLVED!

2008-09-08 Thread Bart Samwel

Hi Krunoslav,

Krunoslav Sever wrote:
[...]
I haven't retested but I think I tried something like this command to 
obtain a manual
suspend command with version -6 and it did not suspend. May be I will 
retry later.

For now I am quite optimistic the current results will help you.
Yes, this helps. It must be a button handler problem. Could you show me 
the output of:


bash -x /etc/acpi/sleepbtn.sh

and also tell me if the laptop suspends when you do this?


Gak. Okay, I found the problem myself after this output, i.e. your patched file
works! I just forgot to make it executable (the output showed me that I had no
permission to run your file). Now button works with patch from console and X
again.

That means version 7 will likely fix this for me: have you an ETA for upload
already?

Thank you for the help and I hope you don't mind me having been a little stupid
there. I actually did watch for reading rights when replacing but totally 
ignored
execution somehow. Well, at least the solution didn't require serious work :)


Version 7 is actually already uploaded -- it's in unstable (or actually, 
version 8 is), I still need to get a release exception from the 
release managers so that it still goes into Lenny, I'll do that tonight.


Cheers,
Bart



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#489465: changes from 0.109-5 to -6 disabled sleep button

2008-09-04 Thread Bart Samwel
Hi Krunoslav,

Krunoslav Sever wrote:
 Today I upgraded to -6 which disabled the sleep button on my (old)
 HP Omnibook 6000, at least on console. Haven't tested if it still works
 from X, though (xfce Desktop).
 
 With -5 the sleep button functioned perfectly from console and from the
 xfce Desktop. After downgrading to -5 again, everything works fine again,
 so it must be the changes between these two versions.
 
 Before downgrading I tried to revert the change in
 /etc/acpi/events/sleepbtn manually and and stop/start
 /etc/init.d/acpi-support, but that didn't have any effect, so I guess
 there have been some more changes (or I forget to restart something
 else?).
 
 The changelog led me to this bug number which I guess is the culprit, so I
 hope this is the right place to post this issue.
 
 Maybe you can provide a workaround, otherwise I will be staying with -5
 for now.
 
 This is a fairly basic lenny installation, just base and some selected
 additional packages, nothing custom. If you should need more details, I
 can provide them later (at work right now).

Sorry about the delay, I've been a bit busy. Could you try replacing the
contents of /usr/share/acpi-support/suspendorhibernate by the contents
of the attached file and tell me the results? This change will be
included to fix another suspend problem in 0.109-6, and if this fixes it
for you, then you are experiencing the same problem and I don't have to
change anything else. For more info, see bugs #496911 an d #497570:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496911
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497570

If this doesn't fix things for you, we need to do do some debugging on
your setup. But we'll wait with that until we know that it's necessary!

Cheers,
Bart
#!/bin/sh
#
# How we handle suspend/hibernate is a bit complicated:
#
# If gnome-power-manager or klaptopdaemon are running, we send a fake key
# and that's it. The daemons may have policies that turn off suspend in
# response to suspend keys etc., so we don't want to do anything ourselves.
#
# If not, we follow the SUSPEND_METHODS setting.
#
#
# This script takes parameter suspend or hibernate.
#
. /etc/default/acpi-support
. /usr/share/acpi-support/power-funcs
. /usr/share/acpi-support/device-funcs
. /usr/share/acpi-support/policy-funcs
. /usr/share/acpi-support/key-constants

DeviceConfig;

# The difference between suspend and hibernate
if [ $1 = suspend ] ; then
KEY=$KEY_SLEEP
HIBERNATE_CMD=/usr/sbin/hibernate-ram
PM_UTILS_CMD=/usr/sbin/pm-suspend
DBUS_METHOD=Suspend
DBUS_PARAMS=int32:0
elif [ $1 = hibernate ] ; then
KEY=$KEY_SUSPEND
HIBERNATE_CMD=/usr/sbin/hibernate-disk
PM_UTILS_CMD=/usr/sbin/pm-hibernate
DBUS_METHOD=Hibernate
DBUS_PARAMS=
else
echo 'Usage: '$0' (suspend|hibernate)'
fi


#
# Backward compatibility
#

# Backward compatibility for setting USE_HIBERNATE_PACKAGE
if [ $SUSPEND_METHODS =  ] 
   [ $USE_HIBERNATE_PACKAGE = true ] 
   [ -x $HIBERNATE_CMD ] ; then
SUSPEND_METHODS=hibernate
fi

# Backward compatibility for setups before SUSPEND_METHODS existed.
if [ $SUSPEND_METHODS =  ] ; then
# Legacy configuration -- use the built-in legacy suspend support. We
# can NEVER change this explicitly, because it will break people's
# working suspend setups, especially ones that depend on custom scripts
# in /etc/acpi/suspend.d and /etc/acpi/resume.d.
SUSPEND_METHODS=acpi-support
fi


#
# Try the SUSPEND_METHODS in order.
#

for METHOD in $SUSPEND_METHODS; do
case $METHOD in
none)
exit
;;

dbus-pm)
if [ -x /usr/bin/dbus-send ] ; then
# Call the power management daemon (which, if it is
# running, we probably don't know about, since we send
# keys if we detect one running that we know of).
if /usr/bin/dbus-send --session \
  --dest=org.freedesktop.PowerManagement \
  --type=method_call \
  --print-reply \
  --reply-timeout=2000 \
  /org/freedesktop/PowerManagement \
  org.freedesktop.PowerManagement.$DBUS_METHOD ;
  then
# The other side exists, we have access to it,
# and it received the message. It may have
# failed (I tested this: if pm-suspend returns
# exit code 1, then the return code of dbus-send
# is still 0 and you get no errors), but that
# doesn't matter: the first method in the list
# that we can access is the one that has to do
  

Bug#489465: changes from 0.109-5 to -6 disabled sleep button

2008-08-27 Thread Krunoslav Sever
Today I upgraded to -6 which disabled the sleep button on my (old)
HP Omnibook 6000, at least on console. Haven't tested if it still works
from X, though (xfce Desktop).

With -5 the sleep button functioned perfectly from console and from the
xfce Desktop. After downgrading to -5 again, everything works fine again,
so it must be the changes between these two versions.

Before downgrading I tried to revert the change in
/etc/acpi/events/sleepbtn manually and and stop/start
/etc/init.d/acpi-support, but that didn't have any effect, so I guess
there have been some more changes (or I forget to restart something
else?).

The changelog led me to this bug number which I guess is the culprit, so I
hope this is the right place to post this issue.

Maybe you can provide a workaround, otherwise I will be staying with -5
for now.

This is a fairly basic lenny installation, just base and some selected
additional packages, nothing custom. If you should need more details, I
can provide them later (at work right now).

Hope you can help
  Kruno



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]