Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] thinkpad freezes while trying to resume
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Thu Apr 10, 2014 10:47 pm    Post subject: [SOLVED] thinkpad freezes while trying to resume Reply with quote

hi,

after searching for quite a while I see no other chance than begging for help in my beloved Gentoo forum.
I'm just setting up a Lenovo Thinkpad Edge E145 (AMD E1-2500, ATI Radeon), and part for part get it to run.

my main problem now is suspend/resume.
the box suspends fine, from either KDE or command line (pm-suspend).

but resume fails. by either hitting the fn-button or opening the lid it obviously leaves suspend: the red LED stops blinking and is on again, the fan starts to run for a moment. but no screen, no reaction to any input, no reaction on the ethernet if via ping or ssh. the systems seems not to restart at all - I have to reboot it by pressing the power button for more than 5 sec.

there is no entry in /var/log/messages between the successful suspend and the hard reboot, nothing in the pm-suspend or pm-powersave-log either. also the suspend/resume event tracing option in the kernel config's power management section brings no result in dmesg.

since I find no error message wherever, I'm clueless what the problem is here. can anybody point me in a direction where else to look, please?

the only thing where my setup could be a bit off normal is that my system is encrypted (w/ readable /boot and the rest booted via initram and cryptsetup).

please tell me if certain info is needed (kernel config etc.). kernel is 3.12.13-gentoo

thanks a lot!


Last edited by freifunk_connewitz on Sun Jun 08, 2014 2:40 pm; edited 3 times in total
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Sat Apr 12, 2014 9:08 am    Post subject: Reply with quote

Debugging suspend / resume is tricky. https://www.kernel.org/doc/Documentation/power/basic-pm-debugging.txt describes how to initiate the different suspend / resume stages without actually suspending, this might help you with pinning down the problem. According to https://wiki.ubuntu.com/DebuggingKernelSuspend, PM tracing works by tracking suspend / resume progress in the RTC --- this will mess up your clock, but help you further with debugging the issue :) Lastly, I think that it is possible to activate logging of suspend / resume over the serial console / netconsole, but of course, your mileage will depend on how much hardware gets initialized before the system fails.

If nothing else works, you can try to strip down the kernel until you get working suspend, and then reactive hardware drivers one by one, until you find the culprit. From my experience, it's video most of the time, so you might want to try disabling that first.
Back to top
View user's profile Send private message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Sat Apr 12, 2014 11:40 am    Post subject: Reply with quote

thanksalot, DirtyHairy,

finally the PM_TRACE gave me something - another chapter in the long story of radeon failing suspend as it seems (and as you correctly assumed): it is the graphics card (AMD Kabini Radeon HD 8240) that is the culprit. and it obviously messes up the resume at a pretty early point. the last traced event was drivers/base/power/main.c:581

whatever: does anybody has a machine like that and suspend/resume working and if yes, which driver or driver options? thank you!
Back to top
View user's profile Send private message
printf
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2010
Posts: 123

PostPosted: Sat Apr 12, 2014 1:20 pm    Post subject: Reply with quote

don't know if that model has a card reader or no, but be careful when suspending with an sd card in the reader slot.
see: http://www.thinkwiki.org/wiki/SD_Card_slot
Back to top
View user's profile Send private message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Mon May 12, 2014 10:18 am    Post subject: Reply with quote

thanks for the suggestion, but there was no SD in the slot.

DirtyHairy, thanks again for your checklist. I think I'm gonna try netconsole (no serial port here).

however, I had to change to title a bit because I'm not that sure anymore that the graphic driver is the culprit. graphics may have been the last entry in the the debug log that was saved into the rtc, but since then I managed to boot without the radeon driver, tried to suspend/resume and got exactly the same result as described above.

additionally, I booted the thinkpad from USB with an ubuntu live system, and there it resumed in an instant. and that ubuntu version also uses the radeon driver module. the only thing that went wrong there that there was an i/o read error from the usb stick. but that can have its source in being a live system.

does really nobody have a thinkpad edge 145 with that AMD Kabini CPU/GPU and running Gentoo on it who could tell me their kernel config?

does it make sense to copy the kernel config from the ubuntu live system and compare it with mine? is there any other info that I could extract from the ubuntu system that could help me find the bug in my Gentoo configuration?

thanks for your hints!
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Mon May 12, 2014 12:21 pm    Post subject: Reply with quote

freifunk_connewitz wrote:
additionally, I booted the thinkpad from USB with an ubuntu live system, and there it resumed in an instant. and that ubuntu version also uses the radeon driver module. the only thing that went wrong there that there was an i/o read error from the usb stick. but that can have its source in being a live system.

freifunk_connewitz ... this may be due to the livecd using TuxOnIce rather than uswsusp (at least the last ubuntu derived livecd I used had TuxOnIce, but I'm not sure how standard this is). Anyhow, the former has much better hardware support so you might give it a try.

best ... khay
Back to top
View user's profile Send private message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Mon May 12, 2014 10:20 pm    Post subject: Reply with quote

khayyam wrote:
.. this may be due to the livecd using TuxOnIce rather than uswsusp (at least the last ubuntu derived livecd I used had TuxOnIce, but I'm not sure how standard this is). Anyhow, the former has much better hardware support so you might give it a try.

thanks, khayyam. but do you think this is possible if the system is on an encrypted harddrive?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Mon May 12, 2014 10:53 pm    Post subject: Reply with quote

freifunk_connewitz wrote:
khayyam wrote:
.. this may be due to the livecd using TuxOnIce rather than uswsusp (at least the last ubuntu derived livecd I used had TuxOnIce, but I'm not sure how standard this is). Anyhow, the former has much better hardware support so you might give it a try.

[...] do you think this is possible if the system is on an encrypted harddrive?

freifunk_connewitz ... yes, infact I use TuxOnIce and have full disk encryption (sans /boot). In my case the full disk encryption contains swap (which is the SuspendDevice) as an lvm volume (as are rootfs, /home and /var).

best ... khay
Back to top
View user's profile Send private message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Sun Jun 08, 2014 2:39 pm    Post subject: Reply with quote

hi again,
after many many kernel recompilations with or without the full config of the ubuntu live system, and with either wlan or resume not working, now everything works: with the recent gentoo-kernel (3.12.20) and the same config I used before. so, just in case any other thinkpad E 145 user has the same problem: that solved it for me.
thanks for all the help!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum