[opensuse-factory] [bug] Plasma 5 does load kcm_input.so from /usr/lib64/kde4/ when available causing funny "Keyboard settings are ignored" issues
Hi list, After recent upgrade to Plasma 5 I've ran into ignored keyboard layout settings (and missing resolution tab in "screens and monitors" settings' applet but let's put that away for now). Googling symptoms didn't help, so I've dug further (error logs, source code etc.). They were not particularly helpful, but eventually I've figured it's kcm_input.so is responsible for handling keyboard layouts. `zypper se -f kcm_input.so` (can't reproduce in now though) printed out 2 packages and both were installed. Which usually is ok for me, because we developers expect if there are multiple libs with same name, they are not loaded by someone not supposed to. Right? Wrong, that was not the case. With Plasma *5* session running, an `lsof /usr/lib64/kde4/kcm_input.so` command printed huge list of binaries with pretty much every single KDE-related binary running. Next steps were simple — rpm -qf /usr/lib64/kde4/kcm_input.so and zypper rm kdebase4-workspace-addons which is a workaround but did the job. I didn't care of KDE4 anyway. I've spent like half a day solving this issue, so could that (and this email) be an excuse for not filing a proper bug report and/or proper openQA test case? Formal repro steps: install KDE4, install Plasma 5, start Plasma 5 session, run lsof /usr/lib64/kde4/kcm_something.so Thank you for great distro, hope that helps make it even better. P.S. This seems to affect all the libs in /usr/lib64/kde4/ but I haven't checked it. -- Regards, Andrei Dziahel -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am Freitag, 22. Mai 2015, 20:10:30 schrieb Andrei Dziahel:
Formal repro steps: install KDE4, install Plasma 5, start Plasma 5 session, run lsof /usr/lib64/kde4/kcm_something.so
Hm. I have *both* KDE4 and Plasma5 installed here (on 13.2 though, but that shouldn't matter as they are the same versions), and I don't see *any* kcm_xxx.so in lsof in either KDE4 and Plasma5 (I run both of them at the same time at the moment). The issue you describe is probably caused by this bug though, that was already present in KDE4 (but is no issue if you only have KDE4 *or* KF5 packages installed of course, so nobody really noticed it): https://bugs.kde.org/show_bug.cgi?id=344519 Still, all those kcm_xxx.so files should not be opened at all unless you open the corresponding modules in systemsettings or with kcmshell IMHO. Some of them are run during login to apply settings, but that are just a few and I don't think kcm_input is in this list. And I don't see any problem with ignored keyboard layout settings here. If you use KDE4's module though (i.e. if you ran KDE4's "Configure Desktop"/systemsettings) to configure your keyboard layouts, Plasma5 will ignore the settings. You have to use Plasma5's "Systemsettings"/systemsettings5. This might be confusing, but the applications have been renamed already to make it more clear. And if you used the KDE4 systemsettings (which is also part of the kdebase4- workspace-addons package), it's also obvious why it loaded the KDE4 configuration modules. Regarding your display settings problem: Try to click on the corresponding monitor. Maybe just the wrong output is displayed in the configuration module (can happen if there's no "Primary Display" defined it seems). If no monitor is connected there, no resolution will be available either. The slider is hidden if there's only one resolution available I think, so this might also be an Xorg (config) issue. Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
PS: The keyboard layout is actually applied by the "keyboard" kded plugin I think. So your issue might have also been because kded5 loaded the KDE4 plugin by mistake. Maybe KF5 wasn't aware that the KF5-based keyboard plugin exists, and therefore loaded the KDE4 one because of before-mentioned bug? It is part of the package plasma5-desktop, so you should have had it installed in any case, but maybe your sycoca cache was outdated or something like that (in that case running "kbuildsycoca5" should have fixed it). If your actual problem was that systemsettings5 loaded the KDE4 based config module (kcm_input), it might have the same cause too. But I don't think that would even be possible because systemsettings5 would probably just crash then. Or you really just ran KDE4's systemsettings to configure the keyboard layout as I suggested already. That would of course explain why all those KDE4 settings modules were open/loaded, and the settings were ignored. I don't think there's a general problem here though. Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi Wolfgang, Thanks for writing back 2015-05-23 20:32 GMT+03:00 Wolfgang Bauer <wbauer@tmo.at>:
Or you really just ran KDE4's systemsettings to configure the keyboard layout as I suggested already. That would of course explain why all those KDE4 settings modules were open/loaded, and the settings were ignored.
I think that's actually was the case. I've ran settings from "Favorites", which seemed to be inherited from KDE4.
I don't think there's a general problem here though.
Fair enough. Although systemsettings4 .desktop should be visible in Plasma 5 session, bc it's utterly misleading. -- Regards, Andrei Dziahel -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Fri, May 22, 2015 at 2:10 PM, Andrei Dziahel <develop7@develop7.info> wrote:
P.S. This seems to affect all the libs in /usr/lib64/kde4/ but I haven't checked it.
I mostly wonder why plasma5 components have %{_libdir}/kde4 in DT_RUNPATH /DT_RPATH in the first place.. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am Freitag, 22. Mai 2015, 20:10:30 schrieb Andrei Dziahel:
Formal repro steps: install KDE4, install Plasma 5, start Plasma 5 session, run lsof /usr/lib64/kde4/kcm_something.so
Hm. I have *both* KDE4 and Plasma5 installed here (on 13.2 though, but that shouldn't matter as they are the same versions), and I don't see *any* kcm_xxx.so in lsof in either KDE4 and Plasma5 (I run both of them at the same time at the moment). The issue you describe is probably caused by this bug though, that was already present in KDE4 (but is no issue if you only have KDE4 *or* KF5 packages installed of course, so nobody really noticed it): https://bugs.kde.org/show_bug.cgi?id=344519 Still, all those kcm_xxx.so files should not be opened at all unless you open the corresponding modules in systemsettings or with kcmshell IMHO. Some of them are run during login to apply settings, but that are just a few and I don't think kcm_input is in this list. And I don't see any problem with ignored keyboard layout settings here. If you use KDE4's module though (i.e. if you ran KDE4's "Configure Desktop"/systemsettings) to configure your keyboard layouts, Plasma5 will ignore the settings. You have to use Plasma5's "Systemsettings"/systemsettings5. This might be confusing, but the applications have been renamed already to make it more clear. And if you used the KDE4 systemsettings (which is also part of the kdebase4- workspace-addons package), it's also obvious why it loaded the KDE4 configuration modules. Regarding your display settings problem: Try to click on the corresponding monitor. Maybe just the wrong output is displayed in the configuration module (can happen if there's no "Primary Display" defined it seems). If no monitor is connected there, no resolution will be available either. The slider is hidden if there's only one resolution available I think, so this might also be an Xorg (config) issue. Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
PS: The keyboard layout is actually applied by the "keyboard" kded plugin I think. So your issue might have also been because kded5 loaded the KDE4 plugin by mistake. Maybe KF5 wasn't aware that the KF5-based keyboard plugin exists, and therefore loaded the KDE4 one because of before-mentioned bug? It is part of the package plasma5-desktop, so you should have had it installed in any case, but maybe your sycoca cache was outdated or something like that (in that case running "kbuildsycoca5" should have fixed it). If your actual problem was that systemsettings5 loaded the KDE4 based config module (kcm_input), it might have the same cause too. But I don't think that would even be possible because systemsettings5 would probably just crash then. Or you really just ran KDE4's systemsettings to configure the keyboard layout as I suggested already. That would of course explain why all those KDE4 settings modules were open/loaded, and the settings were ignored. I don't think there's a general problem here though. Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi Wolfgang, Thanks for writing back 2015-05-23 20:32 GMT+03:00 Wolfgang Bauer <wbauer@tmo.at>:
Or you really just ran KDE4's systemsettings to configure the keyboard layout as I suggested already. That would of course explain why all those KDE4 settings modules were open/loaded, and the settings were ignored.
I think that's actually was the case. I've ran settings from "Favorites", which seemed to be inherited from KDE4.
I don't think there's a general problem here though.
Fair enough. Although systemsettings4 .desktop should be visible in Plasma 5 session, bc it's utterly misleading. -- Regards, Andrei Dziahel -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Fri, May 22, 2015 at 2:10 PM, Andrei Dziahel <develop7@develop7.info> wrote:
P.S. This seems to affect all the libs in /usr/lib64/kde4/ but I haven't checked it.
I mostly wonder why plasma5 components have %{_libdir}/kde4 in DT_RUNPATH /DT_RPATH in the first place.. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Andrei Dziahel
-
Cristian Rodríguez
-
Wolfgang Bauer