Alienware 13

This article documents configuration and troubleshooting specific to the Alienware 13 laptop.

See the Installation guide for general installation instructions.

Installation

Boot the computer and press F12 to access to the boot menu, from there we select the USB and boot from there.

If you get stuck into a nouveau loop or a black screen, change the kernel parameters with nomodeset.

Switching Windows from RAID to AHCI mode

The stock installation of Windows is in RAID mode which makes linux unable to see the NVMe disks. However once installed in RAID mode, Windows refuses to boot when the disk is in AHCI mode. You can however fix that by following those steps:

  1. Right-click the Windows Start Menu. Choose Command Prompt (Admin)
    • If you don’t see Command Prompt listed, it’s because you have already been updated to a later version of Windows. If so, use this method instead to get to the Command Prompt:
      1. Click the Start Button and type cmd
      2. Right-click the result and select Run as administrator
  2. Type this command and press Enter: bcdedit /set {current} safeboot minimal
    • If this command does not work for you, try bcdedit /set safeboot minimal
  3. Restart the computer and enter BIOS Setup (the key to press varies between systems).
  4. Change the SATA Operation mode to AHCI from either IDE or RAID (again, the language varies).
  5. Save changes and exit Setup and Windows will automatically boot to Safe Mode.
  6. Right-click the Windows Start Menu once more. Choose Command Prompt (Admin).
  7. Type this command and press ENTER: bcdedit /deletevalue {current} safeboot
    • If you had to try the alternate command above, you will likely need to do so here also: bcdedit /deletevalue safeboot
  8. Reboot once more and Windows will automatically start with AHCI drivers enabled.

Source:

Touchpad

If the touchpad does not work, try to unload the module:

# modprobe -r i2c_hid

and restart the graphical environment. If that helps, consider blacklisting the module.

Wireless

The WiFi network of the Alienware 13 is a Atheros Qualcomm Killer N1525, which is not configured by the default installation. See the ubuntu bug.

Fortunately, the following patch is able to get it to work. It was tested on Kernel 4.2.5-1 as follows:

$ git clone https://github.com/sumdog/ath10k-firmware
# cp -a ath10k-firmware/ath10k/QCA6174 /lib/firmware/ath10k/QCA6174
# echo "options ath10k_core skip_otp=y" | tee -a /etc/modprobe.d/ath10k.conf

After a reboot, wireless should work, including WiFi AC speeds.

For Alienware 13 R3, the WiFi works out of the box. The following kernel error seems to be harmless.

ath10k_pci 0000:3d:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -2

R1 freezes on suspend/hibernate

Due to firmware crashes with the ath10 WiFi driver on R1 you may encounter system freezes upon suspend/hibernate. A workaround would be to unload the ath10 module before going down and load it back upon wake up. Create and make executable:

Do not forget to do a daemon-reload after that.

Note that the nouveau driver also can be the source of problems with suspend, so if the above does not help, try to either blacklist it or install the non-free NVIDIA driver to replace it.

Graphics

The Kaby Lake R3 suffers from a X lockup when either trying to start X or running when the discrete GPU is off. There are kernel bug and bumblebee bug open to track this issue. In the meantime you can add the following to your kernel commandline at boot:

R3 has support for Windows 2012, 2013, 2015. When using 2009, reboot is not available. 2015 works fine and also enables ACPI reboot.

To have switchable graphics see bumblebee instructions. The utility is able to turn on and off the dedicated graphics card ondemand and without having to restart the computer or reopening session.

It is to be noted that some Alienware laptop (Alienware 13 R3) shows an lspci hang issue where lspci/startx/etc… hangs and freeze the system when probing inactive discrete NVIDIA GPU.

Intel powersaving options

In order to get the most out of your battery life it is recommended to use the following additional powersaving options:

Refer to Dell XPS 13 (9360)#Power saving for additional information on each of them.

OLED screen brightness

With Gnome, the brightness control keys toggles the on-screen display, but it does not change the brightness level. The screen blanking feature also does not work. The following command can be used to set the brightness to 50%.

$ xrandr --output eDP1 --brightness .5

Until brightness control is supported by the kernel, we can use the following script to read off the brightness values from sysfs and apply xrandr brightness reduction to it:

Make it executable and add it to autostart and you are set. We use inotifywait to know when the value is modified so we do not busy wait but are still responsive.

OLED screen does not light up after resume

Sometimes when you sleep the computer and resume it, the OLED screen will flicker but not actually light up again. To fix this use the following xrandr command:

/usr/local/bin/resmon
#!/bin/sh
xrandr -d :0.0 --output eDP-1 --off && xrandr -d :0.0 --output eDP-1 --auto

This is a script so that it can easily run it if the monitor is off after resume: you can add it to a keyboard shortcut, or use run command, whichever is easier.

HDMI/Mini-DP audio

The HDMI and the mini-DP are connected to the NVIDIA card, which means that in order for them to play audio you need to route it through the sound card attached to the NVIDIA device. However by default the GPU has its audio disabled for whatever reason. To enable it follow NVIDIA/Troubleshooting#No audio over HDMI

Keyboard lights

To get access to the keyboard lights they can be controlling by sending data to the correct device (ID 187c:0527 Alienware Corporation

There are plenty of programs like pyAlienFX or Alienware-KBL and none of these work, but the following GitHub project that consists on sending data to USB using that worked fine.

$ git clone https://github.com/snooze6/hack-alienfx
$ make all

In case of a compilation error similar to , try adding:

Once it is compiled, test by running:

# ./run seq/snooze

and keyboard lights should work.

To register it as a command and can use this program without being root we can do the next:

# cp run /usr/local/bin/
# mkdir /usr/local/fx
# cp seq/* /usr/local/fx
# chmod 4755 /bin/fx
# cp lights.sh /usr/local/bin/lights
# chmod +x /usr/local/bin/lights

Now it should trigger by executing:

$ lights
$ lights on
$ lights off

from a console.

We can simply add the commands to the energy admin or the startup to make keyboard lights change automatically.

If that does not work try alieneffects-13r3, specifically made for Alienware 13 R3 or alienfx.

gollark: I'm aware of the concept. However:- why are you randomly adding spatial dimensions- "god" has a lot of connotations. If it can't actually do anything to things, it is not very god.> Didn’t they say that all the galaxies in the universe are connected in a similar way to neurons in a Brain?They're arranged in a vaguely webby structure IIRC.
gollark: Arguably, if something cannot interact with you at all, it doesn't exist.
gollark: What? That doesn't follow either.
gollark: Depends on the god.
gollark: Out of all possible gods, the ones which pay particular to attention to humans are probably a very small subset, although I guess given that we exist the probability of any god, should one exist, being one of them, is higher.
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.