Results 1 to 2 of 2

Thread: Ryzen 5 3500U - laptop not booting when on battery power

  1. #1
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 18.04 Bionic Beaver

    Ryzen 5 3500U - laptop not booting when on battery power

    So we got a new laptop (HP 255 G7) for the kid (i mean he saved up the money i helped to select it). I tested most hardware so far. We installed CS:GO, Portal and Gary's mod and all works fine. i also installed a few apps to test mic and camera.

    But, and this is the puzzling part, i can't boot it with battery only. When the power is in it boots fine and fast, but with battery i get garbled desktop (attachment - kde wallet window is visible and panel) as if drivers aren't loaded. And looks like there really is an issue with drivers of sorts. I can still enter password for KDE walled and the laptop connects to wi-fi. i can attach mouse and i still get the message that touchpad was turned off (though not visible as only frame of message windows is displayed). I managed to get it to boot correctly once and 8 times it failed. Since i can switch normally to console and back i decided to move dmesg to a file.

    dmesg: https://paste.ubuntu.com/p/C2xNzpBKq5/

    Dmesg throws out error messages as if it tried to load the driver but can't do it fully.

    system specs:
    OS: Kubuntu 20.04

    CPU: Ryzen 5 3500U
    GPU: Vega 8
    RAM: 8 GB DDR4 2400 Mhz
    disk: 256 GB nvme

    other:
    • wi-fi driver (rtl8821ce) is not in kernel, so i needed patch and i used this procedure: https://askubuntu.com/questions/1071...n-ubuntu-18-04
    • USB ports, network jack, audio stuff, camera, touchpad (synaptics) all work
    • legacy boot was default so i left it alone
    • install is default, whole disk used (swap is file)
    • after multiple boot failures i enabled battery report to OS in BIOS, but all it did is that OS now reports remaining battery time left.
    • if i boot with charger plugged in, the laptop boots normally and seems to be working normally after i unplug the charger.
    • plymouth screen works normally, but KDE loading screen does not display


    how do i troubleshoot this? moreover how can i fix it?
    Attached Images Attached Images
    Last edited by mastablasta; 4 Weeks Ago at 08:27 AM. Reason: Better title description
    Read the easy to understand, lots of pics Ubuntu manual.
    Do i need antivirus/firewall in linux?
    Disk backup (works on newer PC): Clonezilla
    User friendly full disk backup Redobackup is now back as Rescuezilla

  2. #2
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: Hp 255 G7 - AMDGPU drivers not loading propperly when using battery power

    I found a work around solution. The issue is indeed AMD drivers for Ryzen 5 3500U and Vega 8.
    a boot option is needed:
    Code:
    iommu=soft
    To try if this works hold shift on boot to enter grub, press e, then add this boot option just before the quiet splash. then press ctrl+x to boot. if it doesn't work well, hust reboot

    Some things might be disabled when using this boot option . iommu has effect on these things: https://github.com/spotify/linux/blo...tions.txt#L207
    Some people reported USB3 ports not working or other external connections. in my case all seems to work as well as GPU (i could play CS:GO normally on battery).

    to make it permanent edit grub configuration file.

    Code:
    sudo nano /etc/defaut/grub
    change line

    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    to
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="iommu=soft quiet splash"
    save the file, exit nano editor and run the update to grub:
    Code:
    sudo update-grub
    The issue affects other laptops with Ryzen 5 3500U and is reported to be resolved in kernel 5.5, while the GPU drivers improvement (power management, fans...) is part of kernel 5.6.

    By installing new kernel the issue should be resolved.

    WARNING: new kernels are not fully tested and come without extra drivers that ubuntu adds.

    How to install new kernel:
    You can use graphics app ukuu (Ubuntu Kernel Update Utility) to install new mainline kernel. instructions: https://www.omgubuntu.co.uk/2017/02/...-kernel-ubuntu

    another option is described here: https://howtoubuntu.org/how-to-insta...-5-6-in-ubuntu
    kernels (.deb files) can be found here: https://kernel.ubuntu.com/~kernel-ppa/mainline/

    removing kernel - if it's not working:
    procedure is well described here: https://karlcode.owtelse.com/blog/20...evious-kernel/
    Last edited by mastablasta; 4 Weeks Ago at 08:28 AM.
    Read the easy to understand, lots of pics Ubuntu manual.
    Do i need antivirus/firewall in linux?
    Disk backup (works on newer PC): Clonezilla
    User friendly full disk backup Redobackup is now back as Rescuezilla

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •