Shutdown configuration of power button won't work

Bug #1319134 reported by truc
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
lubuntu-default-settings (Ubuntu)
Expired
Undecided
Unassigned
lxsession (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

This bug was observed on following combinations hardware / System:

Hardware: Amilo Pa 1538 (AMD Turion 64, X2 Mobile technology TL-50)
1 GB RAM
Graphic card: Nvidia G72M (Geforce Go 7400)
System: Lubuntu 14.04 Desktop i386

Same hardware
System: Lubuntu 14.04 Desktop AMD64

Hardware: Toshiba Satellite L10 190
Intel Pentium M 1,60 GHz
Intel integrated graphic device
System: Lubuntu 14.04 i386 installed with forcepae

Fresh install + install of new upgrades (official repositories)
Package version: 1.2.0-3ubuntu4

If configuration:
Preferences -> Power manager -> General -> When power button is pressed: "shutdown" (default = "ask")
is made, I expect the computer to shutdown without asking when pressing the power button.
Instead, the window asking for the action keeps showing on pressing the power button (even after restart).

Used workaroud: in /etc/acpi/powerbtn.sh, delete all but the last line:
/sbin/shutdown -h now "Power button pressed"

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: xfce4-power-manager 1.2.0-3ubuntu4
ProcVersionSignature: Ubuntu 3.13.0-24.47-generic 3.13.9
Uname: Linux 3.13.0-24-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3
Architecture: i386
CurrentDesktop: LXDE
Date: Tue May 13 19:46:59 2014
InstallationDate: Installed on 2014-05-11 (1 days ago)
InstallationMedia: Lubuntu 14.04 LTS "Trusty Tahr" - Release i386 (20140416.2)
SourcePackage: xfce4-power-manager
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
truc (massicotb) wrote :
Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

Does the window still pop up after killing xfce4-power-manager? I suspect that it is triggered by lxsession instead.

Changed in xfce4-power-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :

About 400 netbooks running with 14.04 at my school. Some models have this problem:

* Toshiba nb200 (attached nb200_lspci.txt)

Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :

* Asus 1015CX-BLK010U (attached 1015cx_lspci.txt)

Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :

* Acer Aspire V5-122P

Withc this model Power Button Menu works but it takes about 1 minute to appear !

Tried with 32 bit and 64 bit.

Attached v5_lspci.txt

Changed in xfce4-power-manager (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :

I can't try:

Used workaroud: in /etc/acpi/powerbtn.sh, delete all but the last line:
/sbin/shutdown -h now "Power button pressed"

This file doesn't exist in my system!

In fact, I don't have the /etc/apci folder!

Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :

* Toshiba nb200 updated today and now it works!!!

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo apt-get clean
reboot

Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :

sudo reboot

Of course...

Changed in xfce4-power-manager (Ubuntu):
status: Confirmed → Incomplete
Changed in lxsession (Ubuntu):
status: New → Confirmed
Revision history for this message
truc (massicotb) wrote :

The bug still affects my system.

System up to date (official repositories).

After reactivating the original /etc/acpi/powerbtn.sh and killing xfce4-power-manager, the system will shutdown without asking upon pressing the power button, whatever I set up in Preferences -> Power manager -> General -> When power button is pressed.

Package: xfce4-power-manager 1.2.0-3ubuntu4.1

Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :

I'm using Lubuntu 14.04 and I don't have powerbtn.sh

In fact, I don't have /etc/apci directory.

???

Did you install any extra-tools for power management?

Did you install other desktops than LXDE?

This other bug seems to be related, https://bugs.launchpad.net/ubuntu/+source/systemd-shim/+bug/1201180

Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :

http://packages.ubuntu.com/trusty/i386/acpid/filelist

powerbtn.sh belongs to acpid package.

Did you install this package. Why? I don't have it.

Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :
Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :

https://wiki.archlinux.org/index.php/acpid

Note: Desktop environments, such as GNOME, systemd login manager and some extra key handling daemons may implement own event handling schemes, independent of acpid. Running more than one system at the same time may lead to unexpected behaviour, such as suspending two times in a row after one sleep button press. You should be aware of this and only activate desirable handlers.

Revision history for this message
ԜаӀtеr Ⅼарсһуnѕkі (wxl) wrote : Re: [Bug 1319134] Re: Shutdown configuration of power button won't work

i can agree with Josep. no /etc/apci

On Sun, Oct 5, 2014 at 2:01 PM, Josep Pujadas-Jubany
<email address hidden> wrote:
> https://wiki.archlinux.org/index.php/acpid
>
> Note: Desktop environments, such as GNOME, systemd login manager and
> some extra key handling daemons may implement own event handling
> schemes, independent of acpid. Running more than one system at the same
> time may lead to unexpected behaviour, such as suspending two times in a
> row after one sleep button press. You should be aware of this and only
> activate desirable handlers.
>
> --
> You received this bug notification because you are a member of Lubuntu
> Packages Team, which is subscribed to lxsession in Ubuntu.
> https://bugs.launchpad.net/bugs/1319134
>
> Title:
> Shutdown configuration of power button won't work
>
> Status in “lxsession” package in Ubuntu:
> Confirmed
> Status in “xfce4-power-manager” package in Ubuntu:
> Incomplete
>
> Bug description:
> This bug was observed on following combinations hardware / System:
>
> Hardware: Amilo Pa 1538 (AMD Turion 64, X2 Mobile technology TL-50)
> 1 GB RAM
> Graphic card: Nvidia G72M (Geforce Go 7400)
> System: Lubuntu 14.04 Desktop i386
>
> Same hardware
> System: Lubuntu 14.04 Desktop AMD64
>
> Hardware: Toshiba Satellite L10 190
> Intel Pentium M 1,60 GHz
> Intel integrated graphic device
> System: Lubuntu 14.04 i386 installed with forcepae
>
> Fresh install + install of new upgrades (official repositories)
> Package version: 1.2.0-3ubuntu4
>
> If configuration:
> Preferences -> Power manager -> General -> When power button is pressed: "shutdown" (default = "ask")
> is made, I expect the computer to shutdown without asking when pressing the power button.
> Instead, the window asking for the action keeps showing on pressing the power button (even after restart).
>
> Used workaroud: in /etc/acpi/powerbtn.sh, delete all but the last line:
> /sbin/shutdown -h now "Power button pressed"
>
> ProblemType: Bug
> DistroRelease: Ubuntu 14.04
> Package: xfce4-power-manager 1.2.0-3ubuntu4
> ProcVersionSignature: Ubuntu 3.13.0-24.47-generic 3.13.9
> Uname: Linux 3.13.0-24-generic i686
> NonfreeKernelModules: nvidia
> ApportVersion: 2.14.1-0ubuntu3
> Architecture: i386
> CurrentDesktop: LXDE
> Date: Tue May 13 19:46:59 2014
> InstallationDate: Installed on 2014-05-11 (1 days ago)
> InstallationMedia: Lubuntu 14.04 LTS "Trusty Tahr" - Release i386 (20140416.2)
> SourcePackage: xfce4-power-manager
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/lxsession/+bug/1319134/+subscriptions

Revision history for this message
truc (massicotb) wrote :

"/acpi", not "/apci"

Lubuntu is the single OS on my Computer, no other desktop than LXDE. Fresh install on a formated hard drive. The package acpid was automatically installed during the installation out of the lubuntu-CD.

I can't tell why you don't have the directory.

Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :

I used 14.04.1 for my installs.

http://cdimage.ubuntu.com/lubuntu/releases/14.04.1/release/

Perhaps this it makes the difference. My installations don't have acpid package.

I can't find anything about it acpid package at release notes:

https://wiki.lubuntu.com/TrustyTahr/ReleaseNotes/ChangeSummary/14.04.1

https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes/Lubuntu

Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

What does "xfce4-power-manager --debug" return when you press the power button?

Revision history for this message
truc (massicotb) wrote :

Debugging is not possible.
"xfce4-power-manager --debug"
returns
"Xfce Power Manager: Another power manager is already running"
and switches to a new command line.
No record upon pressing power button.

Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

Please try "killall xfce4-power-manager; xfce4-power-manager --debug" then.

Revision history for this message
truc (massicotb) wrote :

"killall xfce4-power-manager; xfce4-power-manager --debug"
gives the attached output.
Nothing happens upon pressing the power button.

Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

According to your bug description, the window asking for the action should pop up. Was this not the case?

Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :

Toshiba nb250 (14.04.1 32 bit) doesn't show power off menu.

ps aux | grep xfce4
kill 1569
xfce4-power-manager --debug

TRACE[xfpm-button.c:114] xfpm_button_filter_x_events(): Key press: ((XfpmButtonKey) BUTTON_POWER_OFF)
TRACE[xfpm-manager.c:286] xfpm_manager_button_pressed_cb(): Received button press event: ((XfpmButtonKey) BUTTON_POWER_OFF)
TRACE[xfpm-manager.c:314] xfpm_manager_button_pressed_cb(): Shutdown request : : ((XfpmShutdownRequest) XFPM_ASK)
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1170] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_WHEN_BATTERY_PRESENT)
TRACE[xfpm-power.c:1134] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1170] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_WHEN_BATTERY_PRESENT)
TRACE[xfpm-power.c:1134] xfpm_power_hide_adapter_icon(): Hide adaptor icon
^CTRACE[xfpm-main.c:67] xfpm_quit_signal(): sig 2
TRACE[xfpm-manager.c:767] xfpm_manager_stop(): Stopping
TRACE[xfpm-manager.c:182] xfpm_manager_quit(): Exiting
TRACE[xfpm-power.c:1134] xfpm_power_hide_adapter_icon(): Hide adaptor icon

Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

