Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 10-25-2013, 10:57 AM   #1
LQ Newbie
Registered: Oct 2007
Posts: 9

Rep: Reputation: 0
How to control cdrom motor speed from the command line?

Hi all,

I would like to be able to control the cdrom drive's speed from the command line, either with or without a CD in the drive. I don't expect there are any existing command line utilities to do this, but perhaps it's possible to write a C programme to do this using the IOCTL functions?

So does anyone know if this is first of all possible? And secondly, would this be the way to approach it?

I assume the CDROM_SELECT_SPEED function is the write speed? ie 8x, 16x etc.

Perhaps I could just make a command to spin-up the drive without a CD in it?

Any advice appreciated.

Old 10-25-2013, 03:01 PM   #2
Registered: Apr 2013
Location: France
Distribution: Slackware; Scientific Linux
Posts: 107

Rep: Reputation: Disabled
You could try to grab the sources for xmcd on and study the IOCTL methods.
The file /usr/include/linux/cdrom.h and the Documentation directory in the linux source tree contain valuable information.
Old 10-27-2013, 02:34 PM   #3
Senior Member
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,879

Rep: Reputation: 263Reputation: 263Reputation: 263
Look at something like:
hdparm -E 8 /dev/sr0


cdrom, command, control, ioctl, program

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
command-line speed test zmeda Linux - Networking 5 09-22-2014 09:02 AM
command line audio control Nivram Debian 1 09-01-2006 12:55 PM
need to control a browser from the command line nephish Linux - Software 6 11-21-2005 06:55 PM
command line tool to control volume? infected Programming 4 09-02-2004 09:58 AM
Close Cdrom from command line? mikeshn Linux - Hardware 6 08-17-2003 01:41 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration