You are not logged in.

#1 2016-06-28 20:06:30

arthurg
Member
Registered: 2015-09-05
Posts: 23

[Solved] Problem when logging in

So, when I get to the log in screen (lightdm) and put my password, the systems seems to log in and then returns back to the log in screen.
To try to solve the problem I've logged in on terminal mode (alt+ctrl f3) and looked for the problem. i went to see the Xorg log files and it said the following error:

Cannot open /dev/tty0 (No such file or directory)

I have read some threads on the internet and they said to add 2 lines to /etc/X11/Xwrapper.config, but I dont''t seem to have that file on my system.

The tty0 file does exist.

What should I do?


PS: the two lines to add to Xwrapper were:

allowed_users=anybody
need_root_rights=yes
 

EDIT: I also tried to run startx but all it gives me is a reaally low quality graphic terminal

Last edited by arthurg (2016-06-29 01:36:37)

Offline

#2 2016-06-28 20:13:08

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [Solved] Problem when logging in

arthurg wrote:

EDIT: I also tried to run startx but all it gives me is a reaally low quality graphic terminal

With three terminal windows and a clock?

i [sic] went to see the Xorg log files and it said the following error:

How did you go to see it?  Is the error message from that attempt, or was that an error some place in the Xorg log ?
What we want to find out is whether Xorg exited with an error, or if the session just ended and it terminated normally.

Last edited by ewaller (2016-06-28 20:13:29)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2016-06-28 20:18:50

arthurg
Member
Registered: 2015-09-05
Posts: 23

Re: [Solved] Problem when logging in

YES! With three terminals and a clock.

I think that message from the log file was there after I tried to run X on the terminal (without sudo). The first time I read the log files, it said the server was terminated normally.

Last edited by arthurg (2016-06-28 20:19:03)

Offline

#4 2016-06-28 20:44:52

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [Solved] Problem when logging in

Okay, that is twm, a very simple Window Manager that is the default on Arch if you run startx without custom configuration.

The good news is that it looks like X is working just fine. 
Which greeter did you install?  What window manager (or desktop environment) are you trying to launch?

Last edited by ewaller (2016-06-28 20:45:04)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2016-06-28 20:52:45

arthurg
Member
Registered: 2015-09-05
Posts: 23

Re: [Solved] Problem when logging in

I have gnome installed.The funny thing is I left my laptop on during the morning, it was working fine, and I left it idle.
When I came back to use it, it started giving this bug.

And the greeter I have is lightdm

Last edited by arthurg (2016-06-28 20:53:49)

Offline

#6 2016-06-28 21:17:52

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [Solved] Problem when logging in

can you login to any other session than gnome from lightdm?
if the problem persists only with gnome, there should probably be some clues in journal resulting from this.

Offline

#7 2016-06-28 21:36:30

arthurg
Member
Registered: 2015-09-05
Posts: 23

Re: [Solved] Problem when logging in

Ok, so I did what ooo said and now i'm posting this reply from my arch big_smile
I basically had 3 options to choose from, Gnome (the default and the one which is still bugged), Gnome classic and Gnome in Wayland (the one I'm in).


EDIT: If gnome was the problem, I shouldn't be able to use this option I chose from, should I? Kinda confused right now

Last edited by arthurg (2016-06-28 21:39:31)

Offline

#8 2016-06-28 22:42:50

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [Solved] Problem when logging in

does gnome classic session work?
you could also install some minimal WM (e.g. openbox) to see if any X session fails, or just gnome.

In any case you should check systemd journal for errors when the login fails

Offline

#9 2016-06-28 22:50:21

arthurg
Member
Registered: 2015-09-05
Posts: 23

Re: [Solved] Problem when logging in

Will do so, thanks for helping.
As soon as I get anything interesting I'll post here for further info hehe

Offline

#10 2016-06-29 01:36:10

arthurg
Member
Registered: 2015-09-05
Posts: 23

Re: [Solved] Problem when logging in

Fixed it.
After going through the journal, I saw that for some reason I had a line in .profile to execute the torch framework, which I uninstalled before logging out.
Because the path did not exist anymore, the xsession would fail to begin and thus I would get stuck on the log in screen. I just needed to take out that line.

Thanks to everyone who helped me through this. Marking it as solved.

Offline

Board footer

Powered by FluxBB