Monday, October 4, 2010

Suspend Problems with Gigabyte GA-770TA-UD3

I have a desktop machine with Gigabyte GA-770TA-UD3 motherboard, and up until now I've been unable to suspend it in Linux. It would suspend, then immediately wake up. If I ran, e.g., 'pm-suspend' from the command line, I would see this in /var/log/messages:

[   92.192894] PM: Syncing filesystems ... done.
[   92.268839] PM: Preparing system for mem sleep
[   92.268847] Freezing user space processes ... (elapsed 4.87 seconds) done.
[   97.140091] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
[   97.140218] PM: Entering mem sleep
[   97.140228] Suspending console(s) (use no_console_suspend to debug)
[   97.140386] pm_op(): usb_dev_suspend+0x0/0x20 returns -2
[   97.140388] PM: Device usb8 failed to suspend: error -2
[   97.140390] PM: Some devices failed to suspend
[   97.140421] PM: resume of devices complete after 0.029 msecs
[   97.690227] PM: resume devices took 0.550 seconds
[   97.690247] PM: Finishing wakeup.
[   97.690250] Restarting tasks ... done.

The motherboard has a usb3 hub in it -- thanks to this post I figured out it was the xhci module that was holding up the suspend.  I did 'sudo modprobe -r xhci' and confirmed I could suspend.

To "solve" it permanently, I'll put a file in /etc/pm/config.d with the line:

Sunday, October 3, 2010

Notes on a New Laptop

My current laptop (a mid-2007 Macbook, machine model "Macbook 2,1" with the T7200 Core 2 Duo) is starting to age: the edges of the case are splitting (like all early-revision Macbooks of this model), I've yet to replace a broken 'i' key cap, part of the display is slightly discolored from a run-in with a bowl of olive-juice, and the trackpad button sometimes sticks, causing constant mouse-clicks.

That said, it's perfectly usable for my purposes at the moment. I'm starting to consider possibilities for a replacement, though. These are my conclusions:

My current machine is 5lbs with a 13.3" screen. (My work laptop is 4.5lbs, with 13.3" screen). Both of these are totally acceptable, though I could probably get a larger screen *or* lighter machine now. Battery life is important.

I've not outgrown the 120GB disk -- this means I could spring for a 128GB solid-state disk and see what all the fuss is about.

I'm looking only at ThinkPads right now. Those keyboards are just too nice, and they have generally solid Linux support.

The W series seems too heavy; T series looks just about right. I like the Core 2 Duo a bit better than the i5/i7 because of the lower power consumption (25W vs 35W).

The ThinkPad T400s seems just about right, but it looks like it's discontinued ( Other likely candidates are the T410 (on the heavy side) and T410s. The X201 is also a possibility, but it has a small screen (12.1").