[Bug 63834] Re: suspend/resume broken on Lenovo 3000 N100

2008-04-26 Thread Kjell Braden
Thanks for your investigation.

** Changed in: linux (Ubuntu)
   Status: Incomplete => Invalid

-- 
suspend/resume broken on Lenovo 3000 N100 
https://bugs.launchpad.net/bugs/63834
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 63834] Re: suspend/resume broken on Lenovo 3000 N100

2008-04-26 Thread LarryGrover
I am the original reported of this bug.  As I noted in comments above,
this turned out to be a bug in the suspend scripts, and not a kernel
bug.

I am running Hardy Heron (8.04) on my laptop, and the suspend scripts
seem to have been cleaned up.  I have had no problems with
suspend/resume since I upgraded to Hardy.  This bug can be closed as
'fixed'.

-- 
suspend/resume broken on Lenovo 3000 N100 
https://bugs.launchpad.net/bugs/63834
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 63834] Re: suspend/resume broken on Lenovo 3000 N100

2008-04-25 Thread Kjell Braden
Hardy Heron 8.04 was recently released.  It would be helpful if you
could test the new release and verify if this is still an issue -
http://www.ubuntu.com/getubuntu/download .  You should be able to test
your bug using the LiveCD.  Please let us know your results.  Thanks.

** Changed in: linux-source-2.6.17 (Ubuntu)
   Status: New => Won't Fix

** Also affects: linux (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: linux (Ubuntu)
   Status: New => Incomplete

-- 
suspend/resume broken on Lenovo 3000 N100 
https://bugs.launchpad.net/bugs/63834
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 63834] Re: suspend/resume broken on Lenovo 3000 N100

2007-06-15 Thread Diego Iastrubni
2 more points:

1) If some newbie is reading this: to add a parameter to the boot sequence 
please edit a commented line which looks like this:

# kopt=root=UUID=2ea921be-867d-4841-a08c-5e91661aa5b8 ro i8042.nomux

and add the parameter to it. Then execute "update-grub". Do not edit directly 
the grubentries.

2) When I suspend to disk, and the machine is down for a long period (about 20 
mins is long enough), when the machine resumes the fan does not spin. 

I should mention that this happens with 2.6.20-16-generic, and probably not 
with 2.6.17. Do still, do not upgrade to the new kernel if you have an 
option.

-- 
suspend/resume broken on Lenovo 3000 N100 
https://bugs.launchpad.net/bugs/63834
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 63834] Re: suspend/resume broken on Lenovo 3000 N100

2007-06-15 Thread Diego Iastrubni
[EMAIL PROTECTED]:~# dpkg -l | grep susp
ii  uswsusp0.3~cvs20060928-6ubuntu3 
  
tools to use userspace software suspend provided by Li
[EMAIL PROTECTED]:~# s2ram -i
This machine can be identified by:
sys_vendor   = "LENOVO"
sys_product  = "0768B9G"
sys_version  = "3000 N100   "
bios_version = "61ET36WW"
See http://en.opensuse.org/S2ram for details.

I added the parameter  i8042.nomux to grub (as explained on that page). Now I 
can suspend to ram (by choosing the correct option from the logout menu in 
KDE). When I do this 3 times at a row, the system gets stucked on resume. On 
the times the machine booted back up, and the was functional and I 
experienced no keyboard problems as explained before.

Next I tried suspend to disk, which worked quite good for several times.

Next test was to setup the machine to suspend to ram when I close the lid. 
What happens is that when I close the lid the themachine logs out of my 
session, and when it comes back I get the KDM menu. I log in once more, and I 
get a message saying that the lid is close, and it suspends once more. The 
machine gets into this nice loop, until I power it off by force.

Right now I have 2 problems:
 1) suspend to ram fails on the 3rd time.
 2) closing the lid, after I instruced KDE's PowerManager to suspend on lid 
close even makes the machine suspend until I power it off brutally.

