This forum has been archived. All content is frozen. Please use KDE Discuss instead.

neon won't suspend any more...

Tags: None
(comma "," separated)
begonia
Registered Member
Posts
149
Karma
0
OS

neon won't suspend any more...

Tue Apr 24, 2018 3:21 pm
I am using a Dell laptop (Lattittude e5500). With that laptop i need to have the so called i8kutils installed from the repositories and on top of that a little program from these uitileties called "smm". To my regret i have to build smm myself because there is no binary in the repositories.
Anyway, as a result from i8kutils and smm the fan of this computer behaves totally as it should (even better).
Some days ago this laptop couldn't go into suspension any more. And if i disabled the whole i8kutils it again could go into suspension. But in that state the fan at the least has a mind of it's own and it is no pleasure to work with this machine.
So i thought it could perhaps be bios-settings of something with a new kernel or so. To test I installed on other partitions Ubuntu Bionic Beaver and on an other partition Kubuntu 18.04
As it turned out Ubuntu 18.04 behaves beautifully. Kubuntu 18.04 suffers from the same as Neon.
Also I installed Kubuntu into Ubuntu 18.04 (sudo apt install kubuntu-desktop). To my surprise all is well. Fan nice and can suspend.
I don't know what to think. I don't think this bug is plasma-related - in that case kubuntu-in-ubuntu had been wrong too in my opinion. But it could be something with the kubuntu and neon distributions?
I would like to make myself useful by giving people output of commands and so on if they are interested. But the best would be if Neon could go into suspension again.
begonia
Registered Member
Posts
149
Karma
0
OS
I solved it myself.
In the process of making smm work you have to copy a few little scripts on the right location so systemd can use them when it needs them. The original files are in my own space but they are made executable. All i had to do was "sudo cp" them to their location. But it seems that they no longer stay executable when I "sudo cp" them. When I make them executable explicitly afterwards the suspension works.
Strange that I don't need to do that in Ubuntu 18.04.
tzell
Registered Member
Posts
22
Karma
0
OS

Re: neon won't suspend any more...

Fri Apr 27, 2018 7:03 am
Hi Begonia, can you share what and where these little scripts are?
I have the same issue with my Dell Precision 7510 laptop which doesn't want to go to sleep any longer.
Suspend did work in the past even though I can't remember I ever fiddling with scripts to make it work.

Thanks
TZ
begonia
Registered Member
Posts
149
Karma
0
OS

Re: neon won't suspend any more...

Fri Apr 27, 2018 8:21 am
With pleasure.
I will start with the main script, the one that copies the other ones. Using Neon or Kubuntu that must read:
Code: Select all
 #!/bin/bash
 #
 sudo apt install i8kutils
 sudo apt-get -f install
 sudo apt-get install dpkg-dev
 sudo apt-get install libc6-dev-i386
 sudo cp rc.local /etc/
 sudo cp i8kmon.conf /etc/
 sudo mkdir /usr/share/i8kutils/
 sudo cp smm /usr/share/i8kutils/
 sudo chmod 755 /usr/share/i8kutils/smm
 sudo cp resume.sh /usr/local/bin/
 sudo chmod 755 /usr/local/bin/resume.sh
 sudo cp suspend.sh /usr/local/bin/
 sudo chmod 755 /usr/local/bin/suspend.sh
 sudo cp suspendsystemde5500.sh /lib/systemd/system-sleep/
 sudo chmod 755 /lib/systemd/system-sleep/suspendsystemde5500.sh
 sudo /usr/share/i8kutils/smm 30a3

using Ubuntu 18.04 it must be:
Code: Select all
 #!/bin/bash
 #
 sudo apt install i8kutils
 sudo apt-get -f install
 # sudo apt-get install dpkg-dev
 sudo apt-get install libc6-dev-i386
 sudo cp rc.local /etc/
 sudo cp i8kmon.conf /etc/
 sudo mkdir /usr/share/i8kutils/
 sudo cp smm /usr/share/i8kutils/
 #sudo chmod 755 /usr/share/i8kutils/smm
 sudo cp resume.sh /usr/local/bin/
 #sudo chmod 755 /usr/local/bin/resume.sh
 sudo cp suspend.sh /usr/local/bin/
