ubuntu-minimal/Server does not depend on acpi-support

Bug #36838 reported by Ignacio Lago Fontán
12
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
Fix Released
Medium
Paul Sladen
ubuntu-meta (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Version: Dapper Flight 5 (up-to-date)
Hardware: Laptop Compaq Evo N600c

Suspend button works when I'm in the new Ubuntu graphical installation menu. I press the suspend button and after some seconds the system is suspended with the battery led blinking.

If I press the button again the power is ON again and I'm in the installation menu again.

Well, I've installed Ubuntu with "Installation on server" option.

With the system installed and all working the suspend buttons do nothing... I tested this more installing X.org and Xfce4 and choosing "Suspend" option in the "End session" menu. Nothing happens.

"dmesg" doesn't show errors about this. I press the suspend button and nothing new in "dmesg".

Thanks.

Revision history for this message
Matthew Garrett (mjg59) wrote :

xfce needs to be able to deal with non-ACPI suspend keys (ie, those that generate keycode 142)

Revision history for this message
Martin Bergner (martin-bergner) wrote :

I don't understand fully

You suspended in the installation? With the CD in the drive? Didn't it just reboot from the cd then, or are you 100% sure, that is was a real suspend?

Revision history for this message
Ignacio Lago Fontán (nacho-exr) wrote :

Boot from Installation CD. In the screen I have the new menu of the CD. Then I press the "suspend button" and after few seconds the system is supended. The power is off (but the power led blinks) and the cd-rom spin down. Then (after some minutes) I press the "suspend button" again. The power is on again, the cd-rom is running again and I'm in the same state in the installation menu (no reboot in any way, I'm totally sure). Then I think "wow, supends is running in the new Ubuntu".

But after the installation process (and after discover a bug in the framebuffer mode) I tested the "suspend button" from de text mode. Nothing happends.

To test the "suspend" facility better I install the Xfce4 and test if the "suspend" mode from the menu works at all, but not. Nothing happends again.

I think that it's not a Xfce4 problem because suspend runs in "installation menu" but not in the system installed and running, with and without Xfce4.

Something is loaded or activated before the new installation menu that makes the "suspend button" works.

I see all the "dmesg" log but nothing. No errors about this feature.

[4294694.109000] ACPI: Sleep Button (CM) [C1A3]

Thanks. I hope that this explains it better.

Revision history for this message
Matthew Garrett (mjg59) wrote :

Please do

sudo tail -f /var/log/acpid

and press the suspend key. Does anything relating to sleep.sh appear? If not, your suspend key generates a keycode and not an ACPI event. It's up to your desktop to catch that and deal with it appropriately.

Revision history for this message
Ignacio Lago Fontán (nacho-exr) wrote :

Boot from Installation CD. In the screen I have the new menu of the CD. Then I press the "suspend button" and after few seconds the system is supended. The power is off (but the power led blinks) and the cd-rom spin down. Then (after some minutes) I press the "suspend button" again. The power is on again, the cd-rom is running again and I'm in the same state in the installation menu (no reboot in any way, I'm totally sure). Then I think "wow, supends is running in the new Ubuntu".

But after the installation process (and after discover a bug in the framebuffer mode) I tested the "suspend button" from de text mode. Nothing happends.

To test the "suspend" facility better I install the Xfce4 and test if the "suspend" mode from the menu works at all, but not. Nothing happends again.

I think that it's not a Xfce4 problem because suspend runs in "installation menu" but not in the system installed and running, with and without Xfce4.

Something is loaded or activated before the new installation menu that makes the "suspend button" works.

I see all the "dmesg" log but nothing. No errors about this feature.

[4294694.109000] ACPI: Sleep Button (CM) [C1A3]

Thanks. I hope that this explains it better.

Revision history for this message
Ignacio Lago Fontán (nacho-exr) wrote :

