LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices


Reply
  Search this Thread
Old 10-25-2013, 09:57 AM   #1
comiconomenclaturist
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.
thanks

James
 
Old 10-25-2013, 02:01 PM   #2
edorig
Member
 
Registered: Apr 2013
Location: France
Distribution: Slackware; Ubuntu
Posts: 134

Rep: Reputation: Disabled
You could try to grab the sources for xmcd on ftp://ftp.x.org 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, 01:34 PM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

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


Reply

Tags
cdrom, command, control, ioctl, program



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 08:02 AM
command line audio control Nivram Debian 1 09-01-2006 11:55 AM
need to control a browser from the command line nephish Linux - Software 6 11-21-2005 05:55 PM
command line tool to control volume? infected Programming 4 09-02-2004 08:58 AM
Close Cdrom from command line? mikeshn Linux - Hardware 6 08-17-2003 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:02 PM.

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