Skip to content

Instantly share code, notes, and snippets.

View Xtr126's full-sized avatar

Xtr126

View GitHub Profile
@Xtr126
Xtr126 / README.md
Created September 23, 2025 17:45
RTL8821CE hostapd.conf for 433Mbps (or 866Mbps with 2 antennas) link speed hotspot

Derived using iw phy command output and based on https://github.com/morrownr/USB-WiFi/blob/main/home/AP_Mode/hostapd-WiFi5.conf
Using rtw88 driver (tomaspinho/rtl8821ce driver couldn't do more than 200Mbps)

# /etc/hostapd/hostapd-WiFi5.conf
# Documentation: https://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf
# 2024-07-25
# Status: stable
# Note: This hostapd.conf file is for WiFi 5 using band 2 (5 GHz).
@Xtr126
Xtr126 / README.md
Last active October 19, 2025 19:17
Android: mirror touchscreen as touchpad (uinput)

Use your phone's touchscreen as a touchpad without root, using termux.
Android recognizes it as a hardware touchpad, so all native gestures work.
Intended for use with Android 10+ Desktop mode to control external displays without a mouse.
Smart dock is recommended.

Install ADB

pkg install android-tools

Developer options > Wireless debugging

adb pair localhost:port1
adb connect localhost:port2

Video: termux/termux-app#2366 (comment)