You are not logged in.

#1 2020-11-11 21:58:05

antarchtic
Member
Registered: 2020-11-11
Posts: 15

[SOLVED] Can't back to console session after startx (broken session)

After staring i3 I can't switch between TTYs (Ctrl+Alt-Fx), I just get black screen and monitor goes to sleep mode, I can only back to TTY of init session and it works. But, problem so much bigger then just switching sessions: I can't to configure system-logind to suspend or poweroff without, root permissions... I know that I can use sudoers, but that is not all:

loginctl show-session $XDG_SESSION_ID

shows that session is inactive, and when I try to activate it with

loginctl activate $XDG_SESSION_ID

... - what do you think? - Yes, black screen and monitor goes to sleep, but after this I can't back to session or any TTY, all that remains is reboot.
I think these things are closely related.

Last edited by antarchtic (2020-11-12 15:04:19)

Offline

#2 2020-11-11 22:25:08

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: [SOLVED] Can't back to console session after startx (broken session)

Do you use xinit/startx?
See the last link in my signature, notably the second blue note …

But I'm not sure this is related to the black TTY.

Online

#3 2020-11-11 22:46:50

antarchtic
Member
Registered: 2020-11-11
Posts: 15

Re: [SOLVED] Can't back to console session after startx (broken session)

seth wrote:

Do you use xinit/startx?
See the last link in my signature, notably the second blue note …

But I'm not sure this is related to the black TTY.

bashrc and xinit configured correctly, all copied from /etc (syswide) to home, all init command works fine. This is a very interesting problem smile

Offline

#4 2020-11-11 22:59:53

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: [SOLVED] Can't back to console session after startx (broken session)

loginctl list-sessions
loginctl session-status
echo $XDG_SESSION_ID

Online

#5 2020-11-11 23:02:45

antarchtic
Member
Registered: 2020-11-11
Posts: 15

Re: [SOLVED] Can't back to console session after startx (broken session)

seth wrote:

Do you use xinit/startx?
See the last link in my signature, notably the second blue note …

But I'm not sure this is related to the black TTY.

I solve problem with wrong session TTY, by setting init force to specific TTY number. Thanks for that!
But other problems therefore remain unresolved: other TTY = black screen and turned off monitor, and

# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock -- $SCRIPT_DIR/suspend-locker.sh

xxs-lock can't grab event to lock screen when system goes to sleep etc.

Offline

#6 2020-11-12 06:42:42

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: [SOLVED] Can't back to console session after startx (broken session)

by setting init force to specific TTY number

You  mean you did https://wiki.archlinux.org/index.php/Xinit#xserverrc ?

Please actually post your
- xinitrc
- xserverrc
- bashrc
And outputs of
- loginctl list-sessions
- loginctl session-status
- echo $XDG_SESSION_ID

Also your xorg log so that we can get an oversight on the status of the system.

Online

#7 2020-11-12 09:23:27

antarchtic
Member
Registered: 2020-11-11
Posts: 15

Re: [SOLVED] Can't back to console session after startx (broken session)

seth wrote:

by setting init force to specific TTY number

You  mean you did https://wiki.archlinux.org/index.php/Xinit#xserverrc ?

Please actually post your
- xinitrc
- xserverrc
- bashrc
And outputs of
- loginctl list-sessions
- loginctl session-status
- echo $XDG_SESSION_ID

Also your xorg log so that we can get an oversight on the status of the system.

No, no i didn't copy xserverrc, global /etc used

Configs and logs:

~/.xinitrc

: http://sprunge.us/IeZbS4

/etc/X11/xinit/xserverrc

: http://sprunge.us/kCHhgP

~/.bashrc

: http://sprunge.us/1HwLJB

loginctl list-sessions

: http://sprunge.us/KIOa2n

loginctl session-status --no-pager

: http://sprunge.us/QcUE0x

$XDG_SESSION_ID equals to 1

I try to lock session

loginctl lock-session

and switch to other TTY, before copying log.
http://sprunge.us/Gogbe9

Last edited by antarchtic (2020-11-12 09:24:27)

Offline

#8 2020-11-12 13:11:46

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: [SOLVED] Can't back to console session after startx (broken session)

xss-lock isn't running?

The black screen is probably related to the framebuffer control and maybe nvidia.
Try using xinit intead of startx and alter the xserverrc as described in the wiki.

Online

#9 2020-11-12 14:37:38

antarchtic
Member
Registered: 2020-11-11
Posts: 15

Re: [SOLVED] Can't back to console session after startx (broken session)

[quote = seth] xss-lock isn't running?

The black screen is probably related to the framebuffer control and maybe nvidia.
Try using xinit intead of startx and alter the xserverrc as described in the wiki. [/ Quote]

Sorry, I didn't even check, xss-lock was not installed big_smile

I filled in .xserverrc and switched to xinit, situation with terminals are same.

Incorrect login session id - solved
Automatic lock on suspend - solved
One Issue left:  can't back to console session or switch to other TTY without reboot.

I'll try to run ready-made distributions and see the configurations...

Thank you for help.

Last edited by antarchtic (2020-11-12 14:38:04)

Offline

#10 2020-11-12 14:45:29

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: [SOLVED] Can't back to console session after startx (broken session)

If you're using grub, you can try https://wiki.archlinux.org/index.php/GR … ramebuffer
Framebuffer consoles are (were?) not officially supported by the nvidia blob.

You can also try whether https://wiki.archlinux.org/index.php/NV … de_setting does anything.

Online

#11 2020-11-12 15:00:48

antarchtic
Member
Registered: 2020-11-11
Posts: 15

Re: [SOLVED] Can't back to console session after startx (broken session)

seth wrote:

If you're using grub, you can try https://wiki.archlinux.org/index.php/GR … ramebuffer
Framebuffer consoles are (were?) not officially supported by the nvidia blob.

You can also try whether https://wiki.archlinux.org/index.php/NV … de_setting does anything.

Framebuffer disabled and... TTY switching works. THANK YOU VERY MUTCH,
I wouldn't to be able to identify the problem with a simple internet search. I searched a lot, but nobody said anything about framebuffer.

SOLVED.

Last edited by antarchtic (2020-11-12 15:01:24)

Offline

Board footer

Powered by FluxBB