OpenGL/GLX not working with GeForce GT 1030 on Linux Mint 18.2

OpenGL/GLX Information screen is empty in nvidia-settings tool, and “glxinfo” command line tool returns following error:

name of display: :0
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  155 (NV-GLX)
  Minor opcode of failed request:  4 ()
  Resource id in failed request:  0x4800003
  Serial number of failed request:  37
  Current serial number in output stream:  37

nvidia-bug-report.log: https://pastebin.com/x78859dj
nvidia-installer.log: https://pastebin.com/svZD15rB

Here is also some information about my configuration:

Graphics Processor: GeForce GT 1030
VBIOS Version: 86.08.0c.00.0d
GPU UUID: GPU-e59251d3-ed33-1694-4b31-78ebcb08c686
NVIDIA Driver Version: 384.98
Server Version Number: 11.0
Server Vendor String: The X.Org Foundation
Server Vendor Version: 1.18.4 (11804000)
NV-CONTROL Version: 1.29
Kernel: 4.10.0-40-generic x86_64 (64 bit gcc: 5.4.0)
CPU: Quad core Intel Core i5-2400 (-MCP-) cache: 6144 KB
Desktop: Cinnamon 3.4.6 (Gtk 3.18.9-1ubuntu3.3)
DM: lightdm
Distro: Linux Mint 18.2 Sonya

Thanks in advance!

From /var/log/Xorg.0.log

[     5.568] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[     5.568] (EE) NVIDIA(0):     log file that the GLX module has been loaded in your X
[     5.568] (EE) NVIDIA(0):     server, and that the module is the NVIDIA GLX module.  If
[     5.568] (EE) NVIDIA(0):     you continue to encounter problems, Please try
[     5.568] (EE) NVIDIA(0):     reinstalling the NVIDIA driver.

Your installation is borked.

From Mint manual:

[i]If your graphics card is from NVIDIA, once in Linux Mint, perform the following steps to install the NVIDIA drivers:

Run the Driver Manager
Choose the NVIDIA drivers and wait for them to be installed
Reboot the computer[/i]

Uninstall NVIDIA drivers first.

sudo nvidia-uninstall

Great, it works! Thanks for your suggestion.

Now also in chrome://gpu everything appears as accelerated except for the following, that I guess it’s a Linux limitation, am I correct?

Video Decode: Software only, hardware acceleration unavailable
Video Encode: Software only, hardware acceleration unavailable

Accelerated video decode is unavailable on Linux: 137247
Disabled Features: accelerated_video_decode
Accelerated video encode is unavailable on Linux
Disabled Features: accelerated_video_encode

Install libva-vdpau-driver for hardware dec/enc accel.