CDCONTROL(1)

๐Ÿ“ฆ version 15.1, in freebsd 14.5, freebsd 15.1

๐Ÿ’ฟ CDCONTROL(1) โ€” your CD drive's new bestie ๐Ÿ’ฟ

okay so first things first: this is a page from the General Commands Manual (yes, the big book of Unix tools), and today's main character is cdcontrol, the compact disc control utility. Let's get into it ๐ŸŽ€


โœจ NAME โœจ

cdcontrol โ€” the compact disc control utility. that's it, that's the vibe. she controls your CD. ๐Ÿ’…


๐ŸŒธ SYNOPSIS ๐ŸŒธ

cdcontrol [-sv] [-f device] [command ...]

๐Ÿ’– DESCRIPTION ๐Ÿ’–

cdcontrol is a whole program for controlling the audio features of a CD drive. the device is a name like cd0, bestie. ๐Ÿฆ‹

if you don't give her any command at all, she drops into interactive mode and just reads commands from standard input. no cap, she'll sit there and wait for you. ๐Ÿ’…

here are the options she takes:

  • -s โ€” silent mode. she will not print table headers or those human readable comments. quiet queen. ๐Ÿคซ
  • -v โ€” verbose mode. she prints as much information as humanly possible. she's an oversharer and we love her for it. ๐Ÿ˜ญ
  • -f device โ€” pick a device, like /dev/cd0. both an absolute path and a filename relative to /dev are fine. this option overrides CDROM. and if neither CDROM nor -f is around? she tries opening first /dev/cdrom, then /dev/cd0. she's got a whole priority list, iykyk. ๐Ÿ‘‘

๐ŸŽ€ the commands, aka the whole menu ๐ŸŽ€

the commands are listed below, and here's the cute part: you only need to type as many characters as are required to uniquely identify a command. so like, be lazy, it's fine, it's encouraged. โœจ

also: the word play can be omitted entirely, and the characters + and - can be used in the place of next and prev. shortcuts, periodt. ๐Ÿ”ฅ

  • play first_track [last_track] โ€” play from track first_track to track last_track. the first track has number 1. can be omitted in all cases. ๐ŸŽต
  • play start_m:start_s.start_f [end_m:end_s.end_f] โ€” play from the absolute address (MSF) defined by start_m in minutes, start_s in seconds and start_f (frame number), to the absolute address defined by end_m in minutes, end_s in seconds and end_f (frame number). the ranges are minutes 0-99, seconds 0-59, frame numbers 0-74. get those numbers right, bestie, the ranges are not vibes. ๐Ÿ’€
  • play [#start_block [length]] โ€” play starting from the logical block start_block, using length logical blocks. block girlie. ๐Ÿงš
  • next [tracks] โ€” skip forward a number of tracks (default 1). we're moving. โญ๏ธ
  • prev [tracks] โ€” skip backward a number of tracks (default 1). we're going back. โฎ๏ธ
  • pause โ€” stop playing. do not stop the disc. she's just resting, not quitting. ๐Ÿ™ˆ
  • resume โ€” resume playing. used after the pause command. the comeback arc. ๐Ÿฆ‹
  • stop โ€” stop the disc. for real this time. ๐Ÿ›‘
  • eject โ€” eject the disc. bye bestie ๐Ÿ‘‹
  • close โ€” inject the disc. welcome back bestie ๐Ÿซถ
  • volume โ€” same as the status volume command. โญ
  • volume level โ€” set the volume of both channels to level. allowed values are in the range 0-255. ๐Ÿ”Š
  • volume left_channel right_channel โ€” set the volume of the left channel to left_channel and the volume of the right channel to right_channel. allowed values are in the range 0-255. stereo balance, iconic. ๐ŸŽง
  • volume mute โ€” turn the sound off. silence era. ๐Ÿคซ
  • volume mono โ€” set the mono mode. ๐ŸŒธ
  • volume stereo โ€” set the stereo mode. ๐ŸŒˆ
  • volume left โ€” play the left subtrack on both left and right channels. ๐ŸŽ€
  • volume right โ€” play the right subtrack on both left and right channels. ๐ŸŽ€
  • info โ€” print the table of contents. the receipts. ๐Ÿ“‹
  • status [audio | media | volume] โ€” print the information about the disc:
    • audio โ€” the current playing status and position ๐ŸŽถ
    • media โ€” the current media catalog status ๐Ÿ’ฟ
    • volume โ€” the current values of the volume for left and right channels ๐Ÿ”Š
  • cdid โ€” display the serial number of the CD using the method used by the CDDB project (http://www.cddb.org/). she's got the CD's ID, fr fr. ๐Ÿชช
  • help โ€” print the list of available commands. when in doubt, ask. ๐Ÿ’–
  • debug on โ€” enable the debugging mode of the CD device driver. ๐Ÿ”
  • debug off โ€” disable the driver debugging mode. ๐Ÿ”
  • reset โ€” perform the hardware reset of the device. hard reset, no soft launch. ๐Ÿ’ฅ
  • set msf โ€” set minute-second-frame ioctl mode (default). โฑ๏ธ
  • set lba โ€” set LBA ioctl mode. โฑ๏ธ
  • speed s โ€” set the highest speed that the drive should use for reading data. the units are multiples of a single speed CDROM (150 KB/s). specify max to use the drive's fastest speed. zoom zoom. ๐ŸŽ๏ธ
  • quit โ€” quit the program. goodbye, you ate. ๐Ÿ‘‘ (also: empty backticks in the original, but the command is just quit โ€” no args, no notes.)

๐ŸŒฟ ENVIRONMENT ๐ŸŒฟ

these environment variables affect how cdcontrol runs:

  • CDROM โ€” the CD device to use, if one isn't specified with the -f option. ๐ŸŽฏ
  • CDPLAY, CD_DRIVE, DISC, MUSIC_CD โ€” these variables have been deprecated in favour of CDROM. they're the old era, we don't stan them anymore, but they're still listed. ๐Ÿ’€

๐Ÿ“ FILES ๐Ÿ“

  • /dev/cd0

๐Ÿฆ‹ HISTORY ๐Ÿฆ‹

the cdcontrol command appeared in FreeBSD 2.1. vintage. she's been serving since the 90s. ๐Ÿ‘‘


๐Ÿ’œ AUTHORS ๐Ÿ’œ

  • Jean-Marc Zucconi
  • Andrey A. Chernov
  • Serge V. Vakulenko

okay that's the whole page, bestie, you're officially a CD girlie now ๐Ÿ’ฟโœจ

sign-off cuteness: this one's the Debian build, dated August 25, 2016 โ€” so when you see it in the wild, that's the source/version footer talking. mwah ๐Ÿ’‹

๐Ÿ“ฆ where this page comes from