You are not logged in.

#1 2010-04-22 15:11:49

wizulis
Member
From: Riga, Latvia
Registered: 2010-04-19
Posts: 27

Pm-suspend problem on laptop

So, I have an Emachine E725. It has been a real pain even in windows, but, most of stuff i have gotten working with an option here, option there etc( like adding acpi_osi="Linux" to boot parameters fixed few display brightness problems ) .

     But now it's time to get the suspend working,
when I do: #sudo pm-suspend it goes in a sleep and everything is OK, but when i resume (by pressing space or whatever) it starts, i see desktop, the opened programs, but after ~ 1 sec, an error is thrown about Network manager not being able to find some resources (sometimes the a gray box  has squares where text should be and  only button, to close it). After that, the system basically stops working. After doing a double-tab, only about 100 commands (as root)are listed, some of them aren't even commands ( and there is no shutdown  or reboot or any available).
From /var/log/pm-suspend.log :

Initial commandline parameters: 
Thu Apr 22 17:43:10 EEST 2010: Running hooks for suspend.
/usr/lib/pm-utils/sleep.d/00logging suspend suspend:Linux wizulis 2.6.33-bfs #1 SMP PREEMPT Tue Apr 20 18:56:27 EEST 2010 i686 Pentium(R) Dual-Core CPU T4200 @ 2.00GHz GenuineIntel GNU/Linux
Module                  Size  Used by
ipv6                  238732  20 
ipt_MASQUERADE          1202  1 
iptable_nat             4003  1 
nf_nat                 12515  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4       9245  3 iptable_nat,nf_nat
nf_conntrack           46755  4 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4
nf_defrag_ipv4           827  1 nf_conntrack_ipv4
ip_tables               8483  1 iptable_nat
x_tables               10428  3 ipt_MASQUERADE,iptable_nat,ip_tables
fuse                   50806  4 
uvcvideo               54482  0 
videodev               34227  1 uvcvideo
v4l1_compat            13542  2 uvcvideo,videodev
snd_seq_dummy           1067  0 
snd_seq_oss            24728  0 
snd_seq_midi_event      4484  1 snd_seq_oss
snd_seq                41707  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          4281  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_hda_codec_realtek   185761  1 
snd_pcm_oss            33469  0 
snd_mixer_oss          14523  1 snd_pcm_oss
snd_hda_intel          19497  1 
snd_hda_codec          60521  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               5006  1 snd_hda_codec
snd_pcm                57233  3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer              15758  2 snd_seq,snd_pcm
snd                    43328  13 snd_seq_oss,snd_seq,snd_seq_device,snd_hda_codec_realtek,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore               5071  1 snd
joydev                  7800  0 
uhci_hcd               18932  0 
snd_page_alloc          5841  2 snd_hda_intel,snd_pcm
ehci_hcd               31266  0 
ac                      2319  0 
battery                 7488  0 
wmi                     5065  0 
psmouse                50367  0 
usbcore               120133  4 uvcvideo,uhci_hcd,ehci_hcd
pcspkr                  1379  0 
coretemp                3885  0 
serio_raw               3716  0 
i2c_i801                7090  0 
iTCO_wdt                7481  0 
iTCO_vendor_support     1485  1 iTCO_wdt
cpufreq_powersave        646  0 
evdev                   6845  16 
thermal                 9579  0 
cpufreq_ondemand        6749  0 
acpi_cpufreq            5667  0 
sr_mod                 12969  0 
cdrom                  30915  1 sr_mod
sg                     20921  0 
atl1c                  26198  0 
tpm_tis                 6213  0 
tpm                     9909  1 tpm_tis
freq_table              1987  2 cpufreq_ondemand,acpi_cpufreq
tpm_bios                4521  1 tpm
processor              25831  3 acpi_cpufreq
rtc_cmos                7614  0 
rtc_core               11883  1 rtc_cmos
rtc_lib                 1450  1 rtc_core
ext4                  302861  1 
mbcache                 4278  1 ext4
jbd2                   63609  1 ext4
crc16                   1041  1 ext4
sd_mod                 25060  4 
ahci                   29896  3 
libata                137056  1 ahci
scsi_mod               80405  4 sr_mod,sg,sd_mod,libata
lib80211                3210  0 
i915                  261002  2 
drm_kms_helper         23433  1 i915
drm                   131653  3 i915,drm_kms_helper
i2c_algo_bit            4251  1 i915
button                  3702  1 i915
i2c_core               14770  6 videodev,i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
video                  15398  1 i915
output                  1404  1 video
intel_agp              23353  1 
agpgart                23480  2 drm,intel_agp
             total       used       free     shared    buffers     cached
Mem:       1993536    1649576     343960          0     514072     899664
-/+ buffers/cache:     235840    1757696
Swap:      1503172          0    1503172
success.
/usr/lib/pm-utils/sleep.d/00powersave suspend suspend:success.
/usr/lib/pm-utils/sleep.d/01grub suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/11netcfg suspend suspend:success.
/usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend:success.
/usr/lib/pm-utils/sleep.d/75modules suspend suspend:FATAL: Module i915 is in use.
/usr/lib/pm-utils/functions: line 87: log: command not found
success.
/usr/lib/pm-utils/sleep.d/90clock suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend:success.
/usr/lib/pm-utils/sleep.d/95led suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:success.
/usr/lib/pm-utils/sleep.d/99laptop-mode suspend suspend:success.
/usr/lib/pm-utils/sleep.d/99video suspend suspend:kernel.acpi_video_flags = 0
success.
Thu Apr 22 17:43:10 EEST 2010: performing suspend

Tried to just disable the 75 hook, but did not change anything.  Same thing is with pm-hibernate.

Does anyone has any ideas what could be the problem or where to find any other stuff to debug problem.

p.s. the /var/log/everything.log  has nothing about performing suspend, the log stops and starts again with the boot process, so after pm-suspend is executed, nothing is written to it until the hard reboot, but i found a strange errors in boot process from "load-modules.sh" like:

Apr 22 17:44:25 wizulis load-modules.sh: 'acpi:PNP0C02:' is not a valid module or alias name
Apr 22 17:44:25 wizulis load-modules.sh: 'platform:iTCO_wdt' is not a valid module or alias name
Apr 22 17:44:25 wizulis load-modules.sh: 'acpi:PNP0200:' is not a valid module or alias name
Apr 22 17:44:25 wizulis load-modules.sh: 'wmi:6AF4F258-B401-42FD-BE91-3D4AC2D7C0D3' is not a valid module or alias name



p.p.s Sorry for any grammar mistakes, its been a long time since i have wrote anything in English smile

*edited some mistakes smile

Last edited by wizulis (2010-04-22 15:12:58)

Offline

#2 2010-04-22 15:41:37

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: Pm-suspend problem on laptop

Hello wizulis,

use the debugging routine as described here.

You can also use "PM_DEBUG=true pm-suspend" to get more, hopefully useful, information out of pm-suspend. Otherwise use s2r as described in the first link.

Regards,
demian

Last edited by demian (2010-04-22 15:49:54)


no place like /home
github

Offline

#3 2010-04-26 12:46:02

wizulis
Member
From: Riga, Latvia
Registered: 2010-04-19
Posts: 27

Re: Pm-suspend problem on laptop

Thanks for answer demian,
tried all tests described, none off them returned an error, but when i tried to hibernate using
# echo platform (or reboot or shutdown) > /sys/power/disk
# echo disk > /sys/power/state
The wakeup process still failed..

Did a boot with init=/bin/bash and did and
#/usr/sbin/s2ram

it suspended, but on wakeup a 3 error infinite cycle started .. it said ( not sure of the order, or which of them was first)
ata1: SError : {DevExch}
ata2: exception Emask 0x10 SAct 0x0 SErr 0x4000000
ata2: irq_stat _0x00000040, connection status changed

Edit:

tried to boot with irqpoll and acpi=noirq options .. in /bin/bash nothing changed, but after booting with those options in normal system, issuing s2ram -f right after boot, recived  an "Segmentation fault" error.

Last edited by wizulis (2010-04-26 13:10:16)

Offline

#4 2010-04-26 13:59:51

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: Pm-suspend problem on laptop

Okay, so that didn't really help. IRQ error could be any device.
Judging from your initial description though the culprit might be ethernet, wifi or wlan.
Here's what i would do next:

1) Blacklist the corresponding kernel modules. Find out by typing lspci -k. Besides the modules for connection devices like ethernet, wifi or wlan it might be also worth a try to disable any other non-critical hardware module like finger print reader, sd card reader and so on. Also disable ipv6. Don't disable modules you can't identify though.
2) If blacklisting (or banging) in rc.conf doesn't work you could search the BIOS for an option to disable I/O-port access to hardware. If there is no such option you could still try to disable modules at boot time via modprobe.conf
3) Try different DEs/WMs. I don't know why but I've heard from several places that suspend works in one DE but not the other.
4) This might not be related at all, but try suspending without KMS or X. I think it'll suffice if you just append i915.modeset=0 3 to your kernel line in menu.lst.

Good luck.

Regards,
demian

Last edited by demian (2010-04-26 14:02:04)


no place like /home
github

Offline

#5 2010-04-27 13:20:00

wizulis
Member
From: Riga, Latvia
Registered: 2010-04-19
Posts: 27

Re: Pm-suspend problem on laptop

experimenting with your suggested problem solvers, on wake i noticed an error, why my root is being mounted as read only it said:

ext4_journal_start_sb: Detected aborted journal

And then i mounts the system as read only and throws out errors about ext 4 file system at random time intervals.  After a bit of googling, most of threads about this problem suggested a hard drive going bad, but as this happens only on suspend/wake, could there be a conflict between hardware, ext4 and suspend ?  Is it possible?

As for now, i have tried blacklisting wl (broadcom wireless cards) and atl1c ( atheros wired card)  drivers, and ipv6 , suspend without X and suspend in xfce,gnome and awesome. I have laptop with pretty empty BIOS so i cant disable anything in it, but i checked the manufacturers web site, there are ~ 10 updates from my version (i have 1.03, newest is 3.07), but as there is no release informations available, so i dont know if bios update is worth the risk, as i can update it through windows only i think.( i bought  my laptop in Latvia, and so US costumer service just refused to give out any information regarding bios updates (ehh) )

Offline

#6 2011-05-01 15:22:48

davric
Member
Registered: 2011-01-01
Posts: 19

Re: Pm-suspend problem on laptop

I have the same laptop, how did you get the laptop to boot into arch without getting a black screen or using nomodeset in the /grub/menu.lst?
what graphics drivers do you use?

Offline

Board footer

Powered by FluxBB