Hewlett-Packard offered a surprising ray of sunshine in an otherwise gloomy first quarter for PCs.