After two years of declines, hardware sales are up