| View previous topic :: View next topic |
| Author |
Message |
aramis_qc Tux's lil' helper

Joined: 24 Sep 2006 Posts: 97 Location: Québec - Canada
|
Posted: Thu May 03, 2012 11:38 am Post subject: [SOLVED] Xfce4 4.10 desktop - Strange behavior |
|
|
From times to times desktop does not show up after entering startx. When it happens, I switch to console mode as root and typing starts brings up twm.
Where can I look at in order to know about ? _________________ Profil et systèmes
Last edited by aramis_qc on Fri May 04, 2012 12:11 am; edited 1 time in total |
|
| Back to top |
|
 |
ultraincognito Guru


Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Thu May 03, 2012 1:25 pm Post subject: |
|
|
But what does show up? Nothing or the X.org server without the Xfce desktop?
If nothing then maybe you press the "Enter" key too long. At least I had so. |
|
| Back to top |
|
 |
aramis_qc Tux's lil' helper

Joined: 24 Sep 2006 Posts: 97 Location: Québec - Canada
|
Posted: Thu May 03, 2012 11:24 pm Post subject: |
|
|
Nothing at all... blank screen.
I'm gonna check what happens when holding Enter for a short time. _________________ Profil et systèmes |
|
| Back to top |
|
 |
aramis_qc Tux's lil' helper

Joined: 24 Sep 2006 Posts: 97 Location: Québec - Canada
|
Posted: Fri May 04, 2012 12:10 am Post subject: |
|
|
Indeed, holding Enter key for a moment leads to a blank screen. Really strange. Anyway I consider everything fixed. _________________ Profil et systèmes |
|
| Back to top |
|
 |
ultraincognito Guru


Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Fri May 04, 2012 5:50 am Post subject: |
|
|
| It happens because the Xfce during the starting prints the some text. And holding the "Enter" you execute a portion of this text. But the X.org server considers this text is invalid commands. |
|
| Back to top |
|
 |
i92guboj Moderator


Joined: 30 Nov 2004 Posts: 9476 Location: Córdoba (Spain)
|
Posted: Fri May 04, 2012 6:32 am Post subject: |
|
|
| aramis_qc wrote: | From times to times desktop does not show up after entering startx. When it happens, I switch to console mode as root and typing starts brings up twm.
Where can I look at in order to know about ? |
After re-reading this, I guess you mean "startx".
That's expected behavior, since twm is the default session when nothing else has been configured in your ~/.xinitrc, and you usually don't configure a desktop environment for root (really, you shouldn't anyway).
About the "enter" key theory... well, the X server is not an interactive shell or something like that. It doesn't read commands, and it doesn't react to any key but for ctrl-alt-backspace and little more (and only if configured to do so).
If the problem persists or comes back, we will need more than a bit of voodoo to find what the problem is. When you run "startx", the contents of ~/.xinitrc is sourced and run, so that's the first place to look into. Other than that, the next places are the X log file and ~/.xsession-errors. You could also redirect the errors from your session to any given file using redirection in ~/.xinitrc like this.
| Code: | | xfce4-session >$HOME/xfce.log 2>&1 |
Beware that I don't remember what the name of the xfce4 session script is, it's just an example to show you how to do the redirection. _________________ Gentoo Handbook | My website |
|
| Back to top |
|
 |
ultraincognito Guru


Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Fri May 04, 2012 7:03 am Post subject: |
|
|
| i92guboj wrote: | | About the "enter" key theory... well, the X server is not an interactive shell or something like that. |
If not the X.org then it's something other. But this "something" doesn't like that commands at that moment. I saw it complained.
| i92guboj wrote: | | When you run "startx", the contents of ~/.xinitrc is sourced and run, so that's the first place to look into. |
I haven't any .xinitrc.
| i92guboj wrote: | | That's expected behavior, since twm is the default session |
But I run the Xfce with the "startxfce4" command. |
|
| Back to top |
|
 |
i92guboj Moderator


Joined: 30 Nov 2004 Posts: 9476 Location: Córdoba (Spain)
|
Posted: Fri May 04, 2012 9:31 am Post subject: |
|
|
| ultraincognito wrote: | | i92guboj wrote: | | About the "enter" key theory... well, the X server is not an interactive shell or something like that. |
If not the X.org then it's something other. But this "something" doesn't like that commands at that moment. I saw it complained.
| i92guboj wrote: | | When you run "startx", the contents of ~/.xinitrc is sourced and run, so that's the first place to look into. |
I haven't any .xinitrc.
| i92guboj wrote: | | That's expected behavior, since twm is the default session |
But I run the Xfce with the "startxfce4" command. |
Then you are not using "startx" as the original poster. I just emerged xfce4-session and it seems that the startxfce4 script checks for an X session and launches it if there isn't one running in the current display, this is the relevant snippet from startxfce4:
| Code: | if test "x$DISPLAY" = "x"
then
echo "$0: Starting X server"
prog=xinit
else
echo "$0: X server already running on display $DISPLAY"
prog=/bin/sh
fi
|
In any case, if this script really pauses for some reason it could be because a bug in the session script. But that script refers to a number of other files, which could also be responsible for this, like the various xinitrc files referenced in startxfce4. _________________ Gentoo Handbook | My website |
|
| Back to top |
|
 |
ultraincognito Guru


Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Fri May 04, 2012 10:06 am Post subject: |
|
|
| i92guboj wrote: | | Then you are not using "startx" as the original poster. |
But the result is same in the both cases. I've checked it now.
| Code: | to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat May 5 13:02:08 2012
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) Failed to load module "dri" (module does not exist, 0)
(EE) Failed to load module "dri2" (module does not exist, 0)
(EE) NVIDIA: Failed to load module "dri2" (module does not exist, 0)
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Error: Couldn't lookup keysym
> Symbol interpretation ignored
> Error: Couldn't lookup keysym
> Symbol interpretation ignored
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Error: Couldn't lookup keysym
> Symbol interpretation ignored
> Error: Couldn't lookup keysym
> Symbol interpretation ignored
Errors from xkbcomp are not fatal to the X server |
|
|
| Back to top |
|
 |
