LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-30-2018, 02:16 PM   #1
Pigi_102
Member
 
Registered: Aug 2008
Posts: 186

Rep: Reputation: 22
pm-utils behaves strange after upgrading 14.1 -> 14.2


Hi all !
I know, it's quite a bit 14.2 is out, but I decided recently to jump onto it ( a bit conservtive, I suppose )
I had some minor problem with my environment but nothing I could expect for a Slackware upgrade.

The thinks that is really driving me crazy is the behavior for the hibernation.

My machine is a MacBookPro 13" ( 8.1 ) multi boot ( OSX, slack 14.1, slack 14.2 ) and in 14.1 it always went fine.
I call pm-hibernate ( either via power button, or by hand ) and she goes to sleep ( to disk I should say ).
When I need her again I push the power button, get the refind splash screen ( for the multi-boot ) get the elilo prompt ( for the slackware ) and she starts exactly where I left.

After upgrading 14.2 I tried to hibernate and she went to sleep ( to disk ) no problem. When I wake her up she resumed but after finishing the resume she started for another run of hibernate autonomously.
After pushing the power button again she came up and this time no other hibernate tours.

I tried several times and it was every time this way: two cycle complete.

I have then modified the pm-hibernate script, to check for a file ( created during resume ) and if the date of this file was less then few seconds from the last cycle it would exit without hibernating.

This is working. No more two hibernation cycles. But now the problem has moved to the "shutdown" phase.
When I press the power button she hibernate but as soon as the power is off she restart again.

I followed some thread aroung and the most promising was from superuser.com, that recall some ubuntu thread stating that the problem was in the usb stuffs.
He advice to copy a script in /etc/pm/sleep.d called 10unbindusb
https://superuser.com/questions/6332...ely-from-sleep
Now I've finished every idea. If I boot again with the 14.1 everything is fine ( with hibernate ) while if I boot in 14.2 I get two hibernate ( if I remove my mods ) or a restart just after hibernate.

Did someone has some better pointer ?
Could it be a regression on kernel ?

Thanks in advance

Pigi
 
Old 03-30-2018, 03:08 PM   #2
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
I've also been encountering strange suspend/hibernation bugs following a kernel upgrade, although that was from 4.4 to 4.14 on Slackware 14.2 rather than between Slackware versions.

The pm-utils version didn't change between Slackware 14.1 and 14.2 (it's basically abandonware at this point, superseded by a component of systemd in most distros), so chances are pm-utils isn't to blame for your problem - although given that means recent kernels probably don't get much testing alongside pm-utils, it might be something to do with the way pm-utils interacts with 4.4 kernels. Do you see anything relevant in /var/log/pm-*.log?
 
Old 03-30-2018, 05:07 PM   #3
Pigi_102
Member
 
Registered: Aug 2008
Posts: 186

Original Poster
Rep: Reputation: 22
Well, upgrading from 14.1 to 142 also upgrade kernel from 3.10 -> 4.4 so probably is there that could be the culprit.
I must say I was tempted to recompile the 3.10 here to see if something will change.

I haven't check for differences between the two versions in log file and yes I definitely would diff them ( I still have the 14.1 on a partition.
I've noticed though that the touchpad driver, in 4.4 (slack 14.2) gives troubles returning from hibernate.
I needed to unload the driver before hibernation and reinsert after, otherwise it would not work.
Reading here I've seen something about /etc/pm/config.d/default which could be create with "HIBERNATE=shutdown" inside, but I'm not so happy about this.

I'll report back if there is something interessing in the diff for the two logs.
 
  


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
Strange error after upgrading to Samba4 quackyo Linux - Server 5 04-30-2014 10:33 AM
[SOLVED] aptitude behaves strange Mr. Alex Linux - Newbie 2 08-19-2010 10:27 AM
mv in -current behaves strange in script Ramurd Slackware 8 08-07-2009 08:09 AM
problems occured after upgrading kernel and kernel-utils parv Fedora 0 05-02-2005 06:21 PM
pppd behaves strange Castor Linux - Networking 3 09-24-2003 08:12 AM

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

All times are GMT -5. The time now is 04:57 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