Bug#695966: kde-workspace-bin: KDE powerdevil sometimes incorrectly attempts to hibernate when resuming from suspend

2013-11-14 Thread Maximiliano Curia
In article 
20131016163441.7820.82533.reportbug__31956.3614939854$1381941567$gmane$org@gyllingar
 you wrote:
 with my Lenovo X220, when the additional battery is plugged in, the
 internal battery drains first (that's the hardware managing the
 drain-balancing I guess) and then PowerDevil insists to suspend the
 laptop to disk (as I configured it to suspend-to-disk if there's less
 than 4% of battery left). When waking up from suspend, powerdevil will
 insist to suspend to disk again, no matter what the global battery state
 is:

 $ acpitool
  Battery #1 : Unknown, 0.00%
  Battery #2 : Discharging, 54.94%, 02:31:00

 That said, this is certainly an upstream bug and I would be happy to
 bring my problem up to an upstream bugreport.

Yes, please report it upstream. The only bug related I could find about this
is:
https://bugs.kde.org/show_bug.cgi?id=326017

Also, if possible, add the forwarded tag with bts-link once submitted.

Thanks,
-- 
Saludos /\/\ /\  `/


signature.asc
Description: Digital signature


Bug#695966: kde-workspace-bin: KDE powerdevil sometimes incorrectly attempts to hibernate when resuming from suspend

2013-11-14 Thread Didier 'OdyX' Raboud
Control: forwarded -1 http://bugs.kde.org/show_bug.cgi?id=326017

Le jeudi, 14 novembre 2013 10.26:03 Maximiliano Curia a écrit :
 Yes, please report it upstream. The only bug related I could find
 about this is:
 https://bugs.kde.org/show_bug.cgi?id=326017
 
 Also, if possible, add the forwarded tag with bts-link once submitted.

Done, thanks for the search, cheers,

OdyX

signature.asc
Description: This is a digitally signed message part.


Bug#695966: kde-workspace-bin: KDE powerdevil sometimes incorrectly attempts to hibernate when resuming from suspend

2013-10-16 Thread Didier Raboud
Package: kde-workspace-bin
Version: 4:4.10.5-3
Followup-For: Bug #695966
Control: tags -1 +upstream

Hi all,

I'm experiencing a similar behaviour as explained in this bugreport:

with my Lenovo X220, when the additional battery is plugged in, the
internal battery drains first (that's the hardware managing the
drain-balancing I guess) and then PowerDevil insists to suspend the
laptop to disk (as I configured it to suspend-to-disk if there's less
than 4% of battery left). When waking up from suspend, powerdevil will
insist to suspend to disk again, no matter what the global battery state
is:

$ acpitool 
  Battery #1 : Unknown, 0.00%
  Battery #2 : Discharging, 54.94%, 02:31:00

(Applet shows 54%).

This looks somewhat similar to [0]. As 'upower --dump' was requested, I
attached my output to this bugreport.

[0] https://bugzilla.redhat.com/show_bug.cgi?id=736835

That said, this is certainly an upstream bug and I would be happy to
bring my problem up to an upstream bugreport.

Cheers,

OdyX

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (500, 
'proposed-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kde-workspace-bin depends on:
ii  iso-codes 3.47-1
ii  kde-runtime   4:4.10.5-1
ii  kde-style-oxygen  4:4.10.5-3
ii  kde-workspace-data4:4.10.5-3
ii  kde-workspace-kgreet-plugins  4:4.10.5-3
ii  libc6 2.17-93
ii  libcln6   1.3.3-1
ii  libdbusmenu-qt2   0.9.2-1
ii  libfontconfig12.10.2-2
ii  libfreetype6  2.4.9-1.1
ii  libgcc1   1:4.8.1-10
ii  libgl1-mesa-glx [libgl1]  9.1.6-2+b1
ii  libice6   2:1.0.8-2
ii  libjpeg8  8d-1
ii  libkactivities6   4:4.10.5-1
ii  libkcmutils4  4:4.10.5-1+b1
ii  libkdeclarative5  4:4.10.5-1+b1
ii  libkdecore5   4:4.10.5-1+b1
ii  libkdesu5 4:4.10.5-1+b1
ii  libkdeui5 4:4.10.5-1+b1
ii  libkfile4 4:4.10.5-1+b1
ii  libkidletime4 4:4.10.5-1+b1
ii  libkio5   4:4.10.5-1+b1
ii  libknewstuff3-4   4:4.10.5-1+b1
ii  libknotifyconfig4 4:4.10.5-1+b1
ii  libkparts44:4.10.5-1+b1
ii  libkpty4  4:4.10.5-1+b1
ii  libkscreensaver5  4:4.10.5-3
ii  libkworkspace4abi24:4.10.5-3
ii  libnepomukcore4   4:4.10.5-1+b1
ii  libpam0g  1.1.3-9
ii  libphonon44:4.6.0.0-3
ii  libplasma34:4.10.5-1+b1
ii  libplasmagenericshell44:4.10.5-3
ii  libpng12-01.2.49-4
ii  libprocesscore4abi1   4:4.10.5-3
ii  libprocessui4a4:4.10.5-3
ii  libqalculate5 0.9.7-9
ii  libqimageblitz4   1:0.0.6-4
ii  libqjson0 0.8.1-3
ii  libqt4-dbus   4:4.8.5+git121-g2a9ea11+dfsg-1
ii  libqt4-declarative4:4.8.5+git121-g2a9ea11+dfsg-1
ii  libqt4-sql4:4.8.5+git121-g2a9ea11+dfsg-1
ii  libqt4-xml4:4.8.5+git121-g2a9ea11+dfsg-1
ii  libqtcore44:4.8.5+git121-g2a9ea11+dfsg-1
ii  libqtgui4 4:4.8.5+git121-g2a9ea11+dfsg-1
ii  libsm62:1.2.1-2
ii  libsolid4 4:4.10.5-1+b1
ii  libsolidcontrol4abi2  4:4.10.5-3
ii  libsolidcontrolifaces4abi24:4.10.5-3
ii  libsoprano4   2.9.2+dfsg.1-4
ii  libstdc++64.8.1-10
ii  libstreamanalyzer00.7.8-1+b1
ii  libusb-0.1-4  2:0.1.12-23.2
ii  libx11-6  2:1.6.2-1
ii  libxcursor1   1:1.1.14-1
ii  libxext6  2:1.3.2-1
ii  libxfixes31:5.0.1-1
ii  libxft2   2.3.1-1
ii  libxi62:1.7.2-1
ii  libxinerama1  2:1.1.3-1
ii  libxkbfile1   1:1.0.8-1
ii  libxrandr22:1.4.1-1
ii  libxrender1   1:0.9.8-1
ii  libxtst6  2:1.2.2-1
ii  phonon4:4.6.0.0-3
ii  plasma-desktop4:4.10.5-3
ii  qdbus 4:4.8.5+git121-g2a9ea11+dfsg-1
ii  x11-utils 7.7+1
ii  x11-xserver-utils 7.7+1

Versions of packages kde-workspace-bin recommends:
ii  plasma-scriptengines  4:4.10.5-3
ii  policykit-1-gnome 0.105-2
ii  polkit-kde-1  0.99.1-1
ii  upower0.9.21-3

Versions of packages 

Bug#695966: kde-workspace-bin: KDE powerdevil sometimes incorrectly attempts to hibernate when resuming from suspend

2012-12-14 Thread zep_debbug
Package: kde-workspace-bin
Version: 4:4.8.4-4
Severity: normal

I am using a relatively fresh (one month old) install of Debian Wheezy on a 
Dell Inspiron 17R Special Edition laptop.  KDE powerdevil usually works 
correctly: it dims my screen when I'm idle and notifies me when my battery is 
low.  But when the laptop resumes from suspend, Powerdevil will occasionally 
(as in once every ten resumes or so) believe that my battery is critical; it 
will then warn me that hibernation will occur if I do not connect a power 
adapter within thirty seconds.  If I do not connect an adapter, it lives up to 
its promise and my laptop will hibernate.

The difficulty is that my battery is not critical.  I configured Powerdevil to 
run a script when it believes that the battery is critical; that script 
contains the following lines:

(
echo $(date): KDE thinks the battery is now critical.
acpitool
echo
)  $HOME/kde-battery-log.txt

The log file contains the following entry for today:

Fri Dec 14 08:53:56 EST 2012: KDE thinks that the battery is now critical.
  Battery #1 : Unknown, 98.00%
  AC adapter : online 
  Thermal info   : not available

My vague guess is that my new laptop has some strange ACPI behavior; for 
instance, it might report the battery at 0% for the first few milliseconds 
after a resume or something like that.  I would advocate both of the following 
changes to Powerdevil:

* When the notification is issued that the laptop will be hibernated in 30 
seconds, provide a button or similar mechanism to allow me to cancel or delay 
hibernation manually.
* When Powerdevil executes an automatic time-delayed hibernate, have the 
hibernation process check the battery again.  Cancel the hibernation if 
*either* the AC adapter has been plugged in *or* the battery level is well 
above critical.

At this time, I do not have a workaround for this behavior; I just have to get 
the AC adapter out of my bag really quickly and find a wall outlet (or simply 
let it hibernate and wake it back up again).

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kde-workspace-bin depends on:
ii  iso-codes 3.40-1
ii  kde-runtime   4:4.8.4-2
ii  kde-style-oxygen  4:4.8.4-4
ii  kde-workspace-data4:4.8.4-4
ii  kde-workspace-kgreet-plugins  4:4.8.4-4
ii  libc6 2.13-37
ii  libcln6   1.3.2-1.2
ii  libfontconfig12.9.0-7
ii  libfreetype6  2.4.9-1
ii  libgcc1   1:4.7.2-4
ii  libgl1-mesa-glx [libgl1]  8.0.5-3
ii  libice6   2:1.0.8-2
ii  libjpeg8  8d-1
ii  libkactivities6   4:4.8.4-1
ii  libkcmutils4  4:4.8.4-4
ii  libkdeclarative5  4:4.8.4-4
ii  libkdecore5   4:4.8.4-4
ii  libkdesu5 4:4.8.4-4
ii  libkdeui5 4:4.8.4-4
ii  libkephal4abi14:4.8.4-4
ii  libkfile4 4:4.8.4-4
ii  libkidletime4 4:4.8.4-4
ii  libkio5   4:4.8.4-4
ii  libknewstuff3-4   4:4.8.4-4
ii  libknotifyconfig4 4:4.8.4-4
ii  libkparts44:4.8.4-4
ii  libkpty4  4:4.8.4-4
ii  libkrosscore4 4:4.8.4-4
ii  libkscreensaver5  4:4.8.4-4
ii  libkworkspace4abi14:4.8.4-4
ii  libnepomuk4   4:4.8.4-4
ii  libnepomukquery4a 4:4.8.4-4
ii  libpam0g  1.1.3-7.1
ii  libphonon44:4.6.0.0-2
ii  libplasma34:4.8.4-4
ii  libplasmagenericshell44:4.8.4-4
ii  libpng12-01.2.49-1
ii  libprocesscore4abi1   4:4.8.4-4
ii  libprocessui4a4:4.8.4-4
ii  libqalculate5 0.9.7-8
ii  libqt4-dbus   4:4.8.2+dfsg-2
ii  libqt4-declarative4:4.8.2+dfsg-2
ii  libqt4-sql4:4.8.2+dfsg-2
ii  libqt4-xml4:4.8.2+dfsg-2
ii  libqtcore44:4.8.2+dfsg-2
ii  libqtgui4 4:4.8.2+dfsg-2
ii  libsm62:1.2.1-2
ii  libsolid4 4:4.8.4-4
ii  libsolidcontrol4abi2  4:4.8.4-4
ii  libsolidcontrolifaces4abi24:4.8.4-4
ii  libsoprano4   2.7.6+dfsg.1-1
ii  libstdc++64.7.2-4
ii  libstreamanalyzer00.7.7-3
ii  libusb-0.1-4  2:0.1.12-20+nmu1
ii  libx11-6  2:1.5.0-1
ii  libxau6   1:1.0.7-1
ii  libxcursor1   1:1.1.13-1
ii  libxext6  2:1.3.1-2
ii