(1) will be hard to fix, but (2) should be easy. I am not sure why it locks 
up, some help will be appreciated.

-- 
suspend/resume broken on Lenovo 3000 N100 
https://bugs.launchpad.net/bugs/63834
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 63834] Re: suspend/resume broken on Lenovo 3000 N100

2007-06-11 Thread LarryGrover
Diego, it looks like you have powersaved installed.  Please check if you
also have uswsusp installed.  I think powersave needs uswsusp to work
well.

If you have uswsusp installed, and you are still having problems, you might 
find this tutorial helpful:
http://en.opensuse.org/S2ram
This tutorial explains how to get s2ram working (s2ram is provided by the 
uswsusp package, and if installed, will be used by powersave to suspend the 
system to RAM).

To find out which model of 3000 N100 you have:
(1) if you have uswsusp installed, simply run:
sudo s2ram -i
(2) otherwise, you can run:
sudo dmidecode -t system

wiki.ubuntu.com has a page on the 3000 N100 model 0768 - B9G, if it turns you 
that you have that model:
https://wiki.ubuntu.com/LaptopTestingTeam/Lenovo3000N100_0768
There is some information on this page about sleep/hibernate, if it turns out 
that you have this model (this information does not seem to apply to my model).

-- 
suspend/resume broken on Lenovo 3000 N100 
https://bugs.launchpad.net/bugs/63834
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 63834] Re: suspend/resume broken on Lenovo 3000 N100

2007-06-11 Thread Diego Iastrubni
I just tested it (install a new package, and edit a configuration file),
and it does seem to work. Sometimes.

>From my minimal tests, hibernate seems to work. Suspend to RAM is a
problem:

when you make the sleep from the Power Manager applet the machine comes
back some of the times. When it does come back, there are some options

1) the num lock led is lighted, this  means that the mouse-pad will not work. 
note also that the num luck is on, and to remove it, just press caps-lock twise.
2) Sometimes the machine just works perfectly.
3) Sometimes the machine just does not restore. this happens when I suspend 
more then once.

When asked the Power Manager to suspend the machine when I close the
lid, it got into a loop: each time I returned from the suspend, it
suspended the machine, until it got locks. and  I have to force it to
power off.

I also hibernated the machine now for 10 minutes and now the fan does
not work. Funny, shorter hibernations (hibernate and immediately
restore) it works pretty good.

I also played with some packages, see:
[EMAIL PROTECTED]:~$ dpkg -l | grep powe
ii  acpid  1.0.4-5ubuntu6   
  Utilities for using ACPI power management
ii  kde-guidance-powermanager  0.8.0-0ubuntu5   
  HAL based Power Manager Applet
ii  laptop-mode-tools  1.32-1ubuntu1
  Scripts to spin down hard drive and save power
ii  libgnomecanvas2-0  2.14.0-3ubuntu2  
  A powerful object-oriented display - runtime files
ii  libgnomecanvas2-common 2.14.0-3ubuntu2  
  A powerful object-oriented display - common files
ii  libimlib2  1.3.0.0debian1-4build1   
  powerful image loading and rendering library
ii  libpowersave10 0.14.0-6ubuntu1  
  power management daemon - shared library
ii  mc 4.6.1-7ubuntu1   
  midnight commander - a powerful file manager
ii  powermanagement-interface  0.3.15   
  platform neutral powermanagement interface
ii  powermgmt-base 1.29build1   
  Common utils and configs for power management
rc  powernowd  0.97-1ubuntu7
  control cpu speed and voltage using 2.6 kernel interfa
ii  powersaved 0.14.0-6ubuntu1  
  power management daemon
ii  tcpdump3.9.5-2  
  A powerful tool for network monitoring and data acquis


BTW,
How can I tell which 3000 N100 model do I have...?

-- 
suspend/resume broken on Lenovo 3000 N100 
https://bugs.launchpad.net/bugs/63834
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 63834] Re: suspend/resume broken on Lenovo 3000 N100

