You are not logged in.

#1 2019-01-16 17:51:15

jimjamz
Member
From: Nagasaki, Japan
Registered: 2016-04-04
Posts: 90

[BUG?] Screen locks when during fading transitions or video playback

I have noticed since retrieving BL repository updates from August/September 2018, this has been a common occurrence.

The screen locks but the rest of the system doesn't appear to.  Whatever is on the screen is frozen and cannot be interacted with, but any streaming audio playing in the background continues to play.  The system doesn't appear to be freeze.  The system cannot be shutdown correctly, either via lid closing, power button quick press, or keyboard shortcuts (terminal -> poweroff, or via special keys and arrow keys to navigate the context menu blindly).  A long-press on the power button is the only way to resolve it.

lspci -k:

00:00.0 Host bridge: NVIDIA Corporation MCP89 HOST Bridge (rev a1)
00:00.1 RAM memory: NVIDIA Corporation MCP89 Memory Controller (rev a1)
00:01.0 RAM memory: NVIDIA Corporation Device 0d6d (rev a1)
00:01.1 RAM memory: NVIDIA Corporation Device 0d6e (rev a1)
00:01.2 RAM memory: NVIDIA Corporation Device 0d6f (rev a1)
00:01.3 RAM memory: NVIDIA Corporation Device 0d70 (rev a1)
00:02.0 RAM memory: NVIDIA Corporation Device 0d71 (rev a1)
00:02.1 RAM memory: NVIDIA Corporation Device 0d72 (rev a1)
00:03.0 ISA bridge: NVIDIA Corporation MCP89 LPC Bridge (rev a2)
	Subsystem: Apple Inc. MCP89 LPC Bridge
00:03.1 RAM memory: NVIDIA Corporation MCP89 Memory Controller (rev a1)
00:03.2 SMBus: NVIDIA Corporation MCP89 SMBus (rev a1)
	Subsystem: NVIDIA Corporation MCP89 SMBus
00:03.3 RAM memory: NVIDIA Corporation MCP89 Memory Controller (rev a1)
00:03.4 Co-processor: NVIDIA Corporation MCP89 Co-Processor (rev a1)
	Subsystem: NVIDIA Corporation MCP89 Co-Processor
00:04.0 USB controller: NVIDIA Corporation MCP89 OHCI USB 1.1 Controller (rev a1)
	Subsystem: NVIDIA Corporation MCP89 OHCI USB 1.1 Controller
	Kernel driver in use: ohci-pci
	Kernel modules: ohci_pci
00:04.1 USB controller: NVIDIA Corporation MCP89 EHCI USB 2.0 Controller (rev a2)
	Subsystem: NVIDIA Corporation MCP89 EHCI USB 2.0 Controller
	Kernel driver in use: ehci-pci
	Kernel modules: ehci_pci
00:06.0 USB controller: NVIDIA Corporation MCP89 OHCI USB 1.1 Controller (rev a1)
	Subsystem: NVIDIA Corporation MCP89 OHCI USB 1.1 Controller
	Kernel driver in use: ohci-pci
	Kernel modules: ohci_pci
00:06.1 USB controller: NVIDIA Corporation MCP89 EHCI USB 2.0 Controller (rev a2)
	Subsystem: NVIDIA Corporation MCP89 EHCI USB 2.0 Controller
	Kernel driver in use: ehci-pci
	Kernel modules: ehci_pci
00:08.0 Audio device: NVIDIA Corporation MCP89 High Definition Audio (rev a2)
	Subsystem: NVIDIA Corporation MCP89 High Definition Audio
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:09.0 Ethernet controller: NVIDIA Corporation MCP89 Ethernet (rev a1)
	Subsystem: Apple Inc. MCP89 Ethernet
	Kernel driver in use: forcedeth
	Kernel modules: forcedeth
00:0a.0 SATA controller: NVIDIA Corporation MCP89 SATA Controller (AHCI mode) (rev a2)
	Subsystem: Apple Inc. MCP89 SATA Controller (AHCI mode)
	Kernel driver in use: ahci
	Kernel modules: ahci
00:0b.0 RAM memory: NVIDIA Corporation Device 0d75 (rev a1)
00:15.0 PCI bridge: NVIDIA Corporation Device 0d9b (rev a1)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:17.0 PCI bridge: NVIDIA Corporation MCP89 PCI Express Bridge (rev a1)
	Kernel modules: shpchp
01:00.0 Network controller: Broadcom Limited BCM43224 802.11a/b/g/n (rev 01)
	Subsystem: Apple Inc. AirPort Extreme
	Kernel driver in use: bcma-pci-bridge
	Kernel modules: bcma
02:00.0 VGA compatible controller: NVIDIA Corporation MCP89 [GeForce 320M] (rev a2)
	Subsystem: Apple Inc. MCP89 [GeForce 320M]
	Kernel driver in use: nouveau
	Kernel modules: nouveau

This is extremely difficult to be reproduce and just happens randomly.  However, I have noticed this happens 90% of the time when:

1.  Opening a window that will process audio/video content.  E.g. opening/closing VLC Media Player.
2.  During video playback in VLC Media Player.
3.  Opening/closing general windows when the window fade in/out effect occurs.


I'm not sure exactly what logs to check for further diagnosis.  /var/log/syslog doesn't appear to show anything informative around the problem.  If you know a more accurate log to be checking, please advise.

Offline

#2 2019-01-16 19:39:33

damo
....moderator....
Registered: 2015-08-20
Posts: 4,972

Re: [BUG?] Screen locks when during fading transitions or video playback

You could look at the user's journald log for the previous boot, and the output from dmesg (you could pipe dmesg to a logfile to read later, if you can't access the terminal).

I suspect it is a graphics issue, due to the driver or kernel boot parameters. Nvidia?


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2019-02-12 16:25:43

jimjamz
Member
From: Nagasaki, Japan
Registered: 2016-04-04
Posts: 90

Re: [BUG?] Screen locks when during fading transitions or video playback

I've had the problem occur twice when trying to launch virtualbox from the 'Run Program' dialog.  As soon as execute it, everything locks on the screen.  The only thing responding is the mouse cursor.  For example, I cannot blindly poweroff the machine with a new terminal window and command, suggesting the keyboard is also non-responsive.  Potentially a qt issue with the new version of qt and my NVIDIA driver?

Offline

#4 2019-02-12 17:49:38

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,769

Re: [BUG?] Screen locks when during fading transitions or video playback

It doesn't look like you are using nvidia drivers, what does inxi -G says?

Offline

#5 2019-02-13 10:15:52

ohnonot
...again
Registered: 2015-09-29
Posts: 3,773
Website

Re: [BUG?] Screen locks when during fading transitions or video playback

^ it does actually, way at the bottom of post #1.
it's also an apple computer. relevant?

also, wasn't virtualbox removed from debian repos? for a reason?
are you sure it's the same problem as in post #1? can't have anything to do with Qt then, no?

not sure if already asked, but can you
a) reproduce the problem reliably
b) switch to a text console (Ctrl-Alt-F2)?

Offline

#6 2019-02-13 10:20:58

damo
....moderator....
Registered: 2015-08-20
Posts: 4,972

Re: [BUG?] Screen locks when during fading transitions or video playback

The output has

Kernel driver in use: nouveau

Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#7 2019-02-13 19:53:13

ohnonot
...again
Registered: 2015-09-29
Posts: 3,773
Website

Re: [BUG?] Screen locks when during fading transitions or video playback

^ sorry, I misinterpreted your statement - I thought you meant "drivers for an NVIDIA GPU".
sad

Offline

#8 2019-02-14 05:30:17

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,460
Website

Re: [BUG?] Screen locks when during fading transitions or video playback

OT/

ohnonot wrote:

also, wasn't virtualbox removed from debian repos? for a reason?

It was, because of reasons, but it's back in Stretch-backports, Buster and Sid.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#9 2019-02-14 18:39:21

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,769

Re: [BUG?] Screen locks when during fading transitions or video playback

ohnonot wrote:

it's also an apple computer. relevant?

Probably not, that's mine:

lspci -k | grep -i 'apple\|nvidia' 
05:00.0 VGA compatible controller: NVIDIA Corporation G96 [GeForce 9500 GT] (rev a1)
	Subsystem: Apple Inc. G96 [GeForce 9500 GT]
	Kernel driver in use: nvidia
	Kernel modules: nvidia

Last edited by brontosaurusrex (2019-02-14 18:40:54)

Offline

#10 2019-02-21 10:32:19

jimjamz
Member
From: Nagasaki, Japan
Registered: 2016-04-04
Posts: 90

Re: [BUG?] Screen locks when during fading transitions or video playback

Hi,

Sorry for the delayed reply.

@brontosaurusrex - `inxi -G` reports:

Graphics:  Card: NVIDIA MCP89 [GeForce 320M]
           Display Server: X.Org 1.19.2 drivers: nouveau (unloaded: modesetting,fbdev,vesa)
           Resolution: 1280x800@61.18hz
           GLX Renderer: Gallium 0.4 on NVAF GLX Version: 3.0 Mesa 13.0.6

`lspci -k | grep -i 'apple\|nvidia' reports a lot of 'NVIDIA' hardware.  Specifically, the GPU is:

02:00.0 VGA compatible controller: NVIDIA Corporation MCP89 [GeForce 320M] (rev a2)
	Subsystem: Apple Inc. MCP89 [GeForce 320M]

I use a Macbook A1342 mid-2010 unibody model.

@ohnonot - Unfortunately, I have not been able to reproduce this consistently.  I've tried to do so for the past 6 months, but nothing gives me consistent results.
Virtualbox was one of the applications that could reproduce the problem fairly frequently, but not always.  Virtualbox is not to blame as the screen lock can happen when it's not running.  I've had the screen lock in the following scenarios:

- video playback.  The screen would freeze, all input devices would not respond, except mouse cursor movement.  The audio from the video playback would continue to play.  However, it was not possible to gain control of the system.  Even closing the lid did not force a hibernation/suspend/standby event (the macbook logo stays lit and the screen stays on albeit frozen).

- opening/closing applications where a visual fade transition occurs.

- the latest scenario was when bl-exit appeared, during the fade-in transition.

- not doing anything at all.  Leaving my system to come back in 10 minutes and the screen has frozen.   Mouse cursor is responsive but mouse click or keyboard input is not responsive.  Therefore, blind shutdowns cannot be performed.

- Recently, the screen locks result in a garbled screen.  Sectors of the screen are all scrambled.  However, this happens around 25% of the time when the freeze occurs.

This issue can happen at any time.  It doesn't occur in common durations of system use.  I can be 10 minutes into using the system, it can be 10 hours.

I suspect hardware acceleration is an issue.  I would like to disable it and was wondering how I can do that?

Offline

#11 2019-02-21 10:46:46

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,769

Re: [BUG?] Screen locks when during fading transitions or video playback

I'd try with command named 'nvidia-detect', you are not running nvidia drivers currently.

Last edited by brontosaurusrex (2019-02-21 11:18:03)

Offline

#12 2019-02-21 11:55:06

Bearded_Blunder
Dodging A Bullet
From: Seat: seat0; vc7
Registered: 2015-09-29
Posts: 730

Re: [BUG?] Screen locks when during fading transitions or video playback

I may be totally off track here, if so just ignore me:

https://wiki.archlinux.org/index.php/nouveau wrote:
Random lockups with kernel error messages

Specific Nvidia chips with Nouveau may give random system lockups and more commonly throw many kernel messages, seen with dmesg. Try adding the nouveau.noaccel=1 kernel parameter. See [2] for more information.

As an alternative you can also use the QT_XCB_FORCE_SOFTWARE_OPENGL=1 environment variable to disable OpenGL acceleration in Qt applications.

VirtualBox & VLC are both Qt apps....

May be some other useful avenues to investigate on that page too.


Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me

Offline

#13 2019-02-23 16:45:47

jimjamz
Member
From: Nagasaki, Japan
Registered: 2016-04-04
Posts: 90

Re: [BUG?] Screen locks when during fading transitions or video playback

brontosaurusrex wrote:

I'd try with command named 'nvidia-detect', you are not running nvidia drivers currently.

I installed nvidia-detect using alt-get.
The driver it recommended was 340 legacy.
I installed with apt-get. The installation prompted me about a conflicting nouveau driver, but a reboot after installation would sort that. According to the log, the installation went fine and the kernel 4.9.0.6 appeared to be re-built with the new drivers.

After reboot and entering the password for my LUKS encrypted device, the screen goes off, the apple lid light and power light also go off.

The system is still on but hanging in the background.
In recovery mode, booting the system appears to wait at loading the Nvidia HDA sound device. See attached photo.
20190223-162914.jpg

It won't proceed until I press ENTER. It then attempts to load some other modules very quickly (too quick to read) before the screen blacking out again.
Using video, this is the last frame I can capture. Seems to be complaining about the broadcom b43:
20190223163348.png

I can't boot in either normal or recovery mode - only TTY
. Using TTY, should I try to apt remove the nvidia legacy driver and see if that will help to re-build things back to how they were? Or presuming an auto-backup of the kernel was made when the nvidia legacy driver was installed, can I revert to the backup of the kernel?

Help!

Offline

#14 2019-02-23 17:01:38

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,769

Re: [BUG?] Screen locks when during fading transitions or video playback

Notes on how to remove nvidia.

Offline

#15 2019-02-25 17:35:30

jimjamz
Member
From: Nagasaki, Japan
Registered: 2016-04-04
Posts: 90

Re: [BUG?] Screen locks when during fading transitions or video playback

brontosaurusrex wrote:

Notes on how to remove nvidia.

Yes, that got lightdm and the GUI working again. Phew!

Offline

#16 2019-03-25 22:41:05

jimjamz
Member
From: Nagasaki, Japan
Registered: 2016-04-04
Posts: 90

Re: [BUG?] Screen locks when during fading transitions or video playback

@Bearded_Blunder - After recovering from @brontosaurusrex's suggestion, I thought I would try yours.  Although I thought you were on the right track with disabling OpenGL hardware acceleration for Qt apps, unfortunately, it didn't work.

The environment variable specified is automatically set when I restart my machine, but I'm still suffering with the screen freezes.

Offline

#17 2019-05-02 07:41:41

jimjamz
Member
From: Nagasaki, Japan
Registered: 2016-04-04
Posts: 90

Re: [BUG?] Screen locks when during fading transitions or video playback

I think the problem I had with the driver @brontosaurusrex suggested and the subsequent restore, has broken HDMI audio when using RandR to switch the display to a HDMI TV.  No audio is present, but the equaliser shows audio is being produced, just not sent to the TV.

I used to have audio via HDMI Output 2 in the Mixer app.  Now, there is none.

How to fix HDMI audio issues?

Offline

Board footer

Powered by FluxBB