Skip to content

Instantly share code, notes, and snippets.

@llinfeng
Last active December 14, 2023 04:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save llinfeng/a1a282ec3e0d6d2510bf2c4b04a7940c to your computer and use it in GitHub Desktop.
Save llinfeng/a1a282ec3e0d6d2510bf2c4b04a7940c to your computer and use it in GitHub Desktop.
Force full-screen refresh on e-ink monitors
#SingleInstance, force ; Allow only one instance of this script to be running.
#Persistent ; To stop the script from exiting.
; Here, press F1 to trigger the black/white flash
F1::
; Source: https://superuser.com/questions/662264/i-would-like-to-make-the-screen-go-black-every-8-seconds-how
Gui, Color, 000000
Gui, Show, x-5000 y-20 w8000 h8000
sleep 333
Gui, Color, FFFFFF
Gui, Show, x-5000 y-20 w8000 h8000
sleep 333
Gui, hide
return
@llinfeng
Copy link
Author

@llinfeng
Copy link
Author

Credits: user lililywww.

@llinfeng
Copy link
Author

Related but Dasung specific ahk script to control contrast/light/display-mode: https://gitee.com/CastleWei/dasung-helper/blob/master/dasung_ahk_release.ahk

@llinfeng
Copy link
Author

Additional note on the display-time of black/white image: in the proof-of-concept script, the display-time is set to be 333ms. Though,

  • When using the e-ink monitor locally, 150ms is sufficient ;
  • When connecting to a remote Windows machine through RDP, 300ms is good enough.

@Validark
Copy link

Does anyone know of a good way to do this on (Ubuntu) Linux? I tried autokey but could not get it working for this use case.

@llinfeng
Copy link
Author

@Validark Just a thought: You can research methods to launch a GUI window or object in a single color. Similar to the implementation above, if the full e-ink monitor displays black and white colors each for more than 300ms (or slightly longer), the ghosting texts/pixels will be eliminated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment