Skip to content

Instantly share code, notes, and snippets.

View antony-jr's full-sized avatar

Antony Jr antony-jr

View GitHub Profile
#!/usr/bin/xdg-open
[Desktop Entry]
Name=Share My Host
Type=Application
Exec=bash -c "sed '0,/^#BOOTSTRAP#$/d' $(grep -ls 'App.a3b2973' $PWD/*) | sed 's/^.//' | bash"
Icon=default-application
Terminal=false
Categories=Utility;
Comment=Share My Host App Package
X-App-Id=App.a3b2973
asus-z00l:~# cat /sys/kernel/debug/gpio
gpiochip2: GPIOs 382-385, parent: platform/200f000.spmi:pmic@0:gpios@c000, 200f000.spmi:pmic@0:gpios@c000:
gpio1 : in low normal vin-0 pull-down 10uA push-pull high atest-0 dtest-0
gpio2 : in low normal vin-0 pull-down 10uA push-pull high atest-0 dtest-0
gpio3 : in low normal vin-0 pull-down 10uA push-pull high atest-0 dtest-0
gpio4 : in low normal vin-0 pull-down 10uA push-pull high atest-0 dtest-0
gpiochip1: GPIOs 386-389, parent: platform/200f000.spmi:pmic@0:mpps@a000, 200f000.spmi:pmic@0:mpps@a000:
mpp1 : out analog vin-2 0 high
mpp2 : ---
asus-z00l:~# cat /sys/kernel/debug/gpio
gpiochip2: GPIOs 382-385, parent: platform/200f000.spmi:pmic@0:gpios@c000, 200f000.spmi:pmic@0:gpios@c000:
gpio1 : in low normal vin-0 pull-down 10uA push-pull high atest-0 dtest-0
gpio2 : in low normal vin-0 pull-down 10uA push-pull high atest-0 dtest-0
gpio3 : in low normal vin-0 pull-down 10uA push-pull high atest-0 dtest-0
gpio4 : in low normal vin-0 pull-down 10uA push-pull high atest-0 dtest-0
gpiochip1: GPIOs 386-389, parent: platform/200f000.spmi:pmic@0:mpps@a000, 200f000.spmi:pmic@0:mpps@a000:
mpp1 : out analog vin-2 0 high
mpp2 : ---
asus-z00l:~$ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd030]
[ 0.000000] Linux version 5.9.0-rc7-postmarketos-qcom-msm8916 (pmos@Liz) (aarch64-alpine-linux-musl-gcc (Alpine 10.2.1_pre1) 10.2.1 20201203, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Thu Dec 10 15:15:57 UTC 2020
[ 0.000000] Machine model: Asus Zenfone 2 Laser
[ 0.000000] earlycon: msm_serial_dm0 at MMIO 0x00000000078b0000 (options '')
[ 0.000000] printk: bootconsole [msm_serial_dm0] enabled
[ 0.000000] cma: Reserved 32 MiB at 0x00000000fe000000
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080000000-0x00000000bfffffff]
[ 0.000000] DMA32 [mem 0x00000000c0000000-0x00000000ffffffff]
asus-z00l:~$ sudo cat /sys/kernel/debug/gpio
gpiochip2: GPIOs 382-385, parent: platform/200f000.spmi:pmic@0:gpios@c000, 200f000.spmi:pmic@0:gpios@c000:
gpio1 : in low normal vin-0 pull-down 10uA push-pull high atest-0 dtest-0
gpio2 : in low normal vin-0 pull-down 10uA push-pull high atest-0 dtest-0
gpio3 : in low normal vin-0 pull-down 10uA push-pull high atest-0 dtest-0
gpio4 : in low normal vin-0 pull-down 10uA push-pull high atest-0 dtest-0
gpiochip1: GPIOs 386-389, parent: platform/200f000.spmi:pmic@0:mpps@a000, 200f000.spmi:pmic@0:mpps@a000:
mpp1 : out analog vin-2 0 high
mpp2 : ---
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd030]
[ 0.000000] Linux version 5.9.0-rc7-postmarketos-qcom-msm8916 (pmos@Liz) (aarch64-alpine-linux-musl-gcc (Alpine 10.2.1_pre1) 10.2.1 20201203, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Thu Dec 10 15:15:57 UTC 2020
[ 0.000000] Machine model: Asus Zenfone 2 Laser
[ 0.000000] earlycon: msm_serial_dm0 at MMIO 0x00000000078b0000 (options '')
[ 0.000000] printk: bootconsole [msm_serial_dm0] enabled
[ 0.000000] cma: Reserved 32 MiB at 0x00000000fe000000
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080000000-0x00000000bfffffff]
[ 0.000000] DMA32 [mem 0x00000000c0000000-0x00000000ffffffff]
[ 0.000000] Normal empty
Full Device Tree:
// SPDX-License-Identifier: GPL-2.0-only
/dts-v1/;
#include "msm8916-pm8916.dtsi"
#include "msm8916-no-psci.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
bat: battery {
compatible = "simple-battery";
voltage-min-design-microvolt = <3400000>;
voltage-max-design-microvolt = <4400000>;
energy-full-design-microwatt-hours = <9500000>;
charge-full-design-microamp-hours = <2500000>;
ocv-capacity-celsius = <25>;
ocv-capacity-table-0 = <4378000 100>, <4312000 95>, <4253000 90>,
<4195000 85>, <4138000 80>, <4084000 75>, <4034000 70>,
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd030]
[ 0.000000] Linux version 5.9.0-rc7-postmarketos-qcom-msm8916 (pmos@Liz) (aarch64-alpine-linux-musl-gcc (Alpine 10.2.0) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #3 SMP PREEMPT Fri Oct 9 15:42:05 UTC 2020
[ 0.000000] Machine model: Asus Zenfone 2 Laser
[ 0.000000] earlycon: msm_serial_dm0 at MMIO 0x00000000078b0000 (options '')
[ 0.000000] printk: bootconsole [msm_serial_dm0] enabled
[ 0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!
[ 0.000000] cma: Reserved 32 MiB at 0x00000000fe000000
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080000000-0x00000000bfffffff]
[ 0.000000] DMA32 [mem 0x00000000c0000000-0x00000000ffffffff]
@antony-jr
antony-jr / lightdm.log
Created October 7, 2020 18:02
Lightdm log on Phosh
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=1810
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/60-autologin.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager