Open DarthGandalf opened 9 years ago
Comment by ctrlaltca on 06 Dec 2009 23:17:14 Under linux, using org.freedesktop.PowerManagement should be the best choice.
Modified by ctrlaltca on 16 Dec 2009 09:26:41 Type: Bug → Feature request
Modified by HelLViS69 on 19 Dec 2009 16:49:54 Version: 4.0 Insomnia → 4.0rc2 Insomnia
Modified by HelLViS69 on 02 Feb 2010 14:20:07 Version: 4.0rc2 Insomnia → 4.0 Insomnia
Modified by HelLViS69 on 27 Jun 2010 15:20:24 Version: 4.0 Insomnia → 4.1 Equilibrium
Its up to OS to handle these things no? why should the app be responsible for what the OS does?
Reported by chris.morganiser on 05 Dec 2009 16:11:21 UTC Currently KVIrc doesn't do anything special when the machine goes into standby or hibernates. This means that all open connections just time out eventually (in my freenode experience, that's normally 10-35 minutes but I've had it stay on for a few hours before I ghosted it a couple of times).
KVIrc should respond to sleep and hibernate signals and quit all active connections properly. I found the signal in questions for Windows, it's [http://msdn.microsoft.com/en-us/library/aa373247%28VS.85%29.aspx WM_POWERBROADCAST] with the wParam [http://msdn.microsoft.com/en-us/library/aa372721%28VS.85%29.aspx PBT_APMSUSPEND].
I finally found a real Qt use-case of this in Psi's [http://psi-im.org/doxygen/private/systemwatch__win_8cpp-source.html systemwatch_win.cpp].
Psi also has stuff for OS X but apparently not for *nix, see their [http://psi-im.org/doxygen/private/dir_8c3dc658874e610e0ca33adc1e81af6d.html systemwatch] folder.
I think that this is fairly important as I would imagine many users do just have KVIrc running on their laptop and sleep or hibernate often, while people on IRC wonder why they're not responding to messages... thus I called it a bug rather than a feature request.
Migrated from: https://svn.kvirc.de/kvirc/ticket/637