Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Making The Asus ROG Zephyrus G Ryzen 7 GTX 1660 Ti Usuable

  1. #1
    Join Date
    Feb 2018
    Beans
    9

    Making The Asus ROG Zephyrus G Ryzen 7 GTX 1660 Ti Usuable

    I have recently purchased a Asus Zephyrus-G-GU502DU-GA502DU and I like it a lot

    Pros-
    Ubuntu works with some workarounds
    Battery life is great
    GPU is great
    System is quiet-ish when gaming
    Screen is top of the line

    Cons-

    Keyboard back light does not work on any GNU/Linux and if it is enabled on windows the sound will have issues on all GNU/Linux platforms
    Keyboard special functions like back light controls and manual fan controls don't work
    System can go into sleep mode but cannot resume
    The system can get very hot
    It has no webcam (but does any real GNU/Linux user care about that?!)



    Out of the box, The system has only one major issue and that is the Realtek WiFi Driver. Follow this post here for fix - https://askubuntu.com/questions/1071...n-ubuntu-18-04 But here is the Answer anyway
    Code:
    sudo apt-get install --reinstall git dkms build-essential linux-headers-$(uname -r)
    git clone https://github.com/tomaspinho/rtl8821ce
    cd rtl8821ce
    chmod +x dkms-install.sh
    chmod +x dkms-remove.sh
    sudo ./dkms-install.sh


    For the Kernel config. I suggest putting the following in the /etc/default/grub after the word splash
    Code:
     nouveau.modeset=0 tpm_tis.interrupts=0 acpi_osi=Linux i915.preliminary_hw_support=1 idle=nomwait

    You will need to install the Nvidia GPU driver the instructions change sometimes so I suggest doing a search on it. But its mostly just adding the graphics PPA and installing nvidia-utils-440 Once you follow the instructions and the driver as well as the xserver settings is installed go on to the next step.

    Nvidia wont be the default video driver when OS is first installed. paste this in /etc/X11/xorg.conf This is not a PRIME config and your GPU will always use NVIDIA. This will also allow you to use the DP on the USB-C port. I would suggest having an adapter for USB-C to HDMI so you can set up other DEs such as KDE since the laptop screen wont work by default! (it will after display setup through KDE's settings)


    OLD
    Code:
    Section "Module"
        Load "modesetting"
    EndSection
    
    
    Section "Device"
        Identifier "nvidia"
        Driver "nvidia"
        BusID "1:0:0"
        Option "AllowEmptyInitialConfiguration"
        Option "ModeValidation" "NoDFPNativeResolutionCheck"
        Option "ConnectedMonitor" "DFP-0"
    EndSection
    


    Look here for alt config for Nvidia Prime use. I heard this disables the USB-C display port function so look out!
    https://devtalk.nvidia.com/default/t...04726/#5404726

    At the moment I am happy but I hope this posts gets to all people who want to use Linux on a Asus AMD gaming laptop. I am also hoping AMD and Nvidia continue to work on their open source (and maybe proprietary) drivers to grow support on the GNU/Linux Platform. The keyboard lighting thing may be hard to fix but the sleep and resume feature is most likely due to the AMD CPU and should be fixed in a (not so future) kernel update

    If anyone has a NEW answer to fix the sleep issue and/or keyboard lighting issue please leave it in the comments with newbie like explanations and commands. (I want this to be accessible to everyone)

    WARNING: Do not update to BIOS 208! Your CPU will slow down after 15 minutes due to fan control issues in Linux. Stay on or downgrade to 207! (I had 208 and downgraded to 207, It should be safe. 206 is a mess, don't downgrade that far!) Try to stick with Kernel 5.0 and Ubuntu 19.04. Sleep mode and power on seem to have issues and or very slow on newer kernels.

    This laptop is still not the best for Linux but damn its gotten much better! I am hoping for more improvements in 2020 especially since AMD/NVIDIA hybrids are becoming more popular. Thank you all for the comments and I hope that we can continue making this laptop awesome.


    Last edited by andrewfer000; January 6th, 2020 at 11:24 PM. Reason: Update!

  2. #2
    Join Date
    Aug 2019
    Beans
    3

    Re: Making The Asus ROG Zephyrus G Ryzen 7 GTX 1660 Ti Usuable

    Hi:

    As you suggested, I look for a way to install the nvidia drivers on the laptop, the first step was to run the following command:
    ubuntu-drivers devices

    in order to get device id. But in my device the command does not show any information at all.

    Do you suggest to just run the following command:


    sudo apt install nvidia-driver-418

  3. #3
    Join Date
    Aug 2019
    Beans
    3

    Re: Making The Asus ROG Zephyrus G Ryzen 7 GTX 1660 Ti Usuable

    update:
    installed the nvidia-driver-418, and the same seems to be installed fine, but nvidia-detector, still shows none as an output.
    Also the system is barely getting 2.30 hours of battery life. Any clues.. I am currently running ubuntu 19.04, kernel 5.0.0-23-generic.

    Next step, trying to update the kernel to see if this solves anything or the machine explodes

  4. #4
    Join Date
    Aug 2019
    Beans
    3

    Re: Making The Asus ROG Zephyrus G Ryzen 7 GTX 1660 Ti Usuable

    update:
    installed the nvidia-driver-418, and the same seems to be installed fine, but nvidia-detector, still shows none as an output.
    Also the system is barely getting 2.30 hours of battery life. Any clues.. I am currently running ubuntu 19.04, kernel 5.0.0-23-generic.

    Next step, trying to update the kernel to see if this solves anything or the machine explodes

  5. #5
    Join Date
    Feb 2018
    Beans
    9

    Re: Making The Asus ROG Zephyrus G Ryzen 7 GTX 1660 Ti Usuable

    Reply to test9900: Sorry IDK what to do about the nvidia issues. When i run Nvidia Detector it shows nothing. But if you run glxinfo |grep "OpenGL" it should show up. You CAN add Coolbit serrings in the xorg.conf to change fan and clock speeds. I have never tried it personally though arch wiki has good info on it but be careful and make backups!

    UPDATE: Sleep now works! All you need to do is a BIOS update. downlad it from asus's support page and put it on a flash drive then use EZ Fash to put it into your BIOS. It works great and even comes with a cool power-on sound. Now all that's left is keyboard shortcuts + backlight!
    Last edited by oldfred; August 6th, 2019 at 12:13 AM. Reason: Please use standard fonts

  6. #6
    Join Date
    Sep 2019
    Beans
    1

    Re: Making The Asus ROG Zephyrus G Ryzen 7 GTX 1660 Ti Usuable

    I have the asus zephyrus ga502du-br7n6. It has the ryzen 7 with both amd and nvidia gpus.

    One workaround to the keyboard backlight issue is to first boot into windows, leave the keyboard light on, the do a soft restart into ubuntu. The backlight stays on every time. If I shut down the laptop and then boot straight into Ubuntu, no backlight.

    After doing some research on the issue, I believe the issue is a missing file called kbd_backlight. I am currently searching for a way to manually inject it, but I'm not a power user.

  7. #7
    Join Date
    Sep 2019
    Beans
    1

    Re: Making The Asus ROG Zephyrus G Ryzen 7 GTX 1660 Ti Usuable

    Kinda new to the hole forum stuff. Linux user for 9 years.
    I also have the asus zephyrus ga502du-br7n6 and the keyboard backlight is really being a problem. I have read over 20 different asus keyboard backlight forums and all where a bust. As far as I can figure out everything relies on
    asus::kbd_backlight. So lets try to summarize what I've done.

    asus zephyrus ga502du-br7n6
    uefi ver. 208
    originally tried everything on pop os 19.04 kernel ver. 5.0-29something
    currently: kubuntu 19.10 kernel ver. 5.3.0.12 as of writing this

    I added the grub options
    nouveau.modeset=0 tpm_tis.interrupts=0 acpi_osi=Linux i915.preliminary_hw_support=1 idle=nomwait and did the wifi successfully, but
    my display name is eDP-1 and I had to create the /etc/X11/xorg.conf

    Section "Module"
    Load "modesetting"
    EndSection




    Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "1:0:0"
    Option "AllowEmptyInitialConfiguration"
    Option "ModeValidation" "NoDFPNativeResolutionCheck"
    Option "ConnectedMonitor" "eDP-1"
    EndSection

    Then I
    ran $ sudo nvidia-xconfig
    and the end result of xorg.conf looks like this :

    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 435.21




    Section "ServerLayout"
    Identifier "Default Layout"
    Screen "Default Screen" 0 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    EndSection


    Section "Module"
    Load "modesetting"
    Load "glx"
    EndSection


    Section "InputDevice"


    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection


    Section "InputDevice"


    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
    EndSection


    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Unknown"
    Option "DPMS"
    EndSection


    Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    EndSection


    Section "Screen"
    Identifier "Default Screen"
    Device "nvidia"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "AllowEmptyInitialConfiguration"
    Option "ModeValidation" "NoDFPNativeResolutionCheck"
    Option "ConnectedMonitor" "eDP-1"
    SubSection "Display"
    Depth 24
    Modes "nvidia-auto-select"
    EndSubSection


    Ok so that seems better but don't try to play a 1080p 60fps youtube video in firefox or chrome It drops a heavy amount of frames, also I get a
    Desktop effects were restarted due to a graphics reset notification when the laptop is coming out of sleep


    Ok so now let's just continue onto the keyboard.

    $ xev does not detect the fn keys for keyboard backlight or display brightness.


    $ sudo /etc/acpi/asus-keyboard-backlight.sh..........yup didn't work, no output in the terminal either.

    $ sudo echo 3 > /sys/class/leds/asus::kbd_backlight/brightness
    bash: /sys/class/leds/asus::kbd_backlight/brightness: No such file or directory


    $ ls /sys/devices/platform/asus-nb-wmi/leds/
    asus::lightbar

    $ ls /sys/class/leds/
    asus::lightbar input26::kana input4::numlock input8::kana input9::compose
    asus-wireless::airplane input26::numlock input4::scrolllock input8::numlock input9::kana
    input26::capslock input26::scrolllock input8::capslock input8::scrolllock input9::numlock
    input26::compose input4::capslock input8::compose input9::capslock input9::scrolllock


    asus::lightbar has a trigger file,
    here's what that shows:

    [none] usb-gadget usb-host rfkill-any rfkill-none kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock AC0-online BAT0-charging-or-full BAT0-charging BAT0-full BAT0-charging-blink-full-solid disk-activity disk-read disk-write ide-disk mtd nand-disk cpu cpu0 cpu1 cpu2 cpu3 cpu4 cpu5 cpu6 cpu7 cpu8 cpu9 cpu10 cpu11 cpu12 cpu13 cpu14 cpu15 panic bluetooth-power hci0-power rfkill0 rfkill1 audio-mute audio-micmute r8169-400:00:link r8169-400:00:1Gbps r8169-400:00:100Mbps r8169-400:00:10Mbps hid-34:88:5d:3e:8b:57-battery-charging-or-full hid-34:88:5d:3e:8b:57-battery-charging hid-34:88:5d:3e:8b:57-battery-full hid-34:88:5d:3e:8b:57-battery-charging-blink-full-solid


    I also tried github project Hummer12007/brightnessctl. It did not display anything for the keyboard either

    Yup I'm lost, I would really like to see my keyboard
    , I'm possibly thinking something is needed in grub or xorg.
    Any help is appreciated.

    Last edited by computerhavoc; September 28th, 2019 at 08:35 PM.

  8. #8
    Join Date
    Aug 2010
    Beans
    2

    Re: Making The Asus ROG Zephyrus G Ryzen 7 GTX 1660 Ti Usuable

    Hello!
    I've got exactly the same computer but I can not get it... I've done the changes in the xorg.conf file and the X freezes...
    I change the grup parameters also...

    I send you some information just in case someone could help me...
    I am using the latest snap of Ubuntu 20.04, using 440.44 driver. The driver looks perfectly installed. The problem is the system is not using it. It is using the AMD integrated graphics card (AMD® Ryzen 7 3750h with radeon vega mobile). And nvidia-settings answers the same problem you described (an empty window).

    Code:
    $ inxi -Gx
    Graphics:  Device-1: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] vendor: ASUSTeK driver: nvidia 
               v: 440.44 bus ID: 01:00.0 
               Device-2: AMD Picasso vendor: ASUSTeK driver: amdgpu v: kernel bus ID: 05:00.0 
               Display: x11 server: X.Org 1.20.5 driver: amdgpu,ati 
               unloaded: fbdev,modesetting,nouveau,nvidia,vesa tty: N/A 
               OpenGL: renderer: AMD RAVEN (DRM 3.33.0 5.3.0-24-generic LLVM 9.0.0) 
               v: 4.5 Mesa 19.2.4 direct render: Yes
    Code:
    $ glxinfo | egrep "OpenGL vendor|OpenGL renderer"
    OpenGL vendor string: X.Org
    OpenGL renderer string: AMD RAVEN (DRM 3.33.0, 5.3.0-24-generic, LLVM 9.0.0)
    Code:
    $ sudo nvidia-smi 
    [sudo] contraseña para javier: 
    Tue Dec 24 11:51:15 2019       
    +-----------------------------------------------------------------------------+
    | NVIDIA-SMI 440.44       Driver Version: 440.44       CUDA Version: 10.2     |
    |-------------------------------+----------------------+----------------------+
    | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
    |===============================+======================+======================|
    |   0  GeForce GTX 166...  Off  | 00000000:01:00.0 Off |                  N/A |
    | N/A   51C    P0    15W /  N/A |      0MiB /  5944MiB |      0%      Default |
    +-------------------------------+----------------------+----------------------+
                                                                                   
    +-----------------------------------------------------------------------------+
    | Processes:                                                       GPU Memory |
    |  GPU       PID   Type   Process name                             Usage      |
    |=============================================================================|
    |  No running processes found                                                 |
    +-----------------------------------------------------------------------------+
    It looks to be selected but the system does not use it:
    Code:
    $ sudo prime-select query
    nvidia
    Code:
    $ sudo lshw -C display
      *-display                 
           descripción: VGA compatible controller
           producto: TU116M [GeForce GTX 1660 Ti Mobile]
           fabricante: NVIDIA Corporation
           id físico: 0
           información del bus: pci@0000:01:00.0
           versión: a1
           anchura: 64 bits
           reloj: 33MHz
           capacidades: pm msi pciexpress vga_controller bus_master cap_list rom
           configuración: driver=nvidia latency=0
           recursos: irq:73 memoria:f6000000-f6ffffff  memoria:c0000000-cfffffff memoria:d0000000-d1ffffff  ioport:f000(size=128) memoria:f7000000-f707ffff
      *-display
           descripción: VGA compatible controller
           producto: Picasso
           fabricante: Advanced Micro Devices, Inc. [AMD/ATI]
           id físico: 0
           información del bus: pci@0000:05:00.0
           versión: c1
           anchura: 64 bits
           reloj: 33MHz
           capacidades: pm pciexpress msi msix vga_controller bus_master cap_list
           configuración: driver=amdgpu latency=0
           recursos: irq:72 memoria:e0000000-efffffff memoria:f0000000-f01fffff ioport:c000(size=256) memoria:f7600000-f767ffff
    Code:
    $ dmesg|grep nvidia
    [    0.429930] nvidia-gpu 0000:01:00.3: enabling device (0000 -> 0002)
    [    1.577924] nvidia: loading out-of-tree module taints kernel.
    [    1.577931] nvidia: module license 'NVIDIA' taints kernel.
    [    1.626905] nvidia: module verification failed: signature and/or required key missing - tainting kernel
    [    1.636119] nvidia-nvlink: Nvlink Core is being initialized, major device number 236
    [    1.636552] nvidia 0000:01:00.0: enabling device (0000 -> 0003)
    [    1.636656] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
    [    1.688843] audit: type=1400 audit(1577154230.838:3):  apparmor="STATUS" operation="profile_load" profile="unconfined"  name="nvidia_modprobe" pid=617 comm="apparmor_parser"
    [    1.689201] audit: type=1400 audit(1577154230.838:4):  apparmor="STATUS" operation="profile_load" profile="unconfined"  name="nvidia_modprobe//kmod" pid=617 comm="apparmor_parser"
    [    1.804534] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver  for UNIX platforms  440.44  Sun Dec  8 03:29:48 UTC 2019
    [    1.936386] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
    [    1.936388] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
    [    2.086768] nvidia-uvm: Loaded the UVM driver, major device number 234.
    [  118.288044] nvidia-gpu 0000:01:00.3: i2c timeout error f0000100
    I can not access to nvidia-settings:
    Code:
    $ sudo nvidia-settings 
    
    ERROR: Unable to load info from any available system
    
    
    (nvidia-settings:9370): GLib-GObject-CRITICAL **: 01:55:15.799: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
    ** Message: 01:55:15.804: PRIME: No offloading required. Abort
    ** Message: 01:55:15.804: PRIME: is it supported? n
    Any advice? Thank you very much on advance!

  9. #9
    Join Date
    Aug 2010
    Beans
    2

    Re: Making The Asus ROG Zephyrus G Ryzen 7 GTX 1660 Ti Usuable

    I found a solution here (thanks to generix!):
    https://devtalk.nvidia.com/default/t...04726/#5404726

  10. #10
    Join Date
    Oct 2019
    Beans
    3

    Re: Making The Asus ROG Zephyrus G Ryzen 7 GTX 1660 Ti Usuable

    Hi, I followed your instructions, and I can see nvidia-settings window. But since I installed Ubuntu, sometimes the system gets slow. Sometimes after coding in vscode or even only using Firefox the system gets slow without explanation (even if I close everything, simple programs like Firefox with only 1 tab runs slow). Everything becomes laggy like scrolling and I can notice lag even on typing.

    BUT, if I suspend and turn on again, everything works well and fast as expected. I would like to know if anyone have the same problem and how can I solve it.

    Also, the battery takes around 3 hours to discharge and I would like to know if its normal or if yours have more time before discharging.

    UPDATE 1:

    BIOS version 207 not available anymore. Only versions 208 and 300. I will update and see if it helps
    Last edited by victor7095; February 23rd, 2020 at 02:30 AM. Reason: Update

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •