19 December 2012

KawaiiKart Chassis Assembled!

Or part of. If I fail my finals, this would be the reason.


It only took about three hours to cut the 80/20 into their requisite lengths (while screwing up the lengths for the main chassis because I don't know how to use a ruler -__-) and screw them together. Hopefully I get more done after finals.

09 December 2012

Back to Triple Displays


I nabbed two Dell Ultrasharp 2007s on ebay for $230 shipped. Unfortunately, the guy forgot to ship power and DVI cables; guess I'll be haggling the price down after finals week to compensate for the loss -_-. I also have to massage xmonad a bit to get display focusing and desktop switching just right.

Also I'm quite confident that I change setups as quickly as Bayley acquires new computers as a typical girl dumps her boyfriend. Not sure who I'm insulting =P.

Aaaaand before I forget, I'm posting my xorg.conf because I absolutely do not want to dig through the internet just to re-set up this configuration again.
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 304.54  (buildmeister@swio-display-x86-rhel47-11)  Sat Sep 29 01:10:44 PDT 2012


Section "ServerLayout"

# Removed Option "Xinerama" "0"
    Identifier     "Layout0"
    Screen      0  "Screen0" 1200 0
    Screen      1  "Screen1" 3760 0
    Screen      2  "Screen2" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "1"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "DELL3007WFPHC"
    HorizSync       49.3 - 98.5
    VertRefresh     59.9 - 59.9
    Option         "DPMS"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "DELL 2007FP"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor2"
    VendorName     "Unknown"
    ModelName      "DELL 2007FP"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 460"
    BusID          "PCI:19:0:0"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 460"
    BusID          "PCI:18:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Device2"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 460"
    BusID          "PCI:18:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP-0: nvidia-auto-select +0+0 { Rotation=left }"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "DFP-0: nvidia-auto-select +0+0 { Rotation=left }"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP-1: nvidia-auto-select +0+0 { Rotation=left }"
    Identifier     "Screen2"
    Device         "Device2"
    Monitor        "Monitor2"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "DFP-1: nvidia-auto-select +0+0 { Rotation=left }"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Disable"
EndSection

03 December 2012

12 Days of Christmas

Sung to the melody of Twelve Days of Christmas

On the first day of Christmas
My true love sent to me
a OneTesla coil

On the second day of Christmas
My true love sent to me
Two PSUs
and a OneTesla coil

On the third day of Chirstmas
My true love sent to me
Three mannequins
Two PSUs
and a OneTesla coil

On the fourth day of Christmas
My true love sent to me
Four GPUs
Three mannequins
Two PSUs
and a OneTesla coil

On the fifth day of Christmas
My true love sent to me
Five KawaiiKarts
Four GPUs
Three mannequins
Two PSUs
and a OneTesla coil

On the sixth day of Christmas
My true love sent to me
Six hamburgers
Five KawaiiKarts
Four GPUs
Three mannequins
Two PSUs
and a OneTesla coil

On the seventh day of Christmas
My true love sent to me
Seven ballcopters
Six hamburgers
Five KawaiiKarts
Four GPUs
Three mannequins
Two PSUs
and a OneTesla coil

On the eighth day of Christmas
My true love sent to me
Eight processors
Seven ballcopters
Six hamburgers
Five KawaiiKarts
Four GPUs
Three mannequins
Two PSUs
and a OneTesla coil

On the ninth day of Christmas
My true love sent to me
Nine monitors
Eight processors
Seven ballcopters
Six hamburgers
Five KawaiiKarts
Four GPUs
Three mannequins
Two PSUs
and a OneTesla coil

On the tenth day of Christmas
My true love sent to me
Ten SSDs
Nine monitors
Eight processors
Seven ballcopters
Six hamburgers
Five KawaiiKarts
Four GPUs
Three mannequins
Two PSUs
and a OneTesla coil

On the eleventh day of Christmas
My true love sent to me
Eleven bugs to fix
Ten SSDs
Nine monitors
Eight processors
Seven ballcopters
Six hamburgers
Five KawaiiKarts
Four GPUs
Three mannequins
Two PSUs
and a OneTesla coil

On the twelfth day of Christmas
My true love sent to me
Twelve sticks of RAM
Eleven bugs to fix
Ten SSDs
Nine monitors
Eight processors
Seven ballcopters
Six hamburgers
Five KawaiiKarts
Four GPUs
Three mannequins
Two PSUs
and a OneTesla coil

CUDA Drivers Causing Kernel Panics

For the past few days, my MacBook Air (13", Late 2010), has gotten significantly more kernel panics than before. The kernel panics would always happen when I removed the display cable and then woke the computer from sleep, at which point it would tell me that it kernel panicked was going to automatically reboot. Upon restart, I skimmed through the kernel panic (portions reproduced at the end) and concluded that it was caused by some Nvidia kernel extensions. Upon closer inspection, I noticed NVDAResman and nv50hal were at fault, which are two kexts that come with the OS X CUDA driver.

Interval Since Last Panic Report:  159692 sec
Panics Since Last Report:          2
Anonymous UUID:                    B4401137-5BE3-7AF0-D223-C1C4D49B06E5

Mon Dec  3 09:55:59 2012
panic(cpu 1 caller 0xffffff80060b7bd5): Kernel trap at 0xffffff7f86aa1a58, type 0=divide error, registers:
CR0: 0x000000008001003b, CR2: 0x00000000992f9f8e, CR3: 0x0000000008c94000, CR4: 0x0000000000000660
RAX: 0x00014424d765e000, RBX: 0x0000000000000000, RCX: 0x0000000008d9ee20, RDX: 0x0000000000000000
RSP: 0xffffff807e4ab020, RBP: 0xffffff807e4ab0b0, RSI: 0x0000000000000000, RDI: 0xffffff8012e1d004
R8:  0xffffff807e4aafb4, R9:  0x0000000008d9ee20, R10: 0x000000001017df80, R11: 0x000000000574c638
R12: 0xffffff806ac91da0, R13: 0xffffff8012de7004, R14: 0x0000000000000006, R15: 0xffffff8012e1d004
RFL: 0x0000000000010246, RIP: 0xffffff7f86aa1a58, CS:  0x0000000000000008, SS:  0x0000000000000000
Fault CR2: 0x00000000992f9f8e, Error code: 0x0000000000000000, Fault CPU: 0x1

Backtrace (CPU 1), Frame : Return Address
0xffffff807e4aacc0 : 0xffffff800601d626 
0xffffff807e4aad30 : 0xffffff80060b7bd5 
0xffffff807e4aaf00 : 0xffffff80060ce4ed 
0xffffff807e4aaf20 : 0xffffff7f86aa1a58 
0xffffff807e4ab0b0 : 0xffffff7f86a9aefb 
0xffffff807e4ab160 : 0xffffff7f86a7befc 
0xffffff807e4ab1a0 : 0xffffff7f86a7dcf1 
0xffffff807e4ab350 : 0xffffff7f86a80294 
0xffffff807e4ab3a0 : 0xffffff7f86b68ba1 
0xffffff807e4ab4e0 : 0xffffff7f86b6ef2e 
0xffffff807e4ab530 : 0xffffff7f86879659 
0xffffff807e4ab560 : 0xffffff7f867638da 
0xffffff807e4ab610 : 0xffffff7f8675efac 
0xffffff807e4ab800 : 0xffffff7f867603a2 
0xffffff807e4ab8d0 : 0xffffff7f8695415a 
0xffffff807e4ab900 : 0xffffff7f869505ce 
0xffffff807e4ab920 : 0xffffff7f8694f158 
0xffffff807e4ab9a0 : 0xffffff7f8694babb 
0xffffff807e4ab9c0 : 0xffffff7f86955e40 
0xffffff807e4aba70 : 0xffffff7f8694a61c 
0xffffff807e4abbf0 : 0xffffff7f866f63c7 
0xffffff807e4abc60 : 0xffffff7f866e057b 
0xffffff807e4abcd0 : 0xffffff7f866e31b8 
0xffffff807e4abd40 : 0xffffff7f866e3343 
0xffffff807e4abdb0 : 0xffffff7f866e2db4 
0xffffff807e4abe10 : 0xffffff7f866a9c04 
0xffffff807e4abe50 : 0xffffff7f866a8eef 
0xffffff807e4abe80 : 0xffffff7f866a82cb 
0xffffff807e4abef0 : 0xffffff80064472a8 
0xffffff807e4abf30 : 0xffffff8006445daa 
0xffffff807e4abf80 : 0xffffff8006445ed9 
0xffffff807e4abfb0 : 0xffffff80060b26b7 
      Kernel Extensions in backtrace:
         com.apple.iokit.IOGraphicsFamily(2.3.5)[803496D0-ADAD-3ADB-B071-8A0A197DA53D]@0xffffff7f8669b000->0xffffff7f866d2fff
            dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffffff7f86650000
         com.apple.iokit.IONDRVSupport(2.3.5)[86DDB71C-A73A-3EBE-AC44-0BC9A38B9A44]@0xffffff7f866de000->0xffffff7f866effff
            dependency: com.apple.iokit.IOGraphicsFamily(2.3.5)[803496D0-ADAD-3ADB-B071-8A0A197DA53D]@0xffffff7f8669b000
            dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffffff7f86650000
         com.apple.NVDAResman(8.0)[A4C53A36-22B6-3075-82B9-9DE612A9C015]@0xffffff7f866f2000->0xffffff7f869f4fff
            dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffffff7f86650000
            dependency: com.apple.iokit.IONDRVSupport(2.3.5)[86DDB71C-A73A-3EBE-AC44-0BC9A38B9A44]@0xffffff7f866de000
            dependency: com.apple.iokit.IOGraphicsFamily(2.3.5)[803496D0-ADAD-3ADB-B071-8A0A197DA53D]@0xffffff7f8669b000
         com.apple.nvidia.nv50hal(8.0)[9F3D09B5-3158-3D9E-BDA3-E71576AAD3B7]@0xffffff7f86a02000->0xffffff7f86d24fff
            dependency: com.apple.NVDAResman(8.0.0)[A4C53A36-22B6-3075-82B9-9DE612A9C015]@0xffffff7f866f2000
            dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffffff7f86650000

BSD process name corresponding to current thread: kernel_task

Mac OS version:
12C60

Kernel version:
Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64
Kernel UUID: 69A5853F-375A-3EF4-9247-478FD0247333
Kernel slide:     0x0000000005e00000
Kernel text base: 0xffffff8006000000
System model name: MacBookAir3,2 (Mac-942C5DF58193131B)