View previous topic :: View next topic |
Author |
Message |
StephanX n00b
Joined: 29 Oct 2007 Posts: 19 Location: Germany
|
Posted: Wed Jan 23, 2008 9:58 pm Post subject: [SOLVED] kde4: no keyboard and no window decoration |
|
|
Hello,
please forgive me, I already asked for help in the "KDE 4 in gentoo portage?"-thread, but noone answered there...
I installed kde4 with help of this guide by upgrading from kde 3.5.8 on my ~amd64-system.
It all compiled fine, but when I start kde4 (through kdm-4.0), I see no window decorations and also my keyboard is not properly working.
The Keyboard only works in the search field of the startmenu and OpenOffice, but not in the konsole or Firefox or Konqueror...
Thanks,
Stephan
Edit: Here's my emerge --info: http://pastebin.com/m6479066a
Last edited by StephanX on Mon Feb 11, 2008 9:27 pm; edited 1 time in total |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Thu Jan 24, 2008 12:41 am Post subject: |
|
|
Sounds like kwin isn't starting or is crashing, and the keyboard issue is probably a window focus problem (because kwin isn't there).
What I would do is start up kde4, ctrl+alt+f1 out to a text console, log in as the user that's running KDE and do:
DISPLAY=:0.0 kwin
and see what kind of crashes/errors that gives. |
|
Back to top |
|
|
StephanX n00b
Joined: 29 Oct 2007 Posts: 19 Location: Germany
|
Posted: Thu Jan 24, 2008 8:53 am Post subject: |
|
|
BradN wrote: |
DISPLAY=:0.0 kwin
and see what kind of crashes/errors that gives. |
Funny, that works. Thanks for that.
No crashes or errors. After that, I even get my window decoration and keyboard back.
But: that can't be the proper solution, right?
How do I fix this permanently?
Stephan |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Thu Jan 24, 2008 11:22 am Post subject: |
|
|
*shrug* sorry, I'm not much help there as I haven't even messed with kde4 yet. But at least this lets you try things out, and I'm guessing you probably don't want to use kde4 "full time" yet as it has some rough edges. |
|
Back to top |
|
|
StephanX n00b
Joined: 29 Oct 2007 Posts: 19 Location: Germany
|
Posted: Fri Jan 25, 2008 10:12 am Post subject: |
|
|
Is it possible, that kwin is not even started at all?
Where would I find hints for that?
In case it starts, but crashes during startup, where would I get an error message / log ?
Thanks a lot,
Stephan |
|
Back to top |
|
|
StephanX n00b
Joined: 29 Oct 2007 Posts: 19 Location: Germany
|
Posted: Tue Jan 29, 2008 11:33 am Post subject: |
|
|
Anybody? |
|
Back to top |
|
|
henu n00b
Joined: 10 Jan 2007 Posts: 1 Location: Tampere, Finland
|
Posted: Sun Feb 03, 2008 12:17 pm Post subject: Problems with KDE3.5 |
|
|
I've had similiar problems recently, but with 3.5 after testing 4.0.
I tried KDE4.0 and Compiz-fusion but it was pretty crappy, so I changed back to KDE3.5. There I noticed strange problem: Window decorations were all gone and I haven't got them back no matter what I had tried. I removed KDE4.0, removed Compiz, removed all my settings(dot-files and dot-folders from my home) but still the problem occures every time I start KDE. Strange thing is also that my girlfriend's useraccount seems to work fine. I actually managed to get my working too once, by copying ~/.kde3.5/share/config/ksmserverrc and modifying it. But then it corrupted again and now only solution I 've found is to start kwin manually, but that's really painful. Also my second useraccount, that I haven't been using long time is somehow corrupted and this error occures there too. |
|
Back to top |
|
|
StephanX n00b
Joined: 29 Oct 2007 Posts: 19 Location: Germany
|
Posted: Thu Feb 07, 2008 7:06 pm Post subject: |
|
|
@henu: Sorry, but I can't help you with that either.
Anyways, after updating to kde 4.0.1 today, the problem still exists.
What a shame! |
|
Back to top |
|
|
wormie n00b
Joined: 24 Aug 2002 Posts: 36
|
Posted: Fri Feb 08, 2008 4:25 am Post subject: |
|
|
Well, I'm not sure how much of a "solution" this is, but it's at least worked to help keep me from having to start kwin by hand.
Make a file in ~/.kde4.0/Autostart/ called kwin (or whatever you want)
As the contents of the file, try:
Code: | #!/bin/bash
/usr/kde/4.0/bin/kwin |
It's possible you could throw a --replace at the very end of that line, but for me it didn't seem to matter.
Make it executable (chmod 755).
That's it. Next time you start KDE 4 the file should be executed automatically and run kwin for you.
BIG DISCLAIMER:
This is largely untested and may or may not work for you. KDE4 is just not stable enough for me to use regardless of whether or not I do this. So if it screws things up worse, don't blame me. |
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Fri Feb 08, 2008 4:40 am Post subject: |
|
|
i have kde-3.5 and 4 installed. i get in kcontrol all menu correctly in 3.5.
some amount of controls in 4 also.
have you emerge kdeartwork-meta?
i am now emerging kde-4.0.1 lets see what improvements are there.
i have installed all meta packages of kde-3.5 and 4
as the panel is missing in kde4 i use gnome panel along with kde-4
both task bars are running. if only the black task manager can be changed to some other color /more configurations
it is not all that bad. i did not have any instability.i see different kget i could not configure it as of kde-3.5. file manger is good. _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
StephanX n00b
Joined: 29 Oct 2007 Posts: 19 Location: Germany
|
Posted: Fri Feb 08, 2008 5:14 pm Post subject: |
|
|
wormie wrote: |
Make a file in ~/.kde4.0/Autostart/ called kwin (or whatever you want) |
Thanks for that, but just before you wrote this, I tried that myself (i.e. I put a symlink to kwin in the ~/kde4.0/Autostart folder).
It does work, but the startup takes a lot of time. Probably, KDE first tries to start kwin itself, after that fails, it handles the files in the Autostart-folder. Also, I have to press Ctrl-F12 twice (to switch to Desktop view and back), only after this, I get a normal kde4-desktop.
So, can I somehow tell kde not to start kwin in the first place?
Btw, I use kdm-4.0.
Thanks,
Stephan |
|
Back to top |
|
|
Adasss n00b
Joined: 19 Mar 2005 Posts: 16
|
Posted: Mon Feb 11, 2008 9:17 am Post subject: |
|
|
Personally I don't use XSESSION setting in /etc/rc.conf. I don't use anything in ~/.kde4.0/Autostart/
Instead to start KDE I use ~/.xinitrc which looks like:
and also /etc/conf.d/xdm contains line:
Code: | DISPLAYMANAGER="kdm-4.0" |
|
|
Back to top |
|
|
sotiv n00b
Joined: 11 Feb 2008 Posts: 3
|
Posted: Mon Feb 11, 2008 3:32 pm Post subject: |
|
|
Did you try compiz-fusion? So you have probably a file like this
/etc/env.d/99kde-env
KDEWM=/usr/kde/3.5/bin/kwin
You have to remove it or to change
KDEWM=/usr/kde/4.0/bin/kwin |
|
Back to top |
|
|
wormie n00b
Joined: 24 Aug 2002 Posts: 36
|
Posted: Mon Feb 11, 2008 7:07 pm Post subject: |
|
|
sotiv,
Thanks for that!
Deleting /etc/env.d/99kde-env gave me back window decorations without needing the kludgy Autostart trick.
Now if only I could figure out why I lost all sound between 4.0 and 4.0.1...
Edit: Well, I figured that out fast enough. Seems the new kmix needed me to show and then unmute the "audigy analog/digital output jack." |
|
Back to top |
|
|
StephanX n00b
Joined: 29 Oct 2007 Posts: 19 Location: Germany
|
Posted: Mon Feb 11, 2008 9:26 pm Post subject: |
|
|
sotiv wrote: | Did you try compiz-fusion? So you have probably a file like this
/etc/env.d/99kde-env
KDEWM=/usr/kde/3.5/bin/kwin
You have to remove it or to change
KDEWM=/usr/kde/4.0/bin/kwin |
Awesome! It works fine for me too. I just removed that file. In my case, it said:
Code: | KDEWM=/usr/bin/beryl-manager |
I will inform the writer of this tutorial about that, as it just says:
Ingmar Vanhassel wrote: | Also, if you modified any of the KDE related files in /etc/env.d/ you'll have to manually remove those. |
It says nothing about any previous installation of Beryl.
Anyways, the task is solved now. Thank you guys.
Stephan |
|
Back to top |
|
|
Philantrop Retired Dev
Joined: 21 Dec 2004 Posts: 1130 Location: Germany
|
Posted: Mon Feb 11, 2008 11:16 pm Post subject: |
|
|
StephanX wrote: | It says nothing about any previous installation of Beryl. |
Which package (and version) of Beryl installs that file? |
|
Back to top |
|
|
StephanX n00b
Joined: 29 Oct 2007 Posts: 19 Location: Germany
|
Posted: Tue Feb 12, 2008 7:47 am Post subject: |
|
|
Philantrop wrote: | StephanX wrote: | It says nothing about any previous installation of Beryl. |
Which package (and version) of Beryl installs that file? |
Sorry, but I have no clue.
Code: | equery belongs /etc/env.d/99kde-env | tells me nothing.
By searching this forum for 99kde-env, I figured that it might be possible that I created that file by myself. But I don't remember doing it |
|
Back to top |
|
|
sotiv n00b
Joined: 11 Feb 2008 Posts: 3
|
Posted: Tue Feb 12, 2008 8:43 am Post subject: |
|
|
StephanX wrote: |
By searching this forum for 99kde-env, I figured that it might be possible that I created that file by myself. But I don't remember doing it |
I am sure you have found it on
http://gentoo-wiki.com/HOWTO_compiz-fusion
Quote: |
Replace KDE's window manager on startup
If Compiz Fusion runs fine and you want to launch it instead of kwin (the standard window manager for KDE), you need to set the variable KDEWM to compiz and maybe COMPIZ_OPTIONS. The short way is to put exports for these variables into /etc/env.d/99kde-env and then run env-update to regenerate the profile. Keep in mind this affects all users on your system and makes switching between Compiz and kwin unhandy.
|
I am glad I could help you.
Sotiv |
|
Back to top |
|
|
|