Skip to content

Instantly share code, notes, and snippets.

@autofyrsto
autofyrsto / 99-touchscreen-rotate.conf
Created June 30, 2017 00:04
Xorg configuration file to rotate touchscreen input 90 degrees right.
Section "InputClass"
Identifier "Coordinate Transformation Matrix"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
MatchDriver "libinput"
Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1"
EndSection
@autofyrsto
autofyrsto / journalctl-xn-output.txt
Created June 27, 2017 04:01
Status and journal output for debugging fan script for GPD Pocket on Linux.
-- Logs begin at Thu 2017-06-22 06:42:25 EDT, end at Mon 2017-06-26 23:58:13 EDT. --
Jun 26 23:58:13 localhost.localdomain kernel: R13: 0000000000000000 R14: 00007fee2b2d74e0 R15: 0000000000f28010
Jun 26 23:58:13 localhost.localdomain kernel: Code: 41 00 44 2b a3 70 03 00 00 48 8b 83 68 03 00 00 5b 49 c1 e4 05 4c 01 e0 41 5c 5d c3 44 89 e6 48 c7 c7 25 32 cc b4 e8 58 39 d6 ff <0f> ff 31 c0 eb bd 90 0f 1f 44 00 00 31 c0 48 85 ff 74 5d 55 48
Jun 26 23:58:13 localhost.localdomain kernel: ---[ end trace eadc5886f5edf1e9 ]---
Jun 26 23:58:13 localhost.localdomain kernel: export_store: invalid GPIO 397398
Jun 26 23:58:13 localhost.localdomain systemd[1]: gpdfand.service: PID file /var/run/gpdfand.pid not readable (yet?) after start: No such file or directory
Jun 26 23:58:13 localhost.localdomain systemd[1]: gpdfand.service: Daemon never wrote its PID file. Failing.
Jun 26 23:58:13 localhost.localdomain audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=gpdf
@autofyrsto
autofyrsto / brcmfmac4356-pcie.txt
Created June 27, 2017 03:37
Full brcmfmac4356-pcie.txt, used to enable WiFi on GPD Pocket. Sourced from: https://fedorapeople.org/~jwrdegoede/brcmfmac4356-pcie.txt
# Sample variables file for BCM94356Z NGFF 22x30mm iPA, iLNA board with PCIe for production package
NVRAMRev=$Rev: 492104 $
#4356 chip = 4354 A2 chip
sromrev=11
boardrev=0x1102
boardtype=0x073e
boardflags=0x02400201
#0x2000 enable 2G spur WAR
boardflags2=0x00802000
boardflags3=0x0000000a
@autofyrsto
autofyrsto / brcm-firmware-list.txt
Created June 27, 2017 03:26
Output of "ls -l /lib/firmware/brcm/" for GPD Pocket with functional WiFi
[Strutter@localhost ~]$ ls -l /lib/firmware/brcm/
total 14016
-rw-r--r--. 1 root root 269595 Jun 5 16:18 bcm4329-fullmac-4.bin
-rw-r--r--. 1 root root 96224 Jun 5 16:18 bcm43xx-0.fw
-rw-r--r--. 1 root root 180 Jun 5 16:18 bcm43xx_hdr-0.fw
-rw-r--r--. 1 root root 397312 Jun 5 16:18 brcmfmac43143.bin
-rw-r--r--. 1 root root 385067 Jun 5 16:18 brcmfmac43143-sdio.bin
-rw-r--r--. 1 root root 348160 Jun 5 16:18 brcmfmac43236b.bin
-rw-r--r--. 1 root root 455745 Jun 5 16:18 brcmfmac43241b0-sdio.bin
-rw-r--r--. 1 root root 403855 Jun 5 16:18 brcmfmac43241b4-sdio.bin
@autofyrsto
autofyrsto / acpiv.txt
Created June 27, 2017 03:19
'acpi -V' and 'dmesg' for GPD Pocket running Linux 4.12.0 with functional battery indicator
Battery 0: Charging, 68%, 18:34:51 until charged
Battery 0: design capacity 6873 mAh, last full capacity 8044 mAh = 100%
Thermal 0: ok, 0.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 90.0 degrees C
Cooling 0: PNIT no state information available
Cooling 1: Processor 0 of 10
Cooling 2: soc_dts1 no state information available
Cooling 3: Processor 0 of 10
Cooling 4: LCD 0 of 99
Cooling 5: LCD 0 of 99