Skip to content

Instantly share code, notes, and snippets.

@francip
francip / wayfire.ini
Last active August 9, 2024 09:09
Raspberry Pi 5 Wayland touch rotation for 1920 x 480 HDMI IPS Display
[input-device:wch.cn USB2IIC_CTP_CONTROL]
output = HDMI-A-1
@francip
francip / rotate_touch.sh
Last active August 9, 2024 08:46
Raspberry Pi touch input rotate for 1920 x 480 HDMI IPS Display
#!/bin/bash
# Rotate the display input
# Pi 4 / Xorg
# DEVICE_NAME="wch.cn USB2IIC_CTP_CONTROL"
# Pi 5 / Wayland
DEVICE_NAME="xwayland-touch:14"
PROPERTY_NAME="Coordinate Transformation Matrix"
# To run from SSH uncomment the following line
@francip
francip / pi4_ips_display_config.txt
Last active April 1, 2023 05:14
Raspberry Pi config for 1920 x 480 HDMI IPS Display
# Display config
# DMT
hdmi_group=2
hdmi_mode=87
hdmi_cvt=480 1920 60 8
#hdmi_timings=480 1 48 32 80 1920 0 3 10 56 0 0 0 60 0 55296000 8
# HDMI
hdmi_drive=2
#hdmi_force_mode=1