about summary refs log tree commit diff
path: root/modules/hardware
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-12-17 16:25:53 +0100
committeraszlig <aszlig@redmoonstudios.org>2016-12-17 16:25:53 +0100
commitba76ae6065d828b5eec8efd98434d278cdec82ce (patch)
tree68b6e48b78ed5213788230badf02ef6e4eb9bf63 /modules/hardware
parent2a60a8a9e05efa9ae0384016165cefb34ddceca9 (diff)
hardware/t100ha: Remove workaround for vblank
With the latest patches, this is no longer needed.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/hardware')
-rw-r--r--modules/hardware/t100ha/default.nix20
1 files changed, 0 insertions, 20 deletions
diff --git a/modules/hardware/t100ha/default.nix b/modules/hardware/t100ha/default.nix
index feb64ef0..70a9fc38 100644
--- a/modules/hardware/t100ha/default.nix
+++ b/modules/hardware/t100ha/default.nix
@@ -103,25 +103,5 @@ in {
       MatchProduct "SIS0457"
       Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
     '';
-
-    # XXX: Workaround for a vblank issue that causes the display to stay blank
-    # until the next subsequent vblank (usually on no activity for a while until
-    # the monitor gets powered down).
-    #
-    # I know this is very ugly, but another mitigation would be to disable power
-    # management entirely, which I think is even uglier.
-    boot.initrd.preDeviceCommands = "fix-vblank";
-    boot.initrd.extraUtilsCommands = ''
-      cc -Wall -o "$out/bin/fix-vblank" "${pkgs.writeText "fix-vblank.c" ''
-        #include <sys/ioctl.h>
-
-        int main(void) {
-          char cmd = 14;
-          ioctl(0, TIOCLINUX, &cmd);
-          cmd = 4;
-          ioctl(0, TIOCLINUX, &cmd);
-        }
-      ''}"
-    '';
   };
 }