Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-27-2004, 07:02 PM   #1
LQ Newbie
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
How to change character device file name?

I have two sound cards on my system. (A and B)
after compiling a kernel i found my card B under /dev/dsp
and card A under /dev/dsp1
most programs use /dev/dsp by default
But i preffer to use my A sound card and i have to tell every program to use alternate device.
How could i exchange my card devices?

P.S. I am using devfs
Old 03-28-2004, 06:29 AM   #2
Registered: Dec 2003
Location: Australia
Distribution: Mandrake 9.2
Posts: 151

Rep: Reputation: 30
change where they point most nodes(if not all) in the root /dev directory are links to other nodes which are in seperate directories.
lr-xr-xr-x 1 root root 9 Mar 26 16:05 /dev/dsp -> /dev/sound/dsp

So you can either change where they point to, or simply rename them to each other.
Old 03-28-2004, 08:12 AM   #3
LQ Newbie
Registered: Mar 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Already tryed this.
But i think, it is a rude way to solve the problem.
Some programs (like xmms) show the names of sound cards. And with this solution, when i want to play through card A, i have to choose card B.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change default character encoding alepou192 Ubuntu 2 05-23-2005 04:56 AM
Check to see if a file has a certain character in it krock923 Programming 2 11-25-2004 03:30 PM
Character Device kernel(2.4.18) - module problem shibdas Programming 2 11-11-2004 03:52 AM
end of file character hyperriven Programming 2 04-07-2004 11:09 PM
Java: Change first character in word to upper AMMullan Programming 4 04-05-2004 03:16 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:25 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