Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] kde4: no keyboard and no window decoration
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
StephanX
n00b
n00b


Joined: 29 Oct 2007
Posts: 19
Location: Germany

PostPosted: Wed Jan 23, 2008 9:58 pm    Post subject: [SOLVED] kde4: no keyboard and no window decoration Reply with quote

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
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Thu Jan 24, 2008 12:41 am    Post subject: Reply with quote

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
View user's profile Send private message
StephanX
n00b
n00b


Joined: 29 Oct 2007
Posts: 19
Location: Germany

PostPosted: Thu Jan 24, 2008 8:53 am    Post subject: Reply with quote

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
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Thu Jan 24, 2008 11:22 am    Post subject: Reply with quote

*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
View user's profile Send private message
StephanX
n00b
n00b


Joined: 29 Oct 2007
Posts: 19
Location: Germany

PostPosted: Fri Jan 25, 2008 10:12 am    Post subject: Reply with quote

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
View user's profile Send private message
StephanX
n00b
n00b


Joined: 29 Oct 2007
Posts: 19
Location: Germany

PostPosted: Tue Jan 29, 2008 11:33 am    Post subject: Reply with quote

Anybody?
Back to top
View user's profile Send private message
henu
n00b
n00b


Joined: 10 Jan 2007
Posts: 1
Location: Tampere, Finland

PostPosted: Sun Feb 03, 2008 12:17 pm    Post subject: Problems with KDE3.5 Reply with quote

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
View user's profile Send private message
StephanX
n00b
n00b


Joined: 29 Oct 2007
Posts: 19
Location: Germany

PostPosted: Thu Feb 07, 2008 7:06 pm    Post subject: Reply with quote

@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
View user's profile Send private message
wormie
n00b
n00b


Joined: 24 Aug 2002
Posts: 36

PostPosted: Fri Feb 08, 2008 4:25 am    Post subject: Reply with quote

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
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Fri Feb 08, 2008 4:40 am    Post subject: Reply with quote

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
View user's profile Send private message
StephanX
n00b
n00b


Joined: 29 Oct 2007
Posts: 19
Location: Germany

PostPosted: Fri Feb 08, 2008 5:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Adasss
n00b
n00b


Joined: 19 Mar 2005
Posts: 16

PostPosted: Mon Feb 11, 2008 9:17 am    Post subject: Reply with quote

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:

Code:
exec startkde



and also /etc/conf.d/xdm contains line:
Code:
DISPLAYMANAGER="kdm-4.0"
Back to top
View user's profile Send private message
sotiv
n00b
n00b


Joined: 11 Feb 2008
Posts: 3

PostPosted: Mon Feb 11, 2008 3:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
wormie
n00b
n00b


Joined: 24 Aug 2002
Posts: 36

PostPosted: Mon Feb 11, 2008 7:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
StephanX
n00b
n00b


Joined: 29 Oct 2007
Posts: 19
Location: Germany

PostPosted: Mon Feb 11, 2008 9:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Mon Feb 11, 2008 11:16 pm    Post subject: Reply with quote

StephanX wrote:
It says nothing about any previous installation of Beryl.


Which package (and version) of Beryl installs that file?
Back to top
View user's profile Send private message
StephanX
n00b
n00b


Joined: 29 Oct 2007
Posts: 19
Location: Germany

PostPosted: Tue Feb 12, 2008 7:47 am    Post subject: Reply with quote

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
View user's profile Send private message
sotiv
n00b
n00b


Joined: 11 Feb 2008
Posts: 3

PostPosted: Tue Feb 12, 2008 8:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum