Bug 249505 - [patch]x11/nvidia-driver and x11/linux-nvidia-libs: Update to latest 450.66
Summary: [patch]x11/nvidia-driver and x11/linux-nvidia-libs: Update to latest 450.66
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
Depends on:
Reported: 2020-09-21 11:22 UTC by Tomoaki AOKI
Modified: 2021-01-17 06:10 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (x11)

Patch for x11/nvidia-driver (9.11 KB, patch)
2020-09-21 11:22 UTC, Tomoaki AOKI
no flags Details | Diff
Patch for x11/linux-nvidia-libs (3.93 KB, patch)
2020-09-21 11:25 UTC, Tomoaki AOKI
no flags Details | Diff
Patch for x11/linux-nvidia-libs (rev2) (3.93 KB, patch)
2020-09-21 21:58 UTC, Tomoaki AOKI
no flags Details | Diff
Update to 450.80.02 (12.96 KB, patch)
2020-12-09 00:17 UTC, Jung-uk Kim
no flags Details | Diff
Update to 450.80.02 (Rev. 2) (12.30 KB, patch)
2020-12-09 00:21 UTC, Jung-uk Kim
no flags Details | Diff
Update to 460.32.03 (14.74 KB, patch)
2021-01-17 02:43 UTC, Tomoaki AOKI
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomoaki AOKI 2020-09-21 11:22:58 UTC
Created attachment 218141 [details]
Patch for x11/nvidia-driver

Update x11/nvidia-driver and x11/linux-nvidia-libs to latest 450.66.
Minimal changes, possibly incomplete. No new files are checked.
Applicable on /usr/ports after r549424.
(Conflicts with glesv1 libs installed by graphics/mesa-libs before it.)

Note: libnvidia-fatbinaryloader.so is removed from linux-nvidia-libs at 450.57.
      See [1] below for detail.

[1] https://www.nvidia.com/Download/driverResults.aspx/162107/en-us
Comment 1 Tomoaki AOKI 2020-09-21 11:25:13 UTC
Created attachment 218142 [details]
Patch for x11/linux-nvidia-libs

Patch for x11/linux-nvidia-libs.
Applicable on /usr/ports.
Comment 2 Tomoaki AOKI 2020-09-21 21:58:53 UTC
Created attachment 218162 [details]
Patch for x11/linux-nvidia-libs (rev2)

Created previous patch against accidentally edited Makefile.
This revision should apply OK on /usr/ports.
Comment 3 Alex S 2020-09-22 19:49:44 UTC
(In reply to Tomoaki AOKI from comment #2)

I'll leave this as a reference: https://github.com/shkhln/revird-aidivn/commit/c862309d3b5e6f0e95af2053d3d38fda5f4f2ecf.
Comment 4 Yuri Pankov freebsd_committer 2020-12-08 19:07:22 UTC
nvidia-driver is the main part here, reassign.
Comment 5 Jung-uk Kim freebsd_committer 2020-12-09 00:17:26 UTC
Created attachment 220379 [details]
Update to 450.80.02

The latest LTS version is 450.80.02 AFAICT.  I've updated the patches to it.
Comment 6 Jung-uk Kim freebsd_committer 2020-12-09 00:21:32 UTC
Created attachment 220380 [details]
Update to 450.80.02 (Rev. 2)

Sorry, I screwed up distinfo.  Corrected.
Comment 7 Tomoaki AOKI 2021-01-17 02:43:48 UTC
Created attachment 221657 [details]
Update to 460.32.03

Now latest Production Branch of nvidia-driver is at 460.32.03, so follow it.

Beware! This patch is...
  *Based on Jung-uk Kim's latest patch.

  *Minimal update for successful build.

  *Some patches on files/ are no longer applicable to 460.32.03
   and this updated patch no longer mentions 450.x driver.
   So with this patch, building 450.x driver should fail.

  *All ports included in this patch are built successfull for me,
   but only nvidia-driver, linux-nvidia-libs and nvidia-settings are
   installed / tested on my daily use.
   Encountered no NEW regression, but some known-to-me regressions are left.

  *Newly introduced files are not-at-all checked, so something should be missed.
Comment 8 Alex S 2021-01-17 05:14:35 UTC
(In reply to Tomoaki AOKI from comment #7)

> but some known-to-me regressions are left

Eh, what?
Comment 9 Tomoaki AOKI 2021-01-17 06:10:19 UTC
(In reply to Alex S from comment #8)

Menus of gtk2 apps like mail/sylpheed SOMETIMES rendered as black panel.
(Partially shown on redraw under mouse cursor or other window, though.)

Possibly not of nvidia-driver, but not tested on other drivers.
Maybe racy, as it's USUALLY OK.

SOMETIMES nvidia-driver initialization fails and X does not start.
Almost always OK after reboot.
Not encountered yet after I've switched to 460.32.03, but no warranty.
Possibly xorg problem, but unclear.

nvidia-settings does not properly fetch screen geometory.
Resolution is OK, but recognized as huge physical screen with 96 DPI.
Actually, 15.6 inch 4K panel on ThinkPad P52.

Some (not all) buttons with CJK characters are not properly rendered.
Button text are rendered too large and overflow.

Possibly something I've forgotton...