# sudo chmod 755 /usr/local/bin/suspend.sh
 sudo cp suspendsystemde5500.sh /lib/systemd/system-sleep/
# sudo chmod 755 /lib/systemd/system-sleep/suspendsystemde5500.sh
 sudo /usr/share/i8kutils/smm 30a3

You copy the text, paste it in a text-file and run it in a terminal by saying;
Code: Select all
bash NameOfScript

Then you need the four files:
resume.sh, suspend.sh, suspendsystemde5500.sh and smm
The ones ending with .sh are also scripts and you can easily read them to get an impression of what's in them (very little). But the "smm" file is a binary. i compiled it myself. it is smm of the I8kutils 1.41 because the smm I compiled of i8kutils 1.43 only gives error messages and this one still works.
I will give "links" to all of these files in my dropbox. Here they are:

just copy those four files in the same folder as the main script and run the script.
I hope your machine will feel as luxurious as does mine.
If it works or not you can come back on this place!
tzell
Registered Member
Posts
22
Karma
0
OS

Re: neon won't suspend any more...

Fri Apr 27, 2018 9:13 am
Cool! I'll definitely try this out and will report back here!
Thanks for your help...
TZ
begonia
Registered Member
Posts
149
Karma
0
OS

Re: neon won't suspend any more...

Sat Apr 28, 2018 5:07 am
I did some experimenting this morning and I found this thing with the whole cmod thing:

Chmod must be set to 744. If you do that all systems will perform beautifully. There is no difference. So than the main script must be as follows:
Code: Select all
 #!/bin/bash
 #
 sudo apt install i8kutils
 sudo apt-get -f install
 # sudo apt-get install dpkg-dev
 sudo apt-get install libc6-dev-i386
 sudo cp rc.local /etc/
 sudo cp i8kmon.conf /etc/
 sudo mkdir /usr/share/i8kutils/
 sudo cp smm /usr/share/i8kutils/
 sudo chmod 744 /usr/share/i8kutils/smm
 sudo cp resume.sh /usr/local/bin/
 sudo chmod 744 /usr/local/bin/resume.sh
 sudo cp suspend.sh /usr/local/bin/
 sudo chmod 744 /usr/local/bin/suspend.sh
 sudo cp suspendsystemde5500.sh /lib/systemd/system-sleep/
 sudo chmod 744 /lib/systemd/system-sleep/suspendsystemde5500.sh
 sudo /usr/share/i8kutils/smm 30a3

If you do that smm will perform its tasks happily in all systems.
tzell
Registered Member
Posts
22
Karma
0
OS

Re: neon won't suspend any more...

Sat Apr 28, 2018 6:48 am
Thanks begonia, I just started to look into this but it looks like the Dropbox links with the scripts don't wok (any longer)?

Thanks
TZ
begonia
Registered Member
Posts
149
Karma
0
OS

Re: neon won't suspend any more...

Sat Apr 28, 2018 7:39 am
Oh, my bad. This is caused by the fact that I edited the files. And it's a good thing that I look in to it again because now I see that I didn't give you all you need. You need to put all files in one folder and run the script of which I gave the content above.
Here the files come:
tzell
Registered Member
Posts
22
Karma
0
OS

Re: neon won't suspend any more...

Wed May 02, 2018 1:11 pm
Hi Begonia, wanted to give you some feedback.
I had to start all over and install a new OS because I couldn't get my dual monitor setup back to working but this time I decided to install Kubuntu instead of Neon. Main reason was to check if the new 18.04 platform fixes my issues and given that the Neon team has been quiet about their 18.04 plans Kubuntu was a logical alternative.
And so far it looks like both of my issues, multi monitor and suspend are fixed. Thinking about this some more I think Kubuntu fits my needs better than Neon anyway.

But thanks for your help!
TZ
begonia
Registered Member
Posts
149
Karma
0
OS

Re: neon won't suspend any more...

Wed May 02, 2018 1:43 pm
That is a good thing. Just do what suits your needs most. But (in all honesty) I would keep the files I give in this "tread". I use Ubuntu 18.04 and on this machine that needs this tweak just as hard as it used to.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]