1*86d7f5d3SJohn Marino.\" $FreeBSD: src/usr.sbin/cdcontrol/cdcontrol.1,v 1.21.2.14 2003/03/12 22:08:13 trhodes Exp $ 2*86d7f5d3SJohn Marino.\" $DragonFly: src/usr.sbin/cdcontrol/cdcontrol.1,v 1.5 2007/05/17 19:26:06 swildner Exp $ 3*86d7f5d3SJohn Marino.\" 4*86d7f5d3SJohn Marino.Dd July 3, 1995 5*86d7f5d3SJohn Marino.Dt CDCONTROL 1 6*86d7f5d3SJohn Marino.Os 7*86d7f5d3SJohn Marino.Sh NAME 8*86d7f5d3SJohn Marino.Nm cdcontrol 9*86d7f5d3SJohn Marino.Nd compact disc control utility 10*86d7f5d3SJohn Marino.Sh SYNOPSIS 11*86d7f5d3SJohn Marino.Nm 12*86d7f5d3SJohn Marino.Op Fl sv 13*86d7f5d3SJohn Marino.Op Fl f Ar device 14*86d7f5d3SJohn Marino.Op Ar command ... 15*86d7f5d3SJohn Marino.Sh DESCRIPTION 16*86d7f5d3SJohn MarinoThe 17*86d7f5d3SJohn Marino.Nm 18*86d7f5d3SJohn Marinoutility is a program to control audio features of a CD drive. 19*86d7f5d3SJohn MarinoThe device is a name such 20*86d7f5d3SJohn Marinoas 21*86d7f5d3SJohn Marino.Pa cd0 . 22*86d7f5d3SJohn Marino.Pp 23*86d7f5d3SJohn MarinoIf no 24*86d7f5d3SJohn Marino.Ar command 25*86d7f5d3SJohn Marinois given, then 26*86d7f5d3SJohn Marino.Nm 27*86d7f5d3SJohn Marinoenters an interactive mode, reading commands from the standard input. 28*86d7f5d3SJohn Marino.Pp 29*86d7f5d3SJohn MarinoThe following options are available: 30*86d7f5d3SJohn Marino.Bl -tag -width indent 31*86d7f5d3SJohn Marino.It Fl s 32*86d7f5d3SJohn MarinoSilent mode. 33*86d7f5d3SJohn MarinoDo not print table headers and human readable comments. 34*86d7f5d3SJohn Marino.It Fl v 35*86d7f5d3SJohn MarinoVerbose mode. 36*86d7f5d3SJohn MarinoPrint as much information as possible. 37*86d7f5d3SJohn Marino.It Fl f Ar device 38*86d7f5d3SJohn MarinoSpecify a device, such as 39*86d7f5d3SJohn Marino.Pa /dev/cd0c . 40*86d7f5d3SJohn MarinoBoth absolute path and relative to 41*86d7f5d3SJohn Marino.Pa /dev 42*86d7f5d3SJohn Marinofilename are possible. 43*86d7f5d3SJohn MarinoSuffix 44*86d7f5d3SJohn Marino.Pa c 45*86d7f5d3SJohn Marinois added to the device name if needed. 46*86d7f5d3SJohn Marino.El 47*86d7f5d3SJohn Marino.Pp 48*86d7f5d3SJohn MarinoThe available commands are listed below. 49*86d7f5d3SJohn MarinoOnly as many 50*86d7f5d3SJohn Marinocharacters as are required to uniquely identify a command 51*86d7f5d3SJohn Marinoneed be specified. 52*86d7f5d3SJohn MarinoThe word 53*86d7f5d3SJohn Marino.Ic play 54*86d7f5d3SJohn Marinocan be omitted or the characters 55*86d7f5d3SJohn Marino.Ic + 56*86d7f5d3SJohn Marinoand 57*86d7f5d3SJohn Marino.Ic - 58*86d7f5d3SJohn Marinocan be used in the 59*86d7f5d3SJohn Marinoplace of 60*86d7f5d3SJohn Marino.Ic next 61*86d7f5d3SJohn Marinoand 62*86d7f5d3SJohn Marino.Ic prev . 63*86d7f5d3SJohn Marino.Bl -tag -width indent 64*86d7f5d3SJohn Marino.It Ic play Ar first_track Op Ar last_track 65*86d7f5d3SJohn MarinoPlay from track 66*86d7f5d3SJohn Marino.Ar first_track 67*86d7f5d3SJohn Marinoto track 68*86d7f5d3SJohn Marino.Ar last_track . 69*86d7f5d3SJohn MarinoThe first track has number 1. 70*86d7f5d3SJohn MarinoCan be omitted in all cases. 71*86d7f5d3SJohn Marino.It Xo 72*86d7f5d3SJohn Marino.Ic play 73*86d7f5d3SJohn Marino.Ar start_m : Ns Ar start_s . Ns Ar start_f 74*86d7f5d3SJohn Marino.Op Ar end_m : Ns Ar end_s . Ns Ar end_f 75*86d7f5d3SJohn Marino.Xc 76*86d7f5d3SJohn MarinoPlay from the absolute address 77*86d7f5d3SJohn Marino(MSF) defined by 78*86d7f5d3SJohn Marino.Ar start_m 79*86d7f5d3SJohn Marinoin minutes, 80*86d7f5d3SJohn Marino.Ar start_s , 81*86d7f5d3SJohn Marinoin seconds and 82*86d7f5d3SJohn Marino.Ar start_f 83*86d7f5d3SJohn Marino(frame number) to the absolute address defined by 84*86d7f5d3SJohn Marino.Ar end_m 85*86d7f5d3SJohn Marinoin minutes, 86*86d7f5d3SJohn Marino.Ar end_s , 87*86d7f5d3SJohn Marinoin seconds and 88*86d7f5d3SJohn Marino.Ar end_f 89*86d7f5d3SJohn Marino(frame number). 90*86d7f5d3SJohn MarinoMinutes are in the range 0-99. 91*86d7f5d3SJohn MarinoSeconds are in the range 0-59. 92*86d7f5d3SJohn MarinoFrame numbers are in the range 0-74. 93*86d7f5d3SJohn Marino.It Ic play Op # Ns Ar start_block Op Ar length 94*86d7f5d3SJohn MarinoPlay starting from the logical block 95*86d7f5d3SJohn Marino.Ar start_block 96*86d7f5d3SJohn Marinousing 97*86d7f5d3SJohn Marino.Ar length 98*86d7f5d3SJohn Marinological blocks. 99*86d7f5d3SJohn Marino.It Ic next Op Ar tracks 100*86d7f5d3SJohn MarinoSkip forward a number of tracks (default 1). 101*86d7f5d3SJohn Marino.It Ic prev Op Ar tracks 102*86d7f5d3SJohn MarinoSkip backward a number of tracks (default 1). 103*86d7f5d3SJohn Marino.It Ic pause 104*86d7f5d3SJohn MarinoStop playing. 105*86d7f5d3SJohn MarinoDo not stop the disc. 106*86d7f5d3SJohn Marino.It Ic resume 107*86d7f5d3SJohn MarinoResume playing. 108*86d7f5d3SJohn MarinoUsed after the 109*86d7f5d3SJohn Marino.Ic pause 110*86d7f5d3SJohn Marinocommand. 111*86d7f5d3SJohn Marino.It Ic stop 112*86d7f5d3SJohn MarinoStop the disc. 113*86d7f5d3SJohn Marino.It Ic eject 114*86d7f5d3SJohn MarinoEject the disc. 115*86d7f5d3SJohn Marino.It Ic close 116*86d7f5d3SJohn MarinoInject the disc. 117*86d7f5d3SJohn Marino.It Ic volume Ar left_channel right_channel 118*86d7f5d3SJohn MarinoSet the volume of left channel to 119*86d7f5d3SJohn Marino.Ar left_channel 120*86d7f5d3SJohn Marinoand the volume of right channel to 121*86d7f5d3SJohn Marino.Ar right_channel . 122*86d7f5d3SJohn MarinoAllowed values are in the range 0-255. 123*86d7f5d3SJohn Marino.It Ic volume Cm mute 124*86d7f5d3SJohn MarinoTurn the sound off. 125*86d7f5d3SJohn Marino.It Ic volume Cm mono 126*86d7f5d3SJohn MarinoSet the mono mode. 127*86d7f5d3SJohn Marino.It Ic volume Cm stereo 128*86d7f5d3SJohn MarinoSet the stereo mode. 129*86d7f5d3SJohn Marino.It Ic volume Cm left 130*86d7f5d3SJohn MarinoPlay the left subtrack on both left and right channels. 131*86d7f5d3SJohn Marino.It Ic volume Cm right 132*86d7f5d3SJohn MarinoPlay the right subtrack on both left and right channels. 133*86d7f5d3SJohn Marino.It Ic info 134*86d7f5d3SJohn MarinoPrint the table of contents. 135*86d7f5d3SJohn Marino.It Ic status Op Cm audio | media | volume 136*86d7f5d3SJohn MarinoPrint the information about the disc: 137*86d7f5d3SJohn Marino.Pp 138*86d7f5d3SJohn Marino.Bl -tag -width ".Cm volume" -compact 139*86d7f5d3SJohn Marino.It Cm audio 140*86d7f5d3SJohn Marinothe current playing status and position 141*86d7f5d3SJohn Marino.It Cm media 142*86d7f5d3SJohn Marinothe current media catalog status 143*86d7f5d3SJohn Marino.It Cm volume 144*86d7f5d3SJohn Marinothe current values of the volume for left and right channels. 145*86d7f5d3SJohn Marino.El 146*86d7f5d3SJohn Marino.It Ic cdid 147*86d7f5d3SJohn MarinoDisplay the serial number of the CD using the method used by the 148*86d7f5d3SJohn Marino.Tn CDDB 149*86d7f5d3SJohn Marinoproject 150*86d7f5d3SJohn Marino.Pq Pa http://www.cddb.org/ . 151*86d7f5d3SJohn Marino.It Ic help 152*86d7f5d3SJohn MarinoPrint the list of available commands. 153*86d7f5d3SJohn Marino.It Ic debug Cm on 154*86d7f5d3SJohn MarinoEnable the debugging mode of the CD device driver. 155*86d7f5d3SJohn Marino.It Ic debug Cm off 156*86d7f5d3SJohn MarinoDisable the driver debugging mode. 157*86d7f5d3SJohn Marino.It Ic reset 158*86d7f5d3SJohn MarinoPerform the hardware reset of the device. 159*86d7f5d3SJohn Marino.It Ic set Cm msf 160*86d7f5d3SJohn MarinoSet minute-second-frame ioctl mode (default). 161*86d7f5d3SJohn Marino.It Ic set Cm lba 162*86d7f5d3SJohn MarinoSet LBA ioctl mode. 163*86d7f5d3SJohn Marino.It Ic speed Ar s 164*86d7f5d3SJohn MarinoSet the highest speed that the drive should use for reading data. 165*86d7f5d3SJohn MarinoThe units are multiples of a single speed CDROM (150 KB/s). 166*86d7f5d3SJohn MarinoSpecify 167*86d7f5d3SJohn Marino.Dq Li max 168*86d7f5d3SJohn Marinoto use the drive's fastest speed. 169*86d7f5d3SJohn Marino.It Ic quit 170*86d7f5d3SJohn MarinoQuit the program. 171*86d7f5d3SJohn Marino.It Ic exit 172*86d7f5d3SJohn MarinoA synonym for 173*86d7f5d3SJohn Marino.Ic quit . 174*86d7f5d3SJohn Marino.El 175*86d7f5d3SJohn Marino.Sh ENVIRONMENT 176*86d7f5d3SJohn MarinoThe following environment variables affect the execution of 177*86d7f5d3SJohn Marino.Nm : 178*86d7f5d3SJohn Marino.Bl -tag -width ".Ev CD_DRIVE" 179*86d7f5d3SJohn Marino.It Ev CDROM 180*86d7f5d3SJohn MarinoThe CD device to use, if one is not specified with the 181*86d7f5d3SJohn Marino.Fl f 182*86d7f5d3SJohn Marinooption. 183*86d7f5d3SJohn Marino.It Ev CDPLAY , CD_DRIVE , DISC , MUSIC_CD 184*86d7f5d3SJohn MarinoThese variables have been deprecated in favour of 185*86d7f5d3SJohn Marino.Ev CDROM . 186*86d7f5d3SJohn Marino.El 187*86d7f5d3SJohn Marino.Sh FILES 188*86d7f5d3SJohn Marino.Bl -tag -width ".Pa /dev/acd0c" -compact 189*86d7f5d3SJohn Marino.It Pa /dev/cd0c 190*86d7f5d3SJohn Marino.It Pa /dev/acd0c 191*86d7f5d3SJohn Marino.El 192*86d7f5d3SJohn Marino.Sh HISTORY 193*86d7f5d3SJohn MarinoThe 194*86d7f5d3SJohn Marino.Nm 195*86d7f5d3SJohn Marinocommand appeared in 196*86d7f5d3SJohn Marino.Fx 2.1 . 197*86d7f5d3SJohn Marino.Sh AUTHORS 198*86d7f5d3SJohn Marino.An Jean-Marc Zucconi 199*86d7f5d3SJohn Marino.An Andrey A. Chernov 200*86d7f5d3SJohn Marino.An Serge V. Vakulenko 201