#StackBounty: #nvidia #multiple-monitors #display #suspend How to get external monitor to reconnect after sleep or power off

Bounty: 50

Problem:
On an Ubuntu based laptop, when I sleep or disconnect power to my external monitor then power up the system or reconnect the monitor again, the display doesn’t come on.

Poor man’s solution:
The only way I’ve found to get the external display to work (aside from reboot) is to switch from Joined Display to Mirror Display. As soon as the monitor comes alive I can simply cancel the change to Mirror Displays, monitor settings revert, and the external monitor works as usual.

Grievance:
Unfortunately this causes windows that were on my external monitor to be misarranged across desktop workspaces (PopOS here, Ubuntu 20.10). It’s a fair bit of effort to re-arrange workspaces after the mirror/cancel process.

Hopeful question:
Are there any command line utilities that might force the external monitor to reset without the need to change from Joined Display to Mirror?


Get this bounty!!!

#StackBounty: #suspend #virtualization #20.10 #virt-manager Ubuntu 20.10 VM restarts sometimes after wake from sleep

Bounty: 50

I’m runing ubuntu 20.04 on the host and Ubuntu 20.10 on two VMs. I always let them open and running. Sometimes, after waking the laptop from sleep, one of them has the screen locked (they both are configured to never lock screen/sleep). Then I put the password and unlock it, the screen gets black and I have to force reset the VM for it to work again.

It’s annoying because I then have to reopen everything I was working on.

What can I do to solve this problem? It’s not always that it happens and not on both VMs at the same time.

I use virt-manager for the virtualization


Get this bounty!!!

#StackBounty: #suspend #dell #20.04 Ubuntu 20.04 | Any way to get rid of "systemctl suspend" and start using "s2ram&quot…

Bounty: 200

After days trying to fix suspend issues in my laptop. I would like to get rid of the Ubuntu suspend system and completely replace it with “S2RAM”.

So basically when I press the Power button, the Sleep button, Close the lid: I just want my laptop to call “S2RAM” application, nothing more.

S2RAM is the only thing that works well in my laptop. If I type sudo S2RAM when I’m playing a video, my laptop goes off in less than 1 second, the Power led and keyboard go off instantly, then I wait some minutes, I press the power button and everything resumes perfectly.

So far I tried this without success:

sudo systemctl edit systemd-suspend.service

And add the following:

[Service]
Type=oneshot
ExecStart=/usr/sbin/s2ram

I also tried the following alternative (changing the path sometimes):

[Service]
ExecStart=
ExecStartPre=-/usr/bin/run-parts -v -a pre /usr/lib/systemd/system-sleep
ExecStart=/usr/sbin/s2ram
ExecStartPost=-/usr/bin/run-parts -v --reverse -a post /usr/sbin/s2ramlib/systemd/system-sleep

Followed by

systemctl daemon-reload

None of these options seem to work. Because if I type systemctl suspend:

  1. It is not instant like when running sudo S2RAM
  2. Sometimes hangs the system (just like always do)
  3. Sometimes turns off the screens and doesn’t come back

So to me, S2RAM is not taking over at all the Ubuntu “suspend” approach.

Is there any other way to achieve this? I think it will be the only solution to make my Dell laptop sleep in Ubuntu. I tried more than 30 solutions, none worked except S2RAM application. I just need to know how to make it default


Get this bounty!!!

#StackBounty: #suspend #dell #20.04 Ubuntu 20.04 | Any way to get rid of "systemctl suspend" and start using "s2ram&quot…

Bounty: 200

After days trying to fix suspend issues in my laptop. I would like to get rid of the Ubuntu suspend system and completely replace it with “S2RAM”.

So basically when I press the Power button, the Sleep button, Close the lid: I just want my laptop to call “S2RAM” application, nothing more.

S2RAM is the only thing that works well in my laptop. If I type sudo S2RAM when I’m playing a video, my laptop goes off in less than 1 second, the Power led and keyboard go off instantly, then I wait some minutes, I press the power button and everything resumes perfectly.

So far I tried this without success:

sudo systemctl edit systemd-suspend.service

And add the following:

[Service]
Type=oneshot
ExecStart=/usr/sbin/s2ram

I also tried the following alternative (changing the path sometimes):

[Service]
ExecStart=
ExecStartPre=-/usr/bin/run-parts -v -a pre /usr/lib/systemd/system-sleep
ExecStart=/usr/sbin/s2ram
ExecStartPost=-/usr/bin/run-parts -v --reverse -a post /usr/sbin/s2ramlib/systemd/system-sleep

Followed by

systemctl daemon-reload

