[Bug 222205] New: No suspend via KDE menu (new version) after dbus restart
https://bugzilla.novell.com/show_bug.cgi?id=222205 Summary: No suspend via KDE menu (new version) after dbus restart Product: openSUSE 10.2 Version: Beta 2 plus Platform: Other OS/Version: Other Status: NEW Severity: Blocker Priority: P5 - None Component: KDE AssignedTo: kde-maintainers@suse.de ReportedBy: dkukawka@novell.com QAContact: qa@suse.de If you restart D-Bus (e.g. on a update) you can't no longer call a suspend via the new KDE startmenu. There is only a error "Suspend failed" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205 coolo@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kde-maintainers@suse.de AssignedTo|kde-maintainers@suse.de |hmacht@novell.com ------- Comment #1 from coolo@novell.com 2006-11-20 03:32 MST ------- It uses the very same code as the ksmserver Holger added. liblazy isn't for the lazy, eh? :) Beside that, I doubt it's a blocker -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205 hmacht@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Blocker |Normal Status|NEW |NEEDINFO Info Provider| |coolo@novell.com ------- Comment #2 from hmacht@novell.com 2006-11-20 04:46 MST ------- The startmenu, same with ksmserver, doesn't have a D-Bus mainloop and thus doesn't know when D-Bus broke away and thus can't refresh the dbus-connection. This wasn't needed with the old powerlib method because it used to create a new connection on every call, which was suboptimal either. I don't think that a mainloop where we listen for signals is something we want to have at this point in kicker, startmenu or ksmserver, right? If, so I would close this as WONTFIX because we have no way to do this with the current lack of D-Bus support for KDE 3.x. And it's definitely no blocker just because you can't suspend via the KDE menu. You still have kpowersave and a dbus restart should be also _very_ rare. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205 coolo@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|coolo@novell.com |hmacht@novell.com ------- Comment #3 from coolo@novell.com 2006-11-20 05:28 MST ------- Hmm, I would rather connect and disconnect as needed - _especially_ as we don't listen to the bus. What liblazy call is needed to do that? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205 ------- Comment #4 from dkukawka@novell.com 2006-11-20 06:49 MST ------- What about my proposal in bug #222207, to try first to call KPowersave for the suspend (via DCOP) and if kpowersave is not there to call then D-Bus via liblazy. This would also solve 222207 and allow lock screen, execute e.g unmount etc. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205 dkukawka@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|dkukawka@novell.com | ------- Comment #6 from dkukawka@novell.com 2006-11-20 07:10 MST ------- yes, QStringList allowed_sleepingStates() should do this and return a stringlist with this possible values: suspendToDisk, suspendToRAM, standBy or in errorcase: NO_SLEEPING_STATES_SUPPORTED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205 ------- Comment #7 from dmueller@novell.com 2006-11-20 07:52 MST ------- eh, wait a minute.. you want to depend on kpowersave for being able to suspend???! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205 ------- Comment #8 from hmacht@novell.com 2006-11-20 08:22 MST ------- No! But in future we might depend on a policy manager, whether that's kpowersave or in KDE core doesn't matter. Nevertheless, Danny mentioned the "call HAL after trying with kpowersave" as a fallback. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205 ------- Comment #9 from coolo@novell.com 2006-11-20 08:53 MST ------- sounds like a good plan actually. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205 hmacht@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hmacht@novell.com AssignedTo|hmacht@novell.com |coolo@novell.com Status|ASSIGNED |NEW ------- Comment #10 from hmacht@novell.com 2006-11-20 09:03 MST ------- Ok, I added a function to liblazy which makes it possible to use a private connection. You just have to add one additional line before using any of other functions of liblazy. But please take care about the warning ;-) /** @brief use a private connection for system bus messages * * Call this function with a boolean value to tell the library whether to * use a private connection for system bus messages * (liblazy_dbus_system*). Defaults to false. If a private connection is * used, the libarary creates a new connection on _every_ call and * immediately closes it. So this should be used very carefully. Only use * if your application does very rare dbus calls and doesn't have a * mainloop to listen if D-Bus died but still should be able to survive * D-Bus restarts. * * @param use_privat 1 if the library should use a private connection, 0 * otherwise */ void liblazy_dbus_system_use_private_connection(int use_private); Still, trying via DCOP first (or at all?)is the more proper solution. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205 ------- Comment #12 from coolo@novell.com 2006-12-06 06:25 MST ------- this didn't make it into 10.2? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205 ------- Comment #13 from hmacht@novell.com 2006-12-06 06:29 MST ------- No, because the corresponding KDE manu changes didn't make it into 10.2, no? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205 ------- Comment #14 from coolo@novell.com 2006-12-06 06:45 MST ------- it's a bit tough to submit packages that do not build after RC1 - but now I can't make it easily into an online update either ;( -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205 ------- Comment #15 from hmacht@novell.com 2006-12-06 06:51 MST ------- I waited for feedback from you before submitting because the KDE menu would have been the only one using this new option, so it would been have good to verify if it works appropriately. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205 ------- Comment #16 from coolo@novell.com 2006-12-06 07:11 MST ------- tja, deadlock :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205 coolo@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #17 from coolo@novell.com 2006-12-08 04:24 MST ------- I talked with Dirk and I think the easiest is porting away from liblazy -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205 ------- Comment #18 from hmacht@novell.com 2006-12-08 04:31 MST ------- Not the easiest because it will again duplicate the DBus/HAL functionality at yet another location. But I clearly see the gain for the kickoff menu to avoid an additional dependency. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222205#c19 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WONTFIX --- Comment #19 from Stephan Kulow <coolo@novell.com> 2007-07-04 08:12:54 MST --- that function is still not in liblazy? As dbus won't be restarted on update any longer, I see no gain in trying to fix this with major effort. Adding a function call would have been ok, but as the function is still not in, I'll just drop it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com