[HP Presario CQ61] changing brightness freezes computer with KMS

Bug #615803 reported by Simon Almström
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Debian
New
Undecided
Unassigned
linux (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Maverick by Michael Mercier

Bug Description

Binary package hint: gnome-power-manager

If I start my laptop without the power cable inserted, it will freeze once the gnome background picture comes up. The mouse does not respond and neither will the keyboard. I can see that the time has also stopped.

If I start the laptop with the power cable it works fine, until I remove the cable. Then it will also freeze and become totally unresponsive. The only way (I have found) to get it back and working is a hard reboot.

I have not seen this problem on Ubuntu 9.10 but it is 100% reproducible (for me at least) on Ubuntu 10.04.

Without knowing anything about g-p-m, it is as if the cable-remove event causes the laptop to crash.

Computer version: HP Compaq Presario CQ61-402E0
Ubuntu version: 10.04.1 LTS
Kernel version: 2.6.32.24-generic
g-p-m version: 2.30.0ubuntu1

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gnome-power-manager 2.30.0-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic x86_64
Architecture: amd64
Date: Tue Aug 10 12:19:19 2010
ExecutablePath: /usr/bin/gnome-power-manager
GnomeSessionIdleInhibited: No
GnomeSessionInhibitors: None
GnomeSessionSuspendInhibited: No
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
MachineType: Hewlett-Packard Presario CQ61 Notebook PC
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-24-generic root=UUID=5f9c7c3c-606d-474e-93bd-78f1622884ac ro crashkernel=384M-2G:64M,2G-:128M quiet splash
ProcEnviron:
 LANGUAGE=en_GB:en
 LANG=sv_SE.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-power-manager
XsessionErrors: (polkit-gnome-authentication-agent-1:1213): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
dmi.bios.date: 01/25/2010
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: F.13
dmi.board.name: 363F
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 42.15
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnHewlett-Packard:bvrF.13:bd01/25/2010:svnHewlett-Packard:pnPresarioCQ61NotebookPC:pvr0491110000200D10000020000:rvnHewlett-Packard:rn363F:rvr42.15:cvnHewlett-Packard:ct10:cvrN/A:
dmi.product.name: Presario CQ61 Notebook PC
dmi.product.version: 0491110000200D10000020000
dmi.sys.vendor: Hewlett-Packard

Revision history for this message
Simon Almström (simonalmstrom) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

A likely candidate for this could be the powersave scripts. Can you please uninstall the pm-utils-powersave-policy package, and check if it still happens?

If so, please reinstall it again, and try this instead:

  sudo mv /usr/lib/pm-utils/power.d/95hdparm-apm /usr/lib/pm-utils/power.d/95hdparm-apm.orig

If it still happens, please move it back with

  sudo mv /usr/lib/pm-utils/power.d/95hdparm-apm.orig /usr/lib/pm-utils/power.d/95hdparm-apm

Right after you encounter such a freeze, can you please reboot and attach /var/log/kern.log?

Changed in gnome-power-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Martin Pitt (pitti) wrote :

BTW, in your private mail you mentioned that you also have problems with the Fn keys. These are unrelated, so can you please file a separate bug about this with "ubuntu-bug udev" and there describe which keys cause the hang? Please let me know about the bug number here, so that I can find it/respond quickly.

Revision history for this message
Simon Almström (simonalmstrom) wrote :

This is what I have done. Some steps might seem strange but is explained by me not having an internet connection on the laptop when these tests are conducted (I will get the internet access back again)

First test:
1. A clean installation from the CD (I had massive problem with my fn-button freeze and after one hard reboot, I could not log in without a freeze, no matter what I did. I had to re-install Ubuntu 9.10 and then install Ubuntu 10.04 again before it worked (just re-installing Ubuntu 10.04 did not worked - even if I formatted the disk))
2. Boot
3. Unplugg the power cable
4. The laptop freezes
5. Hard reboot
6. Save log file as kern_mint.log

Second test:
1. Remove the pm-ubilt-powersave-policy package (sudo apt-get remove pm-utils-powersave-policy)
2. Unplugg the power cable
3. The laptop freezes
4. Hard reboot
5. Save log file as kern_nopmutils.log

6. Re-install Ubuntu 10.04 from the CD (This is to get the pm-utils-powersave-policies package back). I formatted the / partition but not the /home partition (I have three partitions on my disk /, /home and swap)

Third test:
1. Boot
2. Rename file (sudo mv /usr/lib/pm-utils/power.d/95hdparm-apm /usr/lib/pm-utils/power.d/95hdparm-apm.orig)
3. Unplugg the power cable
4. The laptop freezes
5. Hard reboot
6. Save log file kern_renamefile.log

7. Rename back the file (sudo mv /usr/lib/pm-utils/power.d/95hdparm-apm.orig /usr/lib/pm-utils/power.d/95hdparm-apm)

As you can see, nothing of the suggested things solved the problem. I hope that the logs contain the information you need. Is there any other logs that I can take to help you?

Another side note? Why is there no submit field on the Add Comment box? It took me several attempts to get the comment added...

Revision history for this message
Simon Almström (simonalmstrom) wrote :
Revision history for this message
Simon Almström (simonalmstrom) wrote :
Revision history for this message
Simon Almström (simonalmstrom) wrote :
Revision history for this message
Simon Almström (simonalmstrom) wrote :

Martin,

I have now reported the bug for the freeze when using fn-buttons. Please see:
619397 Laptop freeze when changing brightness

When investigating this I ran across a separate bug that also causes a freeze but I believe it might be slightly different than this. I will let you know about the number for that one as well.

Revision history for this message
Simon Almström (simonalmstrom) wrote :

I have written a third bug report 619450 Re-installation needed after laptop hibernation. All of them causes my laptop to freeze and they are all three in some way related to the backlight. Could there be a common cause to these faults?

Changed in gnome-power-manager (Ubuntu):
status: Incomplete → New
Revision history for this message
Martin Pitt (pitti) wrote :

Hm, I'm afraid none of the three kernel logs contain any kind of oos or other error message. Seems it freezes so hard and fast that it doesn't have a chance of writing the logs any more.

The three things I mentioned (hdparm, pm-utils, and acpi-support) are the obvious candidates for stuff that happens if you remove the power cable. Here are some more things you can try. For those you'll need to do things in the boot menu, please see

  https://help.ubuntu.com/community/BootOptions#Change%20Boot%20Options%20Permanently%20On%20An%20Existing%20Installation

for how to get into the boot menu and how to specify options.

 (1) Please select the rescue mode, wait until you see the menu. Does pulling the power cable cause the freeze here? Do you see any screen output? If so, please make a photo with a digital camera and attach it.

 (2) Please append a kernel boot option "nomodeset", and boot. Does the problem occur now?

Revision history for this message
Martin Pitt (pitti) wrote :

Oh, and finally, if you are in the desktop, can you please open a Terminal, enter "killall gnome-power-manager", and check if the problem still happens? (freeze with the brightness keys or the power cable)

Revision history for this message
Simon Almström (simonalmstrom) wrote :

This is the results for these tests:

Recovery mode
Blinking cursor half way down the screen - No menu or prompt appear.
Pulling the power cable
!! No freeze appear
Keyboard answer to input
On one occation it I got the same fault message under ctrl-alt-f7 as can be seen in #619450

nomodeset + graphical mode
Startup as normal
pull the cable
!! No freeze appear
the screen does dim down after a while and I get information about battery discharge

nomodeset + recovery mode
Startup as normal
In the menu I chose root in prompt
Pull the power cable
!! No freeze

killall gnome-power-manager
Pulling power cable
!! No freeze
The screen does not dim down after a while and no information that the charger has been disconnected.

I have done the same setup with the fn button freeze that I have experienced. See bug #619397 for results of that.

Revision history for this message
Martin Pitt (pitti) wrote :

Ah, sso I think this bug and bug 619397 are actually duplicates. When you remove the power cable, then gnome-power-manager tries to adjust the screen brightness.

So this looks like a bug in the ATI kernel DRM driver. Do you get the freeze if you do this?

  echo 3 | sudo tee /sys/class/backlight/*/brightness

Please also give me the output of

  ls -l /sys/class/backlight/

for completeness.

Revision history for this message
Simon Almström (simonalmstrom) wrote :

The exact command that I issued:
echo 3 | sudo tee /sys/class/backlight/acpi_video0/brightness

The result of this command was a freeze this time as well (expected??).

The output of ls -l /sys/class/backlight/ is:
prompt> ls -l /sys/class/backlight/
total 0
lrwxrwxrwx 1 root root 0 2010-08-20 18:26 acpi_video0 -> ../../devices/virtual/backlight/acpi_video0
prompt>

Revision history for this message
Simon Almström (simonalmstrom) wrote :

I am not surprised if this would be a duplicate with bug 619397. I wrote them both as there is different use cases but they do indeed have the same symptom.

Revision history for this message
Martin Pitt (pitti) wrote :

Yes, I expected this. So this is definitively a kernel bug, reassigning. As a workaround, you can use the "nomodeset" boot option for now.

Thanks for debugging! The kernel team will most likely have more questions/tests for you, though.

summary: - Computer freeze when removing power cable
+ [HP Presario CQ61] changing brightness freezes computer
summary: - [HP Presario CQ61] changing brightness freezes computer
+ [HP Presario CQ61] changing brightness freezes computer with KMS
affects: gnome-power-manager (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Mercier (mickours) wrote :

This bug reappeared on Ubuntu 10.10

Revision history for this message
Dale Winn (dalewinn) wrote :

Hi, I stumbled across this bug when looking for answers. I have the same laptop, and I just installed Linux Mint Debian Edition. I get all the same freezing as well.

Revision history for this message
Dale Winn (dalewinn) wrote :

I just tried installing the latest gnome-power-manager (2.32.0-2) and my system went into a freeze on boot.. I have a feeling that this is the source of the problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.