None of these options seem to work. Because if I type systemctl suspend:

  1. It is not instant like when running sudo S2RAM
  2. Sometimes hangs the system (just like always do)
  3. Sometimes turns off the screens and doesn’t come back

So to me, S2RAM is not taking over at all the Ubuntu “suspend” approach.

Is there any other way to achieve this? I think it will be the only solution to make my Dell laptop sleep in Ubuntu. I tried more than 30 solutions, none worked except S2RAM application. I just need to know how to make it default


Get this bounty!!!

#StackBounty: #suspend #dell #20.04 Ubuntu 20.04 | Any way to get rid of "systemctl suspend" and start using "s2ram&quot…

Bounty: 200

After days trying to fix suspend issues in my laptop. I would like to get rid of the Ubuntu suspend system and completely replace it with “S2RAM”.

So basically when I press the Power button, the Sleep button, Close the lid: I just want my laptop to call “S2RAM” application, nothing more.

S2RAM is the only thing that works well in my laptop. If I type sudo S2RAM when I’m playing a video, my laptop goes off in less than 1 second, the Power led and keyboard go off instantly, then I wait some minutes, I press the power button and everything resumes perfectly.

So far I tried this without success:

sudo systemctl edit systemd-suspend.service

And add the following:

[Service]
Type=oneshot
ExecStart=/usr/sbin/s2ram

I also tried the following alternative (changing the path sometimes):

[Service]
ExecStart=
ExecStartPre=-/usr/bin/run-parts -v -a pre /usr/lib/systemd/system-sleep
ExecStart=/usr/sbin/s2ram
ExecStartPost=-/usr/bin/run-parts -v --reverse -a post /usr/sbin/s2ramlib/systemd/system-sleep

Followed by

systemctl daemon-reload

None of these options seem to work. Because if I type systemctl suspend:

  1. It is not instant like when running sudo S2RAM
  2. Sometimes hangs the system (just like always do)
  3. Sometimes turns off the screens and doesn’t come back

So to me, S2RAM is not taking over at all the Ubuntu “suspend” approach.

Is there any other way to achieve this? I think it will be the only solution to make my Dell laptop sleep in Ubuntu. I tried more than 30 solutions, none worked except S2RAM application. I just need to know how to make it default


Get this bounty!!!

#StackBounty: #suspend #dell #20.04 Ubuntu 20.04 | Any way to get rid of "systemctl suspend" and start using "s2ram&quot…

Bounty: 200

After days trying to fix suspend issues in my laptop. I would like to get rid of the Ubuntu suspend system and completely replace it with “S2RAM”.

So basically when I press the Power button, the Sleep button, Close the lid: I just want my laptop to call “S2RAM” application, nothing more.

S2RAM is the only thing that works well in my laptop. If I type sudo S2RAM when I’m playing a video, my laptop goes off in less than 1 second, the Power led and keyboard go off instantly, then I wait some minutes, I press the power button and everything resumes perfectly.

So far I tried this without success:

sudo systemctl edit systemd-suspend.service

And add the following:

[Service]
Type=oneshot
ExecStart=/usr/sbin/s2ram

I also tried the following alternative (changing the path sometimes):

[Service]
ExecStart=
ExecStartPre=-/usr/bin/run-parts -v -a pre /usr/lib/systemd/system-sleep
ExecStart=/usr/sbin/s2ram
ExecStartPost=-/usr/bin/run-parts -v --reverse -a post /usr/sbin/s2ramlib/systemd/system-sleep

Followed by

systemctl daemon-reload

None of these options seem to work. Because if I type systemctl suspend:

  1. It is not instant like when running sudo S2RAM
  2. Sometimes hangs the system (just like always do)
  3. Sometimes turns off the screens and doesn’t come back

So to me, S2RAM is not taking over at all the Ubuntu “suspend” approach.

Is there any other way to achieve this? I think it will be the only solution to make my Dell laptop sleep in Ubuntu. I tried more than 30 solutions, none worked except S2RAM application. I just need to know how to make it default


Get this bounty!!!

#StackBounty: #suspend #dell #20.04 Ubuntu 20.04 | Any way to get rid of "systemctl suspend" and start using "s2ram&quot…

Bounty: 200

After days trying to fix suspend issues in my laptop. I would like to get rid of the Ubuntu suspend system and completely replace it with “S2RAM”.

So basically when I press the Power button, the Sleep button, Close the lid: I just want my laptop to call “S2RAM” application, nothing more.

S2RAM is the only thing that works well in my laptop. If I type sudo S2RAM when I’m playing a video, my laptop goes off in less than 1 second, the Power led and keyboard go off instantly, then I wait some minutes, I press the power button and everything resumes perfectly.

