You are not logged in.
Pages: 1
Hello everyone!
I'm relatively new to arch linux (and linux in general). I encountered a problem to which I cannot find the solution.
My problem is that X cannot auto start if I use mesa-libgl.
Why do I use mesa-libgl? Because I need bumblebee, without it I don't can't have awesome stuff like transparent windows. Anyway..
I installed bumblebee together with mesa-libgl and startx (I have this in my .bash_profile) couldn't run. It tried and crushed. The curious thing is that after it crush on login, I can run it normally !?!!
I should mention that I have no xorg.config.
I tried to generate one with nvidia-xconfig but it said that it couldn't find xorg-server package (even though it is installed). The xorg.config nvidia generated causes startx command to fail.
I thought that the problem may be that my laptop does not use nvidia driver; instead it uses intel. So I tried to run "nvidia-settings" but then a popup appeared that said I should run "nvidia-xconfig" first, which as I said, has problems.
To sum it all up:
- I don't have window transparency so I read I need bumblebee which needs mesa-libgl.
- X cannot autostart with mesa-libgl.
- nvidia-settings cannot run without nvidia-xconfig
- nvidia-xconfig cannot find xorg-server
I don't know where to begin to look for the problem. Please help me with any information you may thing is useful..
If you need any more info I'll be happy to provide them!
Last edited by TheCrafter (2015-11-04 10:25:49)
Offline
I have this in my .bash_profile
You have what in your bash_profile? Please show the contents of that file. If startx runs successfully from the tty but fails from bash_profile, there must be an error in how it was added to that file.
Also, when it fails to run from bash_profile, do you see evidence that it starts and crashes, or does it just not run? If it starts, what is the output? What are the error messages?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
TheCrafter wrote:I have this in my .bash_profile
You have what in your bash_profile? Please show the contents of that file. If startx runs successfully from the tty but fails from bash_profile, there must be an error in how it was added to that file.
Also, when it fails to run from bash_profile, do you see evidence that it starts and crashes, or does it just not run? If it starts, what is the output? What are the error messages?
Ok first of all, here is my .bash_profile:
[[ -f ~/.bashrc ]] && . ~/.bashrc
[[ -f ~/.profile ]] && . ~/.profile
# Autostart X
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- &> /dev/nullWhat happens:
When I enter my password, everything stops (I know that login takes a second or two but that's much longer. Like 5-6 seconds). Then without error message (because of "> /dev/null" probably) I return to tty1. Now comes the weird part. From there and after, everything I type on tty1 is invisible (like when you type a password..where the letters exist but are invisible). And even more weird is that if I use startx, it works!! It has some error messages that say that cannot find vesa and fbdev.
Of course, my card is not vesa so I tried to generate nvidia-xconfig and everything else I mentioned on my original post.
Offline
Turns out that if I change the last line of my .bash_profile to:
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx --everything works.
( http://i2.wp.com/memecollection.net/wp- … .jpg?w=900 ) xD
EDIT:
If I change it to this:
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx --It crashes again. And the only error message at log is:
xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)Last edited by TheCrafter (2015-11-03 18:49:42)
Offline
Do not background startx - it doesn't surprise me that this could be the source of many problems.
Also, if you are not passing arguments to Xorg, then you should not include the double dash "--" after startx.
It likely works in the tty but not from your bash profile because what you typed in the tty was not the same as what was in the bash profile. Just `startx`, or `exec startx` should work. Get rid of anything after that.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Do not background startx - it doesn't surprise me that this could be the source of many problems.
Why is that? I thought that if I don't startx in background, the .bash_profile will never exit so I will never get past login. Well, that's not the case apparently but why?
Offline
bash profile doesn't need to exit. If the profile is being executed, you are already past the login. If X isn't backgrounded, you will not get "past X" until you exit X, but that is what is desired.
But backgrounding X *will* cause problems.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
bash profile doesn't need to exit. If the profile is being executed, you are already past the login. If X isn't backgrounded, you will not get "past X" until you exit X, but that is what is desired.
But backgrounding X *will* cause problems.
Okay thanks! I guess I'll go read some more about how bash_profile works and maybe some popular errors caused by "backgrounding X"!
Thanks for your replies!
Offline
Don't forget to mark the thread as solved when it is. ![]()
Offline
Pages: 1