Skip to content

Instantly share code, notes, and snippets.

View dvdhrm's full-sized avatar
✔️
Fixing Whitespace, what else would you do at this time?

David Rheinsberg dvdhrm

✔️
Fixing Whitespace, what else would you do at this time?
View GitHub Profile
@dvdhrm
dvdhrm / tsm.h
Created September 19, 2012 11:28
TSM library as one file
/*
* TSM - Unicode Handling
*
* Copyright (c) 2011-2012 David Herrmann <[email protected]>
* Copyright (c) 2011 University of Tuebingen
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
@dvdhrm
dvdhrm / dmesg.log
Created September 20, 2012 10:40
dmesg output during rt73usb failure
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.5.3+ (david@david-nb) (gcc version 4.7.1 20120721 (prerelease) (GCC) ) #57 SMP PREEMPT Wed Sep 12 12:48:16 CEST 2012
[ 0.000000] Command line: BOOT_IMAGE=/testing-kernel root=/dev/sda4 rootfstype=ext4 ro resume=/dev/sda3 intel_idle.max_cstate=0 i915.i915_enable_rc6=1 init=/bin/systemd
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009dbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009dc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000ce000-0x00000000000cffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000dc000-0x00000000000dffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000e4000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003f5affff] usable
@dvdhrm
dvdhrm / input.log
Created September 20, 2012 12:47
Output of "ls -la /dev/input"
total 0
drwxr-xr-x 3 root root 4260 Sep 20 14:45 .
drwxr-xr-x 14 root root 2980 Sep 20 14:38 ..
drwxr-xr-x 2 root root 100 Sep 20 14:38 by-path
crw-rw---- 1 root input 13, 64 Sep 20 14:38 event0
crw-rw---- 1 root input 13, 65 Sep 20 14:38 event1
crw-rw---- 1 root input 13, 74 Sep 20 14:45 event10
crw-rw---- 1 root input 13, 75 Sep 20 14:45 event11
crw-rw---- 1 root input 13, 76 Sep 20 14:45 event12
crw-rw---- 1 root input 13, 77 Sep 20 14:45 event13
@dvdhrm
dvdhrm / Xorg.0.log
Created September 20, 2012 13:02
xserver log with 400 hotplugged input devices
[ 25.982]
X.Org X Server 1.12.4
Release Date: 2012-08-27
[ 25.983] X Protocol Version 11, Revision 0
[ 25.983] Build Operating System: Linux 3.4.8-1-ARCH x86_64
[ 25.984] Current Operating System: Linux david-nb 3.5.3+ #60 SMP PREEMPT Thu Sep 20 14:34:35 CEST 2012 x86_64
[ 25.984] Kernel command line: BOOT_IMAGE=/custom-kernel root=/dev/sda4 rootfstype=ext4 ro resume=/dev/sda3 intel_idle.max_cstate=0 i915.i915_enable_rc6=1 init=/bin/systemd
[ 25.984] Build Date: 27 August 2012 08:04:39AM
[ 25.985]
[ 25.985] Current version of pixman: 0.26.2
@dvdhrm
dvdhrm / uinput_test.c
Created September 20, 2012 14:21
uinput test script for 200+ input devices
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <linux/input.h>
#include <linux/uinput.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@dvdhrm
dvdhrm / output.txt
Created September 26, 2012 11:59
wlterm output
[0000.000000] NOTICE: wlterm Build #1 Sep 26 2012 11:27:11
[0000.000654] DEBUG: eloop: new eloop object 0x17ef030 (ev_eloop_new() in src/eloop.c:648)
[0000.000806] DEBUG: wlt_toolkit: creating new wlt-display (wlt_display_new() in src/wlt_toolkit.c:636)
[0000.001420] DEBUG: wlt_toolkit: wlt-display waiting for globals... (wlt_display_new() in src/wlt_toolkit.c:681)
[0000.001625] DEBUG: eloop: run for -1 msecs (ev_eloop_run() in src/eloop.c:891)
[2210355.927] [email protected](1, "wl_display", 1)
[0000.001849] DEBUG: wlt_toolkit: new wl_display global (dp_global() in src/wlt_toolkit.c:565)
[2210356.058] [email protected](2, "wl_compositor", 1)
[2210356.140] -> [email protected](2, "wl_compositor", 1, new id [unknown]@2)
[0000.002020] DEBUG: wlt_toolkit: new global wl_compositor (dp_global() in src/wlt_toolkit.c:622)
@dvdhrm
dvdhrm / map-test.patch
Created October 11, 2012 13:44
Broken wl_map
diff --git a/tests/map-test.c b/tests/map-test.c
index 28a48c2..d937674 100644
--- a/tests/map-test.c
+++ b/tests/map-test.c
@@ -93,3 +93,84 @@ TEST(map_remove)
wl_map_release(&map);
}
+
+/* Test showing how insert_at() hoses the "free_list" of wl_map. */
@dvdhrm
dvdhrm / pthread.patch
Created October 18, 2012 13:32
libwayland-client pthread mutex bug
diff --git a/src/wayland-client.c b/src/wayland-client.c
index ccf8174..e36af7a 100644
--- a/src/wayland-client.c
+++ b/src/wayland-client.c
@@ -500,9 +500,9 @@ wl_display_connect_to_fd(int fd)
display->fd = fd;
wl_map_init(&display->objects);
- wl_event_queue_init(&display->queue, display);
wl_list_init(&display->event_queue_list);
@dvdhrm
dvdhrm / toytoolkit.patch
Created October 18, 2012 14:41
weston toytoolkit cairo fix
commit 3146756adf749c8931f60d7272a590cc41fb8436
Author: Kristian Høgsberg <[email protected]>
Date: Tue Oct 16 15:31:31 2012 -0400
clients: Don't ask for EGL_PIXMAP_BIT when choosing configs
diff --git a/clients/window.c b/clients/window.c
index 1d6600c..c029691 100644
--- a/clients/window.c
+++ b/clients/window.c
@dvdhrm
dvdhrm / dmesg.log
Created December 2, 2012 15:57
nouveau dmesg log
-- Logs begin at Sun, 2012-10-21 14:48:35 CEST, end at Sat, 2068-12-15 17:33:01 CET. --
Dec 02 09:31:14 david-mb kernel: Initializing cgroup subsys cpuset
Dec 02 09:31:14 david-mb kernel: Initializing cgroup subsys cpu
Dec 02 09:31:14 david-mb kernel: Linux version 3.7.0-rc4-01501-ga8f559e (david@david-mb) (gcc version 4.7.2 (GCC) ) #1 SMP PREEMPT Sat Dec 1 13:52:01 CET 2012
Dec 02 09:31:14 david-mb kernel: Command line: BOOT_IMAGE=/testing-kernel root=/dev/sda4 init=/bin/systemd
Dec 02 09:31:14 david-mb kernel: e820: BIOS-provided physical RAM map:
Dec 02 09:31:14 david-mb kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
Dec 02 09:31:14 david-mb kernel: BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
Dec 02 09:31:14 david-mb kernel: BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
Dec 02 09:31:14 david-mb kernel: BIOS-e820: [mem 0x0000000000100000-0x000000007fffffff] usable