So far I tried this without success:

sudo systemctl edit systemd-suspend.service

And add the following:

[Service]
Type=oneshot
ExecStart=/usr/sbin/s2ram

I also tried the following alternative (changing the path sometimes):

[Service]
ExecStart=
ExecStartPre=-/usr/bin/run-parts -v -a pre /usr/lib/systemd/system-sleep
ExecStart=/usr/sbin/s2ram
ExecStartPost=-/usr/bin/run-parts -v --reverse -a post /usr/sbin/s2ramlib/systemd/system-sleep

Followed by

systemctl daemon-reload

None of these options seem to work. Because if I type systemctl suspend:

  1. It is not instant like when running sudo S2RAM
  2. Sometimes hangs the system (just like always do)
  3. Sometimes turns off the screens and doesn’t come back

So to me, S2RAM is not taking over at all the Ubuntu “suspend” approach.

Is there any other way to achieve this? I think it will be the only solution to make my Dell laptop sleep in Ubuntu. I tried more than 30 solutions, none worked except S2RAM application. I just need to know how to make it default


Get this bounty!!!

#StackBounty: #suspend #dell #20.04 Ubuntu 20.04 | Any way to get rid of "systemctl suspend" and start using "s2ram&quot…

Bounty: 200

After days trying to fix suspend issues in my laptop. I would like to get rid of the Ubuntu suspend system and completely replace it with “S2RAM”.

So basically when I press the Power button, the Sleep button, Close the lid: I just want my laptop to call “S2RAM” application, nothing more.

S2RAM is the only thing that works well in my laptop. If I type sudo S2RAM when I’m playing a video, my laptop goes off in less than 1 second, the Power led and keyboard go off instantly, then I wait some minutes, I press the power button and everything resumes perfectly.

So far I tried this without success:

sudo systemctl edit systemd-suspend.service

And add the following:

[Service]
Type=oneshot
ExecStart=/usr/sbin/s2ram

I also tried the following alternative (changing the path sometimes):

[Service]
ExecStart=
ExecStartPre=-/usr/bin/run-parts -v -a pre /usr/lib/systemd/system-sleep
ExecStart=/usr/sbin/s2ram
ExecStartPost=-/usr/bin/run-parts -v --reverse -a post /usr/sbin/s2ramlib/systemd/system-sleep

Followed by

systemctl daemon-reload

None of these options seem to work. Because if I type systemctl suspend:

  1. It is not instant like when running sudo S2RAM
  2. Sometimes hangs the system (just like always do)
  3. Sometimes turns off the screens and doesn’t come back

So to me, S2RAM is not taking over at all the Ubuntu “suspend” approach.

Is there any other way to achieve this? I think it will be the only solution to make my Dell laptop sleep in Ubuntu. I tried more than 30 solutions, none worked except S2RAM application. I just need to know how to make it default


Get this bounty!!!

#StackBounty: #suspend #dell #20.04 Ubuntu 20.04 | Any way to get rid of "systemctl suspend" and start using "s2ram&quot…

Bounty: 200

After days trying to fix suspend issues in my laptop. I would like to get rid of the Ubuntu suspend system and completely replace it with “S2RAM”.

So basically when I press the Power button, the Sleep button, Close the lid: I just want my laptop to call “S2RAM” application, nothing more.

S2RAM is the only thing that works well in my laptop. If I type sudo S2RAM when I’m playing a video, my laptop goes off in less than 1 second, the Power led and keyboard go off instantly, then I wait some minutes, I press the power button and everything resumes perfectly.

So far I tried this without success:

sudo systemctl edit systemd-suspend.service

And add the following:

[Service]
Type=oneshot
ExecStart=/usr/sbin/s2ram

I also tried the following alternative (changing the path sometimes):

[Service]
ExecStart=
ExecStartPre=-/usr/bin/run-parts -v -a pre /usr/lib/systemd/system-sleep
ExecStart=/usr/sbin/s2ram
ExecStartPost=-/usr/bin/run-parts -v --reverse -a post /usr/sbin/s2ramlib/systemd/system-sleep

Followed by

systemctl daemon-reload

None of these options seem to work. Because if I type systemctl suspend:

  1. It is not instant like when running sudo S2RAM
  2. Sometimes hangs the system (just like always do)
  3. Sometimes turns off the screens and doesn’t come back

So to me, S2RAM is not taking over at all the Ubuntu “suspend” approach.

Is there any other way to achieve this? I think it will be the only solution to make my Dell laptop sleep in Ubuntu. I tried more than 30 solutions, none worked except S2RAM application. I just need to know how to make it default


Get this bounty!!!