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.

@DominikLorenz
Copy link

What GPU temperatures do you experience under load?
I have GL502VS with 1070 GTX and Ubuntu 17.10. When I use the GPU (for CUDA computations) the temperature goes up to 91 °.
I am thinking about switching to Ubuntu 16.04 if this solves the issue.
Thanks in advance

@ffoxin
Copy link

ffoxin commented Feb 2, 2018

@gangeshwark,
with kernels from 4,13 branch all hotkeys works for me (GL502).

@gangeshwark
Copy link

@DominikLorenz,
Even I experience the same heating issue with my laptop with Ubuntu 16. I think switching to 16.04 from 17.10 would make no difference in terms of heating.

@lordjea
Copy link

lordjea commented Feb 24, 2018

Hi guys, just an update
After install ubuntu 16.04 all the problem you said happend to my GL553VD
At the end, after install the kernel with headers v4.15.5, the hotkeys start working well

http://kernel.ubuntu.com/%7Ekernel-ppa/mainline/v4.15.5/

@maty974
Copy link

maty974 commented Mar 11, 2018

Hi !

Does anyone have the Asus GL703VM ?

I still can't get Fn keys working :( except for the media shortcut and sound control ...

I'm trying to record some tips and workaround for this model here in case it helps someone:
https://gist.github.com/maty974/a72eece781917e133514b3d322c08005

@mbartosi
Copy link

@maty974 same here with GL503VD.

@tamer-hassan
Copy link

tamer-hassan commented Mar 25, 2018

jasmin@GL702VM:~$ uname -r
4.15.0-12-generic

jasmin@GL702VM:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu Bionic Beaver (development branch)"

In MATE Desktop, function keys all work (except screen off).
In Unity, all the mentioned function keys do not work, as stated in original post.

@pelegye
Copy link

pelegye commented Apr 13, 2018

thx very much dude, solved my problem. i had thought i need to live with not closing the lid at all haha.

@gigcastro
Copy link

@mbartosi hey, i'm dealing with a lot of issues with touchpad on GL503VD (cursor jumping, freezing, etc..) on Ubuntu 18+kernel4.17. Seems by your comment that you got it to work, maybe? Even without Fn keys will be a major success for me, applying kernel patched made it work??

@soscler
Copy link

soscler commented Oct 27, 2018

I actually found the solution to have linux works normally on asus rog with nvidia gpu after 6 months of trying with ubuntu, linux mint, manjaro (with nouveau.modeset etc :( ).

1- Using KDE neon https://www.kde.org/index --the last version
KDE Plasma : 5.14.2
KDE Frameworks Version 5.51.0Q
Qt version : 5.11.2

2 - With ukuu upgrade the kernel to 4.19
$ sudo add-apt-repository ppa:teejee2008/ppa
$ sudo apt-get update && sudo apt-get install ukuu

3- Upgrade the nvidia drivers to 410
$ sudo apt install nvidia-driver-410 && sudo reboot

4- Having nouveau.modeset in /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.modeset=0 nvidia-drm.modeset=1"

5- Update the grub and restart
sudo update-grub2 && sudo reboot

@brothermechanic
Copy link

brothermechanic commented Nov 6, 2018

I actually found the solution to have linux works normally on asus rog with nvidia gpu after 6 months of trying with ubuntu, linux mint, manjaro (with nouveau.modeset etc :( ).

1- Using KDE neon https://www.kde.org/index --the last version
KDE Plasma : 5.14.2
KDE Frameworks Version 5.51.0Q
Qt version : 5.11.2

2 - With ukuu upgrade the kernel to 4.19
$ sudo add-apt-repository ppa:teejee2008/ppa
$ sudo apt-get update && sudo apt-get install ukuu

3- Upgrade the nvidia drivers to 410
$ sudo apt install nvidia-driver-410 && sudo reboot

4- Having nouveau.modeset in /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.modeset=0 nvidia-drm.modeset=1"

5- Update the grub and restart
sudo update-grub2 && sudo reboot

Hello, i test your pipeline, but on gentoo GL703VM
I commit my grub options and add yours

#GRUB_CMDLINE_LINUX_DEFAULT="init=/usr/lib/systemd/systemd console=tty1 modprobe.blacklist=nouveau systemd.setenv=GPUMOD=nvidia nomodeset"
GRUB_CMDLINE_LINUX_DEFAULT="init=/usr/lib/systemd/systemd console=tty1 quet nouveau.modeset=0 nvidia-drm.modeset=1"

No result - can't get FN-keys work (((

@animator013
Copy link

I have Asus GL503VS. I had similar problems with function keys. Here is what i've done.

  • installed ubuntu 18.04.1

  • downloaded kernel source from kernel.org, I decided to downlad latest stable (at time of writing https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.7.tar.gz)

  • unpack that tar xvzf linux-4.19.7.tar.gz

  • open cd drivers/hid

  • edit vim hid-ids.h

  • line #define USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD1 to #define USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD1 0x1866 where 0x1866 is the id of my keyboard, so maybe it is similar with these models

  • compile kernel (there is somewhere good tutorial how to do that)

  • install kernel with modules

  • reboot to new kernel

  • try function keys - they should be working

  • now to make screen brightness work you need install nvidia-driver-415 (or maybe any driver higher then 396)

  • it will work out of the box but if not add this line to grub GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia.NVreg_EnableBacklightHandler=1"

  • now screen brightness should work

  • keyboard backlight can't be controlled, really can't figure this out because I don't know how it is initialized in windows

Hope this helps. Touchpad was working out of the box so don't really know how to help there.

In gnome i get random freeze, am trying to figure that out too.

@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