Keyboard issues with GNOME on a PowerBook G4 running OpenBSD

While setting up OpenBSD on my PowerBook, I ran across a problem with GNOME. My mouse would work fine but the moment I tried to type something, key presses would not register and mouse clicks would no longer work. The caps lock lights still worked and I could ssh to the machine so it was not locked up. Restarting X with Ctrl-Alt-Backspace seemed to be the only way out. The problem was the same if GNOME was started from GDM or from startx. FVWM from startx worked fine, so it wasn't a hardware issue.

After much searching I finally stumbled upon a thread from OpenBSD's misc@ email list that matched my problem:

The next email in the thread mentioned problems with XDM, and I too was also experiencing problems with GDM.

The third email pointed me to the right location for the solution, "the second parapgraph of /usr/X11R6/README" which states:
To use xdm from rc.conf, it is necessary to disable /dev/ttyC0 in
/etc/ttys, change the 'status' of /dev/ttyC0 to 'off'.
I remember seeing this when I initially set up X but unfortunately I didn't follow the directions (maybe because I was having the problem from startx as well as GDM). Disabling /dev/ttyC0 and rebooting solved the issue.


Drobo and a Asus RT-N16 running DD-WRT

Here are some tips on getting a Drobo (tested with a 1st Generation Drobo) working with an Asus RT-N16 running DD-WRT.

DD-WRT's notes on the Asus RT-N16

First off, BACKUP your data on the Drobo. You'll probably need to change the partitions and reformat your Drobo.

It looks like DD-WRT 24 does not support GUID Partition Tables (GPT) which means you need to use a MBR partition table and you LUN size will be limited to 2TB. This was not really a problem in my case since the 1st Generation Drobo is restricted to a 2TB LUN.

I think the standard Drobo tools will use a GPT. To check if your Drobo has a GPT just run fdisk on the drobo

$ sudo fdisk -clu /dev/sdc
WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdc: 2199.0 GB, 2199023185920 bytes
87 heads, 57 sectors/track, 866095 cylinders, total 4294967160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa103ff18
Device Boot Start End Blocks Id System
/dev/sdc1 2048 4294967159 2147482556 83 Linux

Did you BACKUP your Drobo?

To remove the GPT, erase the first and last sectors:

$ sudo dd if=/dev/zero of=/dev/sdc bs=512 count=2
$ sudo dd if=/dev/zero of=/dev/sdc bs=512 seek=4294967159

Now create a new partition on the Drobo with fdisk, then format the partition as ext3 as described on the DataRobotics website (skip the GPT part).

Next up (hopefully) is a C program that will report the Drobo's status. I needed to write a C program because unfortunately the excellent drobo-utils is written in Python and Python needs more space than is available on a router. I also didn't want to install Python to external storage attached to the router, because if that storage fails, then there would be no way to determine the status of the Drobo.