Page 1 of 1
[solved]Issues with (re-) log in, after "suspend"
Posted: Sun Dec 03, 2017 2:56 pm
by mottechy
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?
Re: Issues with (re-) log in, after "suspend"
Posted: Tue Dec 05, 2017 4:31 am
by mottechy
nobody here?
Re: Issues with (re-) log in, after "suspend"
Posted: Wed Dec 06, 2017 5:46 am
by asquartz
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.
Re: Issues with (re-) log in, after "suspend"
Posted: Wed Dec 06, 2017 5:56 am
by mottechy
At last a sign of life...
Thanks "asquartz".
I will try this way and will let you know..
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.
Re: Issues with (re-) log in, after "suspend"
Posted: Sun Dec 10, 2017 3:56 am
by mottechy
Hallo "asquartz"
i have been testing your tip.
But still there are issues...
I think i will roll back to 18.2...
Re: Issues with (re-) log in, after "suspend"
Posted: Sun Dec 10, 2017 6:21 am
by asquartz
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.
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:
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:
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.
Re: Issues with (re-) log in, after "suspend"
Posted: Thu Dec 14, 2017 1:35 pm
by mottechy
Thanks "asquartz".
I am testing it...
I will update in two days...
Thanks any way for your kind help.
regards
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.
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:
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:
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.
Re: Issues with (re-) log in, after "suspend"
Posted: Tue Jan 23, 2018 10:44 am
by mottechy
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.