Skip to content

Instantly share code, notes, and snippets.

@PapsOu
PapsOu / evemu.record
Created Feb 9, 2018
Evemu record for elan1200
View evemu.record
# EVEMU 1.3
# Kernel: 4.14.16-300.fc27.x86_64
# DMI: dmi:bvnAmericanMegatrendsInc.:bvrFX503VD.301:bd09/19/2017:svnASUSTeKCOMPUTERINC.:pnFX503VD:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnFX503VD:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
# Input device name: "ELAN1200:00 04F3:303E Touchpad"
# Input device ID: bus 0x18 vendor 0x4f3 product 0x303e version 0x100
# Size in mm: 103x70
# Supported events:
# Event type 0 (EV_SYN)
# Event code 0 (SYN_REPORT)
# Event code 1 (SYN_CONFIG)
View dmesg-4.14.6-300.log
[ 0.000000] microcode: microcode updated early to revision 0x80, date = 2018-01-04
[ 0.000000] Linux version 4.15.6-300.fc27.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 7.3.1 20180130 (Red Hat 7.3.1-2) (GCC)) #1 SMP Mon Feb 26 18:43:03 UTC 2018
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.15.6-300.fc27.x86_64 root=UUID=ddd08e52-cd2a-43b1-a5b6-ea41ed6b1f2e ro rhgb quiet LANG=fr_FR.UTF-8 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 nomodeset=1
[ 0.000000] Intel Spectre v2 broken microcode detected; disabling Speculation Control
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, x
View ELAN1200-IRQ.log
CPU0 CPU1 CPU2 CPU3
0: 16 0 0 0 IR-IO-APIC 2-edge timer
1: 0 0 0 11 IR-IO-APIC 1-edge i8042
8: 1 0 0 0 IR-IO-APIC 8-edge rtc0
9: 0 277 0 0 IR-IO-APIC 9-fasteoi acpi
12: 0 0 3 0 IR-IO-APIC 12-edge i8042
14: 249595 0 0 0 IR-IO-APIC 14-fasteoi INT345D:00
16: 0 4474387 0 0 IR-IO-APIC 16-fasteoi idma64.0, i2c_designware.0, i801_smbus
120: 0 0 0 0 DMAR-MSI 0-edge dmar0
121: 0 0 0 0 DMAR-MSI 1-edge dmar1
View ELAN1200-IRQ-2.log
CPU0 CPU1 CPU2 CPU3
0: 15 0 0 0 IR-IO-APIC 2-edge timer
1: 0 0 0 13 IR-IO-APIC 1-edge i8042
8: 1 0 0 0 IR-IO-APIC 8-edge rtc0
9: 0 790 0 0 IR-IO-APIC 9-fasteoi acpi
12: 0 0 3 0 IR-IO-APIC 12-edge i8042
14: 2979446 0 0 0 IR-IO-APIC 14-fasteoi INT345D:00
16: 0 52956271 0 0 IR-IO-APIC 16-fasteoi idma64.0, i2c_designware.0, i801_smbus
120: 0 0 0 0 DMAR-MSI 0-edge dmar0
121: 0 0 0 0 DMAR-MSI 1-edge dmar1
View probelog_i2c_hid_module.log
sudo make && sync && sudo modprobe -r hid_multitouch i2c-hid && sudo insmod ./hid-multitouch.ko && sudo modprobe i2c_hid debug=1
journalctl --follow | grep 'i2c_hid\|hid-multitouch\|ELAN1200'
mars 24 22:43:11 localhost.localdomain sudo[15720]: papsou : TTY=pts/0 ; PWD=/home/papsou/Softwares/Tools/hid-multitouch ; USER=root ; COMMAND=/bin/make
mars 24 22:43:11 localhost.localdomain audit[15720]: USER_CMD pid=15720 uid=1000 auid=1000 ses=2 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/home/papsou/Softwares/Tools/hid-multitouch" cmd="make" terminal=pts/0 res=success'
mars 24 22:43:12 localhost.localdomain sudo[15806]: papsou : TTY=pts/0 ; PWD=/home/papsou/Softwares/Tools/hid-multitouch ; USER=root ; COMMAND=/sbin/modprobe -r hid_multitouch i2c-hid
mars 24 22:43:12 localhost.localdomain audit[15806]: USER_CMD pid=15806 uid=1000 auid=1000 ses=2 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/home/papsou/Softwares/Tools/hid-multitouch" cmd=6D6F6470726F6265202D72206
View F503VD-pins-diff
registered pins: 192
pin 0 (RCINB) mode 1 0x44000702 0x00003018
pin 1 (LAD_0) mode 1 0x44000702 0x00003c19
pin 2 (LAD_1) mode 1 0x44000702 0x00003c1a
pin 3 (LAD_2) mode 1 0x44000702 0x00003c1b
pin 4 (LAD_3) mode 1 0x44000702 0x00003c1c
pin 5 (LFRAMEB) mode 1 0x44000700 0x0000001d
pin 6 (SERIQ) mode 1 0x44000702 0x0000001e
pin 7 (PIRQAB) GPIO 0x44000300 0x0000001f [ACPI]
pin 8 (CLKRUNB) GPIO 0x44000300 0x00000020 [ACPI]
@PapsOu
PapsOu / install_fedora.sh
Last active Nov 20, 2018
Fedora installation script
View install_fedora.sh
#!/bin/sh
# This script must be run as root
TARGET_USER='papsou'
# First update, very loooooong...
dnf -y update
# Install RPM fusion for akmod nVidia
@PapsOu
PapsOu / vscode-mardown.css
Created Nov 4, 2019
A simple markdown stylesheet for VSCode markdown preview
View vscode-mardown.css
.hljs-attr, .hljs-attribute, .hljs-builtin-name {
color: #10435f;
}
@PapsOu
PapsOu / yt.js
Created Dec 13, 2019
A simple javascript (node) script used to download items of a youtube playlist as audio files
View yt.js
//
// Dependency : [youtube-dl](https://github.com/ytdl-org/youtube-dl)
//
// How to use :
//
// - install targetFolder : `pip install --upgrade youtube-dl`
// - Go to a YouTube playlist (eg: https://www.youtube.com/playlist?list=PLzCxunOM5WFLNCSF0UEHZqFJJlmdeL71S)
// - The ID is `PLzCxunOM5WFLNCSF0UEHZqFJJlmdeL71S`
// - Update the const `playlistId`.
// - Grab a YouTube Data API token in https://console.developers.google.com