[solved]Issues with (re-) log in, after "suspend"
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
[solved]Issues with (re-) log in, after "suspend"
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?
My Pc is not reacting .
The only way is the keyboard combination "ctl+alt+Backspace".
Any Solution?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Issues with (re-) log in, after "suspend"
nobody here?
Re: Issues with (re-) log in, after "suspend"
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.
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"
At last a sign of life...
Thanks "asquartz".
I will try this way and will let you know..
Have a good day!
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"
Hallo "asquartz"
i have been testing your tip.
But still there are issues...
I think i will roll back to 18.2...
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"
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:
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.
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.
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
Code: Select all
#!/bin/bash
cinnamon-screensaver-command -l
sudo pm-suspend
Code: Select all
$ chmod u+x ~/mylock
Code: Select all
$ sudo visudo
Code: Select all
yourname ALL=(ALL) NOPASSWD: /usr/sbin/pm-suspend
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"
Thanks "asquartz".
I am testing it...
I will update in two days...
Thanks any way for your kind help.
regards
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
$ nano ~/mylock
Save and exit. Then make it executable:Code: Select all
#!/bin/bash cinnamon-screensaver-command -l sudo pm-suspend
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
$ chmod u+x ~/mylock
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
$ sudo visudo
Save & exit.Code: Select all
yourname ALL=(ALL) NOPASSWD: /usr/sbin/pm-suspend
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"
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.
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.