Ubuntu 20.04 not detecting external monitor after suspend

LinuxVukodav

New Member
Joined
Jul 16, 2021
Messages
8
Reaction score
0
Credits
109
It would be great if someone can help me. I was using the two external monitors plugged into ThinkPad that has installed only Ubuntu 20.04, the laptop has AMD Ryzen 7 pro 4750u with AMD integrated graphics.

One monitor was plugged into HDMI and other one into USB C socket, the laptop has two USB C sockets, one can be used both for charging and display, other one only for data.

Everything was working fine but, both of monitors were detected but after some updates, after I did some updates(apt get update and upgrade) from 20.04 to 20.04.1 and 20.04.02, one day it suddenly is not detecting the one monitor plugged into USB C socket, its not even working after unplugging and plugging it back in(before it would work if I unplug and plug it back). But I don't think this was the reason.

The cable USB is good, its new and I have bought another one USB to check but they both dont work so its not about cables, it must be software issue.

However I suspect the reason why the monitor stopped responding is because once I had accidentally clicked suspend option when I wanted to shutdown the pc. It was suspended only for few moments and when I logged back, one monitor was not detected anymore.

I had installed timeshift program so I tried to go back in time, to snapshot before this happened but it didn't do anything, it was the same.

I am sharing my output of xrandr, and btw I am absolute beginner to Linux. I have unplugged the monitor from HDMI, since its working but I plugged in the other one into USB C but its not detecting, its only detecting the laptop built in display(eDP):

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384 eDP connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 173mm 1920x1080 60.00*+ 1680x1050 60.00 1280x1024 60.00 1440x900 60.00 1280x800 60.00 1280x720 60.00 1024x768 60.00 800x600 60.00 640x480 60.00 HDMI-A-0 disconnected (normal left inverted right x axis y axis) DisplayPort-0 disconnected (normal left inverted right x axis y axis) DisplayPort-1 disconnected (normal left inverted right x axis y axis)
 
Last edited:


G'day Linuxvukodav, Welcoemt to Linux.org

Are you using Timeshift?
 
Have you checked your drivers I had a similarish problem but with a NVIDIA GPU.
Thank you for your reply, I just recently installed Linux and I am total begginer, don't know how to check drivers really. What commands should I type for checking the drivers? Probably I would need to reinstall the drivers or maybe even rollback to previous version

update: I found this command for checking, sudo lshw -c video and the output is:

*-display
description: VGA compatible controller
product: Renoir
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:06:00.0
logical name: /dev/fb0
version: d1
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi msix vga_controller bus_master cap_list fb
configuration: depth=32 driver=amdgpu latency=0 mode=1920x1080 visual=truecolor xres=1920 yres=1080
resources: iomemory:80-7f iomemory:80-7f irq:56 memory:860000000-86fffffff memory:870000000-8701fffff ioport:1000(size=256) memory:fd300000-fd37ffff
 
Last edited:
If Timeshift didnt make any difference then that tells you it is not the file system...so probably not the "suspension"

Which may narrow it down to the connection points......maybe bought on by the upgrades etc etc.

Do any of your Timeshift snapshots predate the upgrades?

If you type "driver Updates" in to the menu, does it help in any way??....I am guessing .....
 
Please post back the output of
Code:
inxi -Fxxz
 
Please post back the output of
Code:
inxi -Fxxz

