about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-02-23 09:10:27 +0100
committeraszlig <aszlig@redmoonstudios.org>2016-02-23 09:10:27 +0100
commit0aae52f426a1c145de68ddb852123fc99793f412 (patch)
tree5e2782b96419360e0905cfc5105e43d3b9b579e0 /modules
parentb4273ff694ce76303787a2fd79d9fe22778970e4 (diff)
hardware/t100ha: Rotate monitor in Xorg as well
We already rotate the fbcon display, but we need to make sure we also
apply the rotation to the X server.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules')
-rw-r--r--modules/hardware/t100ha/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/hardware/t100ha/default.nix b/modules/hardware/t100ha/default.nix
index d5f2138e..24981759 100644
--- a/modules/hardware/t100ha/default.nix
+++ b/modules/hardware/t100ha/default.nix
@@ -12,9 +12,17 @@ in {
     boot.initrd.availableKernelModules = [
       "xhci_pci" "sdhci_acpi" "mmc_block"
     ];
+
     # It's a CherryTrail SoC, so we want to have the latest and greatest:
     boot.kernelPackages = pkgs.linuxPackages_latest;
+
     # By default the console is rotated by 90 degrees to the right.
     boot.kernelParams = [ "fbcon=rotate:3" ];
+    services.xserver.deviceSection = ''
+      Option "monitor-DSI1" "Monitor[0]"
+    '';
+    services.xserver.monitorSection = ''
+      Option "Rotate" "left"
+    '';
   };
 }