Bug 307642 - KDE 4.9.1+ sometimes freezes when waking from suspend.
Summary: KDE 4.9.1+ sometimes freezes when waking from suspend.
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: 4.9
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-30 22:26 UTC by Alan Aversa
Modified: 2020-09-28 22:39 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Aversa 2012-09-30 22:26:42 UTC
This appears to be a bug specific to KDE 4.9.1; it didn't occur on KDE 4.9.0.
Also, waking from suspend to RAM works perfectly with other window managers, such as XFCE.

Reproducible: Sometimes

Steps to Reproduce:
1. Suspend to RAM.
2. Wake from suspend.
Actual Results:  
Dialog to enter my password to unlock screen DOES NOT appear. Instead, a white underscore ("_") on a black screen appears.

Expected Results:  
Dialog to enter my password to unlock screen should appear.
Comment 1 Alan Aversa 2012-10-03 05:15:30 UTC
This problem seems to always occur when Ethernet is plugged in.
Also, now that I upgraded to 4.9.2, I still encounter this bug.

Are there any logs I should post here?

Thanks
Comment 2 Christoph Feck 2012-10-03 12:08:59 UTC
> Instead, a white underscore ("_") on a black screen appears.

This means the resume process did not switch back to graphical mode. Does using Ctrl+Alt+F7 manually restore the mode?
Comment 3 Alan Aversa 2012-10-03 18:22:35 UTC
(In reply to comment #2)
> > Instead, a white underscore ("_") on a black screen appears.
> 
> This means the resume process did not switch back to graphical mode. Does
> using Ctrl+Alt+F7 manually restore the mode?

No, I can't access any of the TTY terminals, neither. The underscore sometimes blinks initially, but then it stops blinking. Perhaps this is an X issue, not KDE?
Comment 4 Alan Aversa 2012-10-13 02:55:09 UTC
This appears to be the last thing in my system log before re-waking:

org.kde.powerdevil.backlighthelper	QDBusConnection: system D-Bus connection created before QCoreApplication. Application may misbehave.

Also, occasionally, and for no apparent reason, my screen turns black and all I see is my cursor, frozen.
Comment 5 Alan Aversa 2012-10-13 15:54:08 UTC
(In reply to comment #4)
> This appears to be the last thing in my system log before re-waking:
> 
> org.kde.powerdevil.backlighthelper	QDBusConnection: system D-Bus connection
> created before QCoreApplication. Application may misbehave.
> 
> Also, occasionally, and for no apparent reason, my screen turns black and
> all I see is my cursor, frozen.

Could this be a graphics card driver issue?

Thanks
Comment 6 Alan Aversa 2012-10-18 06:27:26 UTC
The problem seems to occur whenever my ethernet tries to access my machine.

At work, plugging it into their ethernet before waking from sleep always triggers this bug.
Comment 7 Alan Aversa 2012-10-18 06:29:01 UTC
Also, this bug occurs for about 50% of my awakes from suspend.
Comment 8 Azat 2012-11-11 14:06:38 UTC
Can you reboot you computer using magic sysrq ?

http://en.wikipedia.org/wiki/Magic_SysRq_key
Comment 9 Alan Aversa 2012-11-11 17:58:05 UTC
(In reply to comment #8)
> Can you reboot you computer using magic sysrq ?
> 
> http://en.wikipedia.org/wiki/Magic_SysRq_key

Which command should I issue? Thanks
Comment 10 Azat 2012-11-11 18:05:29 UTC
First you need to enable magic sysrq:
echo 1 | sudo tee /proc/sys/kernel/sysrq > /dev/null

After it, when you get a white underscore ("_") on a black screen, you
must press and don't release "Alt + SysRq" and after it press next "E
I S U B"

For more info see http://en.wikipedia.org/wiki/Magic_SysRq_key

On Sun, Nov 11, 2012 at 9:58 PM, Alan Aversa <aversa@email.arizona.edu> wrote:
> https://bugs.kde.org/show_bug.cgi?id=307642
>
> --- Comment #9 from Alan Aversa <aversa@email.arizona.edu> ---
> (In reply to comment #8)
>> Can you reboot you computer using magic sysrq ?
>>
>> http://en.wikipedia.org/wiki/Magic_SysRq_key
>
> Which command should I issue? Thanks
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 11 Azat 2012-11-11 20:02:44 UTC
I don't know what KDE does for suspend (I don't have enough time right now to investigate)

But if you are using pm-suspend to suspend, and dbus for lock session right from acpi actions, than it is okay.

If somebody interesting I can paste here my
/etc/acpi/actions/lm_lid.sh
/etc/acpi/powerbtn-acpi-support.sh
Comment 12 Azat 2012-11-11 20:38:39 UTC
I thought about this bug, and I don't believe that KDE does much except for performing pm-suspend. In my opinion, the only thing that can cause troubles is the division at On Ac Power / On Battery / On Low Battery.
Comment 13 Alan Aversa 2012-11-12 07:38:49 UTC
(In reply to comment #8)
> Can you reboot you computer using magic sysrq ?
> 
> http://en.wikipedia.org/wiki/Magic_SysRq_key

No, I cannot.

However, enabling SysRq displayed some output instead of just the blinking underscore, upon awaking from suspend. Then the computer just shut off.

Another time, upon awaking from suspend, just the underscore appeared. The SysRq key combination did nothing, and I had to hold down the power button to force it to shutdown.

Also, plugging in USB devices before awaking oftentimes triggers this bug.

Is there key combination to make SysRq dump errors to a file? I think the commands on the Wiki page you cited just dump to screen.

Thanks for the help
Comment 14 Alan Aversa 2012-11-12 07:41:20 UTC
(In reply to comment #11)
> But if you are using pm-suspend to suspend, and dbus for lock session right
> from acpi actions, than it is okay.

I've suspended multiple ways (from the KDE launch menu, issuing pm-suspend, pm-suspend-hybrid, etc.); this bug doesn't seem to depend on how I suspended.
Comment 15 Azat 2012-11-12 07:44:45 UTC
On Mon, Nov 12, 2012 at 11:38 AM, Alan Aversa <aversa@email.arizona.edu> wrote:
> https://bugs.kde.org/show_bug.cgi?id=307642
>
> However, enabling SysRq displayed some output instead of just the blinking
> underscore, upon awaking from suspend. Then the computer just shut off.

What information id you see instead of just the blinking?
>
> Another time, upon awaking from suspend, just the underscore appeared. The
> SysRq key combination did nothing, and I had to hold down the power button to
> force it to shutdown.
>
> Also, plugging in USB devices before awaking oftentimes triggers this bug.

Could you be more verbose?
>
> Is there key combination to make SysRq dump errors to a file? I think the
> commands on the Wiki page you cited just dump to screen.

What errors you need to dump?
I don't think that there is such combination.

You can just turn on all debug level at boot, passing to kernel
specific options, I do it next way:
In "/etc/default/grub"
Add or replace or join with yours
GRUB_CMDLINE_LINUX_DEFAULT="noapic ignore_loglevel debug
debug_locks_verbose=1 sched_debug initcall_debug mminit_loglevel=4
udev.log_priority=8 loglevel=8 earlyprintk=vga,keep log_buf_len=10M
print_fatal_signals=1 apm.debug=Y scsi_logging_level=1
usbserial.debug=Y option.debug=Y pl2303.debug=Y firewire_ohci.debug=1
hid.debug=1 pci_hotplug.debug=Y pci_hotplug.debug_acpi=Y
shpchp.shpchp_debug=Y show_lapic=all hpet=verbose lmb=debug
pause_on_oops=5 panic=10"
>
> Thanks for the help
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.



--
Azat Khuzhin
Comment 16 Azat 2012-11-12 07:47:49 UTC
About pm-suspend runs from terminal. Could you be more verbose?

For example when I trying to do this, I must disable KDE handling
close/open lid, and powerbtn, otherwise it just not resume after
pm-suspend.


> https://bugs.kde.org/show_bug.cgi?id=307642
>
> (In reply to comment #11)
>> But if you are using pm-suspend to suspend, and dbus for lock session right
>> from acpi actions, than it is okay.
>
> I've suspended multiple ways (from the KDE launch menu, issuing pm-suspend,
> pm-suspend-hybrid, etc.); this bug doesn't seem to depend on how I suspended.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.



--
Azat Khuzhin
Comment 17 Alan Aversa 2012-11-24 20:35:59 UTC
I don't have this bug anymore when not connected to ethernet before and after suspending, so I think this bug possibly isn't KDE but something regarding my ethernet…
Comment 18 Andrew Crouthamel 2018-11-09 01:04:13 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 19 Andrew Crouthamel 2018-11-20 04:03:52 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 20 Nate Graham 2020-09-28 22:39:52 UTC
The bug reporter says it's not happening anymore.