Bug 155429 - Keyboard shortcuts don't work
Summary: Keyboard shortcuts don't work
Status: RESOLVED DUPLICATE of bug 155008
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kded (show other bugs)
Version: 4.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Andreas Hartmetz
URL:
Keywords:
: 155625 155697 155918 155963 156102 160512 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-10 23:20 UTC by Philip Scott
Modified: 2008-12-07 13:08 UTC (History)
17 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Scott 2008-01-10 23:20:46 UTC
Version:           As tagged with KDE 4.0 - the version above is a LIE, bko won't let me sumbit 4.0.0 as a version (using KDE KDE 3.5.8DevelDevelKDE 4.0.0KDE 4.0.0KDE 3.5.1DevelKDE 4.0.0KDE 4.0.0KDE 4.0.0)
Installed from:    Ubuntu PackagesCompiled From SourcesCompiled From SourcesCompiled From SourcesConectiva RPMsUnspecified BSDUbuntu PackagesUbuntu PackagesUbuntu PackagesUbuntu Packages
Compiler:           As compiled for Ubuntu Gutsy
OS:                Linux

On a fresh install of kde 4.0.0, no global eyboard shortcuts for work

Alt+tab, Alt+f2 etc.. don't work, neither do any of the kwin composite shortcuts. Applications specific shortcuts are fine.

Running qdbus on kded:

$ qdbus org.kde.kded
/
/KDebug
/MainApplication
/kbuildsycoca
/kded

A chap on IRC seemed to expect a "KdedGlobalAccel" which could perhaps explain the problem.

Happy to provide any more details, can compiler up a kded and do any debugging required if you point me in the right direction.

Cheers,

Philip
Comment 1 Luke 2008-01-12 15:06:31 UTC
This occurs on my Ubuntu Gutsy install using the KDE 4 final packages.
Comment 2 Michael Schwinn 2008-01-12 23:02:45 UTC
similar situation here:

kde4 on kubuntu hardy heron, fresh installation.
but kded and KdedGlobalAccel have been running, but no global shortcuts working.

deleting .kde4 solved the problem. i have a backup of the "bad" .kde4 folder just in case somebody needs some information..let me know :)
Comment 3 Simon St James 2008-01-12 23:32:02 UTC
On a hunch, does it have anything to do with this?

http://lists.kde.org/?l=kde-core-devel&m=119901874824675&w=2

How many people who have seen this bug have used only the *default* localisation (i.e. English) in KDE4?
Comment 4 FiNeX 2008-01-13 14:44:25 UTC
*** Bug 155625 has been marked as a duplicate of this bug. ***
Comment 5 Fredrik Karlsson 2008-01-13 22:04:56 UTC
This problem does indeed disappear when using English locale and removing ~/.kde/share/config/kglobalshortcutsrc.
Comment 6 Simon Huerlimann 2008-01-14 10:09:11 UTC
Still not working here...

My locale (in the console) is en_US.UTF-8 and I've deleted my ~/.kde4 and there's no ~/.kde/share/config/kglobalshotcutsrc

In the control center 'language/country' settings there's only one locale: 'Default'
Comment 7 FiNeX 2008-01-14 10:31:44 UTC
*** Bug 155697 has been marked as a duplicate of this bug. ***
Comment 8 Brian Vuyk 2008-01-14 15:29:43 UTC
Still seeing this bug even after removing my .kde4. There was no ~/.kde/share/config/kglobalshortcutsrc available to delete.
Comment 9 Philip Scott 2008-01-14 17:11:24 UTC
Hi again,

I managed to fix the issue, but I was rather unscientific about the process. I deleted my entire home directory, un-installed lots of kde3 packages and reinstalled kde4 from scratch from the Ubuntu repository.

And voila, it works. I'd mark the bug resolved, but it appears others are having similar problems.. Is it possibly a packaging issue?
Comment 10 Patrick Trettenbrein 2008-01-14 17:33:19 UTC
Philip, would you please be so kind and provide us with some details on the process? Because I don't want to totally remove KDE 3 from my system, as it's also used by others and they're not very experienced computer users and therefore aren't yet familar with KDE 4 and all its new stuff, and so on.

Anyway, having both KDE 3 and KDE 4 installed should be easily possible without causing any troubles, shouldn't it? Apart from that it'd be quite impossible to totally remove KDE 3 from my system, as quite a lot of apps haven't been ported to KDE 4, or don't provide a stable port yet (Amarok for example).

And oh, yeah: Please don't even think of marking anything as "RESOLVED" when you'd need to delete your eintire home directory and re-install KDE 4 from scratch to kind of fix it. That's no real solution for most people out there, I'm quit sure. There has to be a better way ...

Just my two cents. :)
Comment 11 John Morris 2008-01-15 04:32:42 UTC
I'm suffering from this bug too.   I tried changing my locale from "Default" to "US English", and <alt>-<tab> started working briefly.  After log out and back in it had quit working again.

Now changing the locale to default and back has no effect, and it is completely broken again.

Also, deleting ~/.kde4/share/config/kglobalshortcutsrc seems to have no effect.
Comment 12 Martin Honermeyer 2008-01-16 00:29:36 UTC
I logged out of KDE and deleted ~/.kde4/share/config/kglobalshortcutsrc at the terminal. Logged back in KDE => shortcuts working!
Comment 13 Bernd Steinhauser 2008-01-16 00:47:34 UTC
Funny thing, I can confirm that.
The situation: Alt+Tab didn't work, Alt+Shift+Tab did work.
I did:
1. kquitapp plasma
2. kquitapp kwin
3. rm ~/.kdesvn/share/config/kglobalshortcutsrc
4. uninstall kde-l10n (had locale de)
5. plasma
6. kwin

New situation: Alt+Tab works, Alt+Shift+Tab doesn't work.
What the... is going on here? ;-)
Comment 14 Martin Honermeyer 2008-01-16 01:06:32 UTC
Okay, after a while (running the same session) it stopped working for me, again!
Comment 15 Tommi Tervo 2008-01-16 16:15:39 UTC
*** Bug 155918 has been marked as a duplicate of this bug. ***
Comment 16 Marcus Better 2008-01-17 10:12:51 UTC
I had a similar problem with Debian experimental packages (4.0.0), but the KdedGlobalAccel service was running, and moreover some accelerators work (Ctrl-Esc, Alt-F2 and Alt-Shift-Tab), but Alt-Tab did not.

The steps in #13 fixed this, except that I didn't have to uninstall the Swedish locale, just switch to US English.

~$ qdbus org.kde.kded
/
/KDebug
/KIO
/KIO/Scheduler
/KdedGlobalAccel
/MainApplication
/kbuildsycoca
/kded
/modules
/modules/favicons
/modules/kcookiejar
/modules/kdedglobalaccel
/modules/kmilod
/modules/kpasswdserver
/modules/ktimezoned
/modules/kwalletd
/modules/kwrited
/modules/nepomukserver
/modules/networkstatus
/modules/remotedirnotify
/org
/org/soprano
/org/soprano/Server
Comment 17 Gandalf Lechner 2008-01-17 10:13:04 UTC
As a workaround until this bug is fixed, one can run compiz under kde4 and have the keyboard shortcuts working - apart from wobbly windows and everything else, of course ...
Comment 18 Raúl 2008-01-18 01:34:18 UTC
Doing some test, it looks like the problem is that the kded module KdedGlobalAccel doesn't understand properly the translated kglobalshortcutsrc configuration file and it stops working with unpredictable behaviour.

After having removed the l10n packaged and restart kde, now it's working, but even the module is listed in qdbus org.kde.kded, in the sysprefs->kde services I can see it's listed as not running.
Comment 19 Christophe Marin 2008-01-18 11:52:08 UTC
I had this trouble yesterday after changing l10n and mostly solved it : I deleted kglobalshortcutsrc and khotkeys* (I had 2 files : khotkeys_update & khotkeysrc).

My shortcuts are almost all back except control + F1 - F4 to change desktop.
Comment 20 Pino Toscano 2008-01-18 13:11:17 UTC
*** Bug 155963 has been marked as a duplicate of this bug. ***
Comment 21 Pino Toscano 2008-01-18 14:47:39 UTC
*** Bug 156102 has been marked as a duplicate of this bug. ***
Comment 22 sombragris 2008-01-18 15:17:45 UTC
I'm seeing this bug with the English default locale on Slackware 12.0, KDE compiled from release sources
Comment 23 Lubos Lunak 2008-01-18 17:42:46 UTC
Please do not mix several unrelated things.
Shortcuts not working at all with En locale -> bug #155008.
Problems because of locale -> bug #156121.
Some (not all) shortcuts missing -> bug #155650.
Shortcuts stop working after configuring them -> bug #156120.


*** This bug has been marked as a duplicate of 155008 ***
Comment 24 David Faure 2008-01-18 19:18:53 UTC
*** Bug 156121 has been marked as a duplicate of this bug. ***
Comment 25 copong 2008-02-14 13:03:52 UTC
Still going on KDE 4.0.1 Kubuntu Gutsy with the Spanish i18n package in use. There are many duplicated entries on the relevant configuration module, eg "CLOSE WINDOW" and "CERRAR VENTANA". ALT+F4 won't work until I assign the shortcut to the translation. And so on for the rest of shortcuts for what a translation is provided for.
Comment 26 david 2008-02-19 23:31:30 UTC
Steps to temporarily fix (for me)

1. (re)start kded4
2. (re)load qdbus entry
3. restart kwin (with --replace)
4. wait several hours and begin again at #1

All normal key shortcuts are functional again.  Why it breaks is because your mouse moved or you were thinking about peanuts or pineapple.  Note, for some people it's from thinking about coconut.  Windows requires a reboot, KDE just requires a few daemon restarts.

All other suggested fixes didn't fix anything for me.  On the other hand they did _really_ mess up key assignments on the right side of the keyboard such as ctrl, arrow keys, keypad, etc.
Comment 27 Andreas Hermann Braml 2008-04-07 12:01:43 UTC
It happenend here, too. This is Kubuntu Hardy i386, KDE4 is 4.0.3, using l10n-de

Here's what happenened _before_ the shortcuts stopped working:
- I plugged in my external USB disk drive. At some point, it froze. It does that quite often, but it seems to be an issue with the drive itself, not with Solid/HAL, as the same happens on FreeBSD without those services running.
- I switched the drive off (umount does no longer work in such situations) --> Plasma crashed
- I logged off and back in. Plasma is back, but: bingo! No shortcuts anymore.

$ dbus org.kde.kded

gives me

Service 'org.kde.kded' does not exist.


So, I do

$ kded4 &
$ qdbus org.kde.kded /kded loadModule kdedglobalaccel &

which gives me

kded(27418) Solid::Control::ManagerBasePrivate::loadBackend:Backend loaded:  "Netzwerkverwaltung"

Then the shortcuts are back.
Comment 28 Pino Toscano 2008-04-07 20:19:22 UTC
*** Bug 160512 has been marked as a duplicate of this bug. ***
Comment 29 Tony 2008-04-27 05:59:31 UTC
So far this is what has worked for me.

$ kquitapp kded4
$ kquitapp plasma
$ kquitapp kwin
$ kded4
$ kwin
$ plasma

The order is important from what I've found.  That's the most interesting thing to me; I am no Linux genius, but I've found that if I stop and relaunch these programs in that exact order and just let the terminal run in the background with kwin and plasma then the key shortcuts work for the rest of the session.  I have not yet had the shortcuts stop working again after relaunching the programs.  If this solves the problem for everyone else, would it be possible to simply change the boot order in order solve the problem?
Comment 30 Daniel Eckl 2008-12-07 13:08:24 UTC
I have the same problem on kde 4.2 b1 and the workaroung from comment #29 works for me.

So I can't confirm this is resolved yet (I don't think the resolution has not hit kde 4.2 yet, am I right?)

If the issue from this bug report really is solved and I have another issue I'd be glad if somebody can point me to it.

Thanks a lot!

Daniel