~$ sudo tail -f /var/log/acpid
[Mon Mar 27 16:01:24 2006] completed event "button/sleep C1A3 00000080 00000007"[Mon Mar 27 16:01:24 2006] received event "button/sleep C1A3 00000080 00000008"
[Mon Mar 27 16:01:24 2006] notifying client 3995[110:110]
[Mon Mar 27 16:01:24 2006] completed event "button/sleep C1A3 00000080 00000008"[Mon Mar 27 16:01:24 2006] received event "button/sleep C1A3 00000080 00000009"
[Mon Mar 27 16:01:24 2006] notifying client 3995[110:110]
[Mon Mar 27 16:01:24 2006] completed event "button/sleep C1A3 00000080 00000009"[Mon Mar 27 16:01:25 2006] received event "button/sleep C1A3 00000080 0000000a"
[Mon Mar 27 16:01:25 2006] notifying client 3995[110:110]
[Mon Mar 27 16:01:25 2006] completed event "button/sleep C1A3 00000080 0000000a"

Revision history for this message
Matthew Garrett (mjg59) wrote :

Ok, that's more interesting. What does your

/etc/acpi/events/sleepbtn

file look like?

Revision history for this message
Ignacio Lago Fontán (nacho-exr) wrote :

There is only "powerbtn" file.

Revision history for this message
Matthew Garrett (mjg59) wrote :

You're missing the acpi-support package. Colin, any idea how that could end up being the case?

Changed in acpi-support:
status: Unconfirmed → Needs Info
Revision history for this message
Ignacio Lago Fontán (nacho-exr) wrote :

After acpi-support installation (a lot of thanks!) I need to edit /usr/share/acpi-support/Compaq.config to add my laptop:

        "Evo N600c"*)
                ACPI_SLEEP=true
        ;;

Please add this lines to this file by default to help new users. And improve the "laptop detection" to install this packages (radeontool, laptop-mode...) by default. Thanks.

Revision history for this message
Paul Sladen (sladen) wrote :

Since Ignacio did the "Server" install method and that won't pull in 'acpi-support' (whereas, the LiveCD has 'ubuntu-desktop' which pulls it in).

  $ apt-cache rdepends acpi-support
  acpi-support
  Reverse Depends:
    ubuntu-desktop
    xubuntu-desktop
    ubuntu-desktop
    powermanagement-interface
    kubuntu-desktop
    edubuntu-desktop

So one or more:

  (a) Ignacrio, you need to 'sudo apt-get install xubuntu-server'
  (b) 'ubuntu-minimal' should depend on 'acpi-support' on i386 and amd64

Thanks for the white-list entry, this needs adding to 'acpi-support'.

Revision history for this message
Paul Sladen (sladen) wrote :

Whitelist Compaq EVO as having working suspend.

Changed in acpi-support:
status: Unconfirmed → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

This isn't an espresso issue. Indeed, the reporter didn't even use espresso at all.

Changed in espresso:
status: Needs Info → Rejected
Paul Sladen (sladen)
Changed in espresso:
status: Rejected → Needs Info
Revision history for this message
Paul Sladen (sladen) wrote :

Whether this is a but or not depends on whether power-management should work on server-installs or machines without a desktop running.

Paul Sladen (sladen)
Changed in acpi-support:
status: Confirmed → Rejected
Revision history for this message
Paul Sladen (sladen) wrote :

 acpi-support (0.65) dapper; urgency=low
   * Whitelist Compaq Evo N600c has working SLEEP [Malone: #36838]

Changed in acpi-support:
assignee: nobody → sladen
status: Rejected → Confirmed
Revision history for this message
Matt Zimmerman (mdz) wrote :

Power management isn't generally appropriate for a default server install; the odd server admin who wants to suspend their server can install the package explicitly (or just install it as a desktop).

Revision history for this message
Paul Sladen (sladen) wrote :

Simplicity++

Changed in ubuntu-meta:
status: Needs Info → Rejected
Revision history for this message
Paul Sladen (sladen) wrote :

The Whitelist was added earlier.

Changed in acpi-support:
status: Confirmed → Fix Released
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.