You are not logged in.

#1 2016-04-16 11:05:01

xiliyi
Member
Registered: 2011-05-14
Posts: 57

black screen after shutting down X / xmonad

Hi forums

Starting xmonad works flawlessly, and everything within it as well. But most of the time when I shut down xmonad with Mod+Shift+Q, where I should get back to console, I get a black screen instead. stdin still works, as I can sudo shutdown -h now.
I haven’t changed my xmonad configuration in a long time, maybe it’s deprecated? I didn’t find anything too suspicious in ~/.local/share/xorg/Xorg.0.log, but I’ll attach it anyway: http://pastebin.com/kVsVGX9Z
This problem started a couple of months ago, like half a year or so. Any ideas what this might be?

Thanks

Offline

#2 2016-04-16 23:17:06

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: black screen after shutting down X / xmonad

How are you starting your X session?

Please post all relevant configuration files.

Offline

#3 2016-04-17 06:00:47

xiliyi
Member
Registered: 2011-05-14
Posts: 57

Re: black screen after shutting down X / xmonad

I’m starting the session using startx. This is my configuration:

.xsession

#!/bin/sh
#
# ~/.xsession
#
# Executed by xdm/gdm/kdm at login
#
xrdb -merge .Xresources
/bin/bash --login -i ~/.xinitrc

.xinitrc

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
setxkbmap -layout de -variant neo
eval `dbus-launch --sh-syntax --exit-with-session`

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

xrandr --output LVDS1 --mode 1280x800
#xrandr --output LVDS1 --mode 1280x800 --pos 0x0 --output VGA1 --mode 1280x1024 --pos 1280x0 --rate 60

[ -f /etc/xprofile ] && . /etc/xprofile

#counters libreoffice bug in xmonad:
export SAL_USE_VCLPLUGIN=gen

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

fcitx

trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand false --tint 0xFF000000 --widthtype percent --width 5 --transparent true --height 12 &
xmobar &
xset +fp /usr/share/fonts/local
xset fp rehash

exec xmonad

export _JAVA_AWT_WM_NONREPARENTING=1

.xmobarrc

Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*"
       , bgColor = "black"
       , fgColor = "grey"
       , position = TopW L 95
       , lowerOnStart = True
       , commands = [ Run MultiCpu ["-t","<total0>% <total1>% <total2>% <total3>%"] 10
                    , Run Memory ["-t","Mem: <usedratio>%"] 10
                    , Run Battery ["-t","Akku: <left>","-l","red","-n","green","-h","lightblue"] 10
                    , Run Date "%a %b %_d %l:%M" "date" 10
                    , Run StdinReader
                    ]
       , sepChar = "%"
       , alignSep = "}{"
       , template = "%StdinReader% }{ %multicpu% | %memory% | %battery% | %date%"
       }

parts of .bashrc

[[ $- != *i* ]] && return

export VISUAL='/usr/bin/vim -p -X'

complete -cf sudo
complete -cf man

## improves font rendering in firefox
export MOZ_DISABLE_PANGO=1

## fixes some Java applications in tiling window managers
export _JAVA_AWT_WM_NONREPARENTING=1

xmonad.hs

Offline

#4 2016-04-17 09:22:46

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: black screen after shutting down X / xmonad

I see from Xorg.0.log that you have an Intel graphics card, which model is it?

When your desktop is running, can you switch to a console screen and log in normally there?

Offline

#5 2016-04-17 10:15:19

xiliyi
Member
Registered: 2011-05-14
Posts: 57

Re: black screen after shutting down X / xmonad

My computer is a Thinkpad x201 (3323-A2G) with an integrated graphics chip called Intel HD.
When I switch to another console with Ctrl+Alt+F(x), the error (black screen) occors as well. Sometimes, some colored (green or white) patterns / stripes appear from left to right at the top of the screen as I switch between consoles. These patterns look very wrong.

Offline

#6 2016-04-17 10:17:00

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: black screen after shutting down X / xmonad

xiliyi wrote:

Thinkpad x201

I have an X201, it runs OpenBSD at the moment but I'll try the Arch live session on it in a bit to see if I can reproduce this.

Offline

#7 2016-04-18 19:36:56

xiliyi
Member
Registered: 2011-05-14
Posts: 57

Re: black screen after shutting down X / xmonad

Head_on_a_Stick wrote:
xiliyi wrote:

Thinkpad x201

