You are not logged in.

#1 2013-06-17 17:24:05

jl2014
Member
Registered: 2013-06-17
Posts: 14

WM installation problem

Hi everyone,

I met a strange problem with installing window managers onto my old desktop. I've followed the beginners' guide from the wiki. Everything works fine at first. The startx works fine and the x-windows is normal. I then tried to install openbox. Following the instructions from the wiki and also copied .xinitrc to ~, I added 'exec openbox-session' to the end.

Enter 'startx', the openbox worked well. After I reboot, then 'startx' won't work any more, the screen turned to black with just a mouse cursor. The mouse can move, but nothing else can be done.

If I remove the .xinitrc, then 'startx' works fine with the default x-windows again.
If I repeat the above and cp the .xinitrc, then everything again works fine if I do not restart the arch box.

This seems very strange. The whole thing works very smoothly on my other desktop which is relatively newer.

Any help will be appreciated. Thanks in advance!

Offline

#2 2013-06-17 17:39:14

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: WM installation problem

Please post your ".xinitrc" file.

What happens if you:

  1. Install your ".xinitrc" file

  2. Reboot

  3. "startx" (and see the black screen)

  4. Exit X

  5. "startx" (again)?

Also, do you experience a different behaviour if you use Fluxbox instead of Openbox?

Also also, what video card and driver are you using?

Last edited by drcouzelis (2013-06-17 17:40:42)

Offline

#3 2013-06-17 18:10:19

jl2014
Member
Registered: 2013-06-17
Posts: 14

Re: WM installation problem

Hi,

Thanks for the reply. I will post more details when I get back home. Here is what I remember:

------
Please post your ".xinitrc" file.

: The .xinitrc is the same one I copied from /etc/skel/.xinitrc. I only appended one more line "exec openbox-session".
------
What happens if you:
Install your ".xinitrc" file
Reboot
"startx" (and see the black screen)

: Yes, I will only see the black screen with just a mouse cursor.

Exit X

: I have to use 'pkill X' in another tty to force out X.

"startx" (again)?
------

Also, do you experience a different behaviour if you use Fluxbox instead of Openbox?

: I will try Fluxbox when I get back home later. But I have tried awesome and it was the same behaviour.

------
Also also, what video card and driver are you using?

: I have a Dell dimension 2400 which is almost 10 years old. The video card is from intel and I installed the open driver for intel from Arch.


------


Thanks!

Offline

#4 2013-06-17 19:01:12

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: WM installation problem

Boy, I'm stumped! I keep thinking about your problem but I can't imagine what the reason might be.

jl2014 wrote:

I will try Fluxbox when I get back home later. But I have tried awesome and it was the same behaviour.

That's OK, if Openbox and Awesome don't work then Fluxbox probably won't work.

...Here's something else to try. I think the default X window manager is called twm. If you put "exec twm" in your ".xinitrc" file does everything work correctly?

Oooh, another thing to test: Use an EMPTY ".xinitrc" file that ONLY has "exec openbox-session" in it. Maybe something else in the ".xinitrc" file is causing a problem.

Offline

#5 2013-06-18 01:47:59

jl2014
Member
Registered: 2013-06-17
Posts: 14

Re: WM installation problem

It is really strange.

If I simply delete .xinitrc, then the default X-window works fine.
If I create a .xinitrc in ~, which contains just one line "exec openbox-session", and then 'startx', the openbox works fine. After quit openbox, it can be called up well as far as I do not reboot.

However, once I reboot the PC, startx will not function properly.

If I delete .xinitrc and repeat the above, everything will repeat as before.

I wonder once the PC is restarted, some enverionment variables will be changed which will cause the problem?

Offline

#6 2013-06-18 02:17:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,550
Website

Re: WM installation problem

Try `exec openbox` rather than openbox-session.  This will start openbox, just without it's startup scripts.  If this works, then you know the problem is in those scripts.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2013-06-18 02:35:00

jl2014
Member
Registered: 2013-06-17
Posts: 14

Re: WM installation problem

Hi,

Thanks for the help. I tried it 'exec openbox'. The same behaviour happened again.

Openbox will run nicely for the first time. Once I reboot it, startx will not work any more.

This has to be something related to the reboot.

To make it work, I have to :

1. delete .xinitrc then run the bare startx for the first time.
2. install .xinitrc then startx works perfectly (I've tried openbox, awesome, twm).

But I cannot reboot!!

My guess :

I have to runt the bare startx initially to load some modules; then startx can start .xinitrc later. After reboot, directly using ' startx + .xinitrc ' will not work due to lack of some modules ??

Offline

#8 2013-06-18 02:52:46

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: WM installation problem

drcouzelis wrote:

Use an EMPTY ".xinitrc" file that ONLY has "exec openbox-session" in it.

Did you try my suggestion? What happened?

Offline

#9 2013-06-18 03:00:13

jl2014
Member
Registered: 2013-06-17
Posts: 14

Re: WM installation problem

Hi,

I did try it.

Here was my previous post regarding your suggestions.

"
If I simply delete .xinitrc, then the default X-window works fine.
If I create a .xinitrc in ~, which contains just one line "exec openbox-session", and then 'startx', the openbox works fine. After quit openbox, it can be called up well as far as I do not reboot.

However, once I reboot the PC, startx will not function properly.

If I delete .xinitrc and repeat the above, everything will repeat as before.
"

Offline

#10 2013-06-18 03:13:57

jl2014
Member
Registered: 2013-06-17
Posts: 14

Re: WM installation problem

Here is a more detailed history of the problem.

Yesterday, this was what happened :

1. after installing 'xorg', the first time I used startx without any '.xinitrc' file it worked well.
2. I then tried to install 'openbox' and appended one line 'exec openbox-session' at the end of '.xinitrc'. The openbox worked very well too.
3. After reboot the PC, startx won't work any more. It will be terminated and give error messages.
4. There are three (EE) which says that 'Failed to load modesetting', 'fbdev', and another module.

What I did was install the missing modules respectively first. Then there will no more (EE) but the screen is black with just a mouse cursor which can move but nothing else.

If I do,

1. startx + no .xinitrc => add .xinitrc => startx,

then everything works fine.

Once I reboot,
2. startx + .initrc
will fail.

My other guess is ,
this might also be related to the video drivers.
1. 'startx + no .xinitrc' calls the correct modules. Once it is called, 'startx + .xinitrc' will also work since the modules are in place??
2. After reboot 'startx + .xinitrc' does not know where to call the modules, so it fails?

Offline

Board footer

Powered by FluxBB