[SOLVED] Black screen after logout

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
hexabit

[SOLVED] Black screen after logout

Post by hexabit »

After logout, screen goes black, monitor turns off, cannot enter tty (it is not displaying anything), after a few seconds I hear a "beep" and i got MDM back.

I have Nvidia 319 drivers installed (it is working properly).

How Can I debug this ? Anyone knows what is happening here ?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
perham

Re: Black screen after logout

Post by perham »

if I understand correctly, you get the mdm and it's working after logout. so, I don't see the problem. that's not a bug. when you quit your session, another one needs to be loaded. that's what's happening.
hexabit

Re: Black screen after logout

Post by hexabit »

Yeah but on previous linux mint editions it was like few seconds this time it takes like 20-30 sec... and that strange *beep* sound...

I also cannot go to the tty (ctrl+alt+1) because the monitor is turning off after that...
perham

Re: Black screen after logout

Post by perham »

hexabit wrote:Yeah but on previous linux mint editions it was like few seconds this time it takes like 20-30 sec... and that strange *beep* sound...

I also cannot go to the tty (ctrl+alt+1) because the monitor is turning off after that...
you can probably check dmesg and /var/log/Xorg.*.log for traces of problems then.
hexabit

Re: Black screen after logout

Post by hexabit »

in dmesg I have something like this:

Code: Select all

[144193.088108] BUG: soft lockup - CPU#3 stuck for 23s! [Xorg:2046]
[144193.088110] Modules linked in: parport_pc(F) ppdev(F) bnep rfcomm bluetooth binfmt_misc(F) x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel(F) kvm(F) crct10dif_pclmul(F) crc32_pclmul(F) ghash_clmulni_intel(F) aesni_intel(F) aes_x86_64(F) lrw(F) gf128mul(F) glue_helper(F) ablk_helper(F) cryptd(F) ip6t_REJECT(F) xt_hl(F) ip6t_rt(F) nf_conntrack_ipv6(F) nf_defrag_ipv6(F) ipt_REJECT(F) xt_LOG(F) xt_limit(F) xt_tcpudp(F) xt_addrtype(F) nf_conntrack_ipv4(F) nf_defrag_ipv4(F) xt_conntrack(F) nvidia(POF) ip6table_filter(F) eeepc_wmi asus_wmi ip6_tables(F) sparse_keymap nf_conntrack_netbios_ns(F) nf_conntrack_broadcast(F) arc4(F) nf_nat_ftp(F) nf_nat(F) nf_conntrack_ftp(F) nf_conntrack(F) iptable_filter(F) ip_tables(F) x_tables(F) uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core snd_usb_audio videodev snd_usbmidi_lib joydev(F) dm_multipath(F) scsi_dh(F) microcode(F) snd_hda_codec_hdmi snd_hda_codec_realtek ath9k ath9k_common ath9k_hw psmouse(F) serio_raw(F) lpc_ich snd_hda_intel ath snd_hda_codec mac80211 snd_hwdep(F) snd_pcm(F) snd_page_alloc(F) snd_seq_midi(F) snd_seq_midi_event(F) snd_rawmidi(F) cfg80211 snd_seq(F) snd_seq_device(F) snd_timer(F) snd(F) soundcore(F) mei_me mei mac_hid lp(F) parport(F) hid_generic usbhid hid dm_mirror(F) dm_region_hash(F) dm_log(F) mxm_wmi i915 i2c_algo_bit drm_kms_helper drm ahci(F) libahci(F) video(F) wmi
[144193.088150] CPU: 3 PID: 2046 Comm: Xorg Tainted: PF          O 3.11.0-12-generic #19-Ubuntu
[144193.088151] Hardware name: System manufacturer System Product Name/P8Z77-V PRO, BIOS 2003 05/10/2013
[144193.088152] task: ffff880222400000 ti: ffff880220dea000 task.ti: ffff880220dea000
[144193.088153] RIP: 0010:[<ffffffffa0ad897c>]  [<ffffffffa0ad897c>] os_io_read_dword+0xc/0x10 [nvidia]
[144193.088194] RSP: 0018:ffff880220debc38  EFLAGS: 00000296
[144193.088195] RAX: 000000006e1fb1c0 RBX: 0000000000000001 RCX: ffffffffa0e203f0
[144193.088196] RDX: 000000000000e00c RSI: 00000000000c483a RDI: 000000000000e00c
[144193.088197] RBP: ffff880220debc38 R08: 0000000000000001 R09: 0000000000000000
[144193.088197] R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
[144193.088198] R13: ffff880222a32f30 R14: 0000000000000001 R15: ffff880222a32f20
[144193.088199] FS:  00007f59f7292980(0000) GS:ffff88022fb80000(0000) knlGS:0000000000000000
[144193.088200] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[144193.088201] CR2: 00007f59f0256800 CR3: 000000021fbb2000 CR4: 00000000001407e0
[144193.088202] Stack:
[144193.088203]  ffff880222a32f30 ffffffffa0ab8f4d ffffffffa0e262e4 ffffffffa0ac4f61
[144193.088205]  ffff880222a32f88 ffffffffa0abbbb6 ffff88021ea48008 ffffffffa0ab94f2
[144193.088206]  ffff88021ea48008 ffff880222a32f8c 0000000000004f02 0000000000000001
[144193.088208] Call Trace:
[144193.088241]  [<ffffffffa0ab8f4d>] rm_shutdown_gvi_device+0xf5/0x290 [nvidia]
[144193.088274]  [<ffffffffa0ac4f61>] ? _nv016043rm+0x86d4/0xcee3 [nvidia]
[144193.088306]  [<ffffffffa0abbbb6>] ? _nv000928rm+0x83/0xa4 [nvidia]
[144193.088337]  [<ffffffffa0ab94f2>] ? _nv012082rm+0x1a9/0xa00 [nvidia]
[144193.088370]  [<ffffffffa0aaa510>] ? _nv012360rm+0x92/0x168 [nvidia]
[144193.088402]  [<ffffffffa0aae633>] ? _nv000813rm+0x393/0x435 [nvidia]
[144193.088434]  [<ffffffffa0aae5c5>] ? _nv000813rm+0x325/0x435 [nvidia]
[144193.088465]  [<ffffffffa0aaec1c>] ? _nv000736rm+0x547/0x5e6 [nvidia]
[144193.088497]  [<ffffffffa0ab10be>] ? _nv014007rm+0x99/0xbb [nvidia]
[144193.088531]  [<ffffffffa0aa7aaf>] ? _nv000791rm+0x47f/0x9ee [nvidia]
[144193.088562]  [<ffffffffa0ab0f9b>] ? rm_ioctl+0x76/0x100 [nvidia]
[144193.088593]  [<ffffffffa0ad9200>] ? os_pci_init_handle+0x180/0x180 [nvidia]
[144193.088624]  [<ffffffffa0ace7be>] ? nv_kern_ioctl+0x14e/0x480 [nvidia]
[144193.088654]  [<ffffffffa0aceb11>] ? nv_kern_unlocked_ioctl+0x21/0x30 [nvidia]
[144193.088657]  [<ffffffff811b8ba5>] ? do_vfs_ioctl+0x2e5/0x4d0
[144193.088660]  [<ffffffff811a891e>] ? ____fput+0xe/0x10
[144193.088662]  [<ffffffff811b8e11>] ? SyS_ioctl+0x81/0xa0
[144193.088664]  [<ffffffff816f521d>] ? system_call_fastpath+0x1a/0x1f
[144193.088665] Code: 1f 44 00 00 55 89 fa 48 89 e5 ec 5d c3 66 90 0f 1f 44 00 00 55 89 fa 48 89 e5 66 ed 5d c3 90 0f 1f 44 00 00 55 89 fa 48 89 e5 ed <5d> c3 66 90 0f 1f 44 00 00 55 48 85 ff 48 89 e5 75 1a 85 d2 48
EDIT:
just upgraded kernel to 3.12.7 and nvidia drivers to 331.20 -- STILL THE SAME ERROR !
perham

