[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Nvidia Optimus, Debian 10, and Firefox ESR crashes



On 01/01/2021 23:51, David Christensen wrote:
> debian-users:
>
> I have a Dell Latitude E6520 with Nvidia Optimus graphics:
>
> https://en.wikipedia.org/wiki/Nvidia_Optimus
>
>
> STFW and RTFM:
>
> https://wiki.debian.org/NVIDIA%20Optimus
>
> -> Using only the integrated GPU
>
> https://wiki.debian.org/NVIDIA%20Optimus#UsingOnlyOneGPU
>
>
> I have disabled Optimus in the CMOS Setup:
>
> Video -> Optimus -> Enable Optimus -> unchecked

Any reason for doing this? Optimus has (finally) become natively
supported by the Proprietary NVIDIA driver recently (it's just a matter
of running an application the environment variable
__NV_PRIME_RENDER_OFFLOAD set to 1 and that process will use the dGPU).

Also, I notice that while Optimus is unchecked here, the NVIDIA card
still shows up in your PCI listing. I don't know a lot about Optimus,
but I think that indicates that the dGPU is still powered up (i.e. if
you're trying to disable Optimus for power-saving purposes, you might
not be getting what you want).

I think, basically, I'm wondering what "disabling Optimus" means. Does
it mean that the dGPU is unavailable to you (clearly not, it appears in
the PCI listing)... Ah, no... I see it! It's disabled the iGPU instead.
So, in this mode, you're using _only_ the NVIDIA GPU and _not_ the Intel
GPU. In that case, what NVIDIA driver are you using: proprietary or nouveau?


>
>
> I have installed Debian 10:
>
> 2021-01-01 12:18:07 root@dipsy ~
> # cat /etc/debian_version
> 10.7
>
> 2021-01-01 12:18:19 root@dipsy ~
> # uname -a
> Linux dipsy 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18)
> x86_64 GNU/Linux
>
> 2021-01-01 12:29:44 root@dipsy ~
> # dpkg-query -W xorg
> xorg    1:7.7+19
>
> 2021-01-01 12:30:14 root@dipsy ~
> # dpkg-query -W xfce4
> xfce4    4.12.5
>
> 2021-01-01 12:18:23 root@dipsy ~
> # dpkg-query -W firefox-esr
> firefox-esr    78.6.0esr-1~deb10u1
>
> 2021-01-01 12:42:23 root@dipsy ~
> # lscpu
> Architecture:        x86_64
> CPU op-mode(s):      32-bit, 64-bit
> Byte Order:          Little Endian
> Address sizes:       36 bits physical, 48 bits virtual
> CPU(s):              4
> On-line CPU(s) list: 0-3
> Thread(s) per core:  1
> Core(s) per socket:  4
> Socket(s):           1
> NUMA node(s):        1
> Vendor ID:           GenuineIntel
> CPU family:          6
> Model:               42
> Model name:          Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz
> Stepping:            7
> CPU MHz:             1021.254
> CPU max MHz:         3300.0000
> CPU min MHz:         800.0000
> BogoMIPS:            4390.20
> Virtualization:      VT-x
> L1d cache:           32K
> L1i cache:           32K
> L2 cache:            256K
> L3 cache:            6144K
> NUMA node0 CPU(s):   0-3
> Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr
> pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
> syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl
> xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor
> ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic
> popcnt tsc_deadline_timer aes xsave avx lahf_lm epb pti tpr_shadow
> vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts
>
> 2021-01-01 12:18:31 root@dipsy ~
> # lspci
> 00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor
> Family DRAM Controller (rev 09)
> 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core
> Processor Family PCI Express Root Port (rev 09)
> 00:16.0 Communication controller: Intel Corporation 6 Series/C200
> Series Chipset Family MEI Controller #1 (rev 04)
> 00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network
> Connection (rev 04)
> 00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset
> Family USB Enhanced Host Controller #2 (rev 04)
> 00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset
> Family High Definition Audio Controller (rev 04)
> 00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset
> Family PCI Express Root Port 1 (rev b4)
> 00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset
> Family PCI Express Root Port 2 (rev b4)
> 00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset
> Family PCI Express Root Port 3 (rev b4)
> 00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset
> Family PCI Express Root Port 4 (rev b4)
> 00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset
> Family PCI Express Root Port 6 (rev b4)
> 00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset
> Family USB Enhanced Host Controller #1 (rev 04)
> 00:1f.0 ISA bridge: Intel Corporation QM67 Express Chipset Family LPC
> Controller (rev 04)
> 00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series
> Chipset Family 6 port SATA AHCI Controller (rev 04)
> 00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family
> SMBus Controller (rev 04)
> 01:00.0 VGA compatible controller: NVIDIA Corporation GF119M [NVS
> 4200M] (rev a1)
> 01:00.1 Audio device: NVIDIA Corporation GF119 HDMI Audio Controller
> (rev a1)
> 03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205
> [Taylor Peak] (rev 34)
> 0b:00.0 FireWire (IEEE 1394): O2 Micro, Inc. 1394 OHCI Compliant Host
> Controller (rev 05)
> 0b:00.1 SD Host controller: O2 Micro, Inc. OZ600RJ0/OZ900RJ0/OZ600RJS
> SD/MMC Card Reader Controller (rev 05)
> 0b:00.2 Mass storage controller: O2 Micro, Inc. O2 Flash Memory Card
> (rev 05)
>
>
> After a random amount of time (minutes to hours) of watching videos on
> YouTube in full screen mode via a KVM switch:
>
> https://www.iogear.com/product/GCS78KIT
>
>
> On an external monitor:
>
> https://www.viewsonic.com/me/products/lcd/VX2260wm.php
>
>
> The system will crash:
>
> -  Video is stuck on one frame.
>
> -  Audio continues playing.
>
> -  Mouse pointer is visible and moves with mouse movement.
>
> -  Mouse clicks have no effect.
>
> -  Keyboard input has no effect.
>
>
> I can SSH into the computer after the crash.
>
>
> The X log shows the problems starting here:
>
> 2021-01-01 15:45:09 root@dipsy ~
> # tail -n 117 /var/log/Xorg.0.log | head -n 13
> [   553.029] (II) modeset(0): EDID vendor "SEC", prod id 21576
> [   553.029] (II) modeset(0): Printing DDC gathered Modelines:
> [   553.029] (II) modeset(0): Modeline "1920x1080"x0.0  138.65  1920
> 1944 1960 2080  1080 1082 1087 1111 +hsync -vsync (66.7 kHz eP)
> [   553.029] (II) modeset(0): Modeline "1920x1080"x0.0   92.44  1920
> 1944 1960 2080  1080 1082 1087 1111 +hsync -vsync (44.4 kHz e)
> [   553.362] (II) modeset(0): EDID vendor "SEC", prod id 21576
> [   553.362] (II) modeset(0): Printing DDC gathered Modelines:
> [   553.362] (II) modeset(0): Modeline "1920x1080"x0.0  138.65  1920
> 1944 1960 2080  1080 1082 1087 1111 +hsync -vsync (66.7 kHz eP)
> [   553.362] (II) modeset(0): Modeline "1920x1080"x0.0   92.44  1920
> 1944 1960 2080  1080 1082 1087 1111 +hsync -vsync (44.4 kHz e)
> [   554.022] (II) modeset(0): Allocate new frame buffer 1920x1080 stride
> [   554.648] (II) modeset(0): EDID vendor "SEC", prod id 21576
> [   554.648] (II) modeset(0): Printing DDC gathered Modelines:
> [   554.648] (II) modeset(0): Modeline "1920x1080"x0.0  138.65  1920
> 1944 1960 2080  1080 1082 1087 1111 +hsync -vsync (66.7 kHz eP)
> [   554.648] (II) modeset(0): Modeline "1920x1080"x0.0   92.44  1920
> 1944 1960 2080  1080 1082 1087 1111 +hsync -vsync (44.4 kHz e)
>
>
> Followed by four instances of:
>
> 2021-01-01 15:45:46 root@dipsy ~
> # tail -n 26 /var/log/Xorg.0.log
> [   555.537] (II) modeset(0): EDID vendor "VSC", prod id 64545
> [   555.537] (II) modeset(0): Using hsync ranges from config file
> [   555.537] (II) modeset(0): Using vrefresh ranges from config file
> [   555.537] (II) modeset(0): Printing DDC gathered Modelines:
> [   555.537] (II) modeset(0): Modeline "1920x1080"x0.0  148.50  1920
> 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
> [   555.537] (II) modeset(0): Modeline "800x600"x0.0   40.00  800 840
> 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
> [   555.537] (II) modeset(0): Modeline "800x600"x0.0   36.00  800 824
> 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
> [   555.537] (II) modeset(0): Modeline "640x480"x0.0   31.50  640 656
> 720 840  480 481 484 500 -hsync -vsync (37.5 kHz e)
> [   555.537] (II) modeset(0): Modeline "640x480"x0.0   31.50  640 664
> 704 832  480 489 492 520 -hsync -vsync (37.9 kHz e)
> [   555.537] (II) modeset(0): Modeline "640x480"x0.0   30.24  640 704
> 768 864  480 483 486 525 -hsync -vsync (35.0 kHz e)
> [   555.537] (II) modeset(0): Modeline "640x480"x0.0   25.18  640 656
> 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
> [   555.537] (II) modeset(0): Modeline "720x400"x0.0   28.32  720 738
> 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)
> [   555.537] (II) modeset(0): Modeline "1280x1024"x0.0  135.00  1280
> 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
> [   555.537] (II) modeset(0): Modeline "1024x768"x0.0   78.75  1024
> 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz e)
> [   555.537] (II) modeset(0): Modeline "1024x768"x0.0   75.00  1024
> 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz e)
> [   555.537] (II) modeset(0): Modeline "1024x768"x0.0   65.00  1024
> 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
> [   555.537] (II) modeset(0): Modeline "832x624"x0.0   57.28  832 864
> 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz e)
> [   555.537] (II) modeset(0): Modeline "800x600"x0.0   49.50  800 816
> 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)
> [   555.537] (II) modeset(0): Modeline "800x600"x0.0   50.00  800 856
> 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz e)
> [   555.537] (II) modeset(0): Modeline "1152x864"x0.0  108.00  1152
> 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz e)
> [   555.537] (II) modeset(0): Modeline "1680x1050"x0.0  146.25  1680
> 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz e)
> [   555.537] (II) modeset(0): Modeline "1600x1200"x0.0  162.00  1600
> 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (75.0 kHz e)
> [   555.537] (II) modeset(0): Modeline "1440x900"x0.0  106.50  1440
> 1520 1672 1904  900 903 909 934 -hsync +vsync (55.9 kHz e)
> [   555.537] (II) modeset(0): Modeline "1400x1050"x0.0  121.75  1400
> 1488 1632 1864  1050 1053 1057 1089 -hsync +vsync (65.3 kHz e)
> [   555.537] (II) modeset(0): Modeline "1280x1024"x0.0  108.00  1280
> 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
> [   555.537] (II) modeset(0): Modeline "1280x960"x0.0  108.00  1280
> 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz e)
>
>
> Here is output of top(1):
>
> 2021-01-01 15:49:05 root@dipsy ~
> # top -n 1 | head -n 15
> top - 15:49:52 up  3:07,  2 users,  load average: 0.30, 0.17, 0.11
> Tasks: 180 total,   1 running, 179 sleeping,   0 stopped,   0 zombie
> %Cpu(s):  3.1 us,  1.6 sy,  0.0 ni, 95.3 id,  0.0 wa,  0.0 hi,  0.0
> si, 0.0 st
> MiB Mem :  15997.8 total,   6039.9 free,   3520.9 used,   6436.9
> buff/cache
> MiB Swap:    954.0 total,    954.0 free,      0.0 used.   6396.6 avail
> Mem
>
>   PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+
> COMMAND
>   223 root      20   0       0      0      0 I   6.2   0.0   8:27.72
> kworker/2:2-events
>  1393 dpchrist  20   0 3306404 482716 184528 S   6.2   2.9  17:53.01
> firefox-esr
>  1449 dpchrist  20   0 8853508   6.0g   5.7g S   6.2  38.7  41:46.50
> Web Content
>  1988 root      20   0    8180   3340   2768 R   6.2   0.0   0:00.01 top
>     1 root      20   0  169760  10480   7924 S   0.0   0.1   0:01.41
> systemd
>     2 root      20   0       0      0      0 S   0.0   0.0   0:00.00
> kthreadd
>     3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00
> rcu_gp
>     4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00
> rcu_par_gp
>
>
>
> Suggestions?
>
>
> David
>

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: