Nvidia-driver-440: freeze after resume from hibernation

I am running ubuntu 18.04.4 LTS, kernel 5.3.0-45-generic, using the package nvidia-driver-440, GTX1050ti, and after resume from hibernation the system graphics hangs and am not even able to kill Xorg.

This problem happens after all hibernation, not instantly after wake up but after a bit of usage, generally when triggering some animation of the DE

I would be happy if anyone could tell me of any workaround too because after freezing killall -9 Xorg doesn’t do much and any other attempt to restart Xorg. During this freeze switching tty also doesn’t work. Audio, network ( i could ssh to the machine), everything else is still running.

DMESG OUTPUT:

[ +0,063739] wlp3s0: Limiting TX power to 20 (20 - 0) dBm as advertised by c0:9f:e1:b1:f4:71
[ +0,134217] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
[mar31 23:32] INFO: task Xorg:2642 blocked for more than 120 seconds.
[ +0,000004] Tainted: P C OE 5.3.0-42-generic #34~18.04.1-Ubuntu
[ +0,000002] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ +0,000002] Xorg D 0 2642 2575 0x00400000
[ +0,000003] Call Trace:
[ +0,000008] __schedule+0x2a8/0x670
[ +0,000003] schedule+0x33/0xa0
[ +0,000002] schedule_timeout+0x1d3/0x2f0
[ +0,000002] ? mutex_lock+0x12/0x40
[ +0,000003] ? unix_stream_read_generic+0x233/0x930
[ +0,000002] __down+0x91/0xe0
[ +0,000002] ? __switch_to_asm+0x40/0x70
[ +0,000002] ? __switch_to_asm+0x40/0x70
[ +0,000002] down+0x41/0x50
[ +0,000001] ? down+0x41/0x50
[ +0,000217] os_acquire_mutex+0x34/0x40 [nvidia]
[ +0,000220] os_acquire_semaphore+0xe/0x10 [nvidia]
[ +0,000319] _nv033291rm+0x15/0x20 [nvidia]
[ +0,000315] ? _nv034166rm+0xb6/0x170 [nvidia]
[ +0,000260] ? _nv034114rm+0x22/0xd0 [nvidia]
[ +0,000295] ? _nv000909rm+0x1c9/0x940 [nvidia]
[ +0,000261] ? rm_ioctl+0x54/0xb0 [nvidia]
[ +0,000005] ? __check_object_size+0xa1/0x1b0
[ +0,000182] ? nvidia_ioctl+0x180/0x8c0 [nvidia]
[ +0,000195] ? nvidia_frontend_unlocked_ioctl+0x42/0x50 [nvidia]
[ +0,000004] ? do_vfs_ioctl+0xa9/0x640
[ +0,000004] ? wake_up_q+0x80/0x80
[ +0,000003] ? ksys_ioctl+0x75/0x80
[ +0,000003] ? __x64_sys_ioctl+0x1a/0x20
[ +0,000003] ? do_syscall_64+0x5a/0x130
[ +0,000003] ? entry_SYSCALL_64_after_hwframe+0x44/0xa9
[mar31 23:34] INFO: task Xorg:2642 blocked for more than 241 seconds.
[ +0,000005] Tainted: P C OE 5.3.0-42-generic #34~18.04.1-Ubuntu
[ +0,000001] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ +0,000002] Xorg D 0 2642 2575 0x00400000
[ +0,000003] Call Trace:
[ +0,000008] __schedule+0x2a8/0x670
[ +0,000004] schedule+0x33/0xa0
[ +0,000002] schedule_timeout+0x1d3/0x2f0
[ +0,000001] ? mutex_lock+0x12/0x40
[ +0,000003] ? unix_stream_read_generic+0x233/0x930
[ +0,000002] __down+0x91/0xe0
[ +0,000002] ? __switch_to_asm+0x40/0x70
[ +0,000002] ? __switch_to_asm+0x40/0x70
[ +0,000002] down+0x41/0x50
[ +0,000002] ? down+0x41/0x50
[ +0,000216] os_acquire_mutex+0x34/0x40 [nvidia]
[ +0,000242] os_acquire_semaphore+0xe/0x10 [nvidia]
[ +0,000301] _nv033291rm+0x15/0x20 [nvidia]
[ +0,000314] ? _nv034166rm+0xb6/0x170 [nvidia]
[ +0,000260] ? _nv034114rm+0x22/0xd0 [nvidia]
[ +0,000279] ? _nv000909rm+0x1c9/0x940 [nvidia]
[ +0,000244] ? rm_ioctl+0x54/0xb0 [nvidia]
[ +0,000004] ? __check_object_size+0xa1/0x1b0
[ +0,000208] ? nvidia_ioctl+0x180/0x8c0 [nvidia]
[ +0,000182] ? nvidia_frontend_unlocked_ioctl+0x42/0x50 [nvidia]
[ +0,000024] ? do_vfs_ioctl+0xa9/0x640
[ +0,000004] ? wake_up_q+0x80/0x80
[ +0,000003] ? ksys_ioctl+0x75/0x80
[ +0,000003] ? __x64_sys_ioctl+0x1a/0x20
[ +0,000003] ? do_syscall_64+0x5a/0x130