Skip to content

Instantly share code, notes, and snippets.

@altercation
altercation / archblocks_error.sh
Created October 3, 2012 23:22
archblocks - no temp fs space error
JUST PRIOR TO ERROR:
# -----------------------------------------------------------------------------------------------
# df -a > /test/1/dump_df
# -----------------------------------------------------------------------------------------------
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 28507096 2636548 24422468 10% /
proc 0 0 0 - /proc
sys 0 0 0 - /sys
@altercation
altercation / handler.sh
Created January 21, 2013 01:29
current acpi handler for thinkpad x220 running arch
#!/bin/bash
case $* in
ac_adapter*) power auto ;; # unplug or plug ac cord
*LID*close) system sleep ;; # shut laptop lid
*TBLT*on*) displays tablet on ;; # rotate to tablet mode
*TBLT*off*) displays tablet off ;; # rotate to laptop mode
*0000500c) trigger Print ;; # undock tablet pen
*0000500b) trigger shift+Print ;; # dock tablet pen
esac
This is a Python script to extract GNOME/GTK's color scheme and apply it to Wine, so that the themes (approximately) match.
Instructions:
1. Set your Gnome theme as you would like it
2. Run with a command like "python wine_colors_from_gtk.py"
3. Restart any apps running in Wine. They should match the Gnome theme colors now.
Better description with screenshots here: http://www.endolith.com/wordpress/2008/08/03/wine-colors/
This is also stored on https://code.launchpad.net/~endolith/+junk/wine-color-scraper
@altercation
altercation / sp3-pwrbtn-dmesg-all
Last active August 29, 2015 14:06
surface pro 3 - power button not detected bug - ALL dmesg ouput
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.16.1-1-ARCH (nobody@var-lib-archbuild-testing-x86_64-tobias) (gcc version 4.9.1 (GCC) ) #1 SMP PREEMPT Thu Aug 14 07:40:19 CEST 2014
[ 0.000000] Command line: \vmlinuz-linux ro luks.allow-discards cryptdevice=UUID=0b1f8bac-0777-4039-9bb2-94bdfcdc9429:lvm cryptkey=UUID=E911-F787:vfat:/keyfile resume=/dev/storage/swap root=/dev/storage/system rootflags=subvol=root,rw,x-systemd.device-timeout=0,relatime,compress=lzo,ssd,space_cache,autodefrag,inode_cache i915.modeset=1 kernel.sysrq=1 acpi_os_name= initrd=initramfs-linux.img
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000000058000-0x0000000000058fff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000059000-0x000000000009dfff] usable
[ 0.000000] BIOS-e820: [mem 0
@altercation
altercation / sp3pwrbtn-dmesg-acpi-plus-errors
Last active August 29, 2015 14:06
surface pro 3 - power button not detected - dmesg output filtered for ACPI and errors
[ 0.000000] Command line: \vmlinuz-linux ro luks.allow-discards cryptdevice=UUID=0b1f8bac-0777-4039-9bb2-94bdfcdc9429:lvm cryptkey=UUID=E911-F787:vfat:/keyfile resume=/dev/storage/swap root=/dev/storage/system rootflags=subvol=root,rw,x-systemd.device-timeout=0,relatime,compress=lzo,ssd,space_cache,autodefrag,inode_cache i915.modeset=1 kernel.sysrq=1 acpi_os_name= initrd=initramfs-linux.img
[ 0.000000] BIOS-e820: [mem 0x00000000aa3f9000-0x00000000aa40ffff] ACPI data
[ 0.000000] BIOS-e820: [mem 0x00000000aa410000-0x00000000abb59fff] ACPI NVS
[ 0.000000] reserve setup_data: [mem 0x00000000aa3f9000-0x00000000aa40ffff] ACPI data
[ 0.000000] reserve setup_data: [mem 0x00000000aa410000-0x00000000abb59fff] ACPI NVS
[ 0.000000] efi: ACPI 2.0=0xaa3fd000 ACPI=0xaa3fd000 SMBIOS=0xabd7ef98
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 0x00000000AA3FD000 000024 (v02 OEMC )
[ 0.000000] ACPI: XSDT 0x00000000AA3FD0A0 0000BC (v01 OEMC O E M C 00000300 AM
@altercation
altercation / sp3pwrbtn-dsdt
Last active August 29, 2015 14:06
surface pro 3 - power button not detected bug - ACPI DSDT decompiled (no edits)
f/*
* Intel ACPI Component Architecture
* AML Disassembler version 20140724-64 [Aug 2 2014]
* Copyright (c) 2000 - 2014 Intel Corporation
*
* Disassembly of dsdt.dat, Wed Sep 3 01:32:31 2014
*
* Original Table Header:
* Signature "DSDT"
* Length 0x0000D003 (53251)
@altercation
altercation / sp3pwrbtn-journalctl-acpi
Last active August 29, 2015 14:06
surface pro 3 - power button not detected - journal control for last boot, filtered for acpi outpu
Sep 03 16:09:49 palimpsest kernel: Command line: \vmlinuz-linux ro luks.allow-discards cryptdevice=UUID=0b1f8bac-0777-4039-9bb2-94bdfcdc9429:lvm cryptkey=UUID=E911-F787:vfat:/keyfile resume=/dev/storage/swap root=/dev/storage/system rootflags=subvol=root,rw,x-systemd.device-timeout=0,relatime,compress=lzo,ssd,space_cache,autodefrag,inode_cache i915.modeset=1 kernel.sysrq=1 acpi_os_name= initrd=initramfs-linux.img
Sep 03 16:09:49 palimpsest kernel: BIOS-e820: [mem 0x00000000aa3f9000-0x00000000aa40ffff] ACPI data
Sep 03 16:09:49 palimpsest kernel: BIOS-e820: [mem 0x00000000aa410000-0x00000000abb59fff] ACPI NVS
Sep 03 16:09:49 palimpsest kernel: reserve setup_data: [mem 0x00000000aa3f9000-0x00000000aa40ffff] ACPI data
Sep 03 16:09:49 palimpsest kernel: reserve setup_data: [mem 0x00000000aa410000-0x00000000abb59fff] ACPI NVS
Sep 03 16:09:49 palimpsest kernel: efi: ACPI 2.0=0xaa3fd000 ACPI=0xaa3fd000 SMBIOS=0xabd7ef98
Sep 03 16:09:49 palimpsest kernel: ACPI: Early table checksum verification disabled
Sep 03 16
@altercation
altercation / sp3pwrbtn-journalctl-all
Last active August 29, 2015 14:06
surface pro 3 - power button not detected - journalctl b0 all output
Sep 03 16:09:49 palimpsest kernel: Command line: \vmlinuz-linux ro luks.allow-discards cryptdevice=UUID=0b1f8bac-0777-4039-9bb2-94bdfcdc9429:lvm cryptkey=UUID=E911-F787:vfat:/keyfile resume=/dev/storage/swap root=/dev/storage/system rootflags=subvol=root,rw,x-systemd.device-timeout=0,relatime,compress=lzo,ssd,space_cache,autodefrag,inode_cache i915.modeset=1 kernel.sysrq=1 acpi_os_name= initrd=initramfs-linux.img
Sep 03 16:09:49 palimpsest kernel: BIOS-e820: [mem 0x00000000aa3f9000-0x00000000aa40ffff] ACPI data
Sep 03 16:09:49 palimpsest kernel: BIOS-e820: [mem 0x00000000aa410000-0x00000000abb59fff] ACPI NVS
Sep 03 16:09:49 palimpsest kernel: reserve setup_data: [mem 0x00000000aa3f9000-0x00000000aa40ffff] ACPI data
Sep 03 16:09:49 palimpsest kernel: reserve setup_data: [mem 0x00000000aa410000-0x00000000abb59fff] ACPI NVS
Sep 03 16:09:49 palimpsest kernel: efi: ACPI 2.0=0xaa3fd000 ACPI=0xaa3fd000 SMBIOS=0xabd7ef98
Sep 03 16:09:49 palimpsest kernel: ACPI: Early table checksum verification disabled
Sep 03 16
@altercation
altercation / sp3pwrbtn-lsusb
Last active August 29, 2015 14:06
surface pro 3 - power button not detected - lsusb output
Bus 002 Device 002: ID 0bda:0307 Realtek Semiconductor Corp.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 045e:07bf Microsoft Corp.
Bus 001 Device 003: ID 045e:07be Microsoft Corp.
Bus 001 Device 007: ID 1286:204b Marvell Semiconductor, Inc.
Bus 001 Device 006: ID 0781:5571 SanDisk Corp. Cruzer Fit
Bus 001 Device 005: ID 0853:0100 Topre Corporation HHKB Professional
Bus 001 Device 002: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
@altercation
altercation / sp3pwrbtn-usb-devices
Last active August 29, 2015 14:06
surface pro 3 - power button not detected - usb-devices output plus stderror at end
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 9
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=03.16
S: Manufacturer=Linux 3.16.1-1-ARCH xhci_hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:14.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 3