Skip to content

Instantly share code, notes, and snippets.

@xqms
xqms / nouveau loading
Created December 11, 2013 00:00
T440p with GT730M
[ 33.755001] ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Integer], ACPI requires [Package] (20131115/nsarguments-95)
[ 33.755062] ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
[ 33.755233] ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
[ 33.755395] pci 0000:02:00.0: optimus capabilities: enabled, status dynamic power, hda bios codec supported
[ 33.755397] VGA switcheroo: detected Optimus DSM method \_SB_.PCI0.PEG_.VID_ handle
[ 33.755420] nouveau 0000:02:00.0: enabling device (0004 -> 0007)
[ 33.755536] [drm] hdmi device not found 2 0 1
[ 33.755615] nouveau [ DEVICE][0000:02:00.0] BOOT0 : 0x108100a1
[ 33.755616] nouveau [ DEVICE][0000:02:00.0] Chipset: GK208 (NV108)
[ 33.755617] nouveau [ DEVICE][0000:02:00.0] Family : NVE0
avr-g++ -mmcu=atmega32 -fno-exceptions -fno-rtti -O2 -o file.elf file.cpp
@xqms
xqms / ultrabay.sh
Created October 28, 2011 14:44
Manages the Ultrabay on ThinkPad T400
#!/bin/bash
set -e
for i in /sys/devices/platform/dock*; do
if grep ata_bay "$i/type" &> /dev/null; then
dock="$i"
break;
fi
done
add_subdirectory(libpublictransporthelper)
add_subdirectory(applet)
add_subdirectory(applet-graphicaltimetableline)
add_subdirectory(engine-openstreetmap)
add_subdirectory(icons)
#add_subdirectory(runner)
add_subdirectory(applet-flights)
add_subdirectory(engine)
#add_subdirectory(timetablemate)
@xqms
xqms / build.sh
Created September 25, 2011 19:20
Getting XI2.1 on your machine - http://xqms.github.com/blog/getting_xi21.html
jhbuild -f jhbuildrc buildone inputproto xserver libXi xf86-input-evdev
jhbuild -f jhbuildrc build \
xserver \ # xorg core
xf86-video-intel \ # my video driver
xf86-input-evdev \ # input via evdev
xkeyboard-config \ # for keymaps and so on
xf86-input-synaptics # touchpad
static void eject_dock(struct dock_station *ds)
{
struct acpi_object_list arg_list;
union acpi_object arg;
acpi_status status;
acpi_handle tmp;
/* all dock devices should have _EJ0, but check anyway */
status = acpi_get_handle(ds->handle, "_EJ0", &tmp);
if (ACPI_FAILURE(status)) {
static void eject_dock(struct dock_station *ds)
{
struct acpi_object_list arg_list;
union acpi_object arg;
acpi_status status;
acpi_handle tmp;
/* all dock devices should have _EJ0, but check anyway */
status = acpi_get_handle(ds->handle, "_EJ0", &tmp);
if (ACPI_FAILURE(status)) {
@xqms
xqms / latex_compile.sh
Created May 16, 2011 13:11
PdfLatex, Bibtex and Chapterbib
#!/bin/bash
find . -name '*.aux' -print0 | xargs -0 rm
pdflatex report
dirs="dir1 dir2 dir3"
for dir in $dirs; do
for f in $dir/*.aux; do