- unixforum.org
- /dev/dsp отсутствует устройство в Lenny (vmware жалуется на отсутствие звукового устройства)
- /dev/dsp отсутствует устройство в Lenny
- Re: /dev/dsp отсутствует устройство в Lenny
- Re: /dev/dsp отсутствует устройство в Lenny
- Re: /dev/dsp отсутствует устройство в Lenny
- Re: /dev/dsp отсутствует устройство в Lenny
- Re: /dev/dsp отсутствует устройство в Lenny
- Re: /dev/dsp отсутствует устройство в Lenny
- Re: /dev/dsp отсутствует устройство в Lenny
- Re: /dev/dsp отсутствует устройство в Lenny
- Re: /dev/dsp отсутствует устройство в Lenny
- Ubuntu 10.10 нет /dev/dsp
- Почему Linux не позволяет мне играть с / dev / dsp?
- Understanding /dev folder in linux (android)
- 1 Answer 1
- Thread: /dev/dsp is missing
- /dev/dsp is missing
- Re: /dev/dsp is missing
- Re: /dev/dsp is missing
- Re: /dev/dsp is missing
unixforum.org
Форум для пользователей UNIX-подобных систем
- Темы без ответов
- Активные темы
- Поиск
- Статус форума
/dev/dsp отсутствует устройство в Lenny (vmware жалуется на отсутствие звукового устройства)
/dev/dsp отсутствует устройство в Lenny
Сообщение 10pa » 14.11.2008 11:09
vmware жалуется на отсутствие устройства /dev/dsp и из-за этого не выводит звук.
Остальные программы звук выводят через Alsa,
Как мне установить это устройство? В каталоге dev его нету..
Debian lenny, KDE 3.5, alsa, ядро 2.6.26-?
Re: /dev/dsp отсутствует устройство в Lenny
Сообщение KernelPanic » 14.11.2008 11:17
Re: /dev/dsp отсутствует устройство в Lenny
Сообщение 10pa » 14.11.2008 17:25
linux-sound-base уже установлена версия 1.0.17, так же установлено oss-compat
Re: /dev/dsp отсутствует устройство в Lenny
Сообщение RasenHerz » 14.11.2008 17:58
Re: /dev/dsp отсутствует устройство в Lenny
Сообщение 10pa » 14.11.2008 18:29
Re: /dev/dsp отсутствует устройство в Lenny
Сообщение RasenHerz » 14.11.2008 18:44
Re: /dev/dsp отсутствует устройство в Lenny
Сообщение 10pa » 14.11.2008 19:21
Re: /dev/dsp отсутствует устройство в Lenny
Сообщение RasenHerz » 14.11.2008 19:38
Re: /dev/dsp отсутствует устройство в Lenny
Сообщение Igor34 » 14.11.2008 22:13
vmware жалуется на отсутствие устройства /dev/dsp и из-за этого не выводит звук.
Остальные программы звук выводят через Alsa,
Как мне установить это устройство? В каталоге dev его нету..
Debian lenny, KDE 3.5, alsa, ядро 2.6.26-?
установи modconf: aptitude install modconf
Запусти в консоли modconf. Затем найди там /kernel/sound/core/oss
Запусти snd-pcm-oss
Re: /dev/dsp отсутствует устройство в Lenny
Сообщение 10pa » 15.11.2008 11:16
спасибо! устройство появилось ))
буду дальше пробовать.
Дал права на /dev/dsp для всех, и в VMware появился звук! )))
Источник
Ubuntu 10.10 нет /dev/dsp
Сабж. Нету файла /dev/dsp.
При запуске aoss этот файл также не появляется :
startapp@ubuntu:
$ aoss ls /dev | grep dsp
startapp@ubuntu:
$ aoss ls /dev
autofs loop4 ram7 tty14 tty42 uinput
block loop5 ram8 tty15 tty43 urandom
bsg loop6 ram9 tty16 tty44 usbmon0
btrfs-control loop7 random tty17 tty45 usbmon1
bus mapper rfkill tty18 tty46 usbmon2
cdrom mcelog root tty19 tty47 usbmon3
cdrw mem rtc tty2 tty48 usbmon4
char net rtc0 tty20 tty49 usbmon5
console network_latency scd0 tty21 tty5 usbmon6
core network_throughput sda tty22 tty50 vcs
cpu null sda1 tty23 tty51 vcs1
cpu_dma_latency oldmem sda2 tty24 tty52 vcs2
disk pktcdvd sda5 tty25 tty53 vcs3
dri port sdb tty26 tty54 vcs4
dvd ppp sg0 tty27 tty55 vcs5
dvdrw psaux sg1 tty28 tty56 vcs6
ecryptfs ptmx sg2 tty29 tty57 vcs7
fb0 pts shm tty3 tty58 vcsa
fd ram0 snapshot tty30 tty59 vcsa1
full ram1 snd tty31 tty6 vcsa2
fuse ram10 sr0 tty32 tty60 vcsa3
gpmctl ram11 stderr tty33 tty61 vcsa4
hidraw0 ram12 stdin tty34 tty62 vcsa5
hpet ram13 stdout tty35 tty63 vcsa6
input ram14 tty tty36 tty7 vcsa7
kmsg ram15 tty0 tty37 tty8 vga_arbiter
log ram2 tty1 tty38 tty9 zero
loop0 ram3 tty10 tty39 ttyS0
loop1 ram4 tty11 tty4 ttyS1
loop2 ram5 tty12 tty40 ttyS2
loop3 ram6 tty13 tty41 ttyS3
Что еще можно сделать?
modprobe snd-pcm-oss. Емнип, этот модуль в убунтах выпилили, поэтому либо ставить oss4 (и alsa/pulseaudio перестанут работать), или пересобирать ядро.
]> aoss stat /dev/dsp
File: «/dev/dsp»
Size: 0 Blocks: 0 IO Block: 4096 символьный специальный файл
Device: 5h/5d Inode: 3011 Links: 1 Device type: e,3
Access: (0660/crw-rw—-) Uid: ( 0/ root) Gid: ( 29/ audio)
Access: 2011-04-25 17:41:57.966830003 +0400
Modify: 2011-04-25 17:41:57.966830003 +0400
Change: 2011-04-25 17:41:57.966830003 +0400
[22:16:44][aitap@Tarkus
]> aoss ls /dev/dsp
/dev/dsp
[22:17:01][aitap@Tarkus
]> aoss ls /dev/ | grep dsp
adsp
dsp
dsp1
[22:17:06][aitap@Tarkus
Попробуйте sudo modprobe snd-pcm-oss, как описано выше.
А зачем понадобился /dev/dsp?
и alsa/pulseaudio перестанут работать
Не обязательно. OSS умеет эмулировать альсу.
Источник
Почему Linux не позволяет мне играть с / dev / dsp?
Я работаю над учебником по Linux, и он рассказывает мне об устройствах. Он говорит, что если я отправлю соответствующий вывод /dev/dsp , то он будет воспроизводить звук. Например cat file.wav > /dev/dsp , где file.wav это просто любой файл .wav.
Когда я делаю это, я получаю разрешение отказано. Если я запускаю это с sudo, мне все равно отказывают в разрешении. Если я su первый, звук не играет.
Почему мне отказывают в разрешении sudo ? Почему звук не играет даже с su ?
/dev/dsp является частью OSS, которая не была частью ядра Linux в течение очень долгого времени. Он давно вытесняется ALSA, которая использует разные устройства, разные программы и разные API.
Хотя есть модуль эмуляции слоя. Если он доступен, то загрузка snd-pcm-oss модуля позволит вам использовать устройства PCM для OSS, такие как /dev/dsp .
Или просто придерживайтесь данных aplay или paplay вместо этого.
Если я запускаю это с sudo, мне все равно отказывают в разрешении.
Этим утверждением кажется, что вы пытаетесь выполнить команду вроде:
Причина, по которой вы продолжаете получать «разрешение запрещено», заключается в том, что ваша оболочка сначала пытается открыть /dev/dsp устройство для вывода, прежде чем запустить команду (которая есть sudo ). Чтобы оболочка открыла перенаправление с привилегиями root, вам нужно сделать что-то вроде:
Устаревшая книга, как отмечено.
Таким образом, чтобы примеры работали с более современным Linux, где написано что-то вроде
измените это на:
И вы только что сделали свой первый перенос кода! Выиграть! Не стесняйтесь присылать книги авторам патчей. 🙂
Источник
Understanding /dev folder in linux (android)
I am trying to understand how linux filesystems work, but the only linux system I have is my android phone (rooted) so I am asking on the basis of what I see oin the android phone using adb shell.
From here and here I have read that every hardware connected to the android system is seen by the OS as a file. So /dev/dsp is the audio hardware, and writing anything into this file appears as sound through the speaker (so I am supposing if I write a stream of 1 byte characters in this file they will be interpreted as 2 byte words first, interleaved for left and right channel like in a wav file and played out through the speaker?). However going into /dev in adb shell and using the ls command I cannot see the dsp file.
My question is, is the naming of files in the /dev folder standard, or can it have any name? It says here that the naming can be completely random.
There is a naming scheme of sorts but in the vast majority of cases these are completely illogical.
If that’s true then how can we know what file represents what?
1 Answer 1
Your tldp links are a bit historic. And if you look at /dev just as part of the filesystem, you miss the essence of this subsystem.
A.B’s comment mentions major/minor; but his link is just the raw list. Here allocated devices kernel.org HTML there are some additional infos.
I think «everything is a file» is rather misleading in this context. The files in /dev are so called special files, either character or block. The «c» or «b» show this.
And the docs have for major=8:
But this does not even directly explain why a partition with a high number suddenly gets major=259:
I pick this «sda» example because it is the primary mass storage. I don’t know how this translates to Android.
Block devices (partitions) can be written to directly, but normally they are formatted with a filesystem and then mounted.
In general, the files in /dev are the interface to the device, not the device itself.
Today, /dev is a pseudo-filesystem like /sys:
During boot, /dev gets populated by the kernel. A user can add devices by loading modules. modprobe loop gives you /dev/loop0-7 e.g.
(A suggested edit wants populated «by udev» instead of «by the kernel». I think this is more the naming than populating per se. If you want to go into the details, you rather have to look at the drivers, modules or not.)
By plugging in an external usb storage, you get sdb, sdc etc., but only if the usb_storage module is loaded.
The interface nature of /dev special files also shows in the names: some like sda or tty are technical, some (under /dev/disk/by-. ) are links for convenience or identification.
Источник
Thread: /dev/dsp is missing
Thread Tools
Display
/dev/dsp is missing
I’m using Ubuntu 12.04. When I use the Python library call ossaudiodev.open(«w»), I get the error mesage «No such file or directory: ‘/dev/dsp'», and indeed /dev/dsp does not exist. This used to work under Ubuntu 10.04. I’ve searched for advice on this subject, and found nothing useful, despite some being marked «answered». I’ve installed the packages oss4-base, oss4-dev, liboss4-salsa2 and liboss4-salsa-dev, to no avail. Any ideas?
Re: /dev/dsp is missing
I happen to be running a 9.04 machine. Do you have alsa-oss installed?
tgalati4@tpad-Gloria7 /dev $ apt-cache policy alsa-oss
alsa-oss:
Installed: 1.0.17-1
Candidate: 1.0.17-1
Version table:
*** 1.0.17-1 0
500 http://old-releases.ubuntu.com jaunty/universe Packages
100 /var/lib/dpkg/status
OSS is an old linux audio framework (open sound system, I believe) that was replaced by ALSA. A wrapper is used to maintain compatibility with older software that makes OSS audio calls. I believe /dev/dsp is installed by alsa. So make sure you have the complete ALSA framework installed.
Unumquodque potest reparantur. Patientia sit virtus.
Re: /dev/dsp is missing
$ sudo apt-cache policy alsa-oss
alsa-oss:
Installed: 1.0.25-1
Candidate: 1.0.25-1
Version table:
*** 1.0.25-1 0
500 http://archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
100 /var/lib/dpkg/status
So, no, It doesn’t install /dev/dsp. I did belatedly find that there’s a python interface to alsa available, but it’s still in development and not part of the official Python library yet. I find it hard to believe that there’s currently no official way to play audio from Python. I must be missing something.
Re: /dev/dsp is missing
Well, installing OSS4 should give you /dev/dsp, but Ubuntu ripped out OSS support a long time ago, so I doubt that’s what you really want. You should purge the OSS4 packages and hope you didn’t bork all your audio.
Источник