The present invention relates to a novel process for obtaining a modafinil-based pharmaceutical composition. This process consists in solubilizing S-modafinil in a fluid in the supercritical state, and then, after reducing the pressure of said fluid, in recovering said S-modafinil by absorbing it at the surface of a substrate which is in the form of granules. Said fluid may be C0 2 or another solvent and the substrate may be anhydrous lactose or mannitol. Use of the pharmaceutical composition in cases where increased vigilance in the short term and over a brief period of time is required in the person taking said pharmaceutical composition.