Skip to content

Instantly share code, notes, and snippets.

@ronalddas
Forked from GMMan/ubuntu-gl502vs.md
Created March 15, 2017 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronalddas/81b67c4e20ed2f3073268428bfab9444 to your computer and use it in GitHub Desktop.
Save ronalddas/81b67c4e20ed2f3073268428bfab9444 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.

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