here it is:
System: Kernel: 5.8.0-59-generic x86_64 bits: 64 compiler: N/A Desktop: Gnome 3.36.9 wm: gnome-shell dm: GDM3
Distro: Ubuntu 20.04.2 LTS (Focal Fossa)
Machine: Type: Laptop System: LENOVO product: 20UHCTO1WW v: ThinkPad T14s Gen 1 serial: <filter> Chassis: type: 10
serial: <filter>
Mobo: LENOVO model: 20UHCTO1WW v: SDK0J40697 WIN serial: <filter> UEFI: LENOVO v: R1CET63W(1.32 ) date: 04/09/2021
Battery: ID-1: BAT0 charge: 49.6 Wh condition: 55.7/57.0 Wh (98%) volts: 12.7/11.5 model: Celxpert 5B10W139 serial: <filter>
status: Unknown
Device-1: hidpp_battery_0 model: Logitech MX Ergo Multi-Device Trackball serial: <filter>
charge: 55% (should be ignored) status: Discharging
CPU: Topology: 8-Core model: AMD Ryzen 7 PRO 4750U with Radeon Graphics bits: 64 type: MT MCP arch: Zen rev: 1
L2 cache: 4096 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 54298
Speed: 1397 MHz min/max: 1400/1700 MHz Core speeds (MHz): 1: 1397 2: 1397 3: 1397 4: 1397 5: 1397 6: 1397 7: 1397
8: 1395 9: 1397 10: 1396 11: 1398 12: 1396 13: 1397 14: 1396 15: 1397 16: 1397
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Renoir vendor: Lenovo driver: amdgpu v: kernel bus ID: 06:00.0
chip ID: 1002:1636
Display: x11 server: X.Org 1.20.9 driver: ati,fbdev unloaded: modesetting,radeon,vesa compositor: gnome-shell
resolution: 1920x1080~60Hz, 3840x2160~60Hz
OpenGL: renderer: AMD RENOIR (DRM 3.38.0 5.8.0-59-generic LLVM 11.0.0) v: 4.6 Mesa 20.2.6 direct render: Yes
Audio: Device-1: Advanced Micro Devices [AMD/ATI] vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 06:00.1
chip ID: 1002:1637
Device-2: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo
driver: snd_rn_pci_acp3x v: kernel bus ID: 06:00.5 chip ID: 1022:15e2
Device-3: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel
bus ID: 06:00.6 chip ID: 1022:15e3
Device-4: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo bus ID: 6-2.2:6 chip ID: 046d:0825
Sound Server: ALSA v: k5.8.0-59-generic
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169 v: kernel port: 2400
bus ID: 02:00.0 chip ID: 10ec:8168
IF: enp2s0f0 state: down mac: <filter>
Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: 2000 bus ID: 03:00.0 chip ID: 8086:2723
IF: wlp3s0 state: down mac: <filter>
Device-3: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 bus ID: 7-2.3:3 chip ID: 0bda:8153
IF: enx00e04c6803d9 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives: Local Storage: total: 476.94 GiB used: 75.99 GiB (15.9%)
ID-1: /dev/nvme0n1 vendor: Micron model: MTFDHBA512TDV size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter>
Partition: ID-1: / size: 467.96 GiB used: 75.97 GiB (16.2%) fs: ext4 dev: /dev/nvme0n1p2
Sensors: System Temperatures: cpu: 53.0 C mobo: 0.0 C gpu: amdgpu temp: 44 C
Fan Speeds (RPM): cpu: 2800
Info: Processes: 419 Uptime: 5m Memory: 30.66 GiB used: 3.92 GiB (12.8%) Init: systemd v: 245 runlevel: 5 Compilers:
gcc: 9.3.0 alt: 9 Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38
 
If Timeshift didnt make any difference then that tells you it is not the file system...so probably not the "suspension"

Which may narrow it down to the connection points......maybe bought on by the upgrades etc etc.

Do any of your Timeshift snapshots predate the upgrades?

If you type "driver Updates" in to the menu, does it help in any way??....I am guessing .....

Unfortunately I did sudo apt update && sudo apt upgrade every day, so not sure after which upgrade it it got broken, where to type this "driver Updates"?
 
I can see -
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Renoir vendor: Lenovo driver: amdgpu v: kernel bus ID: 06:00.0
chip ID: 1002:1636
Display: x11 server: X.Org 1.20.9 driver: ati,fbdev unloaded:modesetting
Unloaded means that x.org originally launched a driver (in this case ati,fbdev) then "unloaded" or stopped running it in favor of a different driver, in your case modesetting. Modesetting is basically a generic fallback driver if the other ones don't work.

Can you pick a different kernel to boot with - say v5.4 instead of 5.8 that you are running now and see if it works again? If you installed kernel drivers to kernel-specific directories, so they won't be available for other kernels, when they are upgraded
 
I can see -
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Renoir vendor: Lenovo driver: amdgpu v: kernel bus ID: 06:00.0
chip ID: 1002:1636
Display: x11 server: X.Org 1.20.9 driver: ati,fbdev unloaded:modesetting
Unloaded means that x.org originally launched a driver (in this case ati,fbdev) then "unloaded" or stopped running it in favor of a different driver, in your case modesetting. Modesetting is basically a generic fallback driver if the other ones don't work.

Can you pick a different kernel to boot with - say v5.4 instead of 5.8 that you are running now and see if it works again? If you installed kernel drivers to kernel-specific directories, so they won't be available for other kernels, when they are upgraded
How I can pick different kernel to booth with? Can you give me step by step instructions. Also to mention I have important data so is it safe if I choose different kernel? If Ubuntu doesn't load if I change the kernel or something.
 
Odds are if you have upgraded Ubuntu then the kernel upgraded as well to 5.8.0-59 we need to see if an older kernel is still there on your machine
First lets check whats on your machine
Code:
dpkg --list  | grep linux-image
this should tell you what kernels are installed - once you know you have more then one kernel installed - Restart the computer and when the purple screen for Linux boot appear press ESC key on the keyboard if your system is set to UEFI, if is legacy press SHIFT. You should get the Grub screen then select an earlier kernel if present - Once it has booted up open the terminal again and type
Code:
uname -r
this will show the current loaded kernel
 
Last edited by a moderator:
Odds are if you have upgraded Ubuntu then the kernel upgraded as well to 5.8.0-59 we need to see if an older kernel is still there on your machine
First lets check whats on your machine
Code:
dpkg --list  | grep linux-image
this should tell you what kernels are installed - once you know you have more then one kernel installed - Restart the computer and when the purple screen for Linux boot appear press ESC key on the keyboard if your system is set to UEFI, if is legacy press SHIFT. You should get the Grub screen then select an earlier kernel if present - Once it has booted up open the terminal again and type
Code:
uname -r
this will show the current loaded kernel

ok when I type the command dpkg --list | grep linux-image, I get the following output:

rc linux-image-5.10.0-1029-oem 5.10.0-1029.30 amd64 Signed kernel image oem
rc linux-image-5.10.0-1032-oem 5.10.0-1032.33 amd64 Signed kernel image oem
ii linux-image-5.10.0-1033-oem 5.10.0-1033.34 amd64 Signed kernel image oem
ii linux-image-5.10.0-1034-oem 5.10.0-1034.35 amd64 Signed kernel image oem
rc linux-image-5.6.0-1055-oem 5.6.0-1055.59 amd64 Signed kernel image oem
rc linux-image-5.6.0-1056-oem 5.6.0-1056.60 amd64 Signed kernel image oem
rc linux-image-5.8.0-55-generic 5.8.0-55.62~20.04.1 amd64 Signed kernel image generic
ii linux-image-5.8.0-59-generic 5.8.0-59.66~20.04.1 amd64 Signed kernel image generic
ii linux-image-generic-hwe-20.04 5.8.0.59.66~20.04.42 amd64 Generic Linux kernel image
ii linux-image-oem-20.04b 5.10.0.1034.35 amd64 OEM Linux kernel image

Which one should I choose? my current is 5.8.0-59-generic after command uname -r
 
Which one should I choose? my current is 5.8.0-59-generic after command uname -r
I would try the 5.8.0-55 first - those updates from kernel 55 to 59 are minor driver and secuirty updates to the kernel - I see you have a lot of OEM kernels - these kernels are typically used in the early phases of a project release, with a view to “upstreaming” any delta into the GA or HWE kernels and once this delta is incorporated the final platform is moved over to those kernels
 
Last edited by a moderator:
I would try the 5.8.0-55 first - those updates from kernel 55 to 59 are minor driver and secuirty updates to the kernel - next I would use the latest oem kernel you have 5.10.0-1034

Unfortunately I have only two kernels to choose from in the grub screen besides the generic one I am currently on, so I tried 5.10.0-1033-oem and 5.10.0-1034-oem and it was the same. I didnt try the recovery versions of these kernels, I switched back to generic one
 

Attachments

  • IMG_20210717_165710_resized_20210717_045853565.jpg
    IMG_20210717_165710_resized_20210717_045853565.jpg
    457.1 KB · Views: 879
where to type this "driver Updates"?
Ubuntu usually has a program called Software & Updates I think it is under System open that then click on the Additional Drivers tab it should automatically check for missing or updated drivers
Also
you can download the tar.xz files from this page: https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-20
Radeon™ Software for Linux® version 20.20 for Ubuntu 20.04. Direct link to current: https://drivers.amd.com/drivers/linux/amdgpu-pro-20.20-1098277-ubuntu-20.04.tar.xz
You must unark/unzip the file and run the amdgpu-install or amdgpu-pro-install command. Script usage explained: https://amdgpu-install.readthedocs.io/en/latest/install-script.html
 

Members online


Latest posts

Top