LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-19-2020, 10:12 PM   #1
illidan.modeler
LQ Newbie
 
Registered: Sep 2013
Posts: 10

Rep: Reputation: Disabled
Power management problem on a laptop for new-installed Slackware 14.2


Problems:
1. Occasionally, "shutdown -h now" seemed to shut down the system, but the power was not cut off automatically, and I would have to hold the hardware power button for seconds to truely cut off the power.
2. The XFCE power manager was not able to show battery information at all. The XFCE power manager always showed a static power plug icon and would not change to show a battery icon with battery life when the AC power cable was plug off.

Hardware: AMD Turion X2 laptop made in 2010.

System: Slackware 14.2 32bit, only with packages from the official ISO, without any package from on-line official mirror or third-party repositories.

Code:
root@slack14:~# modinfo battery
filename:       /lib/modules/4.4.14-smp/kernel/drivers/acpi/battery.ko
license:        GPL
description:    ACPI Battery Driver
author:         Alexey Starikovskiy <astarikovskiy@suse.de>
author:         Paul Diefenbaugh
alias:          acpi*:PNP0C0A:*
depends:        
intree:         Y
vermagic:       4.4.14-smp SMP mod_unload PENTIUMIII 
parm:           cache_time:cache time in milliseconds (uint)
file under /proc showed showed the correct info (at least it correctly reflected whether the AC power was unplugged, or the remaining battery capacity when running on battery):
Code:
$ cat /proc/acpi/battery/BAT1/state
present:                 yes
capacity state:          ok
charging state:          charging
present rate:            337 mA
remaining capacity:      316 mAh
present voltage:         11000 mV
upower command gave errors:
Code:
root@slack14:~# upower -e

(upower:2326): libupower-glib-WARNING **: Couldn't enumerate devices: Launch helper exited with unknown return code 127

(upower:2326): UPower-WARNING **: failed to enumerate: Launch helper exited with unknown return code 127

Any suggestion to solve the problems ?
 
Old 02-19-2020, 10:52 PM   #2
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
Quote:
2. The XFCE power manager was not able to show battery information at all. The XFCE power manager always showed a static power plug icon and would not change to show a battery icon with battery life when the AC power cable was plug off.
I'm using 14.2. To my understanding there are two ways to enable the Xfce4 power manager.

* Settings Manager->Session and Startup->Application Autostart->Power Manager

* "Right-click" the Panel->Panel->Add New Items->Power Manager Plugin

The first method uses a system tray static icon. The second method uses bigger dynamic icon.

When the second method is used, trying to access the Power Manager Settings results in a dialog that Power Manager is not running. Telling the dialog to start Power Manager results in the system tray icon appearing.

When popup notifications are enabled, the bigger dynamic icon does not show the popups. When the smaller static icon is used the popups appear.

I don't know why there are two methods and one of the methods is a static icon.

Edit: Please refer to my next post for clarification about the two icons.

Last edited by upnort; 02-20-2020 at 11:32 AM.
 
Old 02-19-2020, 11:06 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
While I'm not sure it would be related, I would highly recommend updating your 14.2 to the latest patches. These problems might've been resolved with newer kernels or other patches, and it's best to know you're on a fully patched 14.2 install before we try and debug this problem.
 
Old 02-20-2020, 01:20 AM   #4
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Hey, I'm almost certain that (1) depends on the board, since I've seen 'shutdown' act differently on different motherboards.
One machine would poweroff with just "shutdown -h now" another required "shutdown -hP now"

Code:
-h:      halt after shutdown.
-P:      halt action is to turn off power.
Not sure if -P is the default action on Slackware, but it probably should be.
 
Old 02-20-2020, 11:31 AM   #5
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
Some hours after my previous post I realized the difference between the two icons. The static icon is for indicating the power manager daemon is running. The dynamic icon is to show power status.

The power manager daemon must be running. The daemon is enabled in Settings Manager->Session and Startup->Application Autostart->Power Manager.

When the daemon is enabled, open the power manager dialog. In the General tab, disable/uncheck the Show system tray icon.

Then "right-click" the Panel->Panel->Add New Items->Power Manager Plugin.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Power management in Qualcomm SoCs vs CPUFreq based power management CPUFREQobsession General 2 10-24-2019 01:11 PM
laptop powering down on ac power regardless of xfce power management wufo Ubuntu 2 12-20-2016 07:05 PM
Slackware 13.37 & KDE 4.5.5 - Laptop power management glupa4e Slackware 2 01-15-2012 11:09 PM
comprehensive laptop power management toolset for slackware duhwhat123 Slackware 10 12-31-2007 09:28 AM
Power Management(sysfs) /sys/power/state mavrick613 Linux - General 0 05-24-2004 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration