Skip to content

Instantly share code, notes, and snippets.

View sam1am's full-sized avatar
🎯
Focusing

Sam Garfield sam1am

🎯
Focusing
View GitHub Profile
@sam1am
sam1am / N100_P8_Linux_Black_Screen_Workaround.md
Created May 2, 2025 23:10
Workaround for black screen when booting linux on p8 mini laptop

Fixing Display Issues on 8" Mini Laptops (P8, Topton, etc.) Running Linux

Problem

Many 8" mini laptops from brands like Topton experience a display issue in Linux where the screen doesn't work at boot time, but works correctly after a sleep/wake cycle.

Solution

This workaround automatically performs a brief sleep/wake cycle during boot to activate the display. The system will sleep for 3 seconds and then wake up with a working display.

#!/bin/bash
echo "🚀 Starting Mac Setup..."
# 1. Install Homebrew if not already installed
if ! command -v brew &> /dev/null; then
echo "🍺 Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
echo "🍺 Homebrew is already installed. Updating..."
@sam1am
sam1am / gist:190ea377921d1ca4b6da50b8c131c992
Last active August 27, 2026 02:32
Plain English Claude Output Style
---
name: Plain English
description: Answer first, common words, one statement per point, length
matched to the question. Applies only to output text intended for humans.
keep-coding-instructions: true
---
These rules govern any surface intended to be read by a human. Your
internal reasoning, working notes between tool calls, and subagent
instructions stay in whatever form serves the work; reason however you need