Ubuntu screen freezes randomly

I see that you have an NVIDIA card and you talked about an update/upgrade to your software, but you didn’t mention the version of NVIDIA driver being used.

I would strongly recommend having a look at the following post and consider the offerings regarding how to manage/avoid NVIDIA driver pitfalls, which are triggered by various update/upgrades, unless you take full control of what can and cannot be updated with your NVIDIA drivers.



If you are ever wondering which Desktop Manager you are using, or how the OS is actually handling your Graphics environment, you can run the following command:

inxi -c2 -SGxxx

which will give you a report that looks like this:

System:
  Host: OasisMega1 Kernel: 6.8.0-45-generic x86_64 bits: 64 compiler: N/A
    Desktop: MATE 1.26.0 info: mate-panel wm: marco 1.26.0 dm: LightDM 1.30.0
    Distro: Ubuntu 22.04.5 LTS (Jammy Jellyfish)
Graphics:
  Device-1: AMD RS780D [Radeon HD 3300] vendor: ASUSTeK driver: radeon
    v: kernel ports: active: VGA-1 empty: DVI-D-1 bus-ID: 01:05.0
    chip-ID: 1002:9614 class-ID: 0300
  Display: server: X.Org v: 1.21.1.4 compositors: 1: Picom v: 9 2: marco
    v: 1.26.0 driver: X: loaded: ati,radeon unloaded: fbdev,modesetting,vesa
    gpu: radeon display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1440x900 s-dpi: 96 s-size: 381x238mm (15.0x9.4")
    s-diag: 449mm (17.7")
  Monitor-1: VGA-0 mapped: VGA-1 model: HP w1707 serial: CNC918Q23B
    res: 1440x900 hz: 60 dpi: 99 size: 370x230mm (14.6x9.1")
    diag: 436mm (17.2") modes: max: 1440x900 min: 720x400
  OpenGL: renderer: AMD RS780 (DRM 2.50.0 / 6.8.0-45-generic LLVM 15.0.7)
    v: 3.3 Mesa 23.2.1-1ubuntu3.1~22.04.3 compat-v: 3.0 direct render: Yes