Re: Black screen after logout

Post by perham »

looks like a nvidia problem. you should definitely report this as a bug. if you don't use gaming or your card is supported, give nouveau a go and see if that's better. since nvidia drivers are proprietary, you need to contact them for support.
hexabit

Re: Black screen after logout

Post by hexabit »

I do play games (via Steam) - the drivers works perfect I do not have any other problems with it except the one with logout...
perham

Re: Black screen after logout

Post by perham »

hexabit wrote:I do play games (via Steam) - the drivers works perfect I do not have any other problems with it except the one with logout...
alright, then I guess it's not worth touching for a mere 23 seconds :D
Condorman
Level 4
Level 4
Posts: 268
Joined: Mon Nov 10, 2008 10:08 am

Re: Black screen after logout

Post by Condorman »

I also have this problem on a Samsung N130 netbook, which has no Nvidia whatsoever onboard. It's an MDM issue, and seemingly stems from the animated HTML themes as opposed to the static ones. The way to solve it is simple. Just go into the Login Manager (Login Window), and set the theme to Clouds. This is a non-animated static theme which eradicates the problem.

Hope this helps. :)
Condorman
Level 4
Level 4
Posts: 268
Joined: Mon Nov 10, 2008 10:08 am

Re: Black screen after logout

Post by Condorman »

Ahh dammit, scratch my last post. This works mid-session, but the fix doesn't survive a reboot. The search for a solution continues...

But it's not nvidia anyway.
hexabit

Re: Black screen after logout

Post by hexabit »

Ok. So the problem seems to be gone when installing new kernel and latest nvidia drivers...

1) I downloaded kernel from here (kernel 3.13.3 lowlatency amd64 ):

http://kernel.ubuntu.com/~kernel-ppa/ma ... .3-trusty/

2) Installed those three files:

linux-headers-3.13.3-031303-lowlatency_3.13.3-031303.201402131842_amd64.deb
linux-headers-3.13.3-031303_3.13.3-031303.201402131842_all.deb
linux-image-3.13.3-031303-lowlatency_3.13.3-031303.201402131842_amd64.deb

3) Downloaed latest nvidia drivers from here (334.16 beta):

http://www.nvidia.com/download/driverRe ... 3100/en-us

4) extracted drivers with:

Code: Select all

$ ./NVIDIA-Linux-x86_64-334.16.run -x
5) went to folder:

Code: Select all

$ cd NVIDIA-Linux-x86_64-334.16.run/kernel/
6) comment out the line 306

Code: Select all

$ nano -c nv-acpi.c
so it looks like:

Code: Select all

//NV_ACPI_OS_WAIT_EVENTS_COMPLETE();
7) finally go to folder and installed drivers

Code: Select all

$ cd NVIDIA-Linux-x86_64-334.16.run/

Code: Select all

$ nvidia-installer --no-unified-memory
Everything works now (glxinfo shows direct rendering: yes) and of course when reboot no segfaults.
Locked

Return to “Xfce”