Video playback freezes every 30 seconds on Dell Latitude 7400 with external monitor

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Yfrwlf
Level 3
Level 3
Posts: 171
Joined: Sat Jun 08, 2013 7:46 pm

Video playback freezes every 30 seconds on Dell Latitude 7400 with external monitor

Post by Yfrwlf »

[ admin note: split from related topic by another user viewtopic.php?f=49&t=361633 ]

Having this exact same issue on a Dell Latitude 7400 and I can now re-create and terminate this issue at will. Once the issue starts, the system freezes for about one second every 30 seconds.

To cause the issue to start occurring: While the laptop lid is open and the laptop is connected to an external monitor over HDMI, while logged into the Cinnamon desktop, close the laptop lid.

To cause the issue to stop occurring: Open the laptop lid again, or log out and back into the desktop WITHOUT opening the laptop lid, otherwise the problem will start again.

So the cause is closing the laptop lid. As the OP said, it doesn't matter if the laptop's main display is disabled or not. Either opening or closing the laptop lid will make the computer freeze for one second, but if left open the issue will go away, and if left closed the issue will stick around unless you log out and back in or open the lid.

It seems like whatever is being triggered upon closing the laptop's lid perhaps thinks it failed to do whatever it was trying to do, and re-tries to do that thing every 30 seconds? I assume this is a graphics driver issue, Xorg issue, or power/hibernation/suspending issue of some sort. I have "When the lid is closed: Do nothing" set. Systemd's hibernation, suspend, and suspend-then-hibernate targets are all unmasked. Since the laptop is a different model from the OP's, this may be a more widespread issue (same i915 driver). My specs:

Code: Select all

System:    Kernel: 5.13.0-22-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.0.7 wm: muffin 5.0.2 dm: LightDM 1.30.0 
           Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: Dell product: Latitude 7400 v: N/A serial: <filter> Chassis: type: 10 serial: <filter> 
           Mobo: Dell model: 07WDVW v: A00 serial: <filter> UEFI: Dell v: 1.3.11 date: 06/11/2019 
CPU:       Topology: Quad Core model: Intel Core i7-8665U bits: 64 type: MT MCP arch: Kaby Lake rev: C L1 cache: 256 KiB 
           L2 cache: 8192 KiB L3 cache: 8192 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 33599 
           Speed: 4800 MHz min/max: 400/4800 MHz Core speeds (MHz): 1: 4800 2: 4785 3: 4323 4: 4238 5: 4428 6: 4498 7: 4303 
           8: 4796 
Graphics:  Device-1: Intel UHD Graphics 620 vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:3ea0 
           Display: server: X.Org 1.20.11 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2) v: 4.6 Mesa 21.0.3 direct render: Yes 
Audio:     Device-1: Intel Cannon Point-LP High Definition Audio vendor: Dell driver: N/A bus ID: 00:1f.3 chip ID: 8086:9dc8 
           Device-2: JMTek LLC. USB PnP Audio Device type: USB driver: hid-generic,snd-usb-audio,usbhid bus ID: 1-2:3 
           chip ID: 0c76:161f 
           Sound Server: ALSA v: k5.13.0-22-generic 
Network:   Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: efa0 bus ID: 3a:00.0 chip ID: 8086:2723 
           IF: wlp58s0 state: up mac: <filter> 
           IF-ID-1: docker0 state: down mac: <filter> 
           IF-ID-2: enx9cebe8d1ad04 state: down mac: <filter> 
Drives:    Local Storage: total: 253.38 GiB used: 42.68 GiB (16.8%) 
           ID-1: /dev/nvme0n1 model: SSDPEMKF256G8 NVMe INTEL 256GB size: 238.47 GiB speed: 31.6 Gb/s lanes: 4 
           serial: <filter> rev: 7004 scheme: GPT 
           ID-2: /dev/sda type: USB vendor: SanDisk model: Cruzer size: 14.91 GiB serial: <filter> rev: 1.19 scheme: MBR 
Partition: ID-1: / size: 88.34 GiB used: 41.96 GiB (47.5%) fs: ext4 dev: /dev/dm-1 
           ID-2: /boot size: 739.9 MiB used: 123.4 MiB (16.7%) fs: ext4 dev: /dev/nvme0n1p5 
Sensors:   System Temperatures: cpu: 55.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 0 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/alexlarsson-flatpak-focal.list 
           1: deb http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/docker.list 
           1: deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu focal stable
           Active apt repos in: /etc/apt/sources.list.d/lutris-team-lutris-focal.list 
           1: deb http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://packages.linuxmint.com uma main upstream import backport #id:linuxmint_main
           2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
Info:      Processes: 340 Uptime: 31m Memory: 15.44 GiB used: 2.06 GiB (13.4%) Init: systemd v: 245 runlevel: 5 Compilers: 
           gcc: 9.3.0 alt: 9 Shell: bash (sudo) v: 5.0.17 running in: terminator inxi: 3.0.38
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.
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Video playback freezes every 30 seconds

Post by SMG »

Yfrwlf wrote: Mon Dec 06, 2021 4:27 pmSo the cause is closing the laptop lid.
That is a physical hardware switch on the laptop. I believe the next step is for the switch to send a signal to the firmware (BIOS/UEFI) for the next action. Is there a setting in your BIOS for what to do if the lid is closed? Different manufacturers have different settings available for that option. Then the next step after than would be what the operating system would or would not do.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Yfrwlf
Level 3
Level 3
Posts: 171
Joined: Sat Jun 08, 2013 7:46 pm

Re: Video playback freezes every 30 seconds

Post by Yfrwlf »

SMG wrote: Mon Dec 06, 2021 4:58 pm
Yfrwlf wrote: Mon Dec 06, 2021 4:27 pmSo the cause is closing the laptop lid.
That is a physical hardware switch on the laptop. I believe the next step is for the switch to send a signal to the firmware (BIOS/UEFI) for the next action. Is there a setting in your BIOS for what to do if the lid is closed? Different manufacturers have different settings available for that option. Then the next step after than would be what the operating system would or would not do.
One question to ask is why would Linux be freezing every 30 seconds while Windows doesn't? Also, if the BIOS was somehow at fault to some degree, why does logging out and back into Xorg fix the issue? All of this makes me want to try Wayland to see if the issue occurs there, and I think I will when I have time!

Aaaand more progress! Now I'm even more certain that I should try Wayland instead, because it does indeed look like an X11 issue. I wasn't getting any output when looking in

Code: Select all

journalctl -kf
or when tailing the kern.log when the freezes occur, but then I tried tailing /var/log/Xorg.0.log and found that this message spits out after every freeze:

Code: Select all

[ 14759.504] (II) modeset(0): EDID vendor "ACI", prod id 10403
[ 14759.504] (II) modeset(0): Using hsync ranges from config file
[ 14759.504] (II) modeset(0): Using vrefresh ranges from config file
[ 14759.504] (II) modeset(0): Printing DDC gathered Modelines:
[ 14759.504] (II) modeset(0): Modeline "3840x2160"x0.0  297.00  3840 4016 4104 4400  2160 2168 2178 2250 +hsync -vsync (67.5 kHz eP)
[ 14759.504] (II) modeset(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz e)
[ 14759.504] (II) modeset(0): Modeline "2560x1440"x0.0  241.50  2560 2608 2640 2720  1440 1443 1448 1481 +hsync +vsync (88.8 kHz e)
[ 14759.504] (II) modeset(0): Modeline "2560x1600"x0.0  268.50  2560 2608 2640 2720  1600 1603 1609 1646 +hsync -vsync (98.7 kHz e)
[ 14759.504] (II) modeset(0): Modeline "1280x720"x0.0   74.25  1280 1720 1760 1980  720 725 730 750 +hsync +vsync (37.5 kHz e)
[ 14759.504] (II) modeset(0): Modeline "720x576"x0.0   27.00  720 732 796 864  576 581 586 625 -hsync -vsync (31.2 kHz e)
[ 14759.504] (II) modeset(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 14759.505] (II) modeset(0): Modeline "720x480"x0.0   27.00  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1280x720"x0.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1920x1080i"x0.0   74.25  1920 2448 2492 2640  1080 1084 1094 1125 interlace +hsync +vsync (28.1 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1920x1080i"x0.0   74.25  1920 2008 2052 2200  1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1440x480"x0.0   54.00  1440 1472 1596 1716  480 489 495 525 -hsync -vsync (31.5 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1440x576"x0.0   54.00  1440 1464 1592 1728  576 581 586 625 -hsync -vsync (31.2 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1920x1080"x0.0  148.50  1920 2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (56.2 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1920x1080"x0.0   74.25  1920 2558 2602 2750  1080 1084 1089 1125 +hsync +vsync (27.0 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1920x1080"x0.0   74.25  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (33.8 kHz e)
[ 14759.505] (II) modeset(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 14759.505] (II) modeset(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[ 14759.505] (II) modeset(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz e)
[ 14759.505] (II) modeset(0): Modeline "640x480"x0.0   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz e)
[ 14759.505] (II) modeset(0): Modeline "640x480"x0.0   30.24  640 704 768 864  480 483 486 525 -hsync -vsync (35.0 kHz e)
[ 14759.505] (II) modeset(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1024x768"x0.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1024x768"x0.0   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[ 14759.505] (II) modeset(0): Modeline "832x624"x0.0   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz e)
[ 14759.505] (II) modeset(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)
[ 14759.505] (II) modeset(0): Modeline "800x600"x0.0   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1280x960"x0.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1440x900"x0.0   88.75  1440 1488 1520 1600  900 903 909 926 +hsync -vsync (55.5 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1680x1050"x0.0  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[ 14759.505] (II) modeset(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz e)
[ 14759.505] (--) modeset(0): HDMI max TMDS frequency 300000KHz
So now I'm off to test Wayland+GDM on Mint to see if the issue might be X11 at fault.

To answer your question though, I didn't see anything in the BIOS about what to do when the laptop lid is closed, but perhaps I can take a screenshot and double check on that.

Thanks!
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Video playback freezes every 30 seconds

Post by SMG »

Yfrwlf wrote: Tue Dec 07, 2021 2:18 pm Also, if the BIOS was somehow at fault to some degree, why does logging out and back into Xorg fix the issue?
No one said the "BIOS was somehow at fault". Each operating system does not use the information contained in BIOS the same way. Therefore a setting which works in Windows may work differently in a different operating system--especially if the computer was only designed to run Windows.
Yfrwlf wrote: Tue Dec 07, 2021 2:18 pmAaaand more progress! Now I'm even more certain that I should try Wayland instead, because it does indeed look like an X11 issue. I wasn't getting any output when looking in

Code: Select all

journalctl -kf
or when tailing the kern.log when the freezes occur, but then I tried tailing /var/log/Xorg.0.log and found that this message spits out after every freeze:
There is no such thing as "tailing" the Xorg log. It is not a continuous log. It is run at periodic intervals and what you have posted is normal information from the log which is "informational" (II) and is not an (EE) error or a (WW) warning.

Go look at /var/log/Xorg.0.log and /var/log/Xorg.0.log.old. Those are the only logs and the times they are run are at the top of the files. They are not run continuously. What you have posted is in the "middle" of an Xorg log. Thus, you have discovered that the X Server is being triggered to check for changes when the "freeze" happens because it must have received a message there was a hot-plug or state change event. Opening or closing the lid would trigger such an event.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Yfrwlf
Level 3
Level 3
Posts: 171
Joined: Sat Jun 08, 2013 7:46 pm

Re: Video playback freezes every 30 seconds

Post by Yfrwlf »

The fact that Windows doesn't freeze up every 30 seconds, but Linux does, suggests to me that there's an issue with the BIOS sending wrongful lid state change notifications every 30 seconds that Windows ignores or handles more smoothly and could then mean one or more bugs for Xorg, or there's a bug with Xorg doing something weird every 30 seconds and failing to properly handle the lid state change notification or change in attached monitors.

If switching to Wayland fixes it, Xorg probably needs fixing.
Yfrwlf
Level 3
Level 3
Posts: 171
Joined: Sat Jun 08, 2013 7:46 pm

Re: Video playback freezes every 30 seconds

Post by Yfrwlf »

Wayland doesn't have this issue at all. I was right, it is only present in Xorg.
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Video playback freezes every 30 seconds

Post by SMG »

Yfrwlf wrote: Mon Dec 20, 2021 5:12 pm Wayland doesn't have this issue at all. I was right, it is only present in Xorg.
You are also using a different display manager (MDM instead of LightDM), correct? Just wanted to verify you made two changes and not just one.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Yfrwlf
Level 3
Level 3
Posts: 171
Joined: Sat Jun 08, 2013 7:46 pm

Re: Video playback freezes every 30 seconds

Post by Yfrwlf »

SMG wrote: Mon Dec 20, 2021 5:15 pm
Yfrwlf wrote: Mon Dec 20, 2021 5:12 pm Wayland doesn't have this issue at all. I was right, it is only present in Xorg.
You are also using a different display manager (MDM instead of LightDM), correct? Just wanted to verify you made two changes and not just one.
With Mint 20, it's gnome-shell and gdm3 that are needed for Wayland to my knowledge. Regardless, that's what I installed. I think the desktop option in GDM was called Ubuntu or something like that as opposed to Cinnamon or Cinnamon w/ software rendering.
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Video playback freezes every 30 seconds

Post by SMG »

Yfrwlf wrote: Mon Dec 20, 2021 8:08 pmWith Mint 20, it's gnome-shell and gdm3 that are needed for Wayland to my knowledge. Regardless, that's what I installed. I think the desktop option in GDM was called Ubuntu or something like that as opposed to Cinnamon or Cinnamon w/ software rendering.
Mint does not support Wayland at all. You are either running Ubuntu or some special hybrid mixture of Ubuntu and Mint.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Yfrwlf
Level 3
Level 3
Posts: 171
Joined: Sat Jun 08, 2013 7:46 pm

Re: Video playback freezes every 30 seconds

Post by Yfrwlf »

SMG wrote: Mon Dec 20, 2021 8:35 pm
Yfrwlf wrote: Mon Dec 20, 2021 8:08 pmWith Mint 20, it's gnome-shell and gdm3 that are needed for Wayland to my knowledge. Regardless, that's what I installed. I think the desktop option in GDM was called Ubuntu or something like that as opposed to Cinnamon or Cinnamon w/ software rendering.
Mint does not support Wayland at all. You are either running Ubuntu or some special hybrid mixture of Ubuntu and Mint.
Mint is based on Ubuntu. Mint DOES have Wayland available, I just told you how to install it, but you're so arrogant you won't even listen to me. Because Mint is based on Ubuntu and uses packages from Ubuntu repos, it often times has "Ubuntu" badging laying around. The gnome-shell and gdm3 packages will pull in Wayland and other dependencies, and once you configure gdm3 to be your login manager and reboot or start gdm3, you'll see "Ubuntu on Wayland" as a DE login option.
Last edited by xenopeek on Tue Dec 21, 2021 11:32 am, edited 1 time in total.
Reason: personal attack and rant removed
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Video playback freezes every 30 seconds

Post by SMG »

Yfrwlf wrote: Tue Dec 21, 2021 9:27 amMint is based on Ubuntu. Mint DOES have Wayland available, I just told you how to install it, but you're so arrogant you won't even listen to me.
Just because you can install something does not mean it is supported. Mint does not support the use of Wayland.

In fact, you have stated your desktop now tells you that you are running "Ubuntu on Wayland". You are now running what might be described as a Linux Mint hybrid.

There is no "Ubuntu on Wayland" desktop environment (DE) in Linux Mint. Linux Mint has and supports Cinnamon, MATE, and Xfce.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
xenopeek
Level 25
Level 25
Posts: 29612
Joined: Wed Jul 06, 2011 3:58 am

Re: Video playback freezes every 30 seconds

Post by xenopeek »

Yfrwlf wrote: Tue Dec 21, 2021 9:27 am Mint is based on Ubuntu. Mint DOES have Wayland available
Let's not split hairs over this and please stay friendly. Linux Mint comes in Cinnamon, MATE and Xfce edition. None of these desktop environments currently is a Wayland compositor. As Linux Mint is developed and tested currently it does not yet support Wayland. And yes you can install a different desktop environment or window manager on Linux Mint, one that is a Wayland compositor, but I think you can see that's not what Linux Mint's developers support.
Yfrwlf wrote: Mon Dec 20, 2021 5:12 pmWayland doesn't have this issue at all. I was right, it is only present in Xorg.
After installing GNOME Shell and GDM, did you try to reproduce your issue both on "Ubuntu" session and on "Ubuntu on Wayland" session? The first is Xorg and it's relevant whether your issue is solved with that or not. You can choose the session type at the login screen, with the gearwheel icon in the bottom left.

And does it matter which video playback program you are using for the issue? Like, does it happen with Youtube videos in Firefox and video files played through Celluloid or VLC for example?

(If you don't go out of your way to configure them to run directly on Wayland (if they can) many programs will be running on XWayland — the Xorg server built in to Wayland. So that opens another can of worms to find the exact cause.)

Did you check in the system log if something is logged every 30 seconds while playing a video? After reproducing the issue, noting the computer time when you reproduced it, try opening a terminal and run the command journalctl -e to jump to the end of your system log. Scroll up to the time when the issue happened for you and try to see if you can spot something relevant. And if that is repeated 30 seconds before.

Or run the command journalctl -b -p err --no-pager to show all the errors (and worse) from this boot. Share those here if anything looks relevant.

Whatever is happening, if some signal is not interpreted or handled correctly, it may be possible to override behavior with a kernel parameter.
Image
Locked

Return to “Hardware Support”