Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: ASUS A15 TUF Gaming 506 IU Laptop Ryzen7 4800h –running linux on it & hybrid graphics (AMD+Nvidia)

  1. #11

    Default Re: ASUS A15 TUF Gaming 506 IU Laptop Ryzen7 4800h –running linux on it & hybrid graphics (AMD+Nvi

    I understand that the fixed Leap version patches the kernel. So, does it work for Tuf A15? and is hdcam supported?

    // Sorry for flood. I can't edit.
    Last edited by CommonZero; 01-Dec-2020 at 03:50. Reason: Syntax

  2. #12

    Default Re: ASUS A15 TUF Gaming 506 IU Laptop Ryzen7 4800h –running linux on it & hybrid graphics (AMD+Nvi

    Just go for Tumbleweed

    ASUS A17 TUF Gaming Ryzen 5 4600H, Renoir

    Everything works great now. I do have two monitors connected, right now. HDMI and via USB-C, to VGA

    Cam works

    What does not yet work is a third diplaylink Adapter.

  3. #13

    Default Re: ASUS A15 TUF Gaming 506 IU Laptop Ryzen7 4800h –running linux on it & hybrid graphics (AMD+Nvi

    FYI: You'll need to modify the power supply class value or use TLP to limit battery charge and extend its life, such as MyAsus on Windows, for example:

    Code:
    > sudo crontab -e
        @reboot echo 60 > /sys/class/power_supply/BAT1/charge_control_end_threshold
    > sudo reboot
    At the moment, I can't run bluetooth on Tumbleweed (kernel 5.9.11) and I keep it pending to check suse-prime.

    Code:
    > lsusb 
    Bus 005 Device 002: ID 13d3:3548 IMC Networks Bluetooth Radio
    
    > lsmod | grep rt 
    rtw88_8822ce           16384  0 
    rtw88_8822c           339968  1 rtw88_8822ce 
    rtw88_pci              28672  1 rtw88_8822ce 
    rtw88_core            159744  2 rtw88_pci,rtw88_8822c 
    btrtl                  24576  1 btusb 
    mac80211             1073152  2 rtw88_pci,rtw88_core 
    bluetooth             729088  12 btrtl,btintel,btbcm,bnep,btusb 
    cfg80211              897024  2 rtw88_core,mac80211
    
    > sudo rfkill list 
    0: hci0: Bluetooth 
            Soft blocked: no 
            Hard blocked: no

  4. #14
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    30,220
    Blog Entries
    15

    Default Re: ASUS A15 TUF Gaming 506 IU Laptop Ryzen7 4800h –running linux on it & hybrid graphics (AMD+Nvi

    Hi
    Consider switcheroo-control (GNOME DE, not sure about other DE's) or just offload from the command line instead of suse-prime, no logout/login required...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #15

    Default Re: ASUS A15 TUF Gaming 506 IU Laptop Ryzen7 4800h –running linux on it & hybrid graphics (AMD+Nvi

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Consider switcheroo-control (GNOME DE, not sure about other DE's) or just offload from the command line instead of suse-prime, no logout/login required...
    Great but switcherooctl command doesn't show any gpu.

  6. #16
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    30,220
    Blog Entries
    15

    Default Re: ASUS A15 TUF Gaming 506 IU Laptop Ryzen7 4800h –running linux on it & hybrid graphics (AMD+Nvi

    Quote Originally Posted by CommonZero View Post
    Great but switcherooctl command doesn't show any gpu.
    Hi
    What desktop?

    Code:
     switcherooctl 
    Device: 0
      Name:        Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics
      Default:     yes
      Environment: DRI_PRIME=pci-0000_00_02_0
    
    Device: 1
      Name:        NVIDIA Corporation GP108 [GeForce GT 1030]
      Default:     no
      Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1
    Edit: You have to enable and start the switcheroo-control systemd service!
    Last edited by malcolmlewis; 05-Dec-2020 at 14:21. Reason: Add note
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #17

    Default Re: ASUS A15 TUF Gaming 506 IU Laptop Ryzen7 4800h –running linux on it & hybrid graphics (AMD+Nvi

    Thanks for the clarification.
    Switcheroo seems to be a Gnome thing for good. It does not show any launcher in KDE. I get the following results from terminal:

    Code:
    > switcherooctl list
    Device: 0
      Name:        Advanced Micro Devices, Inc. [AMD®/ATI] Renoir
      Default:     yes
      Environment: DRI_PRIME=pci-0000_05_00_0
    
    Device: 1
      Name:        NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile]
      Default:     no
      Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1
    
    > glxinfo|egrep "OpenGL vendor|OpenGL renderer"
    OpenGL vendor string: X.Org
     OpenGL renderer string: AMD RENOIR (DRM 3.39.0, 5.9.11-1-default, LLVM 11.0.0
    
    > switcherooctl -g 0 glxgears
    Running synchronized to the vertical refresh.  The framerate should be
    approximately the same as the monitor refresh rate.
    512 frames in 5.0 seconds = 102.158 FPS
    
    > switcherooctl -g 1 glxgears
    Running synchronized to the vertical refresh.  The framerate should be
    approximately the same as the monitor refresh rate.
    399 frames in 5.0 seconds = 79.727 FPS
    
    > glxgears
    Running synchronized to the vertical refresh.  The framerate should be
    approximately the same as the monitor refresh rate.
    497 frames in 5.0 seconds = 99.281 FPS
    Code:
    > sudo prime-select nvidia
    Preparing first configuration
    Logout to switch graphics
    
    # Session logout
    
    > switcherooctl list
    Device: 0
      Name:        Advanced Micro Devices, Inc. [AMD®/ATI] Renoir
      Default:     yes
      Environment: DRI_PRIME=pci-0000_05_00_0
    
    Device: 1
      Name:        NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile]
      Default:     no
      Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1
    
    > glxinfo|egrep "OpenGL vendor|OpenGL renderer"
    OpenGL vendor string: NVIDIA Corporation
     OpenGL renderer string: GeForce GTX 1660 Ti/PCIe/SSE2
    
    > switcherooctl -g 0 glxgears
    Running synchronized to the vertical refresh.  The framerate should be
    approximately the same as the monitor refresh rate.
    80945 frames in 5.0 seconds = 16188.694 FPS
    
    > switcherooctl -g 1 glxgears
    Running synchronized to the vertical refresh.  The framerate should be
    approximately the same as the monitor refresh rate.
    8701 frames in 5.0 seconds = 1740.128 FPS  <=  hmm?
    
    > glxgears
    Running synchronized to the vertical refresh.  The framerate should be
    approximately the same as the monitor refresh rate.
    80677 frames in 5.0 seconds = 16135.300 FPS

  8. #18
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    30,220
    Blog Entries
    15

    Default Re: ASUS A15 TUF Gaming 506 IU Laptop Ryzen7 4800h –running linux on it & hybrid graphics (AMD+Nvi

    Hi
    Yes for GNOME we have an added selection in the desktop/menu file.... you can offload either via switherooctl or an alias or script it, try this instead of glxgears (it's not a good test}.

    Some should just use the Nvidia card, else launch manually.....

    Code:
    xrandr --listproviders 
    Providers: number : 2
    Provider 0: id: 0x49; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 3; outputs: 7; associated providers: 1; name: modesetting
        output VGA-1
        output HDMI-1
        output DP-1
        output HDMI-2
        output HDMI-3
        output DP-2
        output DP-3
    Provider 1: id: 0x212; cap: 0x2 (Sink Output); crtcs: 2; outputs: 2; associated providers: 1; name: NVIDIA-G0
        output DVI-D-1-0
        output HDMI-1-0
    
    glxinfo|egrep "OpenGL vendor|OpenGL renderer"
    
    OpenGL vendor string: Intel Open Source Technology Center
    OpenGL renderer string: Mesa DRI Intel(R) HD Graphics P4000 (IVB GT2)
    
    __NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo|egrep "OpenGL vendor|OpenGL renderer"
    
    OpenGL vendor string: NVIDIA Corporation
    OpenGL renderer string: GeForce GT 1030/PCIe/SSE2
    
    switcherooctl -g 0 glxinfo|egrep "OpenGL vendor|OpenGL renderer"
    OpenGL vendor string: Intel Open Source Technology Center
    OpenGL renderer string: Mesa DRI Intel(R) HD Graphics P4000 (IVB GT2)
    
    switcherooctl -g 1 glxinfo|egrep "OpenGL vendor|OpenGL renderer"
    OpenGL vendor string: NVIDIA Corporation
    OpenGL renderer string: GeForce GT 1030/PCIe/SSE2
    
    vulkaninfo |grep NVIDIA
    VK_LAYER_NV_optimus (NVIDIA Optimus layer) Vulkan version 1.2.162, layer version 1:
        driverID           = DRIVER_ID_NVIDIA_PROPRIETARY
        driverName         = NVIDIA
        driverID                                             = DRIVER_ID_NVIDIA_PROPRIETARY
        driverName                                           = NVIDIA
    
    clinfo |grep NVIDIA
      Platform Name                                   NVIDIA CUDA
      Platform Vendor                                 NVIDIA Corporation
      Platform Name                                   NVIDIA CUDA
      Device Vendor                                   NVIDIA Corporation
    
    
    pinxi -Gxxz
    
    Graphics:  Device-1: Intel Xeon E3-1200 v2/3rd Gen Core processor Graphics driver: i915 v: kernel bus ID: 00:02.0 
               chip ID: 8086:016a 
               Device-2: NVIDIA GP108 [GeForce GT 1030] vendor: eVga.com. driver: nvidia v: 455.46.02 bus ID: 02:00.0 
               chip ID: 10de:1d01 
               Device-3: NVIDIA GK208B [GeForce GT 710] vendor: ZOTAC driver: vfio-pci v: 0.2 bus ID: 03:00.0 chip ID: 10de:128b 
               Display: x11 server: X.Org 1.20.9 compositor: gnome-shell driver: modesetting,nvidia unloaded: fbdev,vesa 
               alternate: intel,nouveau,nv resolution: 1: 1920x1080~60Hz 2: 1920x1080~60Hz 3: 1920x1080~60Hz s-dpi: 96 
               OpenGL: renderer: Mesa DRI Intel HD Graphics P4000 (IVB GT2) v: 4.2 Mesa 20.2.3 compat-v: 3.0 direct render: Yes 
    
    switcherooctl -g 1 pinxi -Gxxz
    
    Graphics:  Device-1: Intel Xeon E3-1200 v2/3rd Gen Core processor Graphics driver: i915 v: kernel bus ID: 00:02.0 
               chip ID: 8086:016a 
               Device-2: NVIDIA GP108 [GeForce GT 1030] vendor: eVga.com. driver: nvidia v: 455.46.02 bus ID: 02:00.0 
               chip ID: 10de:1d01 
               Device-3: NVIDIA GK208B [GeForce GT 710] vendor: ZOTAC driver: vfio-pci v: 0.2 bus ID: 03:00.0 chip ID: 10de:128b 
               Display: x11 server: X.Org 1.20.9 compositor: gnome-shell driver: modesetting,nvidia unloaded: fbdev,vesa 
               alternate: intel,nouveau,nv resolution: 1: 1920x1080~60Hz 2: 1920x1080~60Hz 3: 1920x1080~60Hz s-dpi: 96 
               OpenGL: renderer: GeForce GT 1030/PCIe/SSE2 v: 4.6.0 NVIDIA 455.46.02 direct render: Yes
    Run the likes of vkmark or blender and check you have nvidia cores....
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  9. #19

    Default Re: ASUS A15 TUF Gaming 506 IU Laptop Ryzen7 4800h –running linux on it & hybrid graphics (AMD+Nvi

    Code:
    > switcherooctl -g 1 glxinfo|egrep "OpenGL vendor|OpenGL renderer"
    Hey, I've already tried and got the same output for both devices (AMD RENOIR). I get anyway:

    Code:
    > switcherooctl -g 0 vkmark
    =======================================================
        vkmark 2017.08
    =======================================================
        Vendor ID:      0x1002
        Device ID:      0x1636
        Device Name:    AMD RADV RENOIR (ACO)
        Driver Version: 83894275
    =======================================================
    [vertex] device-local=true: FPS: 8333 FrameTime: 0.120 ms
    =======================================================
                                       vkmark Score: 8333
    =======================================================
    > switcherooctl -g 1 vkmark
    =======================================================
        vkmark 2017.08
    =======================================================
        Vendor ID:      0x1002
        Device ID:      0x1636
        Device Name:    AMD RADV RENOIR (ACO)
        Driver Version: 83894275
    =======================================================
    [vertex] device-local=true: FPS: 8262 FrameTime: 0.121 ms
    =======================================================
                                       vkmark Score: 8262
    =======================================================


    What's pinxi?
    Last edited by malcolmlewis; 06-Dec-2020 at 11:42. Reason: pinxi pkg?

  10. #20
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    30,220
    Blog Entries
    15

    Default Re: ASUS A15 TUF Gaming 506 IU Laptop Ryzen7 4800h –running linux on it & hybrid graphics (AMD+Nvi

    Quote Originally Posted by CommonZero View Post
    Code:
    > switcherooctl -g 1 glxinfo|egrep "OpenGL vendor|OpenGL renderer"
    Hey, I've already tried and got the same output for both devices (AMD RENOIR). I get anyway:

    Code:
    > switcherooctl -g 0 vkmark
    =======================================================
        vkmark 2017.08
    =======================================================
        Vendor ID:      0x1002
        Device ID:      0x1636
        Device Name:    AMD RADV RENOIR (ACO)
        Driver Version: 83894275
    =======================================================
    [vertex] device-local=true: FPS: 8333 FrameTime: 0.120 ms
    =======================================================
                                       vkmark Score: 8333
    =======================================================
    > switcherooctl -g 1 vkmark
    =======================================================
        vkmark 2017.08
    =======================================================
        Vendor ID:      0x1002
        Device ID:      0x1636
        Device Name:    AMD RADV RENOIR (ACO)
        Driver Version: 83894275
    =======================================================
    [vertex] device-local=true: FPS: 8262 FrameTime: 0.121 ms
    =======================================================
                                       vkmark Score: 8262
    =======================================================


    What's pinxi?
    Hi
    pinxi is the perl version of inxi no package for it...

    So if you try the command line without switcheroo;

    Code:
    xrandr --listproviders
    
    __NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo|egrep "OpenGL vendor|OpenGL renderer"
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Posting Permissions

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