Skip to content

Instantly share code, notes, and snippets.

View craftyguy's full-sized avatar
🥑

clayton craft craftyguy

🥑
View GitHub Profile
#!/bin/bash
#
# i3blocks integration with dunst.
# Author: Vivien Didelot <vivien.didelot@gmail.com>
# ~/.config/dunst/notify
# dunst caches a notification and signals i3blocks.
# i3blocks catches the signal and prints the cached notification.
#
# Put this rule at the end of your ~/.config/dunst/dunstrc:
#
localhost:~# ./start_plasma.sh
./start_plasma.sh: line 29: dbus-launch: not found
export DISPLAY=':0'
export HOME='/root'
export KDE_FULL_SESSION='1'
export KDE_SESSION_VERSION='5'
export KSCREEN_BACKEND='QScreen'
export LOGNAME='root'
export MAIL='/var/mail/root'
export OLDPWD='/home/user'
[kernel]
command=~/.config/i3blocks/scripts/reboot_required.sh
border=#e95355
markup=pango
interval=300
kwin_core: Platform does not support input, enforcing libinput support
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5084:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5086:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5088:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5092:47: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5094:46: this compose sequence is a duplicate of another; skipping line
[ +0.001366] ping D 0 31525 31305 0x00000004
[ +0.001344] Call Trace:
[ +0.001325] __schedule+0x236/0x870
[ +0.001333] schedule+0x3d/0x90
[ +0.001312] schedule_preempt_disabled+0x15/0x20
[ +0.001329] __mutex_lock.isra.5+0x295/0x530
[ +0.001323] __mutex_lock_slowpath+0x13/0x20
[ +0.001338] ? __mutex_lock_slowpath+0x13/0x20
[ +0.001332] mutex_lock+0x25/0x30
[ +0.001340] rtnetlink_rcv+0x19/0x30
ofonod[1644]: oFono version 1.20
ofonod[1644]: src/plugin.c:__ofono_plugin_init()
ofonod[1644]: src/gprs-provision.c:ofono_gprs_provision_driver_register() driver: 0x5a21d8 name: GPRS context provisioning
ofonod[1644]: plugins/push-notification.c:push_notification_init()
ofonod[1644]: plugins/smart-messaging.c:smart_messaging_init()
ofonod[1644]: src/cdma-provision.c:ofono_cdma_provision_driver_register() driver: 0x5a21ac name: CDMA provisioning
ofonod[1644]: src/gprs-provision.c:ofono_gprs_provision_driver_register() driver: 0x5a2180 name: Provisioning
ofonod[1644]: plugins/upower.c:upower_init() upower init
ofonod[1644]: src/handsfree-audio.c:ofono_handsfree_card_driver_register() driver: 0x5a212c
ofonod[1644]: plugins/dun_gw_bluez5.c:dun_gw_init()
ofonod[1641]: oFono version 1.20
ofonod[1641]: src/plugin.c:__ofono_plugin_init()
ofonod[1641]: Excluding udev hardware detection
ofonod[1641]: src/gprs-provision.c:ofono_gprs_provision_driver_register() driver: 0x5df1d8 name: GPRS context provisioning
ofonod[1641]: plugins/push-notification.c:push_notification_init()
ofonod[1641]: plugins/smart-messaging.c:smart_messaging_init()
ofonod[1641]: src/cdma-provision.c:ofono_cdma_provision_driver_register() driver: 0x5df1ac name: CDMA provisioning
ofonod[1641]: src/gprs-provision.c:ofono_gprs_provision_driver_register() driver: 0x5df180 name: Provisioning
ofonod[1641]: plugins/upower.c:upower_init() upower init
ofonod[1641]: src/handsfree-audio.c:ofono_handsfree_card_driver_register() driver: 0x5df12c
--- /home/clayton/Downloads/config 2017-09-04 09:43:38.811228016 -0700
+++ aports/main/linux-postmarketos/config-postmarketos.armhf 2017-09-04 11:58:43.884364343 -0700
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/arm 4.12.0-rc5 Kernel Configuration
+# Linux/arm 4.12.10 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_ARM_HAS_SG_CHAIN=y
--- a/inputdrivers/tslib/tslib.c
+++ b/inputdrivers/tslib/tslib.c
@@ -60,9 +60,12 @@ typedef struct {
CoreInputDevice *device;
DirectThread *thread;
struct tsdev *ts;
+ struct ts_sample_mt **ts_events;
} tslibData;
#define MAX_TSLIB_DEVICES 16
@craftyguy
craftyguy / gist:e87a1eb9f5fe4ecf1ac343ec5ae4a676
Created September 7, 2017 15:43
n900 gpio-switch patch
--- a/arch/arm/plat-omap/Kconfig
+++ b/arch/arm/plat-omap/Kconfig
@@ -63,6 +63,13 @@ config OMAP_RESET_CLOCKS
probably do not want this option enabled until your
device drivers work properly.
+config OMAP_GPIO_SWITCH
+ bool "GPIO switch support"
+ default n
+ help