I have an X201, it runs OpenBSD at the moment but I'll try the Arch live session on it in a bit to see if I can reproduce this.

That would be great, thank you. Also, when I start an X session and end it immediately afterwards, the error doesn’t occur. It seems to take a while, or maybe it depends on the programs I run in X. Before I close X, I also close all processes I manually started. Therefore, it doesn’t depend on programs still actively running.

Last edited by xiliyi (2016-04-18 19:38:16)

Offline

#8 2016-04-18 19:44:17

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: black screen after shutting down X / xmonad

Oh dear, I forgot about this thread hmm

Give me a minute...

Offline

#9 2016-04-18 20:51:48

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: black screen after shutting down X / xmonad

OK, this also happens on a fresh install on my ThinkPad X201 sad

However, using the LTS kernel seems to fix it for me.

Offline

#10 2016-04-19 05:34:55

xiliyi
Member
Registered: 2011-05-14
Posts: 57

Re: black screen after shutting down X / xmonad

Head_on_a_Stick wrote:

OK, this also happens on a fresh install on my ThinkPad X201 sad

However, using the LTS kernel seems to fix it for me.

Okay, thank you for checking!
Since the issue seems to be a hardware and kernel specific bug, there’s not much I can do about it. Therefore, I won’t mark the thread solved.
Is there anyone I should notice about this? Maybe it’s easily fixable.

Offline

#11 2016-04-19 21:06:28

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: black screen after shutting down X / xmonad

xiliyi wrote:

Is there anyone I should notice about this?

Yes, if you could file a bug report that would be fantastic:

https://wiki.archlinux.org/index.php/Re … guidelines

Before you do this, update your system -- kernel 4.5 made it to [Core]  today and the problem may be fixed in that version.

Offline

#12 2016-04-20 19:07:17

justasug
Member
Registered: 2014-08-03
Posts: 165

Re: black screen after shutting down X / xmonad

I'm experiencing exactly the same problem, but with a different window manager.
Starting X for the first time, via LightDM, works flawlessly. Upon logging out, the screen goes black and just like you said it still seems to be responsive "beneath". For example I can still type my password and log in via lightdm, hit a keyboard shortcut and reboot the computer. I tested it without LightDM by starting an Openbox session with startx with the same results. The screen is black, but I can still type and execute commands in the TTY.

I'm also on an Intel GPU, Ironlake Intel HD (Arrandale) on a Thinkpad T410.
Xorg log (a few days old with the 4.5.0 kernel, but it's happening with 4.5.1 too)
Journalctl after logging out with the black screen issue
Journalctl after logging out/shutting down X without an issue

The only suspicious things is the drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* error, but it's appearing during the normal logouts as well.

Last edited by justasug (2016-04-21 22:08:26)

Offline

#13 2016-04-21 20:17:03

xiliyi
Member
Registered: 2011-05-14
Posts: 57

Re: black screen after shutting down X / xmonad

Head_on_a_Stick wrote:

Yes, if you could file a bug report that would be fantastic

I filed a bug (https://bugs.archlinux.org/task/49040), but might have misunderstood something: I filed it under "Packages: Testing" (because I have this repo enabled), but the packages are actually from "extra". Hope the dev won’t be too confused. I stated the package versions, so it should be clear.

Offline

#14 2016-04-21 20:24:20

xiliyi
Member
Registered: 2011-05-14
Posts: 57

Re: black screen after shutting down X / xmonad

Breakthrough:
On black screen, closing the lid of the laptop and reopening it makes the image reappear.

Offline

#15 2016-04-21 22:06:36

justasug
Member
Registered: 2014-08-03
Posts: 165

Re: black screen after shutting down X / xmonad

xiliyi wrote:

Breakthrough:
On black screen, closing the lid of the laptop and reopening it makes the image reappear.

Suspending and restoring does indeed bring it back.
I tried to downgrade the xf86-video-intel driver. Exiting an X session worked fine at first and I thought I was on the right path, but the black screen eventually came back. Way less than before though (needs more testing). Can you give it a try and see if it changes anything? Still getting the same amount of black screens.

There are a few similar bugs here:
https://bugs.freedesktop.org/show_bug.cgi?id=93950
https://bugs.freedesktop.org/show_bug.cgi?id=91974

The second one mentions how suspending brings the screen back (comment #8). I don't know if these are related at all.

Last edited by justasug (2016-04-24 14:37:43)

Offline

Board footer

Powered by FluxBB