2007-06-10 Thread LarryGrover
I have figured out the cause of this bug, and it is not in the kernel.

I have kubuntu-desktop,  kpowersave, and powersaved installed and
running on my laptop.  The bug originates in the way that kpowersave
interacts with the suspend (to RAM) scripts from hal and powersaved.   I
believe the following description is accurate:

(1) When kpowersave detects an event that should trigger a suspend to RAM (lid 
closure, "sleep" button pressed, or selecting suspend to RAM from the panel 
applet menu), it (somehow) invokes the script:
/usr/lib/hal/scripts/linux/hal-system-power-suspend-linux

(2) The /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux script
checks to see which tools are available:

#Other distros just need to have *any* tools installed
else
if [ -x "/usr/sbin/pm-suspend" ] ; then
/usr/sbin/pm-suspend $QUIRKS
RET=$?
elif [ -x "/usr/bin/powersave" ] ; then
$POWERSAVED_SUSPEND2RAM
RET=$?
elif [ -x "/usr/sbin/hibernate" ] ; then
# Use hibernate configured for suspend-to-ram
/usr/sbin/hibernate -F/etc/hibernate/ram.conf
RET=$?
elif [ -x "/etc/acpi/sleep.sh" ] ; then
# Use acpi-support for suspend to ram
/etc/acpi/sleep.sh force
RET=$?
elif [ -x "/usr/sbin/s2ram" ] ; then
# uswsusp tools installed
/usr/sbin/s2ram
RET=$?
elif [ -x "/usr/sbin/pmi" ] ; then
/usr/sbin/pmi action suspend force
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
fi

(3) When powersaved is installed (which includes /usr/bin/powersave), it
"wins", and the powersave suspend script
(/usr/lib/powersave/do_acpi_sleep) gets run

(4) The do_acpi_sleep script has a section that checks to see if the
s2ram executable is available:

   if [ -x $S2RAM ]; then
echo "Executing '$S2RAM $S2RAM_OPTS'" >> $S2RAM_LOG
$S2RAM $S2RAM_OPTS >> $S2RAM_LOG 2>&1
RET=$?
case $RET in
127) $NOTIFY $S2RAM_NOT_SUPPORTED & ;;
126) $NOTIFY $S2RAM_FB_ONLY & ;;
esac
else
echo "$S2RAM not found, falling back to echo." >> $S2RAM_LOG
$MYECHO /sys/power/state mem
RET=$?
fi

(5) s2ram is part of the uswsusp package, which is not required by
powersaved, and so was not installed on my system.  Without s2ram, the
do_acpi_sleep script suspends the computer simply by echoing "mem" to
/sys/power/state.   On my laptop model, this causes problems on resume
(the video does not get restarted properly).  This is likely to cause
problems for other laptop models as well.

(6) The fix was to install the uswsusp package, and edit the configuration file 
for powersave (/etc/powersave/sleep) to set these two variables:
SUSPEND2RAM_FORCE="yes"
SUSPEND2RAM_VBE_POST="yes"

SUSPEND2RAM_FORCE has to be set to "yes" because the s2ram program does
not recognize my laptop model, and refuses to run unless forced.  Also,
s2ram must run in order for the second setting,
SUSPEND2RAM_VBE_POST="yes", to have any effect.

With these changes in place (install uswsusp, and edit
/etc/powersave/sleep as above), both suspend to RAM and suspend to DISK
now work nearly flawlessly on my laptop.  I have verified that this
solution works with both the 2.6.17 kernel (from Edgy) and the 2.6.20
(from Feisty, which I am now running).

NOTE:  If you are reading this and you have a Lenovo 3000 N100 laptop,
the designation "3000 N100" is not a model number.  There are several
different model Lenovo laptops that are called 3000 N100 (mine is a
model 0689-6EU).  If you have a different model of Lenovo 3000 N100, you
may get different results from me.