Lubuntu 14.04 [1] maps the power button as follows:

   <!-- Launch logout when push on the shutdown button -->
    <keybind key="XF86PowerOff">
      <action name="Execute">
        <command>lxsession-default quit</command>
      </action>
    </keybind>

This configuration may interfere with xfce4-power-manager. Also, the power manager is probably not able to call and display the Xfce logout dialog without an active Xfce session.

Related askubuntu question:
http://askubuntu.com/q/568957

[1] http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/lubuntu-default-settings/trusty/view/head:/usr/share/lubuntu/openbox/rc.xml

affects: xfce4-power-manager (Ubuntu) → lubuntu-default-settings (Ubuntu)
Changed in lubuntu-default-settings (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Luis Arturo Pina III (webprenuer) wrote :

I too can't shutdown by the power button, don't have that file or folder, with Lubuntu 15.04.
I ran:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo apt-get clean
reboot
xfce4-power-manager --debug

with no results. The debuger ran tthrough a day & night and just keeps going, so I terminated the process.

Revision history for this message
Jan Kronborg (magic75) wrote :

I can confirm thad-fisch suspicion in #24.
Commenting out that section in lubuntu-rc.xml allows xfce4-power-manager settings to control the power button behaviour on my lubuntu 14.04 system.

Revision history for this message
Karl Nikolai Jamoralin (karljamoralin) wrote :

I've also experienced this problem. #24 solved it for me. Perhaps the fix is to not include that <keybind> in lubuntu-rc.xml by default since it seems to override whatever settings you have in xfce4-power-manager.

Revision history for this message
Chris Guiver (guiverc) wrote :

Thank you for reporting this bug to Ubuntu.

Ubuntu 14.04 (trusty) reached end-of-life on April 25, 2019.
(Lubuntu 14.04 reached EOL before then being a flavor)

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test.

If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in and change the bug status to Confirmed.

Changed in lubuntu-default-settings (Ubuntu):
status: Confirmed → Incomplete
Changed in lxsession (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for lubuntu-default-settings (Ubuntu) because there has been no activity for 60 days.]

Changed in lubuntu-default-settings (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for lxsession (Ubuntu) because there has been no activity for 60 days.]

Changed in lxsession (Ubuntu):
status: Incomplete → Expired
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.