[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: growisofs and PX-716: impossible changing burning speed after the first burn.



Try if attached snippet can reset "Current Write Speed" to 16x. Save it to dvd+rw-tools source directory and compile with 'g++ resetspeed.cpp'. What it does is send "restore all defaults" to unit, though through "SET STREAMING" command.

Thanks for the snipped but unfortunately it doesn't work!

No warranties:-) Try attached one then. This one "restores all defaults" with "SET STREAMING" and sends "go as fast as you can" with "SET CD SPEED." A.
#include "transport.hxx"

main(int argc,char *argv[])
{ Scsi_Command	cmd;
  unsigned char pd[28];
  int		err;

    if (argc<2)
	fprintf (stderr,"usage: %s /dev/dvd\n",argv[0]),
	exit(1);

    if (!cmd.associate (argv[1]))
	fprintf (stderr,"%s: unable to open: ",argv[1]), perror (NULL),
	exit(1);

    memset(pd,0,sizeof(pd));
    pd[0]=4;		// RDD

    cmd[0]=0xB6;	// SET STREAMING
    cmd[10]=sizeof(pd);
    cmd[11]=0;
    if ((err=cmd.transport (WRITE,pd,sizeof(pd))))
	sperror ("SET STREAMING",err),
	exit(1);

    cmd[0]=0xBB;	// SET CD SPEED
    cmd[2]=0xff;
    cmd[3]=0xff;
    cmd[4]=0xff;
    cmd[5]=0xff;
    cmd[11]=0;
    if ((err=cmd.transport (WRITE,pd,sizeof(pd))))
	sperror ("SET CD SPEED",err),
	exit(1);
}

Reply to: