since updating to the new drivers when I try to switch back to the terminals from X the screens are blank, if I exit X I have no screen at all. Returning to X screen resumes running X fine. used to solve on old machine with vgamode but I know that means nothing under UEFI and it worked fine prior to this update. card is a gigabyte 5070, amd64 releng 15.1p3 not sure which piece from the drm to this specifically is the issue.
(In reply to alt2600 from comment #0) How did you upgrade NVIDIA related ports/pkgs and DRM related ports/pkgs? If you've upgraded via pkg, unfortunately, any kind of breakages are expected for now. There's long standing regression that official kmod builders doesn't build NVIDIA related kmods other than x11/nvidia-kmod alone. So upgrading via pkg should cause pulling in (by default for 15.1) graphics/nvidia-drm-612-kmod built against /usr/src/sys of 15.0, thus, expected to NOT work properly. In this case, even if the regression is NOT addressed, this issue would be fixed after EoL of 15.0 (main official pkg repo would be reconfigured with 15.1 for 15.*). But for now, it is expected to be fixed by building graphics/nvidia-drm-*-kmod that is actually installed locally using ports and /usr/src/sys which are 100% in sync with your running kernel (for 15.1p3, it should be commit base 88e7371d9dc26f85dfc1b008cbe59ebc7e4a33da on branch releng/15.1). Anyway, I've not encountered the issue on my local tests before submitting patch for upgrading (of course, built locally using ports with the changes done before generating patch). Commit base 8a4fcb694526fdb64709e0382d92053a9d71e49a on branch stable/15 and commit base 9c8bcdddb35e9a3c70f65748ecc784bb400dfa38 on branch main, amd64 using RTX A400 without using iGPU. Mate DE.
(In reply to Tomoaki AOKI from comment #1) as I always do, from ports using portmaster, technically built under a p2 system as I was doing the build for p3 at the same time. Stable has potentially a different ABI than releng as the last time I reported on the nvidia-drivers found. If does not work for me, just like the old days without vgamode loader variable set. I do not have an iGPU on my processor, its just a discrete graphics card. I have my IOMMU disabled under the bios, as it seemed to magically make usb drive mounting work again, but haven't fully tested with it back on yet to fully confirm. the driver loads, I seemingly have drm accelerated graphics but cannot return to console ctrl-alt-f1, or exit Xorg with text on the screen. For now I just checked out an old ports tree and an using the older driver from 8/4/2026 give or take and things all working fine again.
(In reply to alt2600 from comment #2) So there's one possibility. If you built kmods BEFORE installworld, possibly installed headers and updated in-src-tree headers are mixed up and causing issues. And why rolled back ports tree helped could be because /usr/src and installed userland are now in-sync. Can you update ports tree again and try? If it's fine, the above would be happened. Not limited with NVIDIA things, but I've bitten by the above situation before. So, to be paranoid, I'm rebuilding kmod ports and known abusers like lsof after installkernel and before reboot into upgraded kernel, installworld and etcupdate after reboot into single user, then, rebuild kmod ports and abusers again before reboot with upgraded userland. And once the 2nd rebuilds somehow fails, I look into by which commit the breakage is introduced. But this time, nothing odd happened for me on upgrading base while testing 595.99.02. Note that most convenient way may be to use PORTS_MODULES functionality. But I'm intentionally NOT using it, as when I've tried using it years ago, buildkernel and/or installkernel failed as of ports kmods build / install issues, and build / install logs had been scrolled away, thus, couldn't be 100% sure base kernel itself was sanely built/ installed or not. But many years already passed, so things could be different now.
(In reply to Tomoaki AOKI from comment #3) never had issues with releng patch to patch with drivers, stable can be fun which is why i don't run it these days, as that has bit me before. I thought releng was supposed to stay no ABI changes, but stable was a moving target though to the next releng version. but rebuilding with the installed p3 system didn't resolve. once its in graphics mode, it will not switch or go back to textmode console. Or i should say it swaps virtual terminals, but the screen stays blank on 1-8 until I go back to X on 9. Also when switching there is more noticeable screen glitches returning to graphics mode, nothing more than maybe the framebuffer refreshing and solid normal screen once the screen redraws itself. On occasion they can happen, but generally not each time switching back to the text terminals for me. I saved the older driver packages, so just going to roll with them for a bit for now. I did check the git diff between below, and did notice a few kernel header changes, but mainly openssl being patched. I couldn't tell if the stuff with posix shared memory or hwpmc would affect the nvidia drivers or not, but I doubt the networking and sound system would affect video. aadd58dddcbc78f4d5594827b46b5633552b15ce (tag: release/15.1.0-p2) 88e7371d9dc26f85dfc1b008cbe59ebc7e4a33da (HEAD -> releng/15.1, tag: release/15.1.0-p3, origin/releng/15.1) pretty sure this are the correct commit hashes between the two per git log on src.