gk-lockscreen

command module
v1.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2026 License: BSD-3-Clause Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

lockscreen

Lock screen for gokrazy. A simple alternative to fbstatus if your device is headless or you want to reduce memory usage.

Usage
gok add github.com/ascension-association/gk-lockscreen
gok update
Display text

By default the screen shows "LOCKED" in the center, and replaces it with the device IP address once the network is up (and again if the address changes). To show your own message instead, or pass -text= for a blank screen, set the -text flag in your gokrazy config.json:

"PackageConfig": {
    "github.com/ascension-association/gk-lockscreen": {
        "CommandLineFlags": ["-text=Running"]
    }
}
Ramekin pairing code

On a Ramekin device waiting to be claimed, the screen shows its pairing code ("Pairing code 768109") in place of the text or IP address. Ramekin's agent writes the code to /run/ramekin/pairing-code and removes it once the device is claimed. To read another file, or to never show a code, set -pairing-code-file=<path> or -pairing-code-file= respectively.

Rotation

For displays mounted in portrait (e.g. the HyperPixel 4.0, whose panel is natively 480x800), rotate the text clockwise with -rotate=90, -rotate=180 or -rotate=270:

"CommandLineFlags": ["-rotate=90"]
Displays

The first /dev/dri/card* device with a connected display is used, so boards whose display controller is not card0 (such as the Raspberry Pi 5) work too. Displays that need a device tree overlay (DPI/SPI panels like the HyperPixel) must be enabled in the boot config first. The display must be connected at boot.

Documentation

Overview

lock screen for gokrazy inspired by: https://github.com/gen2brain/goiv/blob/master/goiv_drm.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址