From ba76ae6065d828b5eec8efd98434d278cdec82ce Mon Sep 17 00:00:00 2001 From: aszlig Date: Sat, 17 Dec 2016 16:25:53 +0100 Subject: hardware/t100ha: Remove workaround for vblank With the latest patches, this is no longer needed. Signed-off-by: aszlig --- modules/hardware/t100ha/default.nix | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'modules/hardware') 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 - - int main(void) { - char cmd = 14; - ioctl(0, TIOCLINUX, &cmd); - cmd = 4; - ioctl(0, TIOCLINUX, &cmd); - } - ''}" - ''; }; } -- cgit 1.4.1