Random freezes on a 240 G4 Notebook

Good evening,
I installed Ubuntu mate in a new computer one month ago. The computer freezes randomly. The problem is becoming worse during the last two days. I would be grateful if anyone could help.
Best
Yannis

Here are the results of the inxi-Fxxz

System:
Kernel: 5.0.0-27-generic x86_64 bits: 64 compiler: gcc v: 8.3.0
Desktop: MATE 1.20.4 info: mate-panel, plank, vala-panel wm: marco 1.20.3
dm: LightDM 1.28.0 Distro: Ubuntu 19.04 (Disco Dingo)
Machine:
Type: Laptop System: HP product: HP 240 G4 Notebook PC
v: Type1ProductConfigId serial: Chassis: type: 10
serial:
Mobo: HP model: 8131 v: KBC Version 30.0B serial: UEFI: Insyde
v: F.22 date: 11/11/2016
Battery:
ID-1: BAT0 charge: 41.2 Wh condition: 41.2/41.2 Wh (100%) volts: 16.6/14.6
model: Hewlett-Packard Primary type: Li-ion serial: status: Full
CPU:
Topology: Dual Core model: Intel Core i5-6200U bits: 64 type: MT MCP
arch: Skylake family: 6 model-id: 4E (78) stepping: 3 microcode: CC
L2 cache: 3072 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19200
Speed: 500 MHz min/max: 400/2800 MHz Core speeds (MHz): 1: 500 2: 500
3: 500 4: 500
Vulnerabilities: Type: l1tf mitigation: PTE Inversion
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
IBRS_FW, STIBP: conditional, RSB filling
Graphics:
Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Hewlett-Packard
driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:1916
Display: x11 server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa
compositor: marco v: 1.20.3 resolution: 1366x768~60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2)
v: 4.5 Mesa 19.0.8 compat-v: 3.0 direct render: Yes
Audio:
Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:9d70
Sound Server: ALSA v: k5.0.0-27-generic
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Hewlett-Packard driver: r8169 v: kernel port: 4000 bus ID: 01:00.0
chip ID: 10ec:8168
IF: enp1s0 state: down mac:
Device-2: Realtek RTL8723BE PCIe Wireless Network Adapter
vendor: Hewlett-Packard driver: rtl8723be v: kernel port: 3000
bus ID: 02:00.0 chip ID: 10ec:b723
IF: wlp2s0 state: up mac:
Drives:
Local Storage: total: 465.76 GiB used: 76.12 GiB (16.3%)
ID-1: /dev/sda vendor: Western Digital model: WD5000LPCX-60VHAT0
size: 465.76 GiB block size: physical: 4096 B logical: 512 B
speed: 6.0 Gb/s rotation: 5400 rpm serial: rev: 1A01 scheme: GPT
Partition:
ID-1: / raw size: 13.67 GiB size: 13.39 GiB (97.97%)
used: 9.19 GiB (68.6%) fs: ext4 dev: /dev/sda6
ID-2: /home raw size: 210.25 GiB size: 205.95 GiB (97.96%)
used: 66.87 GiB (32.5%) fs: ext4 dev: /dev/sda7
Sensors:
System Temperatures: cpu: 42.0 C mobo: 0.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 215 Uptime: 32m Memory: 3.77 GiB used: 2.59 GiB (68.6%)
Init: systemd v: 240 runlevel: 5 Compilers: gcc: 8.3.0 alt: 8 Shell: bash
v: 5.0.3 running in: mate-terminal inxi: 3.0.33

Until you get a better reply as I am on a tower and not a laptop
....I noticed you have a highish temp but I do not know if you were doing video editting or something else at that time of sensoring......and I don't know if you have a sensor for your motherboard or not.

If you charge a battery....it tends to get hotter so one thing to watch is disconnect when close to 100% charge.

so can you repond to any of these comments please
if not sure try
sudo apt install lm-sensors
sudo sensors-detect
reboot and see if you get a motherboard temp

Next if you have not already done so, go into your motherboard bios settings and select a power profile for your fans you think will be appropriate.
That does depend on your bios but most offer some options like example doc
https://support.hp.com/us-en/document/c04740290

Thanks for your prompt response. I don't do video editing. Just use word processor, browser and odio an app to listen to online radio. So it is rather strange that the temperature is high. I will try the solutions you suggest.
In the bios settings should I select idle as in the picture? It seems weird.

that was just a link to a possible way of getting into a HP bios fan setting.

I don't own a hp so don't know what the other settings are.
Can you list them please?

PS is your temp now better?
My answer only considered high temp as a reason for PC freezing.
In addition, I found a link to a GUI to display temps

Thanks for the response. The computer froze once today.
I didn't manage to find the power tab in the bios. But I installed the sensors and here is the result of the check:

sensors
pch_skylake-virtual-0
Adapter: Virtual device
temp1: +34.0°C

acpitz-acpi-0
Adapter: ACPI interface
temp1: +37.0°C (crit = +120.0°C)
temp2: +0.0°C (crit = +127.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +36.0°C (high = +100.0°C, crit = +100.0°C)
Core 0: +36.0°C (high = +100.0°C, crit = +100.0°C)
Core 1: +36.0°C (high = +100.0°C, crit = +100.0°C)

sorry missed seeing your reply.

Does this PC have any fans you can hear?
And what is the normal room temp or where ever you are.

but it looks like your PC bios settings not found, mean its not shutting down due to a high temp.....otherwise you would have found it.

Can you still list the options for the bios you and I discussed earlier?