You are not logged in.
Pages: 1
Can we change from the default 30 second wait before a 'suspend' activates?
Offline
If you are referring to the Actions plugin, and starting suspend from this plugin, if the "Show confirmation" option is checked in it's properties, it will show a 30 second timeout. To remove the timeout, uncheck the option.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I see nothing like that on the main xfce menu. I don't think I've ever done a plugin. The dialogue itself offers 'Cancel' and 'Suspend', no option to change the timeout.
Getting the terminology right, is a plugin any one of those little utilities one can add to the panel? One is called 'Actions' and 'suspend' is on offer -- but there's still no way of changing the timeout.
Last edited by rayandrews (2022-10-04 22:16:43)
Offline
What does the following return?
xfconf-query -c xfce4-panel -lv
Can you post a screenshot of this dialog?
Also, if you have the Actions plugin added to the panel, right-click it and select "Properties". There is a "Show confirmation dialog" checkbox. If this is checked, you will get the 30 second countdown. If not, there will be no countdown.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
"There is a "Show confirmation dialog" checkbox. If this is checked, you will get the 30 second countdown. If not, there will be no countdown."
Roger that. I'd thought to maybe reduce it to five seconds or something, but I'll take no confirmation. I don't click unless I'm sure. Now, if I could just get hibernation working. I'm booting this install with LILO, so it will obviously be a very manual affair. Or I can sell my soul and figure out how to install GRUB here ... but I hate it.
When you hit the 'hibernate' button, what are the actual commands executed? I could probably trace the issue from there.
Last edited by rayandrews (2022-10-04 23:21:44)
Offline
When you hit the 'hibernate' button, what are the actual commands executed? I could probably trace the issue from there.
It uses dbus calls. To check if hibernate is supported:
dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.CanHibernate
To simulate a hibernate:
dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.Hibernate boolean:true
Note, you need adequate swap space for hibernate to work. You can get a quick summary of what your system supports with the following command:
xfce4-power-manager --dump
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
$ dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.CanHibernate
method return time=1664932028.630523 sender=:1.2 -> destination=:1.600 serial=320 reply_serial=2
string "na"
$ xfce4-power-manager --dump
---------------------------------------------------
Xfce power manager version 4.16.0
With policykit support
With network manager support
---------------------------------------------------
Can suspend: True
Can hibernate: True
Authorized to suspend: True
Authorized to hibernate: True
Authorized to shutdown: True
Has battery: False
Has brightness panel: False
Has power button: True
Has hibernate button: True
Has sleep button: True
Has battery button: True
Has LID: False
$ dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.Hibernate boolean:true
Error org.freedesktop.login1.SleepVerbNotSupported: Not enough swap space for hibernation
... but my swap partition is 5G. So it's not pointing to the right one. As I said, I migrated this install manually and the swap isn't where it used to be and not even on the same disk, so if UUIDs are used it is going to fail. I doubt there's any utility that can help me, it a question of finding the appropriate config file and probably rebuilding my initrd.
Funny thing tho is the xfce reports 'authorized to hibernate: True' but the button is greyed out.
Last edited by rayandrews (2022-10-05 01:30:11)
Offline
... but my swap partition is 5G. So it's not pointing to the right one. As I said, I migrated this install manually and the swap isn't where it used to be and not even on the same disk, so if UUIDs are used it is going to fail. I doubt there's any utility that can help me, it a question of finding the appropriate config file and probably rebuilding my initrd.
Do you have an entry in /etc/fstab for a swap partition that lists its UUID and does this UUID match with the one listed via?
sudo blkid
There is also a kernel parameter you can use to specify which swap UUID to use (see: https://wiki.archlinux.org/title/Power_ … _hibernate).
Funny thing tho is the xfce reports 'authorized to hibernate: True' but the button is greyed out.
From Xfce's point of view, hibernate is supported. It still needs to be properly configured.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I already know the UUID is wrong, (but I do everything with LABEL anyway) because the system was copied from another disk, the thing will be to find out where the relevant disk information is stored so that I can change it to the appropriate swap on the relevant disk. Under Debian 9 the file was:
/etc/initramfs-tools/conf.d/resume
... but I'm not sure that's still accurate. And I don't want to tinker too much. Under Debian 9 I was using the 'hibernate' package but that's no longer even available. ( Mind ... I'm using LILO which is also no longer supported but I'll stay as kosher as I can so that xfce can work with my hibernation system. ) Debian 11 is using some other system entirely, so I'm just not sure which files are relevant or what the method should be. There could be some quite relevant configuration command. Something like:
$ dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.Hibernate --ConfigureRaysHibernation boolean:Just-Do-It --swap=LABEL=d1--5-swap
... not to be facetious but you get me -- there could be some handy dandy way of reconfiguring using an established command.
So how does xfce know to grey out the button? She's checking something. Maybe just one of those commands you gave me above. Whatever, she's right to grey it out.
I'll read the Arch doc. Arch always has the best docs, no? I appreciate your help ToZ, it's pretty clear this is not xfce's issue so your help is pure charity.
BTW -- should have mentioned this -- the older (source) disk is still attached to the machine and it's swap partition is still there and it's UUID is still the one referenced in: " /etc/initramfs-tools/conf.d/resume " ... so it seems to me that in the UUID universe my hibernate should still work.
Last edited by rayandrews (2022-10-05 12:47:40)
Offline
Well nuts. When I copied everything over to the new install, I naturally modified /etc/fstab to point to the partitions on the new disk. Including the new swap partition, but, ooops, hibernate still wants to find the old one. Modified fstab to point to the UUID of the swap on the old disk and ... everything is fine. Now the task becomes to migrate hibernate to the swap partition on the new disk. But at least I now know that nothing is really broken. Still one might have hoped for some friendly message to the effect that the kernel is looking for a swap partition that is not mounted. Thanks ToZ you've been patient.
Offline
Blast, one final hitch. Using the old swap partition on the older disk for hibernation, all is well. Using the partition on the new disk, all *seems* to go well, I see the 'resuming' message, and xfce pops back onto the screen ... but it's in a hung state, everything frozen. Why on earth?
Offline
Perhaps the logs can shed some light?
sudo journalctl -u systemd-hibernate.service
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Tx. Running the 'good' system right now, will check that on next reboot.
I'm on a tear here, getting everything exactly the way I want it. Just figured out how to wake up from suspend via KB so I don't have to reach for the power button.
Log doesn't show anything interesting, seems to report all's well.
Seems the issue is with the running of update-initramfs. I put everything back where it was (sdb) but it still hangs xfce. But booting to a backup of my old initrd.img, all is well. And they're very different sizes, so something changed.
Last edited by rayandrews (2022-10-05 22:27:35)
Offline
Pages: 1
[ Generated in 0.011 seconds, 12 queries executed - Memory usage: 599.7 KiB (Peak: 616.54 KiB) ]