diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-03-01 07:48:32 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-03-01 08:20:27 +0100 |
commit | 5fa440e9cd3e54c6f6b36e8bddc240dd14a3fb53 (patch) | |
tree | ce8c456200012ccc3df00b0cf251bb7761f19bcf | |
parent | e8861698f019eb218be451e444898a1cb5577d21 (diff) |
hardware/t100ha: Work around vblank issue
Essentially forcing DPMS standby and bringing it on again for now mitigates the vblank issue with the I915 driver. Of course in the long term I need to debug this properly, but for now this works consistently so I'll leave it that way. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r-- | modules/hardware/t100ha/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/hardware/t100ha/default.nix b/modules/hardware/t100ha/default.nix index 054680e8..5c893b7d 100644 --- a/modules/hardware/t100ha/default.nix +++ b/modules/hardware/t100ha/default.nix @@ -79,5 +79,16 @@ 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. + services.xserver.displayManager.sessionCommands = '' + ${pkgs.xorg.xset}/bin/xset dpms force standby + ${pkgs.xorg.xset}/bin/xset dpms force on + ''; }; } |