# Schenker XMG P407

#### Installing Xubuntu on the P407

I stumbled across some big problems with nouveau, like i could not login or even turn of the pc properly.

First fix already happens on booting the live-cd.   
You need to change the boot entry for the Installer from:
```
linux options options ... 
to
linux options options nouveau.blacklist=1
```
Press F10 to apply and continue booting.
 
If it still does not work you need to add `acpi=off` additionally.   
If it *still* does not work try `acpi_osi=! acpi_osi=\"Windows 2009\"`

Now install xubuntu to your liking, it **might** not be able to turn off successfully, just ignore that and hard reset the laptop, it should boot normally.  
You need to add the same lines again to the grub bootloader as to the live-cd, so if the grub menu doesn't appear for you, boot from a live cd again and skip the next step. 

Search again for the linux line and add the nouveu.blacklist=1 to the end
```
linux options options ... 
to
linux options options nouveau.blacklist=1
```
Press F10 to apply and continue booting.

Now login and add `/etc/default/grub` as root.  
There you look for the line 
```
GRUB_CMDLINE_LINUX_DEFAULT=options
```
and replace it to 
```
GRUB_CMDLINE_LINUX_DEFAULT=options noveau.blacklist=1
```
and apply it with sudo update-grub2.

Now to installing the latest drivers:

Remove all existing drivers on your system and update the cache. 
```
sudo apt-get purge nvidia*
sudo apt-get update
```

Now look for the latest nvidia driver via apt-cache
```
sudo apt-cache search nvidia binary
```
and install the latest one (a.k.a the one with the highest number).
There **might** be stability issues, so research a bit if there is a recommended, older one.
In my case i had to install nvidia-384.
```
sudo apt-get install nvidia-384
``` 
The system should now be working.

### Arch/Manjaro on P407

Basically the same as above, i used Manjaro Architect to get a nice i3 feeling going.  
As it does not boot into a Window Manager, i had no problem with boot parameters, might need to add the noveau blacklisting and acpi if problems ensure (see above).  

Use the manjaro mhwd tool to configure bumblebee and the nvidia drivers for you, easy as 
`sudo mhwd -a pci nonfree 0300`.  

To actually get the nvidia card, your window manager (lightdm or so) and x11 to work together, the acpi settings need to be set to `acpi_osi=! acpi_osi=\"Windows 2009\"`.  
This is done in `/etc/default/grub`, my grub cmdline:
```
GRUB_CMDLINE_LINUX_DEFAULT="quiet udev.log_priority=3 audit=0 acpi_osi=! acpi_osi=\"Windows 2009\""
```


#### the headphone amp is not working

Use the following package to enable the headphone amp  
Also supports predefined equalizer effect  
[GitHub init-headphones](https://github.com/Unrud/init-headphone)