PDA

View Full Version : 2 attempts to come out of 'sleep' KDE



swashplate
4th December 2012, 02:29 PM
I don't know if this is a bug or not so I am not sure how to proceed. :confused:

I run Fedora Linux 3.6.7-5.fc18.i686 with the KDE desktop v 4.9.3.

In 'System Settings' - 'Power Management' - 'AC Power', 'Button events handling'; I have it set to 'sleep' when the laptop lid is closed and it does this OK. Same on battery power.

But when I open the laptop and press the power button to come out of sleep, it does so for about 3-4 secs, then goes back into 'sleep'. Push the power button a second time and it comes back up and works OK, until I close the laptop lid again.

Can anything be done about this? Should I report it to 'bugzilla'?

There do not seem to be any other problems, everything else is working brilliantly! :cool:

christian_l
5th December 2012, 02:11 AM
I saw this too, when I was trying out KDE a few days ago (went back to Cinnamon now). I am wondering whether two different requests are sent to put the laptop to sleep. There are problems with setting the lid-close behavior on Gnome now, but that should not affect KDE users (http://forums.fedoraforum.org/showthread.php?t=285220)... What happens if you disable the setting you just mentioned - does it still suspend (once) when you close the lid?

AdamW
5th December 2012, 03:32 AM
I wonder if this is something similar to https://bugzilla.redhat.com/show_bug.cgi?id=859224 but for KDE?

I'll ask the KDE devs to take a look, thanks.

rdieter
5th December 2012, 04:14 AM
We're tracking systemd-inhibit support for kde at
https://bugzilla.redhat.com/show_bug.cgi?id=859227
I'm starting to think the inhibition isn't working properly, hopefully we'll figure it out soon.

swashplate
5th December 2012, 01:47 PM
Odder and odder...

Did a yum update this am, can't remember what it updated.

But now it does nothing when I close the lid. IN 'power settings' the sleep option has vanished...

I wonder if they are working on it?

rdieter
5th December 2012, 04:02 PM
But now it does nothing when I close the lid. IN 'power settings' the sleep option has vanished...

that's most likely unrelated to the topic of this thread, however...

does:
$ upower --dump
report:
can-suspend: yes
?

and grok the output of:

systemd-loginctl list-sessions

and try:

systemd-loginctl session-status <session_id>

does it say:
State: active
?

swashplate
5th December 2012, 05:33 PM
Thanks for the pointers. Managed to do the 1st bit! :)

This is the output of "upower --dump":

[chris@localhost ~]$ upower --dump
Device: /org/freedesktop/UPower/devices/line_power_ACAD
native-path: /sys/devices/LNXSYSTM:00/device:00/ACPI0003:00/power_supply/ACAD
power supply: yes
updated: Wed Dec 5 11:57:42 2012 (14302 seconds ago)
has history: no
has statistics: no
line-power
online: yes

Device: /org/freedesktop/UPower/devices/battery_BAT1
native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1
vendor: SIMPLO
model: UM08A72
serial: 0E89
power supply: yes
updated: Wed Dec 5 11:57:47 2012 (14297 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: fully-charged
energy: 17.5158 Wh
energy-empty: 0 Wh
energy-full: 17.5158 Wh
energy-full-design: 26.64 Wh
energy-rate: 0 W
voltage: 12.435 V
percentage: 100%
capacity: 65.75%
technology: lithium-ion

Daemon:
daemon-version: 0.9.18
can-suspend: yes
can-hibernate yes
on-battery: no
on-low-battery: no
lid-is-closed: yes
lid-is-present: yes
is-docked: no

But:

1. I installed opengrok, but it doesn't want to do:

opengrok.jar -s systemd-loginctl list-sessions /var/tmp/opengrok_data

2. Tried to do:

systemd-loginctl session-status <session_id>

But I can't find the session ID.

Where am I going wrong here?

rdieter
5th December 2012, 06:54 PM
Sorry, by "grok" I meant: to inspect, peruse, or discern.

What does:
systemd-loginctl list-sessions

output say is your session id number?

Given that,

systemd-loginctl session-status <session_id_from_above>

:)

swashplate
5th December 2012, 06:58 PM
No probs!

[chris@localhost ~]$ systemd-loginctl list-sessions
SESSION UID USER SEAT
1 1000 chris seat0
2 1000 chris seat0

2 sessions listed.
[chris@localhost ~]$ systemd-loginctl session-status 1
1 - chris (1000)
Since: Wed, 2012-12-05 11:57:31 GMT; 5h 58min ago
Leader: 895 (kdm)
Seat: seat0; vc1
Display: :0
Service: kdm; type x11; class user
State: active
CGroup: name=systemd:/user/chris/1
├ 895 -:0
├ 973 /bin/sh /usr/bin/startkde
├ 987 dbus-launch --sh-syntax --exit-with-session
├ 988 /bin/dbus-daemon --fork --print-pid 4 --print-address 6 --...
├ 996 /usr/bin/ssh-agent /bin/sh -c exec -l /bin/bash -c "/usr/b...
├ 1046 /usr/libexec/kde4/start_kdeinit +kcminit_startup
├ 1047 kdeinit4: kdeinit4 Running...
├ 1048 klauncher --fd=9
├ 1053 kded4
├ 1055 /usr/libexec/gam_server
├ 1060 /usr/bin/kglobalaccel
├ 1065 /usr/bin/kactivitymanagerd
├ 1108 kwrapper4 ksmserver
├ 1110 ksmserver
├ 1124 kwin -session 1028c1d320b210000135136150000000010780000_13...
├ 1195 /usr/bin/knotify4
├ 1198 /usr/bin/plasma-desktop
├ 1235 ksysguardd
├ 1255 /usr/libexec/mission-control-5
├ 1282 /usr/bin/akonadi_control
├ 1285 akonadiserver
├ 1287 /usr/bin/nepomukserver
├ 1295 /usr/bin/nepomukservicestub nepomukstorage
├ 1296 /usr/bin/akonadi_agent_launcher akonadi_akonotes_resource ...
├ 1297 /usr/bin/akonadi_archivemail_agent --identifier akonadi_ar...
├ 1298 /usr/bin/akonadi_agent_launcher akonadi_contacts_resource ...
├ 1299 /usr/bin/akonadi_agent_launcher akonadi_ical_resource akon...
├ 1300 /usr/bin/akonadi_agent_launcher akonadi_maildir_resource a...
├ 1301 /usr/bin/akonadi_maildispatcher_agent --identifier akonadi...
├ 1302 /usr/bin/akonadi_mailfilter_agent --identifier akonadi_mai...
├ 1303 /usr/bin/akonadi_nepomuk_feeder --identifier akonadi_nepom...
├ 1306 /usr/bin/krunner
├ 1353 /usr/bin/kmix -session 1028c1d320b210000135112187100000012...
├ 1375 /usr/bin/pulseaudio --start --log-target=syslog
├ 1381 /usr/bin/virtuoso-t +foreground +configfile /tmp/virtuoso_...
├ 1384 /usr/bin/okular -session 1028c1d320b2100001353614533000000...
├ 1403 /usr/bin/zeitgeist-datahub
├ 1406 /usr/bin/abrt-applet
├ 1417 /usr/bin/seapplet
├ 1418 /usr/bin/xsettings-kde
├ 1423 /usr/libexec/kde4/polkit-kde-authentication-agent-1
├ 1431 /usr/bin/zeitgeist-daemon
├ 1435 /usr/bin/klipper
├ 1441 /usr/libexec/zeitgeist-fts
├ 1445 /usr/libexec/at-spi-bus-launcher
├ 1451 /bin/dbus-daemon --config-file=/etc/at-spi2/accessibility....
├ 1457 /usr/libexec/at-spi2-registryd --use-gnome-session
├ 1458 /bin/cat
├ 1470 /usr/libexec/gvfsd
├ 1536 /usr/lib/firefox/firefox
├ 1650 /usr/bin/nepomukservicestub nepomukqueryservice
├ 1651 /usr/bin/nepomukservicestub nepomukfileindexer
├ 1653 /usr/bin/nepomukservicestub nepomukbackupsync
├ 1654 /usr/bin/nepomukservicestub nepomukfilewatch
├ 1891 /usr/lib/xulrunner/plugin-container /usr/lib/flash-plugin/...
├ 10482 /usr/bin/konsole
├ 10493 /bin/bash
├ 10595 systemd-loginctl session-status 1
├ 10596 less
└ 11121 /usr/libexec/gvfs-udisks2-volume-monitor

[chris@localhost ~]$ systemd-loginctl session-status 2
2 - chris (1000)
Since: Wed, 2012-12-05 11:57:44 GMT; 5h 59min ago
Leader: 1058 (login)
Seat: seat0; vc2
TTY: tty2
Service: login; type tty; class user
State: online
CGroup: name=systemd:/user/chris/2
├ 1058 login -- chris
├ 1127 -bash
├ 1215 /bin/bash ./acerfand
└ 10750 sleep 5
[chris@localhost ~]$

swashplate
6th December 2012, 11:31 AM
Did the following updates today:

Removed:
kernel.i686 0:3.6.6-9.fc18 kernel-modules-extra.i686 0:3.6.6-9.fc18

Installed:
kernel.i686 0:3.6.9-4.fc18 kernel-modules-extra.i686 0:3.6.9-4.fc18

Updated:
NetworkManager.i686 1:0.9.7.0-9.git20121004.fc18
NetworkManager-glib.i686 1:0.9.7.0-9.git20121004.fc18
anaconda.i686 0:18.35-1.fc18
anaconda-widgets.i686 0:18.35-1.fc18
bind-libs.i686 32:9.9.2-5.P1.fc18
bind-libs-lite.i686 32:9.9.2-5.P1.fc18
bind-license.noarch 32:9.9.2-5.P1.fc18
bind-utils.i686 32:9.9.2-5.P1.fc18
dnsmasq.i686 0:2.64-1.fc18
fedora-release-notes.noarch 0:17.95.0-0.fc18
ffmpeg-libs.i686 0:1.0.1-1.fc18
glade-libs.i686 0:3.14.2-2.fc18
kernel-headers.i686 0:3.6.9-4.fc18
libgudev1.i686 0:195-10.fc18
perl-Locale-Codes.noarch 0:3.24-1.fc18
python-meh.noarch 0:0.19-1.fc18
systemd.i686 0:195-10.fc18
systemd-libs.i686 0:195-10.fc18
systemd-sysv.i686 0:195-10.fc18

..and the 'sleep' option has come back.

But it still takes 2 attempts to come out of sleep!