ASUS TUF FX505D AMD Ryzen 5 + nvidia 1650. Laptop goes black screen when laptop is not plug in. Nvidia drivers goes on/off after reboot

Hi. I got an Asus TUF 505 with AMD Ryzen 5 3550H with Nvidia GTX 1650. My problems is IF laptop not plug in i can’t log in in my system which is KDE NEON 5.19. I have to turn it off, plug in the charger and turn it on. Only the way i can log in successfully. Firts I needed to use tty and starx but after a research I found a post and instructions from generix AMD Ryzen 5 iGPU + Nvidia GTX 1050 Mobile. Black Screen Driver Problem - #9 by landerbuan
to log in normally; this work for me only after I have used tty with my charger plug in the first time that I turn my laptop on.
These are my laptop’specifications from inxi -Fxz

System: Host: k Kernel: 5.4.0-66-generic x86_64 bits: 64 gcc: 7.5.0 Desktop: KDE Plasma 5.19.4 (Qt 5.14.2)
Distro: KDE neon User Edition 5.19
Machine: Device: laptop System: ASUSTeK product: TUF Gaming FX505DT_FX505DT v: 1.0 serial: N/A
Mobo: ASUSTeK model: FX505DT v: 1.0 serial: N/A
UEFI: American Megatrends v: FX505DT.310 date: 12/24/2019
Battery BAT0: charge: 28.9 Wh 88.7% condition: 32.6/48.2 Wh (68%) model: OEM FX50442 status: Discharging
CPU: Quad core AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx (-MT-MCP-) arch: Zen rev.1 cache: 2048 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm) bmips: 16768
clock speeds: max: 2100 MHz 1: 1327 MHz 2: 1372 MHz 3: 1374 MHz 4: 1378 MHz 5: 1341 MHz 6: 1303 MHz
7: 1343 MHz 8: 1386 MHz
Graphics: Card-1: NVIDIA Device 1f91 bus-ID: 01:00.0
Card-2: Advanced Micro Devices [AMD/ATI] Picasso bus-ID: 05:00.0
Display Server: x11 (X.Org 1.20.8 )
drivers: nvidia,ati,amdgpu (unloaded: modesetting,fbdev,vesa,nouveau)
Resolution: 1920x1080@59.93hz
OpenGL: renderer: GeForce GTX 1650/PCIe/SSE2 version: 4.6.0 NVIDIA 460.39 Direct Render: Yes
Audio: Card-1 Advanced Micro Devices [AMD] Device 15e3 driver: snd_hda_intel bus-ID: 05:00.6
Card-2 NVIDIA Device 10fa driver: snd_hda_intel bus-ID: 01:00.1
Sound: Advanced Linux Sound Architecture v: k5.4.0-66-generic
Network: Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
driver: r8169 port: e000 bus-ID: 02:00.0
IF: enp2s0 state: down mac:
Card-2: Realtek Device c822 driver: rtw_pci port: d000 bus-ID: 04:00.0
IF: wlp4s0 state: up speed: N/A duplex: N/A mac:
Drives: HDD Total Size: 1256.3GB (17.8% used)
ID-1: /dev/nvme0n1 model: WDC_PC_SN520_SDAPNUW size: 256.1GB
ID-2: /dev/sda model: ST1000LM024_HN size: 1000.2GB temp: 34C
Partition: ID-1: / size: 67G used: 47G (74%) fs: btrfs dev: /dev/nvme0n1p5
ID-2: /home size: 67G used: 47G (74%) fs: btrfs dev: /dev/nvme0n1p5
ID-3: swap-1 size: 2.00GB used: 0.00GB (0%) fs: swap dev: /dev/nvme0n1p7
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: N/A mobo: N/A gpu: 0.0:38C
Fan Speeds (in rpm): cpu: 2400
Info: Processes: 299 Uptime: 18 min Memory: 2334.1/7832.9MB Init: systemd runlevel: 5 Gcc sys: 7.5.0
Client: Shell (bash 4.4.201) inxi: 2.3.56

my bug report is: nvidia-bug-report.log.gz (284.0 KB)

You’re running KDE neon with ubuntu 18.04 foundation, it has been upgraded to 20.04 which supports your AMD/Nvidia combo ootb. Please upgrade:
https://neon.kde.org/

I Will do it now. I will reply my status. Thank you

I updated my system. My problem is: I have to have my battery’s charger plug in the first time that I turn on my laptop otherwise laptop goes black screen without tty responding, so I have to turn my laptop off, plug in the charger, turn my laptop on, then display work normaly even if I restart without having the charger plug in.

these are now my specifications from inxi -Fxz

System: Kernel: 5.4.0-66-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: KDE Plasma 5.21.1
Distro: KDE neon 20.04 5.21 base: Ubuntu 20.04 LTS Focal
Machine: Type: Laptop System: ASUSTeK product: TUF Gaming FX505DT_FX505DT v: 1.0 serial:
Mobo: ASUSTeK model: FX505DT v: 1.0 serial: UEFI: American Megatrends v: FX505DT.310
date: 12/24/2019
Battery: ID-1: BAT0 charge: 31.7 Wh condition: 31.9/48.2 Wh (66%) model: FX50442 status: Charging
CPU: Topology: Quad Core model: AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx bits: 64 type: MT MCP
arch: Zen+ rev: 1 L2 cache: 2048 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 33536
Speed: 1224 MHz min/max: 1400/2100 MHz Core speeds (MHz): 1: 1224 2: 1249 3: 1223 4: 1226 5: 1223
6: 1223 7: 1223 8: 1225
Graphics: Device-1: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: ASUSTeK driver: nvidia v: 460.39
bus ID: 01:00.0
Device-2: Advanced Micro Devices [AMD/ATI] Picasso vendor: ASUSTeK driver: amdgpu v: kernel
bus ID: 05:00.0
Display: x11 server: X.Org 1.20.9 driver: amdgpu,nvidia FAILED: ati
unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1080~60Hz
OpenGL: renderer: GeForce GTX 1650/PCIe/SSE2 v: 4.6.0 NVIDIA 460.39 direct render: Yes
Audio: Device-1: NVIDIA vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 01:00.1
Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel
v: kernel bus ID: 05:00.6
Sound Server: ALSA v: k5.4.0-66-generic
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK driver: r8169
v: kernel port: e000 bus ID: 02:00.0
IF: enp2s0 state: down mac:
Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter vendor: AzureWave driver: rtw_pci
v: N/A port: d000 bus ID: 04:00.0
IF: wlp4s0 state: up mac:
Drives: Local Storage: total: 1.14 TiB used: 218.54 GiB (18.7%)
ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN520 SDAPNUW-256G-1002 size: 238.47 GiB
ID-2: /dev/sda vendor: Seagate model: ST1000LM024 HN-M101MBB size: 931.51 GiB
Partition: ID-1: / size: 66.50 GiB used: 56.05 GiB (84.3%) fs: btrfs dev: /dev/nvme0n1p5
ID-2: /home size: 66.50 GiB used: 56.05 GiB (84.3%) fs: btrfs dev: /dev/nvme0n1p5
ID-3: swap-1 size: 1.86 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p7
Sensors: System Temperatures: cpu: 54.0 C mobo: N/A
Fan Speeds (RPM): cpu: 2700
GPU: device: nvidia screen: :0.0 temp: 47 C device: amdgpu temp: 54 C
Info: Processes: 305 Uptime: 2m Memory: 7.65 GiB used: 1.41 GiB (18.4%) Init: systemd runlevel: 5
Compilers: gcc: 9.3.0 Shell: bash v: 5.0.17 inxi: 3.0.38

I have windows 10 2019 in another partition.

my new bug report is: nvidia-bug-report.log.gz (275.0 KB)

Are you able to ssh into your system while it’s started without charger to take a nvidia-bug-report.log?

I haven’t try ssh, I have to configure it first. I never have used ssh in my life. Do I need another computer for that cause I don’t have another one? But I didn’t do a fresh install on kde 5.21, I upgraded it through upgrade system manager. What should I do? Configure ssh is the only option or try a fresh install of kde 5.21?

Unfortunately my problem went back. I installed kernel 5.10.17 because I don’t know how to use ssh. It was working fine, but one day lataer, now nvidia driver is not working in kernel 5.10.17. So I get rid of it. I’m using kerne 5.4 which is the default and I’m experience the same old problem: if not charge goes to black screen so I have to turn laptop off, charger it, turn laptop on so can work normally. Please help me. I have this problem more than a all year by now

Unfortunately my problem went back. I installed kernel 5.10.17 because I don’t know how to use ssh. It was working fine, but one day lataer, now nvidia driver is not working in kernel 5.10.17. So I get rid of it. I’m using kerne 5.4 which is the default and I’m experience the same old problem: if not charge goes to black screen so I have to turn laptop off, charger it, turn laptop on so can work normally. Please help me. I have this problem more than a all year by now

If it’s working with a 5.10 kernel, you should rather install that and then find out why the nvidia driver fails.

Sorry for the reply to late… It did work but the next day the problem appeared again. Now my laptop has same problem no matter what kernel it has. I have to have my laptop plugged on before Splash screen appears otherwise goes full black screen without any key responds.

Please do this:
disconnect charger, turn on notebook, wait, shutdown, connect charger, boot, log in, run
sudo journalctl -b-1 >journal.txt
and attach journal.txt

Hi generix. I did that. this is filejournal.txt (87.9 KB)

Mar 25 16:34:41 xk kernel: DMI: ASUSTeK COMPUTER INC. TUF Gaming FX505DT_FX505DT/FX505DT, BIOS FX505DT.310 12/24/2019

That BIOS version is quite old. Maybe worth a shot trying the latest:

I will do that and give my answer as soon as possible. Thank in advance

Check in KDE Systemsettings, Power Managment,look For Screen Energy Saving box & uncheck. This might be a cuase also you may want to uncheck or review any other boxes to check and adjust accordingly.

You nay also need to check settings for Screenlocking & uncheck boxes and adjust accordingly.

Hope this could help.

Hi. Sorry for delay answer, due to work I have not too much time. I updated my Bios and Uncheck all possible battery saving related stuff. This is the new journal.
journal.txt (167.4 KB)
The problem still exist even with new kernel update

Thanks for the tip , but I have uncheck all battery saving things and still doesn’t work.

Now you have secure boot enabled and the nvidia modules won’t even load.
Also this causes all kind of “kernel_lockdown” messages.
Please disable secure boot in BIOS.
You’re back to the 5.4 kernel now?

Also I noticed this (the amd gpu resetting):

Apr 15 16:02:19 xk kernel: [drm:amdgpu_job_timedout [amdgpu]] ERROR ring gfx timeout, signaled seq=1, emitted seq=4
Apr 15 16:02:19 xk kernel: [drm:amdgpu_job_timedout [amdgpu]] ERROR Process information: process Xorg pid 1060 thread Xorg:cs0 pid 1066
Apr 15 16:02:19 xk kernel: amdgpu 0000:05:00.0: GPU reset begin!
Apr 15 16:02:20 xk kernel: amdgpu 0000:05:00.0: GPU reset succeeded, trying to resume
Apr 15 16:02:20 xk kernel: [drm] PCIE GART of 1024M enabled (table at 0x000000F400900000).
Apr 15 16:02:20 xk kernel: [drm] PSP is resuming…
Apr 15 16:02:20 xk kernel: [drm] reserve 0x400000 from 0xf407800000 for PSP TMR
Apr 15 16:02:20 xk kernel: [drm] psp command failed and response status is (0x7)
Apr 15 16:02:21 xk kernel: [drm] VCN decode and encode initialized successfully(under SPG Mode).
Apr 15 16:02:21 xk kernel: amdgpu 0000:05:00.0: ring gfx uses VM inv eng 0 on hub 0
Apr 15 16:02:21 xk kernel: amdgpu 0000:05:00.0: ring comp_1.0.0 uses VM inv eng 1 on hub 0
Apr 15 16:02:21 xk kernel: amdgpu 0000:05:00.0: ring comp_1.1.0 uses VM inv eng 4 on hub 0
Apr 15 16:02:21 xk kernel: amdgpu 0000:05:00.0: ring comp_1.2.0 uses VM inv eng 5 on hub 0
Apr 15 16:02:21 xk kernel: amdgpu 0000:05:00.0: ring comp_1.3.0 uses VM inv eng 6 on hub 0
Apr 15 16:02:21 xk kernel: amdgpu 0000:05:00.0: ring comp_1.0.1 uses VM inv eng 7 on hub 0
Apr 15 16:02:21 xk kernel: amdgpu 0000:05:00.0: ring comp_1.1.1 uses VM inv eng 8 on hub 0
Apr 15 16:02:21 xk kernel: amdgpu 0000:05:00.0: ring comp_1.2.1 uses VM inv eng 9 on hub 0
Apr 15 16:02:21 xk kernel: amdgpu 0000:05:00.0: ring comp_1.3.1 uses VM inv eng 10 on hub 0
Apr 15 16:02:21 xk kernel: amdgpu 0000:05:00.0: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
Apr 15 16:02:21 xk kernel: amdgpu 0000:05:00.0: ring sdma0 uses VM inv eng 0 on hub 1
Apr 15 16:02:21 xk kernel: amdgpu 0000:05:00.0: ring vcn_dec uses VM inv eng 1 on hub 1
Apr 15 16:02:21 xk kernel: amdgpu 0000:05:00.0: ring vcn_enc0 uses VM inv eng 4 on hub 1
Apr 15 16:02:21 xk kernel: amdgpu 0000:05:00.0: ring vcn_enc1 uses VM inv eng 5 on hub 1
Apr 15 16:02:21 xk kernel: amdgpu 0000:05:00.0: ring vcn_jpeg uses VM inv eng 6 on hub 1
Apr 15 16:02:21 xk kernel: [drm] recover vram bo from shadow start
Apr 15 16:02:21 xk kernel: [drm] recover vram bo from shadow done
Apr 15 16:02:21 xk kernel: [drm] Skip scheduling IBs!
Apr 15 16:02:21 xk kernel: [drm] Skip scheduling IBs!
Apr 15 16:02:21 xk kernel: amdgpu 0000:05:00.0: GPU reset(2) succeeded!
Apr 15 16:02:21 xk kernel: [drm] Skip scheduling IBs!
Apr 15 16:02:21 xk kernel: [drm] Skip scheduling IBs!

Might be related to secure boot lockdown, not sure.
Please create a new journal log after disabling secure boot.

Also re-reading your initial post… you have windows installed… just to make sure…This problem does not occur with windows?

Hi. This is the new journal. My Kernel now after system update it is 5.4.0-72 and this problem does not occur with windows 10 that I have installed
journal.txt (166.4 KB)