You are not logged in.

#1 2015-06-25 01:57:55

kureijienjeru666
Member
Registered: 2015-06-25
Posts: 5

[SOLVED] Can't log out GNOME 3.16.2

I have enabled autologin to virtual console and X also starts on login. Every time, when I try to log out, GNOME just relog to my account. With enabled GDM i can log out, but system hangs at previous cosnole output (boot log). What am I doing wrong?
[Sorry for my English, it isn't my native language (:]

Last edited by kureijienjeru666 (2015-06-26 17:01:16)

Offline

#2 2015-06-25 02:12:19

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

Re: [SOLVED] Can't log out GNOME 3.16.2

How are you starting Gnome?  A Login script?


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 2015-06-25 18:26:44

kureijienjeru666
Member
Registered: 2015-06-25
Posts: 5

Re: [SOLVED] Can't log out GNOME 3.16.2

Yes, .xinitrc script.

[kureijienjeru666@ASUS-ROG ~]$ cat .xinitrc
exec gnome-session
[kureijienjeru666@ASUS-ROG ~]$ cat .bash_profile
#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
[kureijienjeru666@ASUS-ROG ~]$ cat /etc/systemd/system/getty@tty1.service.d/override.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin kureijienjeru666 --noclear %I 38400 linux

That is all I have.

Last edited by kureijienjeru666 (2015-06-25 18:27:17)

Offline

#4 2015-06-25 20:33:51

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

Re: [SOLVED] Can't log out GNOME 3.16.2

In your bash profile, remove the exec from in front of startx
It replaces the running process with the execed process.  In essence, the bash process vanishes and an X process takes its place.   When X exits, you log out.
by just invoking startx, it runs X as a subprocess with the bash process as its parent.  When X exits, you will then drop back to the bash shell.


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 2015-06-25 22:53:43

kureijienjeru666
Member
Registered: 2015-06-25
Posts: 5

Re: [SOLVED] Can't log out GNOME 3.16.2

Thank you! Now all is well.

Offline

#6 2015-06-28 13:37:23

Rickrock
Member
From: The Netherlands
Registered: 2014-11-23
Posts: 46

Re: [SOLVED] Can't log out GNOME 3.16.2

I have a similar problem, I'm using GDM and the shell is set to auto-login.
When I'm trying to log out, the display manager doesn't show up, but it hangs with the boot log.

Is this normal behaviour while using auto login?

Offline

#7 2015-06-29 11:17:08

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 713

Re: [SOLVED] Can't log out GNOME 3.16.2

@rickrock, see this bug https://bugs.archlinux.org/44587. In particular, my comment there.

Offline

#8 2015-06-29 12:22:56

Rickrock
Member
From: The Netherlands
Registered: 2014-11-23
Posts: 46

Re: [SOLVED] Can't log out GNOME 3.16.2

Thanks Mark, I've disabled auto login now and am able to log out, so be it.

Offline

Board footer

Powered by FluxBB