You are not logged in.

#1 2018-07-11 20:24:22

Soveu
Member
Registered: 2018-07-05
Posts: 3

Poweroff + xinit = freeze

Hi,
When I try to shutdown the system, it kills the Xorg server before xinit, so xinit thinks it is still running and tries to kill, which ends in "X server refuses to die" printed in linux terminal and the computer freezes (can't even use keyboard). The temporary solution I found is

alias poweroff="pkill -9 Xorg & poweroff"

but this doesnt always work, chances are lower if there are more programs open. Manually killing xinit doesnt work, because of the xinit autostart script in my .bash_profile, which returns desktop back when I try to enter terminal

Hardware:
ThinkPad T420
SSD drive - btrfs root and ext4 home partition
xf86-video-intel, tp_smapi, tpacpi-bat, acpi, acpi_call, intel-ucode, grub-silent installed

Offline

#2 2018-07-11 21:34:48

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: Poweroff + xinit = freeze

please post your ~/.xinitrc

Offline

#3 2018-07-12 06:01:50

Soveu
Member
Registered: 2018-07-05
Posts: 3

Re: Poweroff + xinit = freeze

~/.xinitrc

#!/bin/bash

setxkbmap pl

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

[[ -f $sysresources ]] && xrdb -merge $sysresources
[[ -f $sysmodmap ]] && xmodmap $sysmodmap
[[ -f "$userresources" ]] && xrdb -merge "$userresources"
[[ -f "$usermodmap" ]] && xmodmap "$usermodmap"

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
	for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
		[ -x "$f" ] && . "$f"
	done
	unset f
fi	


exec i3

Offline

#4 2018-07-12 06:36:03

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: Poweroff + xinit = freeze

No, that's fine.
What if you comment the xinit autostart script in your .bash_profile?

Edit: for clarification, start out of a shell w/o that profile elements.

Last edited by seth (2018-07-12 06:36:55)

Offline

#5 2018-07-12 18:33:27

Soveu
Member
Registered: 2018-07-05
Posts: 3

Re: Poweroff + xinit = freeze

Changed .bash_profile and did some restarting xinit
Observations - when xinit fails to connect to Xorg it throws me after a while to terminal and when I try startx it connects to Xorg very long, x server initial message is displayed and again computer locks. Also I noticed the more windows I have opened during current session, the more likely is Xorg/xinit going to freeze my laptop.

Offline

#6 2018-07-12 20:03:16

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: Poweroff + xinit = freeze

some restarting xinit

Xorg/xinit going to freeze my laptop

?

So this problem isn't limited to shutdowns?
Just terminating/restarting the X11 server causes freezes (at some point)?

Try to remove xf86-video-intel (ie. use the modesetting driver) and if that doesn't change things, when

it throws me after a while to terminal

dump a dmeg and the last xorg log, see https://wiki.archlinux.org/index.php/Li … in_clients on how to paste w/o a GUI browser.

Offline

Board footer

Powered by FluxBB