-- 
suspend/resume broken on Lenovo 3000 N100 
https://bugs.launchpad.net/bugs/63834
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 63834] Re: suspend/resume broken on Lenovo 3000 N100

2007-05-19 Thread derp
I thought it would be better to outline the solution instead of just
giving a link with my vague description.

Make a new file (with sudo) in /etc/acpi/suspend.d  called "04-set-cpu-
scaling.sh" containing:

#!/bin/sh

echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Make another file (with sudo) in /etc/acpi/resume.d called "99-reset-
cpu-scaling.sh" containing:

#!/bin/sh

echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor


Also make sure to chmod ugo+x for both files.

ls -l should give:
-rwxr-xr-x 1 root root   81 2007-03-19 21:40 99-reset-cpu-scaling.sh

-- 
suspend/resume broken on Lenovo 3000 N100 
https://bugs.launchpad.net/bugs/63834
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 63834] Re: suspend/resume broken on Lenovo 3000 N100

2007-05-19 Thread derp
I had the same problem and addressed it a few months prior. Please refer
to https://wiki.ubuntu.com/LaptopTestingTeam/Lenovo3000N100_0768 "Sleep
and Hibernate"

-- 
suspend/resume broken on Lenovo 3000 N100 
https://bugs.launchpad.net/bugs/63834
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 63834] Re: suspend/resume broken on Lenovo 3000 N100

2007-05-13 Thread LarryGrover
In case it was not clear, the bug report I originally filed was about
suspend to RAM, not hibernate (to disk).  Hibernate worked almost all
the time in 6.10 and continues to work well in 7.04 (except for the
issues with ipw3945, noted above by Diego Iastrubni, which require
removing and reloading the ipw3945 module).

On my laptop, suspend/resume (to RAM) was broken in 6.10 and remains
broken in 7.04.

-- 
suspend/resume broken on Lenovo 3000 N100 
https://bugs.launchpad.net/bugs/63834
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 63834] Re: suspend/resume broken on Lenovo 3000 N100

2007-05-12 Thread Diego Iastrubni
I just wanted to comment that this is working nicely on 7.04.

Hoever, I am facing heat problems on my machine after upgrade, so I would not 
recommend you upgrade yet. See:
https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.17/+bug/85894

-- 
suspend/resume broken on Lenovo 3000 N100 
https://bugs.launchpad.net/bugs/63834
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 63834] Re: suspend/resume broken on Lenovo 3000 N100

2007-01-11 Thread Diego Iastrubni
on my system (same moduel, running kubuntu 6.10) hibernation works, even
tough it fails to resume on rare cases.

however, the wireless fails to work when i resume from "suspend". a
workaround i found was killing the

   killall ipw3945d-2.6.17-10-generic 
   rmmod ipw3945
   modprobe ipw3945

it seems that the daemon fails on resume.

-- 
suspend/resume broken on Lenovo 3000 N100 
https://launchpad.net/bugs/63834

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 63834] Re: suspend/resume broken on Lenovo 3000 N100

2006-10-04 Thread LarryGrover
I am not so sure this is the same bug as 63937:
(1)  when I try to suspend, I do *not* get any unusual sounds from the hard 
drive.  It certainly does not sound like the disk is failing.
(2) on my laptop the failure to suspend is clearly related to the wireless 
network -- if I bring the wireless network down then I can usually suspend the 
laptop successfully, but it fails when I try to resume (wake) the laptop.

-- 
suspend/resume broken on Lenovo 3000 N100 
https://launchpad.net/bugs/63834

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 63834] Re: suspend/resume broken on Lenovo 3000 N100

2006-10-04 Thread Gongyi
It seems that this problem is common with bug #63937, the power
management of the SATA disk with ata_piix module.

-- 
suspend/resume broken on Lenovo 3000 N100 
https://launchpad.net/bugs/63834

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs