Skip to content

Instantly share code, notes, and snippets.

@GMMan
Last active July 22, 2020 15:30
Show Gist options
  • Star 52 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save GMMan/def55b688289f52b8635f1a83c25b1b5 to your computer and use it in GitHub Desktop.
Save GMMan/def55b688289f52b8635f1a83c25b1b5 to your computer and use it in GitHub Desktop.
Problems and Solutions for Ubuntu 16.04 LTS on ASUS ROG GL502VS Laptop

Problems and Solutions for Ubuntu 16.04 LTS on ASUS ROG GL502VS Laptop

NVIDIA Graphics

Nouveau does not appear to support Pascal cards right now, so you should use the proprietary NVIDIA driver, available from the Additional Drivers applet.

Panel Dithering

Once you have NVIDIA's driver installed, you may notice some color banding. The driver does not seem to detect the bpc of the panel properly, so you will need to set this yourself.

  1. Generate xorg.conf.
sudo nvidia-xconfig
  1. Add this line under the Screen section of the config to turn on dithering:
    Option         "FlatPanelProperties" "Dithering = Enabled"

Bootsplash Resolution

Plymouth looks like it's running at 640x480. To increase the resolution, follow this guide, but ignore the step for installing v86d. You can set the resolution to 1920x1080. Note that the splash may cut to black after a bit, with the dots being redrawn. No idea why that happens, and there doesn't appear to be an easy fix.

Hotkeys

The keyboard on the laptop is a USB HID keyboard, and sends its own scancodes for hotkeys instead of going through ACPI, where the asus-wmi module would have handled it. This will require you to compile your own driver.

Download the source for the current version of your kernel (probably from here), and apply these patches:

Unmarked on the keyboard are the camera key (Fn+V), Splendid Utilities key (Fn+C, mapped to KEY_PROG2), and Power4Gear Hybrid key (Fn+Space, mapped to KEY_PROG3, but doesn't actually work on this particular model). The ROG key is mapped to KEY_PROG1.

After you patch things up, build the module (see https://askubuntu.com/a/515408). Copy the module to its proper directory in /lib, sudo depmod -a, and rebuild your initrd (sudo update-initramfs -u).

Display Off Hotkey

After you get the hotkey driver installed, you need to add a script for Fn+F7 to work. Follow the instructions here, but use video/displayoff DOFF 00000089 00000000 for the event line. (You may need to use acpi_listen to find the actual event, if the above does not work.)

Screen doesn't turn on after it turns off

Update: appears to be fixed as of driver 375.26.

This is a known issue in the NVIDIA driver. See here for the thread. For now, you'll have to switch between one of the ttys (Ctrl-Alt-F1) and X.Org (Ctrl-Alt-F6) to get the screen to turn back on.

There are huge black borders around windows after resume

Also a driver bug. Do the same thing as above to reset things.

Airplane Mode LED lights when everything is on

This is a bug in the ACPI DSDT. We're waiting for the Linux devs to sort out what they want to call the airplane mode button before efforts to get the light to behave properly goes anywhere.

@Luc45
Copy link

Luc45 commented Jun 17, 2019

Problem:
Fn keys not working, this includes: Keyboard backlight, screen brightness control, trackpad disable/enable, etc

Solution:
Ubuntu 18.04 comes with Kernel 4.18~. Install ukuu and update your kernel to 5.X. I upgraded mine to 5.1.9 and everything is working fine. Read some tutorials online on how to do so if you need, it's pretty easy and straightforward, everything is done in a GUI with two clicks of a button. With these Kernel stuff you never know, have a backup around.

Reason:
There were recent fixes to the Linux kernel concerning specifically ASUS ROG laptops, and these fixes are not present in older versions of the Kernel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment