Gerekli paketleri yüklemek için:
apt install live-build xorriso mtoolsÖncelikle profil oluşturmamız gereklidir.
| #!/usr/bin/env python3 | |
| # https://github.com/g0hl1n/xprintidle/blob/master/xprintidle.c | |
| import ctypes | |
| class XScreenSaverInfo( ctypes.Structure ): | |
| _fields_ = [("window", ctypes.c_ulong), | |
| ("state", ctypes.c_int), | |
| ("kind", ctypes.c_int), | |
| ("since", ctypes.c_ulong), | |
| ("idle", ctypes.c_ulong), | |
| ("event_mask", ctypes.c_ulong)] |
| # update repository | |
| opkg update | |
| # install packages | |
| opkg install \ | |
| kmod-nls-base \ | |
| kmod-usb2 \ | |
| kmod-usb-core \ | |
| kmod-usb-net \ | |
| kmod-usb-net-cdc-ether \ | |
| kmod-usb-net-rndis \ |
| mport requests | |
| import json | |
| site = "https://download.nvidia.com/XFree86/Linux-x86_64/580.105.08/README/supportedchips.html" | |
| data = requests.get(site).text | |
| e=False | |
| ret = {} | |
| name = "" | |
| for line in data.split("\n"): |
| #!/usr/bin/env python3 | |
| # https://en.wikipedia.org/wiki/Extended_Display_Identification_Data | |
| edid_file = "/sys/class/drm/card1-eDP-1/edid" | |
| with open(edid_file,"rb") as f: | |
| edid = f.read() | |
| name = "" | |
| for c in edid[0x4d:]: | |
| if chr(c).isprintable(): | |
| name += chr(c) | |
| else: |
| import os | |
| import gi | |
| import socket | |
| import threading | |
| import json | |
| import uuid | |
| import sqlite3 | |
| from time import sleep | |
| machine_id = "unknown" |
| #!/usr/bin/env python3 | |
| import gi | |
| import time | |
| gi.require_version("Gtk", "3.0") | |
| from gi.repository import Gtk, GLib | |
| cur = int(time.time()*10**6) | |
| diff_min = 10**6 |
| ! | |
| !!! | |
| " | |
| "> | |
| # | |
| #$ | |
| $ | |
| $USER | |
| % | |
| & |
| #include <QApplication> | |
| #include <QMainWindow> | |
| #include <QPalette> | |
| #include <QTimer> | |
| /* For compile: | |
| g++ main.cpp -o lcd-fix $(pkg-config --cflags --libs Qt6Widgets Qt6Core Qt6Gui) -fPIC | |
| */ | |
| static QMainWindow *mainWindow; |