i92guboj Moderator


Joined: 30 Nov 2004 Posts: 9476 Location: Córdoba (Spain)
|
Posted: Fri May 04, 2012 10:15 am Post subject: |
|
|
That output is from the X server while starting and there's nothing wrong with it. It's the same output in both cases because the xfce script launches the X session if it doesn't find a valid display to hook into. The most interesting part would be the log for the xfce session, which you might have some luck capturing if you use the command I posted above (using the right script name, of course) to dump all the xfce output to a file.
But, anyway, now it's working, isn't it? Or do you still have to press Enter or something like that for it to work? _________________ Gentoo Handbook | My website |
|
| Back to top |
|
 |
ultraincognito Guru


Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Fri May 04, 2012 11:14 am Post subject: |
|
|
| i92guboj wrote: |
| Code: | | xfce4-session >$HOME/xfce.log 2>&1 |
|
But the Xfce is started with the "startxfce4" command.
I did so:
| Code: | | startxfce4 >$HOME/xfce.log 2>&1 |
But this log contains the same that I wrote in my previous post and nomore.
| i92guboj wrote: | | That output is from the X server while starting and there's nothing wrong with it. |
It's true.
Also I want say this cause for me isn't a problem. It may happen only if I keep the "Enter" too long. Furthermore not always.
If I run the Xfce so:
| Code: | | sleep 1 && startxfce4 |
Chances to get a black screen greatly increase. |
|
| Back to top |
|
 |
aramis_qc Tux's lil' helper

Joined: 24 Sep 2006 Posts: 97 Location: Québec - Canada
|
Posted: Fri May 04, 2012 11:46 am Post subject: |
|
|
I haven't used a session manager such like GDM or the likes for long. My .xinitrc reads like this :
| Code: |
#! /bin/bash
exec ck-launch-session startxfce4 |
What I'm describing in the original post had happened since Xfce4 4.10 has been installed. Never before. _________________ Profil et systèmes |
|
| Back to top |
|
 |
i92guboj Moderator


Joined: 30 Nov 2004 Posts: 9476 Location: Córdoba (Spain)
|
Posted: Fri May 04, 2012 12:18 pm Post subject: |
|
|
| ultraincognito wrote: | | i92guboj wrote: |
| Code: | | xfce4-session >$HOME/xfce.log 2>&1 |
|
But the Xfce is started with the "startxfce4" command.
I did so:
| Code: | | startxfce4 >$HOME/xfce.log 2>&1 |
But this log contains the same that I wrote in my previous post and nomore.
| i92guboj wrote: | | That output is from the X server while starting and there's nothing wrong with it. |
It's true.
|
Yes, I wasn't sure what the command was when I wrote that first post. I emerged the session package later to take a look into that script just to confirm that it was able to do the job for itself if you don't use startx.
The fact that it doesn't output anything to the log file doesn't help much, but some things you could do, just to discard 3rd party issues, are:
- remove temporarily ~/.config/autostart/, maybe it's something there which is causing the problem
- remove temporarily ~/.config/xfce4, and/or try a new clean user account and see if the problem also happens there, I had problems in the past about xfce4 not being able to handle correctly old config versions when updating.
- change the first line in /usr/bin/startxfce4 by "#!/bin/bash -x", that will give you a verbose output about everything that happens in that script, unfortunately the scope of that is limited to what happens in the script and I am not sure the problem happens at that stage at all
_________________ Gentoo Handbook | My website |
|
| Back to top |
|
 |
i92guboj Moderator


Joined: 30 Nov 2004 Posts: 9476 Location: Córdoba (Spain)
|
Posted: Fri May 04, 2012 12:21 pm Post subject: |
|
|
| aramis_qc wrote: | I haven't used a session manager such like GDM or the likes for long. My .xinitrc reads like this :
| Code: |
#! /bin/bash
exec ck-launch-session startxfce4 |
What I'm describing in the original post had happened since Xfce4 4.10 has been installed. Never before. |
So, did you try a new user account, or temporarily moving out of scope the config files for xfce4? Also, I don't think that the ck-launch-session stuff is needed any longer, but in any case, the script can handle that for itself now, so maybe you should be using that instead:
| Code: | $ startxfce4 --help
Usage:
startxfce4 [OPTIONS...]
Options:
--help Show help options
--with-ck-launch Start xfce4-session inside a
ConsoleKit session
|
_________________ Gentoo Handbook | My website |
|
| Back to top |
|
 |
ultraincognito Guru


Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Fri May 04, 2012 12:30 pm Post subject: |
|
|
| i92guboj wrote: | change the first line in /usr/bin/startxfce4 by "#!/bin/bash -x", that will give you a verbose output about everything that happens in that script, unfortunately the scope of that is limited to what happens in the script and I am not sure the problem happens at that stage at all |
No, this problem isn't related with the Xfce. With TWM I have ditto. |
|
| Back to top |
|
 |
|