LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 06-10-2014, 04:56 AM   #1
s.verma
Member
 
Registered: Oct 2013
Distribution: Debian Sid, Gentoo, Arch, Debian
Posts: 186
Blog Entries: 4

Rep: Reputation: 25
Suspend to ram second time hangs the system.


Problem:
Suspending to RAM first time on my system works fine. Then it resume by pressing power button. But suspending again i.e. second time (no matter how much time is passed from first suspend) hangs the system. In this case Power button led remains ON. The power LED of laptop remains On (however it blinks first time when suspend works OK).

Also The problem doesn't exist on Arch Linux installed on same machine.

Suspend to RAM: Tried with XFCE Desktop Environment. Tried with
Code:
echo mem > /sys/power/state
Tried with X server
Tried with Console login.
Tried with pm-suspend.
=> The same result everytime.

Solution Tried:
1) Tried to change the kernel. Copied kernel from existing Arch Linux installation which is working fine there for suspend.
The problem is not solved.
2) i915.i915_enable_rc6=0 is added to kernel parmeter,
The problem is not solved.
3) Recompiled mesa with VIDEO_CARDS="intel" initially it was VIDEO_CARDS="intel i965".
The problem is not solved.
4) Tried methods of https://01.org/linuxgraphics/documen...esume-issues-0.
In first place /proc/acpi/event file is not found.
a. Check if the resume hang is caused by graphics driver:
Result: dmesg_after doesn't exist.
b. Suspend/resume by skipping BIOS:
Result: Same behaviour. Second time suspend doesn't works.

System Detail:
Processor: Intel B960 Processor (it's a pentium dual core processor).
Graphics:
Code:
lspci -v|grep VGA 
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core  Processor Family Integrated Graphics Controller (rev 09) (prog-if 00  [VGA controller]) 
.......

pm related files comparison between Arch and Gentoo Installation:

/etc/pm/
On Arch there is only one file /etc/pm/sleep.d/90alsa, which is installed by package alsa-utils.
Code:
cat /etc/pm/sleep.d/90alsa 
#!/bin/sh 
# 
# 90alsa: suspend/wakeup ALSA devices 
 
case "$1" in 
hibernate|suspend) 
;; 
thaw|resume) 
aplay -d 1 /dev/zero 
;; 
*) exit $NA 
;; 
esac
On Gentoo only /etc/pm/config.d/gentoo file exists, as well as /etc/pm/power.d/ & /etc/pm/sleep.d/ directories which are empty.
Code:
cat /etc/pm/config.d/gentoo 
HOOK_BLACKLIST="01grub 90clock"

Last edited by s.verma; 06-10-2014 at 11:42 PM. Reason: Updates
 
Old 06-10-2014, 11:37 PM   #2
s.verma
Member
 
Registered: Oct 2013
Distribution: Debian Sid, Gentoo, Arch, Debian
Posts: 186

Original Poster
Blog Entries: 4

Rep: Reputation: 25
Updates

I have copied file from Arch Linux /etc/pm/sleep.d/90alsa to Gentoo, But problem remains the same.

I have tried to find more information, for this I compared output of lsmod, and dmesg before and after suspending first time on both Gentoo and Arch Linux.
(As the problem doesn't exist on Arch Linux), but only on Gentoo.
There is no difference in lsmod output before and after suspend.
But below shown is dmesg part after suspend in Gentoo which was not present in Arch Linux.
Code:
[   94.243080] ------------[ cut here ]------------
[   94.243086] WARNING: CPU: 1 PID: 34 at kernel/workqueue.c:1386 __queue_work+0x256/0x360()
[   94.243118] Modules linked in: ipt_REJECT nf_conntrack_ipv4 ip6t_REJECT nf_defrag_ipv4 nf_conntrack_ipv6 nf_defrag_ipv6 xt_conntrack nf_conntrack ip6table_filter ip6_tables iptable_filter ip_tables x_tables uvcvideo x86_pkg_temp_thermal videobuf2_vmalloc videobuf2_memops intel_powerclamp joydev videobuf2_core videodev media coretemp rtl8192ce rtl_pci rtlwifi rtl8192c_common crct10dif_pclmul mac80211 crct10dif_common cfg80211 crc32_pclmul crc32c_intel ghash_clmulni_intel tg3 cryptd acer_wmi sparse_keymap rfkill iTCO_wdt ptp pps_core iTCO_vendor_support libphy sdhci_pci snd_hda_codec_hdmi lpc_ich microcode sdhci snd_hda_codec_realtek psmouse mmc_core pcspkr serio_raw i2c_i801 snd_hda_intel snd_hda_codec mei_me mei snd_hwdep snd_pcm snd_page_alloc snd_timer snd soundcore ehci_pci ehci_hcd usbcore usb_common
[   94.243119]  shpchp wmi
[   94.243121] CPU: 1 PID: 34 Comm: kworker/u4:1 Not tainted 3.12.20-gentoo-ARCHSVER #1
[   94.243122] Hardware name: Gateway NE56R/EG50_HC_HR, BIOS V2.14 02/19/2013
[   94.243126] Workqueue: events_unbound async_run_entry_fn
[   94.243128]  0000000000000009 ffff880072a89bb8 ffffffff815e2b4e ffffffff81814fe8
[   94.243130]  0000000000000000 ffff880072a89bf8 ffffffff8104ac5c ffff880072a89c08
[   94.243131]  ffff880100316700 ffff880100282800 ffff88006a63b300 0000000000000002
[   94.243132] Call Trace:
[   94.243136]  [<ffffffff815e2b4e>] dump_stack+0x55/0x86
[   94.243139]  [<ffffffff8104ac5c>] warn_slowpath_common+0x8c/0xc0
[   94.243141]  [<ffffffff8104acaa>] warn_slowpath_null+0x1a/0x20
[   94.243143]  [<ffffffff81064ec6>] __queue_work+0x256/0x360
[   94.243146]  [<ffffffff812e8940>] ? pci_pm_thaw+0xa0/0xa0
[   94.243148]  [<ffffffff81065065>] queue_work_on+0x35/0x40
[   94.243153]  [<ffffffffa0265a90>] rfkill_resume_polling+0x30/0x40 [rfkill]
[   94.243158]  [<ffffffffa02e5116>] wiphy_rfkill_start_polling+0x36/0x40 [cfg80211]
[   94.243161]  [<ffffffffa0431890>] rtl_init_rfkill+0x60/0xc0 [rtlwifi]
[   94.243163]  [<ffffffffa0444213>] rtl_pci_resume+0x33/0x40 [rtl_pci]
[   94.243165]  [<ffffffff812e89b3>] pci_pm_resume+0x73/0xd0
[   94.243168]  [<ffffffff81446d04>] dpm_run_callback+0x54/0xa0
[   94.243170]  [<ffffffff8144747e>] device_resume+0xde/0x200
[   94.243172]  [<ffffffff814475c1>] async_resume+0x21/0x50
[   94.243174]  [<ffffffff810740ab>] async_run_entry_fn+0x3b/0x140
[   94.243177]  [<ffffffff81065efd>] process_one_work+0x16d/0x440
[   94.243179]  [<ffffffff81066621>] worker_thread+0x121/0x380
[   94.243181]  [<ffffffff81066500>] ? rescuer_thread+0x2f0/0x2f0
[   94.243184]  [<ffffffff8106ce20>] kthread+0xc0/0xd0
[   94.243186]  [<ffffffff8106cd60>] ? kthread_freezable_should_stop+0x70/0x70
[   94.243189]  [<ffffffff815f092c>] ret_from_fork+0x7c/0xb0
[   94.243191]  [<ffffffff8106cd60>] ? kthread_freezable_should_stop+0x70/0x70
[   94.243193] ---[ end trace c5065ce34ed48335 ]---
 
Old 06-12-2014, 05:30 AM   #3
s.verma
Member
 
Registered: Oct 2013
Distribution: Debian Sid, Gentoo, Arch, Debian
Posts: 186

Original Poster
Blog Entries: 4

Rep: Reputation: 25
Friends. I have got the answer as from my post on Gentoo forum.
http://forums.gentoo.org/viewtopic-t...ighlight-.html

The problem was that my wifi was creating this problem. This is because I haven't configured the wifi as I do not use it.
Problem is solved by installing linux-firmware package.
 
  


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
Suspend to ram hangs machine Asus p52 laptop 11.4 64bit marasciallo SUSE / openSUSE 0 05-19-2011 04:29 PM
I can't get the system to go into suspend to ram or disk from the helper applets rob.rice Slackware 4 07-19-2009 01:28 AM
System hangs after suspend-to-ram resume when using radeon module niidea Linux - Laptop and Netbook 1 12-13-2008 06:52 AM
System hangs when resuming from Suspend. theboomboomcars Linux - Laptop and Netbook 4 08-15-2008 08:14 AM
Suspend to Ram: works for a short time Peter_halv Linux - Laptop and Netbook 0 12-21-2006 06:43 AM

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

All times are GMT -5. The time now is 06:04 AM.

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