Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

unacm2

Members
  • Joined

  • Last visited

Everything posted by unacm2

  1. Hi SimonF, I want to thank you again for great work and support. I was unable to reply before, and even if I am giving up on unraid as my main working setup, I want to give feedback to what has worked for me. I used this in before sleep hook: #!/bin/bash date >> /boot/logs/sleep.log echo "Sleeping ..." >> /boot/logs/sleep.log # Get a list of all VMs that are running domains=$(virsh list --all | grep running) # Check if the previous command returned any data - If no VMs are running, the variable 'domains' will be empty if [ -z "$domains" ] then # Nothing to do here - exit echo "No VMs are running" >> /boot/logs/sleep.log exit 0 fi # 1 or more VMs are running echo "Found the following VMs running:" >> /boot/logs/sleep.log echo "$domains" >> /boot/logs/sleep.log # Get a list of the VM IDs domains=($(virsh list --all | grep running | awk '{ print $1 }')) # Issue the suspend command to each VM that is running for domain in "${domains[@]}"; do echo "Issuing the dompmsuspend and USB disconnect command to VM $domain" >> /boot/logs/sleep.log virsh dompmsuspend $domain mem sleep 5 rc.usb_manager vm_action $domain disconnect sleep 5 done and the following in after wake-up: #!/bin/bash date >> /boot/logs/sleep.log echo "Waking up ..." >> /boot/logs/sleep.log # Get a list of all VMs that are pmsuspended domains=$(virsh list --all | grep pmsuspended) # Check if the previous command returned any data - If no VMs are pmsuspended, the variable 'domains' will be empty if [ -z "$domains" ] then # Nothing to do here - exit echo "No VMs are pmsuspended" >> /boot/logs/sleep.log exit 0 fi # 1 or more VMs are pmsuspended echo "Found the following VMs pmsuspended:" >> /boot/logs/sleep.log echo "$domains" >> /boot/logs/sleep.log # Get a list of the VM IDs domains=($(virsh list --all | grep pmsuspended | awk '{ print $1 }')) # Issue the resume command to each VM that is pmsuspended for domain in "${domains[@]}"; do echo "Issuing the USB prepare and dompmwakeup command to VM $domain" >> /boot/logs/sleep.log rc.usb_manager vm_action $domain prepare sleep 5 virsh dompmwakeup $domain done which resulted in following log file: Mon Mar 18 17:21:23 CET 2024 Sleeping ... Found the following VMs running: 4 TheMainWindows10 running Issuing the dompmsuspend and USB disconnect command to VM 4 Mon Mar 18 17:22:06 CET 2024 Waking up ... Found the following VMs pmsuspended: 4 TheMainWindows10 pmsuspended Issuing the USB prepare and dompmwakeup command to VM 4 The scripts can obviously be less verbose, but I needed it for troubleshooting and adjusting sleep fudge factor. As said I am moving from my idea of one in all system, as cons outweigh the pros, and I will be running one pure Windows machine I need for my work, and another, most likely, unraid (zfs) for backups. Thanks again, and keep up the good work
  2. Yes, I need to use pre and post sleep plugin hook scripts. I need to suspend VM as well in pre hook. Do I need to detach usb before or after suspending VM? Thanks a lot
  3. Thanks a lot SimonF, I am currently abroad so I cannot test, but that's what I need. I have currently in sleep hooks virsh suspend and resume which I need to replace by your commands? I presume disconnect does dompmsuspend as you did not call it explicitly? And this sleep 30 is probably some empirical value based on your experience? Again thanks on great plugin and great support,
  4. Posted just now · Hidden - This content must be approved before it can be edited. Thanks a lot for the plugin it works great and brings me step closer to having Windows VM as my main Windows workstation. I do have however a problem: after being woken up from sleep (another plugin) devices are not working any more, keyboard and mouse do not react. After I de/attach them, either via USB page or physically, they start working but it will not be option any longer when this becomes my main Windows WS. Is there some way to do it automatically after being woken up from sleep? Sleep plugin has hooks to be executed before sleep and after being woken up, is there some command that could be executed? Thanks again

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.