[solved]Issues with (re-) log in, after "suspend"

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
mottechy
Level 1
Level 1
Posts: 40
Joined: Sat Aug 15, 2015 6:44 am

[solved]Issues with (re-) log in, after "suspend"

Post by mottechy » Sun Dec 03, 2017 2:56 pm

After installing mint 18.3 (Cinnamon) I have issues with (re-) log in, after "Suspend".
My Pc is not reacting .
The only way is the keyboard combination "ctl+alt+Backspace".
Any Solution?
Last edited by mottechy on Thu Mar 08, 2018 11:47 am, edited 1 time in total.

mottechy
Level 1
Level 1
Posts: 40
Joined: Sat Aug 15, 2015 6:44 am

Re: Issues with (re-) log in, after "suspend"

Post by mottechy » Tue Dec 05, 2017 4:31 am

nobody here?

asquartz
Level 1
Level 1
Posts: 18
Joined: Mon Oct 05, 2015 1:53 pm

Re: Issues with (re-) log in, after "suspend"

Post by asquartz » Wed Dec 06, 2017 5:46 am

I had this problem on 18.2, after searching and asking, no real solution was found.

I produced a workaround in the end, it requires a bit of command line fiddling to set up, and means you have to click an icon to suspend instead of just shutting the lid. Suits me fine now i have got used to it, and it is super-reliable.

Let me know if you want me to take you through it.

mottechy
Level 1
Level 1
Posts: 40
Joined: Sat Aug 15, 2015 6:44 am

Re: Issues with (re-) log in, after "suspend"

Post by mottechy » Wed Dec 06, 2017 5:56 am

At last a sign of life... :D
Thanks "asquartz".
I will try this way and will let you know.. :idea:
Have a good day! :)

asquartz wrote:I had this problem on 18.2, after searching and asking, no real solution was found.

I produced a workaround in the end, it requires a bit of command line fiddling to set up, and means you have to click an icon to suspend instead of just shutting the lid. Suits me fine now i have got used to it, and it is super-reliable.

Let me know if you want me to take you through it.

mottechy
Level 1
Level 1
Posts: 40
Joined: Sat Aug 15, 2015 6:44 am

Re: Issues with (re-) log in, after "suspend"

Post by mottechy » Sun Dec 10, 2017 3:56 am

Hallo "asquartz"
i have been testing your tip.
But still there are issues...
I think i will roll back to 18.2... :?

asquartz
Level 1
Level 1
Posts: 18
Joined: Mon Oct 05, 2015 1:53 pm

Re: Issues with (re-) log in, after "suspend"

Post by asquartz » Sun Dec 10, 2017 6:21 am

Hi mottechy

Here's the detail of my solution. Worth a try?

First, go into Menu - Preferences - Power Management, and set "When lid is Closed" to "Do nothing".

Second, create a script file. Change the filename and location to suit you.

Code: Select all

$ nano ~/mylock
Copy & paste the following code into the file:

Code: Select all

#!/bin/bash
cinnamon-screensaver-command -l
sudo pm-suspend
Save and exit. Then make it executable:

Code: Select all

$ chmod u+x ~/mylock
You can see we have used a sudo command in the script, but you don't want to type your password in every time you suspend the screen. So, type:

Code: Select all

$ sudo visudo
This edits the sudoers file. Take care in here! Find the part labelled # User Privileges and add the following line, replacing "yourname" with your username. This means you will be able to run the pm-suspend command without a password.

Code: Select all

yourname    ALL=(ALL) NOPASSWD: /usr/sbin/pm-suspend
Save & exit.

Now right click the cinnamon menu, choose "Configure" and go into the menu editor. Create a new menu item somewhere (I put mine under Accessories), and in the Command field, type or browse to the path & filename of the script you created earlier. Exit the menu editor, and then open the menu, find your new menu item, right-click it and choose Add to Favourites.

Now you can suspend by just clicking Menu and then the new entry in your favourites.

mottechy
Level 1
Level 1
Posts: 40
Joined: Sat Aug 15, 2015 6:44 am

Re: Issues with (re-) log in, after "suspend"

Post by mottechy » Thu Dec 14, 2017 1:35 pm

Thanks "asquartz".
I am testing it...

I will update in two days...

Thanks any way for your kind help.

regards
:D
asquartz wrote:Hi mottechy

Here's the detail of my solution. Worth a try?

First, go into Menu - Preferences - Power Management, and set "When lid is Closed" to "Do nothing".

Second, create a script file. Change the filename and location to suit you.

Code: Select all

$ nano ~/mylock
Copy & paste the following code into the file:

Code: Select all

#!/bin/bash
cinnamon-screensaver-command -l
sudo pm-suspend
Save and exit. Then make it executable:

Code: Select all

$ chmod u+x ~/mylock
You can see we have used a sudo command in the script, but you don't want to type your password in every time you suspend the screen. So, type:

Code: Select all

$ sudo visudo
This edits the sudoers file. Take care in here! Find the part labelled # User Privileges and add the following line, replacing "yourname" with your username. This means you will be able to run the pm-suspend command without a password.

Code: Select all

yourname    ALL=(ALL) NOPASSWD: /usr/sbin/pm-suspend
Save & exit.

Now right click the cinnamon menu, choose "Configure" and go into the menu editor. Create a new menu item somewhere (I put mine under Accessories), and in the Command field, type or browse to the path & filename of the script you created earlier. Exit the menu editor, and then open the menu, find your new menu item, right-click it and choose Add to Favourites.

Now you can suspend by just clicking Menu and then the new entry in your favourites.

mottechy
Level 1
Level 1
Posts: 40
Joined: Sat Aug 15, 2015 6:44 am

Re: Issues with (re-) log in, after "suspend"

Post by mottechy » Tue Jan 23, 2018 10:44 am

At last, i have found the solution:

Earlier I used the Open Source Display Driver (Xserver-xorg-video nouveau)

Now I am using the recommended nvidia-384 driver.

Everything is working as usual.

Post Reply

Return to “Software & Applications”