explaingit

philipgb/bazzite-deck-gnome-desktop-lock

Analysis updated 2026-07-25

0ShellAudience · ops devopsComplexity · 3/5Setup · moderate

TLDR

A script for Fedora and Bazzite Linux that fixes the lock screen on handheld gaming PCs by switching to a text console, locking the screen, and sleeping until you wake it to enter your password.

Mindmap

mindmap
  root((repo))
    What it does
      Locks screen on sleep
      Uses text console
      Keeps apps running
    Tech stack
      Shell Script
      GNOME Desktop
      Fedora Linux
    Use cases
      Handheld gaming PCs
      Broken lock screens
      Bazzite Deck setups
    Requirements
      Physical keyboard needed
      Fedora kbd package
      GNOME session
    Security
      Verifies sleep occurred
      Prevents multiple locks
      Checks active user

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Fix the lock screen on a Bazzite handheld gaming PC so it sleeps and locks securely.

USE CASE 2

Replace a broken GNOME lock screen on Fedora with a reliable text-based console lock.

USE CASE 3

Migrate from an older custom lock screen script to this cleaner installer setup.

What is it built with?

ShellGNOMEFedoraBazzite

How does it compare?

philipgb/bazzite-deck-gnome-desktop-lock123satyajeet123/bitnet-serveradeilsonrbrito/cross-model-consult
Stars000
LanguageShellShellShell
Setup difficultymoderateeasymoderate
Complexity3/52/53/5
Audienceops devopsdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Must be run from a terminal inside the active GNOME session as a normal user, requires a physical keyboard, and needs Fedora's specific kbd package installed.

In plain English

This is a small installer for Linux systems running the GNOME desktop, specifically Fedora and Bazzite. It addresses a narrow problem: the built-in lock screen may not work well on certain devices, particularly handheld gaming computers. When you press Super+L (the standard lock shortcut on most Linux desktops), this tool switches to a text-based console, locks all virtual terminals, puts the machine to sleep, and resumes to a password prompt when you wake it up. Your graphical session and all its open applications stay running the entire time. The project is intentionally specific. It requires Fedora's kbd package and rejects substitutes. It has been tested on a Bazzite Deck GNOME setup, Fedora 43, and a OneXPlayer handheld. It needs a physical keyboard because the text-based lock prompt cannot use touchscreen or controller-based on-screen keyboards. The installer must be run from a terminal inside the active GNOME session as your normal user, not with administrator privileges directly. Installation involves cloning the repository and running a shell script. The script creates a system service, a narrow privilege rule that allows only two specific commands without a password, and a GNOME keyboard shortcut. It backs up your existing lock binding before disabling it. If you have an older similar setup installed, the script can migrate and clean up those files. Uninstallation reverses all of these changes and restores your previous lock shortcut. The tool is careful about security. It checks that the user requesting the lock matches the active graphical session, prevents multiple lock operations from running at once, and verifies that the machine genuinely went to sleep by comparing system clocks before and after. It deliberately does not change hardware wakeup settings, so if a USB device or monitor wakes the machine immediately, that is a separate hardware issue the installer will not fix. The full README is longer than what was shown.

Copy-paste prompts

Prompt 1
I have a Bazzite handheld and my GNOME lock screen doesn't work when I press Super+L. Walk me through cloning and running bazzite-deck-gnome-desktop-lock to fix it.
Prompt 2
I installed bazzite-deck-gnome-desktop-lock but my device wakes up immediately from sleep. Help me figure out if this is a USB or monitor hardware wakeup issue.
Prompt 3
Write a step-by-step checklist for uninstalling bazzite-deck-gnome-desktop-lock and restoring my original GNOME Super+L lock shortcut.
Prompt 4
I'm on Fedora 43 with a GNOME desktop. Explain how this script's privilege rule works and why it only allows two specific commands without a password.

Frequently asked questions

What is bazzite-deck-gnome-desktop-lock?

A script for Fedora and Bazzite Linux that fixes the lock screen on handheld gaming PCs by switching to a text console, locking the screen, and sleeping until you wake it to enter your password.

What language is bazzite-deck-gnome-desktop-lock written in?

Mainly Shell. The stack also includes Shell, GNOME, Fedora.

How hard is bazzite-deck-gnome-desktop-lock to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is bazzite-deck-gnome-desktop-lock for?

Mainly ops devops.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.