- Joined
- 18 Dec 2008
- Posts
- 435
Thank you for your reply
The man command is great! I'm liking the examples of command usage much more thorough then the -help I have been using so far.
I have got the resetusb.sh listed in the sudoers.d folder via visudoers but the system still keeps asking for a password.
I think the sleep problem is a hardware one, since I could not get the machine to automatically wake from sleep under Windows either without frequent hangs. I have disconnected all peripherals from the affected USB ports and crossed fingers its been up for 5 days without incident.
Because I couldn’t get the Stream Deck to run my script without a password I went down a different route to come up with a service script:
[Unit]
Description=Restart GDM after resume from sleep (on failure)
After=sleep.target
OnFailure=gdm.service
[Service]
Type=oneshot
ExecStartPre=/bin/systemctl is-active --quiet gdm || /bin/true
ExecStart=/bin/systemctl restart gdm
[Install]
WantedBy=sleep.target
The idea is the service will monitor GDM and restart it if it should fail.
I do see a problem in the future should I want to update the Nvidia drivers I wont be able to shut GDM down prior to installation.
I think I will need to run the following command:
sudo systemctl stop wake-up-restart-gdm.service
Install driver
sudo systemctl start wake-up-restart-gdm.service
The man command is great! I'm liking the examples of command usage much more thorough then the -help I have been using so far.
I have got the resetusb.sh listed in the sudoers.d folder via visudoers but the system still keeps asking for a password.
I think the sleep problem is a hardware one, since I could not get the machine to automatically wake from sleep under Windows either without frequent hangs. I have disconnected all peripherals from the affected USB ports and crossed fingers its been up for 5 days without incident.
Because I couldn’t get the Stream Deck to run my script without a password I went down a different route to come up with a service script:
[Unit]
Description=Restart GDM after resume from sleep (on failure)
After=sleep.target
OnFailure=gdm.service
[Service]
Type=oneshot
ExecStartPre=/bin/systemctl is-active --quiet gdm || /bin/true
ExecStart=/bin/systemctl restart gdm
[Install]
WantedBy=sleep.target
The idea is the service will monitor GDM and restart it if it should fail.
I do see a problem in the future should I want to update the Nvidia drivers I wont be able to shut GDM down prior to installation.
I think I will need to run the following command:
sudo systemctl stop wake-up-restart-gdm.service
Install driver
sudo systemctl start wake-up-restart-gdm.service