You are not logged in.

#26 2023-02-24 22:01:10

seth
Member
Registered: 2012-09-03
Posts: 49,977

Re: Display randomly freezes and 2nd monitor goes unresponsive

Everything what exactly?
The idea would have been to explicitly disable prime sync?

Next (because of the cstate impact and the idling timeout:
https://wiki.archlinux.org/title/Intel_ … flickering
"i915.enable_psr=0"

Online

#27 2023-02-24 22:14:23

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 66
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

Everything what exactly?

Everything you suggested me to do.
Also, why did it suddenly break? My system was running perfectly fine until the upgrade.

Last edited by Wolfyxon (2023-02-24 22:15:15)


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | GPU drivers: modesetting, nvidia-dkms

Online

#28 2023-02-25 06:52:46

seth
Member
Registered: 2012-09-03
Posts: 49,977

Re: Display randomly freezes and 2nd monitor goes unresponsive

Everything you suggested me to do.

So you looked into the direction of prime sync. Spoiler: just looking there won't do anything.

Also, why did it suddenly break? My system was running perfectly fine until the upgrade.

https://en.wikipedia.org/wiki/Software_regression
Or the hardware broke.

Did you disable psr?

Online

#29 2023-02-25 10:34:12

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 66
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

So you looked into the direction of prime sync. Spoiler: just looking there won't do anything.

Did you disable psr?

yes


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | GPU drivers: modesetting, nvidia-dkms

Online

#30 2023-02-25 10:38:45

seth
Member
Registered: 2012-09-03
Posts: 49,977

Re: Display randomly freezes and 2nd monitor goes unresponsive

And?
Also PSR isn't related to prime sync, so did you explicitly disable that as well?


I get that this is probably frustrating, but playing spoiled brat will only slow things down and stands a risk of frustrating me as well.
And only one of us actually has a problem to solve here. I can drop out any moment and be fine.

Online

#31 2023-02-25 11:46:09

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 66
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

And?

Still.

Also PSR isn't related to prime sync, so did you explicitly disable that as well?

Of course.

I get that this is probably frustrating, but playing spoiled brat will only slow things down and stands a risk of frustrating me as well.
And only one of us actually has a problem to solve here. I can drop out any moment and be fine.

Sorry if I was acting like that.

Last edited by Wolfyxon (2023-02-25 11:50:20)


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | GPU drivers: modesetting, nvidia-dkms

Online

#32 2023-02-27 14:19:47

seth
Member
Registered: 2012-09-03
Posts: 49,977

Re: Display randomly freezes and 2nd monitor goes unresponsive

There's https://forums.developer.nvidia.com/t/e … p/240307/3 what along your OP (gmaes/vulkan) makes me wonder whether this is a DRI3 related situation.
https://wiki.archlinux.org/title/Intel_ … RI3_issues

nb. that you're on the modesetting driver (which is preferred for your HW) and therefore need to export LIBGL_DRI3_DISABLE=1 (ideally globally when starting the session or in /etc/profile.d)

Online

#33 2023-03-04 13:23:15

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 66
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

Nothing seems to help. Maybe I should consider a reinstall?


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | GPU drivers: modesetting, nvidia-dkms

Online

#34 2023-03-04 15:21:51

seth
Member
Registered: 2012-09-03
Posts: 49,977

Re: Display randomly freezes and 2nd monitor goes unresponsive

If you recreate the current setup, you'll end at the same situation.
Since https://bbs.archlinux.org/viewtopic.php?id=282669is about the 6.x kernels, you could try https://aur.archlinux.org/packages/linux-lts515

Online

#35 2023-03-18 13:08:07

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 66
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

seth wrote:

If you recreate the current setup, you'll end at the same situation.
Since https://bbs.archlinux.org/viewtopic.php?id=282669is about the 6.x kernels, you could try https://aur.archlinux.org/packages/linux-lts515

I'm having issues building that kernel, makepkg just freezes. I couldn't find any solution online.
(CPU usage drops to 0 so it definitely freezes)

[wolfyxon@WolfArch linux-lts515]$ makepkg
==> Making package: linux-lts515 5.15.102-1 (Sat 18 Mar 2023 01:59:37 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found linux-5.15.102.tar.xz
  -> Found linux-5.15.102.tar.sign
  -> Found config
  -> Found 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
  -> Found 0002-PCI-Add-more-NVIDIA-controllers-to-the-MSI-masking-q.patch
  -> Found 0003-iommu-intel-do-deep-dma-unmapping-to-avoid-kernel-fl.patch
  -> Found 0004-Bluetooth-btintel-Fix-bdaddress-comparison-with-garb.patch
  -> Found 0005-lg-laptop-Recognize-more-models.patch
==> Validating source files with sha256sums...
    linux-5.15.102.tar.xz ... Passed
    linux-5.15.102.tar.sign ... Skipped
    config ... Passed
    0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch ... Passed
    0002-PCI-Add-more-NVIDIA-controllers-to-the-MSI-masking-q.patch ... Passed
    0003-iommu-intel-do-deep-dma-unmapping-to-avoid-kernel-fl.patch ... Passed
    0004-Bluetooth-btintel-Fix-bdaddress-comparison-with-garb.patch ... Passed
    0005-lg-laptop-Recognize-more-models.patch ... Passed
==> Verifying source file signatures with gpg...
    linux-5.15.102.tar ... Passed
==> Extracting sources...
  -> Extracting linux-5.15.102.tar.xz with bsdtar
==> Starting prepare()...
Setting version...
Applying patch 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch...
patching file include/linux/user_namespace.h
patching file init/Kconfig
Hunk #1 succeeded at 1235 (offset 4 lines).
patching file kernel/fork.c
Hunk #2 succeeded at 1958 (offset 3 lines).
Hunk #3 succeeded at 3080 (offset 5 lines).
patching file kernel/sysctl.c
patching file kernel/user_namespace.c
Applying patch 0002-PCI-Add-more-NVIDIA-controllers-to-the-MSI-masking-q.patch...
patching file drivers/pci/quirks.c
Hunk #1 succeeded at 5847 (offset 23 lines).
Applying patch 0003-iommu-intel-do-deep-dma-unmapping-to-avoid-kernel-fl.patch...
patching file drivers/iommu/intel/iommu.c
Hunk #1 succeeded at 5137 (offset 14 lines).
Applying patch 0004-Bluetooth-btintel-Fix-bdaddress-comparison-with-
garb.patch...
patching file drivers/bluetooth/btintel.c
Applying patch 0005-lg-laptop-Recognize-more-models.patch...
patching file drivers/platform/x86/lg-laptop.c
Setting config...
#
# No change to .config
#
Prepared linux-lts515 version 5.15.102-1-lts515
==> Removing existing $pkgdir/ directory...
==> Starting build()...
  SYNC    include/config/auto.conf
  SPHINX  htmldocs --> file:///home/wolfyxon/Downloads/linux-lts515/src/linux-5.15.102/Documentation/output
make[2]: Nothing to be done for 'html'.
./include/linux/dcache.h:318: warning: expecting prototype for dget, dget_dlock(). Prototype was for dget_dlock() instead
./fs/d_path.c:97: warning: Excess function parameter 'buffer' description in 'prepend_name'
./fs/d_path.c:97: warning: Excess function parameter 'buflen' description in 'prepend_name'
./fs/d_path.c:160: warning: Excess function parameter 'buffer' description in 'prepend_path'
./fs/d_path.c:160: warning: Excess function parameter 'buflen' description in 'prepend_path'
Error: Cannot open file ./kernel/futex.c
Error: Cannot open file ./kernel/futex.c
Error: Cannot open file ./kernel/futex.c
Error: Cannot open file ./kernel/futex.c
/home/wolfyxon/Downloads/linux-lts515/src/linux-5.15.102/Documentation/filesystems/index.rst:18: WARNING: toctree contains reference to nonexisting document 'filesystems/mandatory-locking'
WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -sphinx-version 6.1.3 -internal ./kernel/futex.c' failed with return code 2
WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -sphinx-version 6.1.3 -internal ./kernel/futex.c' failed with return code 2
/home/wolfyxon/Downloads/linux-lts515/src/linux-5.15.102/Documentation/vm/damon/index.rst:24: WARNING: toctree contains reference to nonexisting document 'vm/damon/plans'
/home/wolfyxon/Downloads/linux-lts515/src/linux-5.15.102/Documentation/bpf/libbpf/index.rst: WARNING: document isn't included in any toctree
/home/wolfyxon/Downloads/linux-lts515/src/linux-5.15.102/Documentation/tty/device_drivers/oxsemi-tornado.rst: WARNING: document isn't included in any toctree
WARNING: search index couldn't be loaded, but not all documents will be built: the index will be incomplete.

Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | GPU drivers: modesetting, nvidia-dkms

Online

#36 2023-03-18 13:28:06

seth
Member
Registered: 2012-09-03
Posts: 49,977

Re: Display randomly freezes and 2nd monitor goes unresponsive

The tail of the journal is some warnings reg. building the documentation.
What if you remove htmldocs from the PKGBUILD build() make call?

Online

#37 2023-03-18 17:09:25

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 66
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

seth wrote:

The tail of the journal is some warnings reg. building the documentation.
What if you remove htmldocs from the PKGBUILD build() make call?

Now I get:

Installing boot image...
install: cannot stat 'arch/x86/boot/bzImage': No such file or directory
==> ERROR: A failure occurred in package_linux-lts515().
    Aborting...

Last edited by Wolfyxon (2023-03-18 17:09:40)


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | GPU drivers: modesetting, nvidia-dkms

Online

#38 2023-03-18 17:22:21

seth
Member
Registered: 2012-09-03
Posts: 49,977

Re: Display randomly freezes and 2nd monitor goes unresponsive

Please post the entire build log.
You do have https://archlinux.org/packages/?name=base-devel installed?

Online

#39 2023-03-18 18:31:15

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 66
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

seth wrote:

Please post the entire build log.
You do have https://archlinux.org/packages/?name=base-devel installed?

Here: http://0x0.st/H-OR.txt
Yes, it's installed.


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | GPU drivers: modesetting, nvidia-dkms

Online

#40 2023-03-18 19:07:46

seth
Member
Registered: 2012-09-03
Posts: 49,977

Re: Display randomly freezes and 2nd monitor goes unresponsive

Did you just remove the entire line?
You'll stll need "make all"

Online

#41 2023-03-19 15:42:44

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 66
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

seth wrote:

Did you just remove the entire line?
You'll stll need "make all"

Yeah...... I could've pay attention more.
Now it's compiling (it's been 5 hours since I ran it)


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | GPU drivers: modesetting, nvidia-dkms

Online

#42 2023-03-19 19:05:00

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 66
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

It finally compiled.
linux-lts installed without problems but when I install headers:

loading packages...
warning: linux-lts515-headers-5.15.102-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) linux-lts515-headers-5.15.102-1

Total Installed Size:  140.70 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [##########] 100%
(1/1) checking package integrity                   [##########] 100%
(1/1) loading package files                        [##########] 100%
(1/1) checking for file conflicts                  [##########] 100%
(1/1) checking available disk space                [##########] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
:: Processing package changes...
(1/1) reinstalling linux-lts515-headers            [##########] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Install DKMS modules
==> dkms install --no-depmod nvidia/525.89.02 -k 5.15.102-1-lts515
Error! Bad return status for module build on kernel: 5.15.102-1-lts515 (x86_64)
Consult /var/lib/dkms/nvidia/525.89.02/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/525.89.02 -k 5.15.102-1-lts515' exited 10

/var/lib/dkms/nvidia/525.89.02/build/make.log: http://0x0.st/H-vJ.txt

Last edited by Wolfyxon (2023-03-19 19:06:32)


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | GPU drivers: modesetting, nvidia-dkms

Online

#43 2023-03-19 19:37:11

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 66
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

I booted into that kernel, anything NVIDIA related wasn't working (2nd screen, prime-run script, ...).


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | GPU drivers: modesetting, nvidia-dkms

Online

#44 2023-03-19 20:33:23

seth
Member
Registered: 2012-09-03
Posts: 49,977

Re: Display randomly freezes and 2nd monitor goes unresponsive

Because the dkms failed.
The build log suggests that no compilation takes place, we're heading straight for the linking and try to link a bunch of non-existing objects.

Since you're re-installing the header package, I guess this is a follow-up error?
Remove the /var/lib/dkms/nvidia/525.89.02/build/ directory and https://wiki.archlinux.org/title/Dynami … ld_modules

Online

#45 2023-03-29 20:02:03

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 66
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

Still I get the same error when installing headers.
(Sorry for late response, I didn't have much free time lately)


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | GPU drivers: modesetting, nvidia-dkms

Online

#46 2023-03-29 20:06:44

seth
Member
Registered: 2012-09-03
Posts: 49,977

Re: Display randomly freezes and 2nd monitor goes unresponsive

What error?
Please post an updated dkms build log.

Online

#47 2023-03-29 20:31:42

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 66
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

It's the same, a bunch of missing files


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | GPU drivers: modesetting, nvidia-dkms

Online

#48 2023-03-29 20:41:21

seth
Member
Registered: 2012-09-03
Posts: 49,977

Re: Display randomly freezes and 2nd monitor goes unresponsive

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

Please post an updated dkms build log.

Edit, just in case: the header package has to fit the kernel. Don't run partial updates.

Last edited by seth (2023-03-29 20:42:41)

Online

#49 2023-03-29 20:59:42

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 66
Website

Re: Display randomly freezes and 2nd monitor goes unresponsive

The log is gone after I removed the headers. (I'll reinstall it and post it if this solution wont work)
I think the LTS kernel isn't required. I regenerated my X11 config with `nvidia-xconf` and there's no freezing (I've done some deep testing).
New config

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 530.41.03

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Original config

Section "ServerLayout"
        Identifier "layout"
        Screen 0 "intel"
        Inactive "nvidia"
        Option "AllowNVIDIAGPUScreens"
EndSection

Section "Device"
        Identifier "nvidia"
        Driver "nvidia"
EndSection

Section "Screen"
        Identifier "nvidia"
        Device "nvidia"
EndSection

Section "Device"
        Identifier "intel"
        Driver "modesetting"
        BusID "PCI:0:2:0"
	Option "DRI" "2"
EndSection

Section "Screen"
        Identifier "intel"
        Device "intel"
EndSection

However with this new config, xrandr doesn't see eDP-1 monitor and my primary screen is HDMI-1-0.  How can I fix that?
EDIT: Hold on I'm reading the wiki

Last edited by Wolfyxon (2023-03-29 21:04:11)


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | GPU drivers: modesetting, nvidia-dkms

Online

#50 2023-03-29 21:07:26

seth
Member
Registered: 2012-09-03
Posts: 49,977

Re: Display randomly freezes and 2nd monitor goes unresponsive

I regenerated my X11 config with `nvidia-xconf`

Don't do that.

How can I fix that?

Remove any kind of xorg.conf you have.

Online

Board footer

Powered by FluxBB