News : LinuxSolved.com Linux Help Community Forum..
{#ifndef WIN_STANDBYNOW1#define WIN_STANDBYNOW1 0xE0#endif#ifndef WIN_STANDBYNOW2#define WIN_STANDBYNOW2 0x94#endifunsigned char args1[4] = {WIN_STANDBYNOW1,0,0,0};unsigned char args2[4] = {WIN_STANDBYNOW2,0,0,0};int fd;if ((fd = open(device, O_RDWR)) < 0)return -1;if (ioctl(fd, HDIO_DRIVE_CMD, &args1) &&ioctl(fd, HDIO_DRIVE_CMD, &args2))return -1;return 0;}