https://wiki.archlinux.org/api.php?action=feedcontributions&user=Liquibyte&feedformat=atomArchWiki - User contributions [en]2024-03-29T13:17:53ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Arch_based_distributions_(active)&diff=200891Arch based distributions (active)2012-05-10T02:59:29Z<p>Liquibyte: </p>
<hr />
<div>[[Category:About Arch]]<br />
{{i18n|Arch Based Distributions (Active)}}<br />
[[fr:LiveCD]]<br />
<br />
See [[Arch Based Distributions (Inactive)|Inactive distributions]] for distributions which are no longer maintained.<br />
<br />
==Specialty Distributions==<br />
=== ArchBang ===<br />
ArchBang[http://wiki.archlinux.org/index.php/ArchBang] LIVE CD = Arch Linux w/ OpenBox (the name is inspired from "hash bang" which is one way of pronouncing "#!")<br />
<br />
*Homepage: http://www.archbang.org/<br />
*Forums: http://bbs.archbang.org/<br />
*Screenshot: http://archbang.org/wp-content/uploads/2011/10/2011-10-01-192203_1024x768_scrot.png<br />
<br />
=== Arch Hurd ===<br />
Arch Hurd is a port of Arch Linux to the GNU/Hurd platform<br />
<br />
*Homepage: http://www.archhurd.org/<br />
*Forums: http://bbs.archhurd.org/<br />
*Wiki: http://wiki.archhurd.org<br />
*Mailing Lists: http://lists.archhurd.org/<br />
<br />
Most discussions happens in #archhurd on irc.freenode.net.<br />
<br />
=== Arch Linux ARM ===<br />
[https://bbs.archlinux.org/viewtopic.php?id=117251 Arch Linux ARM is the new unified effort from PlugApps & ArchMobile].<br />
<br />
*Homepage: http://archlinuxarm.org/<br />
*Forums: http://archlinuxarm.org/forum/<br />
*Documentation: http://archlinuxarm.org/support<br />
*Screenshots:<br />
*DistroWatch Entry:<br />
<br />
=== ArchLinux PPC ===<br />
<br />
''"The goal of the Archlinux PPC porting project is to make our favourite distribution, Arch Linux, available for the PPC architecture. Our strong community is diverse and helpful, and we pride ourselves on the range of skillsets and uses for Arch that stem from it. Please check out the forums and mailing list to get your feet wet. Also glance through the wiki if you want to learn more about Arch."''<br><br />
:<small>Source: [http://archlinuxppc.org/ Arch Linux PPC]</small><br />
<br />
*Homepage: http://archlinuxppc.org/<br />
*Forums: http://bbs.archlinux.org/<br />
*Documentation: http://wiki.archlinux.org/index.php/Main_Page<br />
*Screenshots: <br />
*DistroWatch Entry:<br />
<br />
=== ArchPwn ===<br />
<br />
ArchPwn is a security based Linux Live CD/DVD system that aims to be a fully working swiss army knife for pentesting purpose. It is based on the Arch Linux distribution, and follows the Arch philosophy. It keeps the original system intact, and creates on top of it a package repository with all tools that a pentester needs.<br />
<br />
*Homepage: http://www.archpwn.org/index.php/Main_Page<br />
*Forums: <br />
*Documentation: http://www.archpwn.org/index.php/Main_Page<br />
*Screenshots: http://www.archpwn.org/index.php/Screenshots<br />
*DistroWatch Entry:<br />
<br />
=== ArchServer ===<br />
ArchServer is a derivative work of Arch Linux designed to be more stable in order to be suitable for server use.<br />
<br />
*Homepage: http://www.archserver.org<br />
*Forums: http://bbs.archserver.org<br />
*Documentation: http://docs.archserver.org<br />
*Screenshots: TBA<br />
*DistroWatch Entry: TBA<br />
<br />
=== archboot ===<br />
<br />
Archboot is designed for installation or rescue operations. It provides both the i686 and x86_64 architectures on one CD. It uses hwdetect and a different install script from the official Arch Linux install images. It runs in RAM using iniramfs, without any special filesystems like squashfs,<br />
thus it is limited to the RAM which is installed in your system.<br />
<br />
*Homepage: http://projects.archlinux.org/?p=archboot.git;a=summary<br />
*Forums: http://bbs.archlinux.org/<br />
*Documentation: ftp://ftp.archlinux.org/iso/archboot/Readme.txt<br />
*Screenshots: <br />
*DistroWatch Entry: <br />
<br />
=== archlive ===<br />
<br />
Archlive is a Simple-Chinese live system based on Arch GNU/Linux. It is distinct from the Arch Live! distribution, adding Chinese language software and packages, but it is based upon Arch Live!<br />
<br />
*Homepage: http://code.google.com/p/archlive/<br />
*Documentation: http://code.google.com/p/archlive/w/list<br />
*Screenshots: <br />
*DistroWatch Entry:<br />
<br />
=== Bridge Linux ===<br />
<br />
Bridge Linux is an Arch-based distro providing a workable OS out-of-the-box, while still using vanilla Arch repos and the AUR. Possible desktop environments at this time are LXDE, Openbox, GNOME, Cinnamon, Xfce, and KDE.<br />
<br />
*Homepage: http://millertechnologies.net<br />
*Forums: http://millertechnologies.net/forum<br />
*Screenshots: https://sourceforge.net/projects/bridgelinux/<br />
<br />
=== CDN Linux ===<br />
<br />
CDN Linux is a system based on Arch GNU/Linux. CDN is designed to servers and routers. It is developed by Polish Freesco Group.<br />
<br />
*Homepage: http://cdn.freesco.pl<br />
*Forums: http://forum.freesco.pl<br />
*Documentation: http://cdn.freesco.pl<br />
*Screenshots: http://cdn.freesco.pl<br />
*DistroWatch Entry: <br />
<br />
=== Chakra ===<br />
<br />
"''Our goal with Chakra is to provide an operating system for desktops that is easy to use, but still has all the functionality, clarity, power and speediness of a KISS operating system. In the long term, we want to build an operating system based on Arch Linux that meets most requirements desktop users have today, like easy installation of software, graphical system administration, configuring power management on mobile devices, or sharing an internet connection.''"<br><br />
:<small>Source: [http://chakra-project.org/about.html The Chakra Project - About]</small><br />
<br />
Chakra is a distribution heavily geared towards KDE4. The fresh install is GTK-free. All GTK apps are installed in a sandbox-like environment known as [http://chakra-linux.org/bundles.html bundles]. The project seeks for ease of use, using several home-grown graphical utilites for installing and maintanence. Warning: it is still under heavy development, nevertheless it is already suitable for everyday use. Expect some changes in the base system in the near future, like switching from Pacman to Akabei.<br />
<br />
*Homepage: http://chakra-project.org/<br />
*Forums: http://chakra-project.org/bbs/<br />
*Documentation: http://chakra-project.org/wiki/index.php/Main_Page<br />
*Screenshots: http://chakra-project.org/<br />
*DistroWatch Entry: http://distrowatch.com/table.php?distribution=chakra<br />
<br />
=== ConnochaetOS ===<br />
<br />
"''ConnochaetOS will be a free operating system for the desktop with old computers in mind but with modern software. ConnochaetOS will contain only free software, according to the GNU Guidelines for Free System Distributions, follow the KISS principle (Keep it small and simple), need as few resources as possible, be modern, but stable. We aim for minimal hardware requirements, as low as a Pentium I processor and 64 MB RAM for a graphical desktop. We decided to base ConnochaetOS on Arch Linux, but completely rebuild, since we want to support i586, and replace some packages with our own ones, because of footprint, stability or freedom.''"<br><br />
:<small>Source: [http://www.connochaetos.org/wiki/doku.php?id=connochaetos ConnochaetOS Website]</small><br />
<br />
*Homepage: http://www.connochaetos.org<br />
*Forums: http://www.connochaetos.org/forum<br />
*Documentation: http://www.connochaetos.org/wiki/doku.php?id=mainpage<br />
*Screenshots: http://www.connochaetos.org/wiki/doku.php?id=screenshots<br />
*DistroWatch Entry: http://distrowatch.com/table.php?distribution=connochaet<br />
<br />
=== CTKArch (formerly CTKArchLive) ===<br />
A lightweight Arch-based liveCD using c²DE (openbox) that includes English and French locales.<br />
*Homepage: http://ctkarch.org/<br />
*Forums: http://ctkarch.org/forum/<br />
*Documentation: http://ctkarch.org/documentation/ <br />
*Screenshots: http://ctkarch.org/download/<br />
*DistroWatch Entry: http://distrowatch.com/table.php?distribution=ctkarch<br />
<br />
=== DidJiX ===<br />
<br />
DidJiX is the free and open source digital DJ software Mixxx (http://www.mixxx.org/) powered by the simple and lightweight distribution Linux ArchLinux (http://www.archlinux.org/) on a usb live system! DidJiX is build with the Archiso project (https://wiki.archlinux.org/index.php/Archiso)<br />
*Homepage: http://didjix.blogspot.com/<br />
*Forums: <br />
*Documentation: http://didjix.blogspot.com/<br />
*Screenshots: http://didjix.blogspot.com/<br />
*DistroWatch Entry: <br />
<br />
=== Elegance ===<br />
<br />
Elegance is a Arch Linux spin-off that is heavily influenced by ArchBang[http://wiki.archlinux.org/index.php/ArchBang]. It comes with a small number of programs to start you off on building your own custom desktop.<br />
*Homepage: http://k2z.com<br />
*Forums: <br />
*Documentation:<br />
*Screenshots: <br />
*DistroWatch Entry:<br />
<br />
=== Kahel OS ===<br />
<br />
''"Kahel OS is the first and remains to be the only Filipino Linux Distro with the rolling release model on Arch Linux + GNOME. In the community, it is the first to release (non-beta) such Linux OS on Arch Linux + GNOME."''<br><br />
:<small>Source: [http://www.kahelos.org/ Kahel OS]</small><br />
*Homepage: http://www.kahelos.org/<br />
*Forums: http://forum.kahelos.org/<br />
*Documentation: http://wiki.kahelos.org/index.php?title=Main_Page<br />
*Screenshots: http://www.kahelos.org/gallery.php{{Linkrot|2011|09|04}}<br />
*DistroWatch Entry: http://distrowatch.com/table.php?distribution=kahelos<br />
<br />
=== LDR ===<br />
Project apparently no longer exists.<br />
<s>''"LDR stands for Linux Done Right. It is an Arch Linux derrived GNU/Linux distro which has many software components pre-configured so you can just install and get on with it!"''<br><br />
:<small>Source: [http://www.tommed.co.uk/ldr/ LDR Linux Distribution]</small><br />
*Homepage: http://www.tommed.co.uk/ldr/<br />
*Documentation: http://www.tommed.co.uk/ldr/wiki/index.php/Main_Page</s><br />
<br />
=== LinHES ===<br />
<br />
LinHES ('''Lin'''ux '''H'''ome '''E'''ntertainment '''S'''ystem) is a distro based heavily on Arch and centered around [http://mythtv.org MythTV], with the expressed goal of being a HES-appliance. Utilizing open source software and off the shelf hardware, you'll be able to assemble a box that can serve as a PVR, Jukebox, Image Viewer, and Game Station. Users can go from a blank hard drive to fully functional MythTV system in literally 15-20 min. For more information, please see the [[LinHES]] wikipage.<br />
<br />
*Homepage: http://www.linhes.org/<br />
*Forums: http://www.linhes.org/phpBB2<br />
*Documentation: http://mysettopbox.tv/pamphlet.html<br />
*Screenshots: http://www.thecodingstudio.com/opensource/linux/screenshots/index.php?linux_distribution_sm=<br />
*DistroWatch Entry: http://distrowatch.com/table.php?distribution=knoppmyth<br />
<br />
=== live.linuX-gamers.net ===<br />
<br />
The linuX-gamers Live DVD is a bootable medium with a collection of popular 3D games. It contains both the NVIDIA and ATI proprietary Linux drivers and includes the following games: BzFLag, Enemy Territory, Glest, Nexuiz, Sauerbraten, Torcs, Tremulous, True Combat: Elite, Warsow and World of Padman. Although the live DVD is based on Arch Linux, it does not offer any desktop Linux functionality except gaming.<br />
<br />
*Homepage: http://live.linux-gamers.net/<br />
*Forums: http://github.com/svenstaro/lglive<br />
*Documentation: http://github.com/svenstaro/lglive<br />
*Screenshots: http://live.linux-gamers.net/images/shot2.png<br />
*DistroWatch Entry: http://distrowatch.com/table.php?distribution=linuxgamers<br />
<br />
=== Mesk Linux ===<br />
<br />
Mesk Linux is a project aiming at showcasing Arch to Arabic-speaking users . The project is also working on localizing Arch tools and documentation .<br />
<br />
*Homepage: http://www.mesklinux.org/<br />
*Forums: http://www.mesklinux.org/<br />
*Documentation: http://www.wiki.mesklinux.org/<br />
*Screenshots: http://www.mesklinux.org/shots.php<br />
*DistroWatch Entry:<br />
<br />
=== Manjaro Linux ===<br />
<br />
Manjaro Linux is a user friendly distribution based on the Xfce desktop environment. It comes with a custom installer and additional scripts to install a preconfigured and out of the box working system which is fully compatible with Archlinux.<br />
<br />
*Homepage: http://manjarolinux.org/<br />
*Forums: http://forum.manjarolinux.org/<br />
*Documentation: http://wiki.manjarolinux.org/<br />
*Screenshots: http://manjarolinux.org/screenshots.html<br />
*DistroWatch Entry:<br />
<br />
=== Parabola GNU/Linux ===<br />
<br />
'''Parabola GNU/Linux''' is a fully free (as in freedom) rolling release distribution. It is approved by the [http://fsf.org FSF] and uses a Linux-libre kernel. The Parabola distro uses the Arch Repos and fully free replacements from the Libre Repo.<br />
<br />
*Homepage: http://parabolagnulinux.org<br />
*Wiki: http://wiki.parabolagnulinux.org<br />
*IRC: #parabola in Freenode<br />
<br />
=== Nosonja ===<br />
<br />
'''Nosonja''' is Arch Linux based computer operating system that uses Xfce as the default DE. The goal of Nosonja is to get Arch close to all beginners who want Linux on their computers, but do not want to reinstall their os every 6 months.<br />
<br />
*Homepage: https://plus.google.com/102479162698978916755/posts<br />
*New Homepage: http://nosonja.org/<br />
<br />
== Meta Distributions ==<br />
<br />
=== archiso ===<br />
<br />
[[archiso]] is a very simple set of bash scripts that allow for building live bootable CD/DVD/USB images based on Arch Linux. It uses a small uncomplicated code base and is actively developed. archiso is the tool used by Arch Linux to generate the official CD/USB images. It is a very generic tool, so it could potentially be used to generate anything from rescue systems, to install disks, to special interest live systems, and who knows what else. Simply put, if it involves Arch on a shiny coaster, it can do it. <br />
<br />
*Homepage: http://projects.archlinux.org/?p=archiso.git;a=summary<br />
*Forums http://bbs.archlinux.org/viewtopic.php?id=73878<br />
*Documentation: [[archiso|wiki article on archlinux.org]]<br />
*Screenshots:<br />
*DistroWatch Entry:<br />
<br />
=== Archiso-live ===<br />
<br />
Archiso-live is a fork of archiso that has since gained a fair bit of complexity in its development. Archiso-live undergoes rapid development with fresh releases posted on the dev blog found on its homepage. It uses a modular design approach based on slax. It even uses the slax initrd as a base module to get the system going. This allows archiso-live to be used in an everyday fashion since it has a full xfce desktop. It can also be greatly customized since it uses modules.<br />
<br />
*Homepage: http://godane.wordpress.com/ ([https://github.com/godane/archiso-live/tree/master git repo])<br />
*Forums: http://arch-live.2kool4u.net/forum/index.php<br />
*Documentation: http://arch-live.2kool4u.net/articles.php<br />
*Screenshots: http://arch-live.2kool4u.net/photogallery.php?album_id=1<br />
*DistroWatch Entry:<br />
<br />
=== larch ===<br />
<br />
[[larch]] is a collection of scripts used to create live CD/DVD/USB-stick versions of Arch Linux. One design aim is easy customization, so that even relatively inexperienced users can build personalized live CDs, containing whatever packages they want and with their own personal configurations. The resulting medium should also be usable for installation purposes, so that one has a customized Arch Linux installation/rescue medium. As the content can be chosen freely, a comfortable working environment is possible, in contrast to the rather Spartan standard Arch installation CD.<br />
<br />
*Homepage: http://larch.berlios.de/<br />
*Forums: <br />
*Documentation: http://larch.berlios.de/doc/index.html<br />
*Screenshots:<br />
*DistroWatch Entry:<br />
<br />
== Arch Influenced Distros ==<br />
<br />
===Alpine Linux===<br />
<br />
Alpine Linux is a run-from-RAM linux distribution. Its original target was small appliances like routers, VPN gateways, or embedded x86 devices. However, it supports hosting other Linux guest OSes under VServer control, making it an attractive hosting solution as well. Though Alpine Linux may not actually be based on Arch, its [http://git.alpinelinux.org/cgit/aports/tree/main/abuild/APKBUILD build system] is undoubtably inspired by Arch. [http://lists.busybox.net/pipermail/busybox/2009-January/068280.html 2][http://wiki.alpinelinux.org/w/index.php?title=Creating_an_Alpine_package&oldid=2701#depends_.26_makedepends 3]<br />
<br />
*Homepage: http://alpinelinux.org<br />
*Documentation: http://wiki.alpinelinux.org/w/index.php?title=Documentation<br />
<br />
=== Enlisy ===<br />
<br />
Enlisy is an i686 optimized Linux distribution for Pentium 2 based processors and higher. It is also as simple as possible when it comes to the construction of its underlying core. Enlisy uses its own package manager Apport, which is is based on Libpysrc and Libpypac, which are inspired by Arch's package manager Pacman. Enlisy also uses InitNG for the init system.<br />
<br />
*Homepage: http://enlisy.com/<br />
*Forums: http://enlisy.com/en/forum/<br />
*Documentation: http://enlisy.org/ewiki/Documentation<br />
*Screenshots: <br />
*DistroWatch Entry:<br />
<br />
=== Frugalware ===<br />
<br />
''"Frugalware Linux is a general-purpose Linux distribution designed for intermediate users who are familiar with command-line operations. It is based on Slackware, but uses a different package management system, Pacman."''<br><br />
:<small>Source: [[Wikipedia:Frugalware|Wikipedia]]</small><br />
<br />
*Homepage: http://frugalware.org<br />
*Forums: http://forums.frugalware.org<br />
*Documentation: http://frugalware.org/docs<br />
*Screenshots: http://frugalware.org/screenshots<br />
*DistroWatch Entry: http://distrowatch.com/frugalware</div>Liquibytehttps://wiki.archlinux.org/index.php?title=Open_Sound_System&diff=70872Open Sound System2009-06-20T03:38:14Z<p>Liquibyte: </p>
<hr />
<div>{{Accuracy}}<br />
[[Category:Sound (English)]]<br />
[[Category:Audio/Video (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|OSS}}<br />
{{i18n_entry|简体中文|OSS (简体中文)}}<br />
{{i18n_entry|Français|OSS (Français)}}<br />
{{i18n_entry|Türkçe|OSS (Türkçe)}}<br />
{{i18n_links_end}}<br />
<br />
= Introduction =<br />
The [http://developer.opensound.com Open Sound System] is a [http://4front-tech.com commercially-supported] sound architecture that works on several UNIX-like and POSIX-compatible systems, including Linux, FreeBSD, Solaris and BeOS/Haiku.<br />
<br />
Please note that this article is not about the old OSS, which is included in the Linux kernel sources and is more than 10 years old by now.<br />
<br />
This article is about the new OSS versions (often called OSSv4). These versions were previously proprietary - OSS became open source again in July 2007, and is currently available under GPL, BSD or CDDL licenses.<br />
<br />
= Advantages and disadvantages vs. ALSA =<br />
<br />
== Advantages over ALSA (for users) ==<br />
* Includes a transparent software mixer (vmix) in kernel space. This means multiple applications can access the sound device at the same time without problems.<br />
* The vmix mixer controls allow you to adjust the volume of each application individually.<br />
* Better support for some sound card models, for example for the Creative X-Fi.<br />
* Sound quality is usually better. '''reference needed to validate this statement'''<br />
* Better support for applications written for the OSS API, of course. The OSS API is widely spread and a lot of applications support it. The ALSA's OSS API emulation, however, is often buggy.<br />
<br />
== Advantages over ALSA (for developers) ==<br />
* Cleaner and easier to use API.<br />
* API is much better [http://manuals.opensound.com/developer documented].<br />
* Support for sound drivers in the userspace (oss_userdev).<br />
* Portability across all supported platforms. If the application works using OSS under Linux, it will work under FreeBSD and Solaris too, for example.<br />
* Portability across operating systems. It's [http://revolf.free.fr/Alchimie-7/Alchimie7_OSS_Haiku.en.pdf easier] to port OSS to a new operating system.<br />
<br />
== Disadvantages vs. ALSA ==<br />
* USB audio devices support is currently experimental under Linux.<br />
* Bluetooth audio devices are currently not supported.<br />
* AC'97 and HDAudio dial-up soft-modems (for example Si3055) are currently not supported.<br />
* MIDI support is currently not finished. However, you can still use MIDI with a software synthesizer like timidity or fluidsynth.<br />
* Suspend is currently not supported. You need to unload OSS (by using {{Codeline|soundoff}}) before suspending, and to reload OSS (by using {{Codeline|soundon}}) after resuming.<br />
* Automatic jack sensing currently doesn't work properly with '''some''' HDAudio-powered motherboards. This means that, depending on your motherboard model, you may have to manually switch off your speakers when plugging your earphone.<br />
<br />
= Installing =<br />
<br />
* Disable ALSA by blocking the <tt>soundcore</tt> module in {{Filename|/etc/[[rc.conf]]}}:<br />
<br />
MODULES=(!soundcore ..............<br />
<br />
And by rebooting.<br />
<br />
If you didn't want to reboot, you could also quit your desktop environment (if any) to free the soundcard, and go to pure console for doing the next steps.<br />
<br />
* Install OSS by running:<br />
<br />
# pacman -S oss<br />
<br />
* Start OSS by running:<br />
<br />
# /etc/rc.d/oss start<br />
<br />
* Add <tt>oss</tt> to your <tt>DAEMONS</tt> variable at {{Filename|/etc/rc.conf}}, so OSS is loaded automatically at each boot.<br />
<br />
* In the case OSS is not able to detect your card when starting it, run :<br />
<br />
# ossdetect -v<br />
<br />
Then {{Codeline|soundoff && soundon}} to reactivate it.<br />
<br />
<br />
'''Note:''' The above instructions will currently install OSS 4.1. If you want OSS 4.0, you can still find it at [http://aur.archlinux.org/packages.php?ID=23383 AUR].<br />
<br />
= Testing =<br />
<br />
You can test OSS by running:<br />
<br />
$ osstest<br />
<br />
{{Note| Beware the default volume is very loud. Avoid using earphones or lower the volume by using <tt>ossxmix</tt>. }}<br />
<br />
You should be able to hear music during the test process. If there is no audio, try to adjust the mixer as explained in the following sections and/or read the Troubleshooting sections.<br />
<br />
= The mixer =<br />
<br />
The command line mixer is called <tt>ossmix</tt>. It's very like the BSD audio mixer (<tt>mixerctl</tt>).<br />
<br />
A more friendly, graphical mixer, is available too. It's called <tt>ossxmix</tt>. It needs the optional depend <tt>gtk2</tt> to work.<br />
<br />
The <tt>ossxmix</tt> controls are explained in the following example:<br />
<br />
______________________________<br />
/ High Definition Audio ALC262 \ ----------------------------------> One tab for each sound card<br />
/________________________________\_______________________________<br />
|<br />
| [x] vmix0-enable [vmix0-rate: 48.000kHz] vmix0-channels \ The vmix (virtual mixer) special configurations<br />
| [ Stereo [v] ] |--> appear at the top. These include sampling rate<br />
| / and mixer priority. They are provided by OSS.<br />
| __codec1______________________________________________________ <br />
| | _jack_______________________________________________________ \ <br />
| | | _int-speaker____________________ __green_________________ |<br />
| | | | | | | These are your sound card configurations.<br />
| | | | _mode______ | | | | _mode______ | | | Every mixer control that is shown here is<br />
| | | | [ mix [v] ] o o [x] [ ]mute | | [ mix [v] ] o o [x] |--> provided by your sound card. Every sound card<br />
| | | | | | | | | | | specific control is shown here.<br />
| | | |________________________________| |_______________________ |<br />
| | |____________________________________________________________ |<br />
| |______________________________________________________________ /<br />
|<br />
| ___vmix0_______________________________________________________ \<br />
| | __mocp___ O O _firefox_ O O __pcm7___ O O | Here are the vmix mixer controls. These are<br />
| | | | O O | | x x | | O O | virtual mixer controls provided by OSS. Each<br />
| | | | | | x O | | | | x x | | | | O O | slider is the volume control of a different<br />
| | | o o [x] | x x | o o [x] | x x | o o [x] | O O |--> application. When one application uses the<br />
| | | | | | x x | | | | x x | | | | O O | sound card, its name is shown in the place of<br />
| | |_________| x x |_________| x x |_________| O O | the 'pcm#' labels. There are also sound level<br />
| |______________________________________________________________ | meter levels for each application.<br />
|________________________________________________________________ /<br />
<br />
=== Saving and restoring mixer settings ===<br />
<br />
If you wish to save your mixer settings manually, run <tt>savemixer</tt>. You will require to be a user with write permissions to {{Filename|/usr/lib/oss/etc/save.mixer}} or you'll need to use the <tt>-f</tt> switch to select another file. <tt>savemixer -L</tt> restores mixer settings.<br />
<br />
Please note that the init scripts run these commands before shutdown/after starting to keep mixer settings across boot, so most users don't need to worry about it.<br />
<br />
= Configuring Applications for OSS =<br />
<br />
== Skype ==<br />
<br />
The <tt>skype</tt> package only includes support for ALSA. To get an OSS-capable Skype, install the <tt>skype-oss</tt> package:<br />
<br />
# pacman -S skype-oss<br />
<br />
If you are using x86_64, you can get the [http://aur.archlinux.org/packages.php?ID=18312 bin32-skype-oss] package from AUR.<br />
<br />
== Wine ==<br />
<br />
* Run <tt>winecfg</tt>.<br />
<br />
$ winecfg<br />
<br />
* Go to the <tt>Audio</tt> tab.<br />
<br />
* Select <tt>OSS Driver</tt>.<br />
<br />
== Gajim ==<br />
By default Gajim uses {{Codeline|aplay -q}} to play a sound. To change this go in Advanced Settings and search for the {{Codeline|soundplayer}} variable. The ossplay program included in the oss package is a good replacement:<br />
<br />
{{Codeline|ossplay -qq}}<br />
<br />
== MOC ==<br />
<br />
To use MOC with OSS v4.1 you must change section OSSMixerDevice to OSSMixerDevice= /dev/ossmix in your config (located in /home/yourusername/.moc).<br />
And now MOC should work with OSS v4.1.<br />
Or you can compile moc-svn package from AUR (he got support for new vmix).<br />
<br />
== Other applications ==<br />
<br />
* If you can't get sound from an application not listed here, try looking at the [http://www.4front-tech.com/wiki/index.php/Configuring_Applications_for_OSSv4 Configuring Applications for OSSv4] page.<br />
* Search OSS specific packages by using {{Codeline|pacman -Ss -- '-oss'}} and [http://aur.archlinux.org/packages.php?K=-oss&start=0&PP=100| in AUR].<br />
<br />
= Troubleshooting =<br />
<br />
== Troubleshooting HDAudio devices ==<br />
<br />
=== Understanding why problems arise ===<br />
<br />
If you have a HDAudio sound device, it's very likely that you will have to adjust some mixer settings before your sound works.<br />
<br />
HDAudio devices are very powerful in the sense that they can contain a lot of small circuits (called ''widgets'') that can be adjusted by software at any time. These controls are exposed to the mixer, and they can be used, for example, to turn the earphone jack into a sound input jack instead of a sound output jack.<br />
<br />
However, there is a side effect, mainly because the HDAudio standard is more flexible than it perhaps should be, and because the vendors often only care to get their ''official drivers'' working.<br />
<br />
Then, when using HDAudio devices, you often find disorganized mixer controls, that doesn't work at all by default, and you are forced to try every mixer control combination, until it works.<br />
<br />
=== How to solve ===<br />
<br />
Open <tt>ossxmix</tt> and try to change every mixer control in the ''middle area'', that contains the sound card specific controls, as explained in the previous "[[OSS#The_mixer|The mixer]]" section.<br />
<br />
You'll probably want to setup a program to record/play continously in the background (e.g. {{Codeline|ossrecord - | ossplay -}} for recording or {{Codeline|osstest -lV}} for playing), while changing mixer settings in ossxmix in the foreground.<br />
<br />
* Raise every volume control slider.<br />
* In each option box, try to change the selected option, trying all the possible combinations.<br />
* If you get noise, try to lower and/or mute some volume controls, until you find the source of the noise.<br />
<br />
Please note again that you do '''not''' need to change any controls in the ''top area'' nor in the ''bottom area'', as they are virtual <tt>vmix</tt>-related mixer controls.<br />
<br />
== Troubleshooting other issues ==<br />
<br />
* If you get distorted sound, try lowering some volume control sliders.<br />
<br />
* If you need to change the default sound card, look at [http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Changing_the_default_sound_output here].<br />
<br />
* If you have another issues, try searching or asking for help at the [http://www.4front-tech.com/forum 4front forums].<br />
<br />
= Tips and Tricks =<br />
<br />
== Using multimedia keys with OSS ''''' ![http://aur.archlinux.org/packages.php?ID=22146/ WARNING, OSSVOL IS OUT OF DATE ON THE AUR]! ''''' --[[User:Liquibyte|Liquibyte]] 23:37, 19 June 2009 (EDT) ==<br />
An easy way to mute/unmute and increase/decrease the volume is to use the [http://www.opensound.com/wiki/index.php/Tips_And_Tricks#ossvol {{Codeline|ossvol}} script]. It is available in [[AUR]].<br />
<br />
Once you installed it try to toggle the sound:<br />
$ ossvol -t<br />
<br />
Type {{Codeline|ossvol -h}} for the other commands.<br />
<br />
If you don't know how to assign commands to your multimedia keys, see [[Extra Keyboard Keys]].<br />
<br />
==={{Codeline|ossvol}} troubleshooting===<br />
If you get an error like:<br />
Bad mixer control name(987) 'vol'<br />
you need to edit the script ({{Filename|/usr/bin/ossvol}}) and change the value of the {{Codeline|CHANNEL}} variable which is at the beginning of the script. For example mine is {{Codeline|CHANNEL<nowiki>=</nowiki>"vmix0-outvol"}}.<br />
<br />
== Other tips ==<br />
<br />
* [http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Starting_ossxmix_minimized_to_tray_on_desktop_startup Starting ossxmix minimized to tray on desktop startup].<br />
* [http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Recording_sound_output_of_a_program Recording sound output of a program].<br />
<br />
== Laptop suspend and hibernation ==<br />
<br />
OSS does not automatically support suspend meaning that OSS must be manually stopped prior to suspending or hibernating a laptop.<br />
<br />
OSS provides <tt>soundon</tt> and <tt>soundoff</tt> to enable and disable OSS, although any processes that use sound must be terminated first.<br />
<br />
The following script is a rather basic method of automatically unloading OSS prior to suspending and reloading afterwards. This has been tested with KDE 4.2 but has not tried in other desktop environments.<br />
<br />
* Save the contents of this script (as root) into {{Filename|/etc/pm/sleep.d/50ossound}}:<br />
<br />
#!/bin/sh<br />
. "${PM_FUNCTIONS}"<br />
<br />
suspend_osssound()<br />
{<br />
/usr/lib/oss/scripts/killprocs.sh<br />
/usr/sbin/soundoff<br />
}<br />
<br />
resume_osssound()<br />
{<br />
/usr/sbin/soundon<br />
}<br />
<br />
case "$1" in<br />
hibernate|suspend)<br />
suspend_osssound<br />
;;<br />
thaw|resume)<br />
resume_osssound<br />
;;<br />
*) exit $NA<br />
;;<br />
esac<br />
<br />
The KDE notify daemon (which provides the system sounds) will automatically reload itself after being terminated by OSS. <br />
<br />
{{Note|This script is rather basic and will terminate any application directly accessing OSS, this means save your work prior to suspending your laptop.}}<br />
<br />
== ALSA emulation ==<br />
<br />
=== Introduction ===<br />
<br />
You can instruct <tt>alsa-lib</tt> to use OSS as its audio output system. This works as a sort of ALSA emulation.<br />
<br />
Note, however, that this method may introduce additional latency in your sound output, and that the emulation is not complete and doesn't work with all applications. It doesn't work, for example, with programs that try to detect devices using ALSA.<br />
<br />
So, as most applications support OSS directly, use this method only as a last resort.<br />
<br />
In the future, more complete methods may be available for emulating ALSA, such as <tt>libsalsa</tt> and <tt>cuckoo</tt>.<br />
<br />
=== HOW-TO ===<br />
<br />
* Install the <tt>alsa-plugins</tt> package.<br />
<br />
# pacman -S alsa-plugins<br />
<br />
* Edit {{Filename|/etc/asound.conf}} as follows.<br />
<br />
pcm.oss {<br />
type oss<br />
device /dev/dsp<br />
}<br />
<br />
pcm.!default {<br />
type oss<br />
device /dev/dsp<br />
}<br />
<br />
ctl.oss {<br />
type oss<br />
device /dev/mixer<br />
}<br />
<br />
ctl.!default {<br />
type oss<br />
device /dev/mixer<br />
}<br />
<br />
{{Note | If you don't want to use OSS anymore, don't forget to revert changes that you do here in {{Filename|/etc/asound.conf}}.}}<br />
<br />
= Experimental packages =<br />
<br />
== Mercurial repository version ==<br />
<br />
There is a [http://aur.archlinux.org/packages.php?ID=21126 oss-mercurial package] in AUR. This package compiles and installs the latest OSS development version direcly from the Mercurial repository.<br />
<br />
You can try this package if you want to contribute code to OSS or if only a very recent change in OSS code introduced support to your sound device.<br />
<br />
=OSS and KDE4=<br />
<br />
KDE 4 uses the xine backend that does not have OSSv4 support because HAL doesn't support OSSv4 yet. As an alternative you could use a version of KDE's phonon with gstreamer support. The phonon version included with the KDE 4 install does not have gstreamer support but you can either add 'phonon-gstreamer' from AUR or build from abs:<br />
<br />
{{Note | I use [[KDEmod]] 4.2.2 includes Phonon with gstreamer support. I just rebooted and an "OSS default output" appeared in {{Codeline|systemsettings}}, I placed it on top and it works.}}<br />
<br />
{{Note | phonon-gstreamer is buggy and not all applications will work with it. Additionally gstreamer support in phonon is being dropped.}}<br />
<br />
To enable gstreamer support in phonon get the PKGBUILD with ABS. Install abs and run it as root.<br />
<br />
Then cp the phonon PKGBUILD:<br />
<br />
cp -a /var/abs/extra/phonon ~/abs/local/phonon<br />
<br />
cd into the new directory and open the {{Filename|PKGBUILD}} in your favorite editor.<br />
<br />
Change<br />
-DWITH_GStreamer=OFF<br />
to<br />
-DWITH_GStreamer=ON<br />
<br />
Now simply run makepkg and after it is done you can install phonon with gstreamer support with:<br />
<br />
pacman -U phonon*.pkg.tar.gz<br />
<br />
Last but not least install the needed gstreamer packages with<br />
<br />
pacman -S gstreamer0.10-plugins<br />
<br />
Next you will need to export the oss4sink variable:<br />
<br />
export PHONON_GST_AUDIOSINK=oss4sink<br />
<br />
In Systemsettings -> Multimedia select the Gstreamer backened which should enable your sound in KDE.<br />
<br />
Keep in mind that kmix does have sliders for applications-volume, so you have to use {{Codeline|ossxmix}} to change those.</div>Liquibytehttps://wiki.archlinux.org/index.php?title=Open_Sound_System&diff=70871Open Sound System2009-06-20T03:37:21Z<p>Liquibyte: /* Using multimedia keys with OSS */</p>
<hr />
<div>[[Category:Sound (English)]]<br />
[[Category:Audio/Video (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|OSS}}<br />
{{i18n_entry|简体中文|OSS (简体中文)}}<br />
{{i18n_entry|Français|OSS (Français)}}<br />
{{i18n_entry|Türkçe|OSS (Türkçe)}}<br />
{{i18n_links_end}}<br />
<br />
= Introduction =<br />
The [http://developer.opensound.com Open Sound System] is a [http://4front-tech.com commercially-supported] sound architecture that works on several UNIX-like and POSIX-compatible systems, including Linux, FreeBSD, Solaris and BeOS/Haiku.<br />
<br />
Please note that this article is not about the old OSS, which is included in the Linux kernel sources and is more than 10 years old by now.<br />
<br />
This article is about the new OSS versions (often called OSSv4). These versions were previously proprietary - OSS became open source again in July 2007, and is currently available under GPL, BSD or CDDL licenses.<br />
<br />
= Advantages and disadvantages vs. ALSA =<br />
<br />
== Advantages over ALSA (for users) ==<br />
* Includes a transparent software mixer (vmix) in kernel space. This means multiple applications can access the sound device at the same time without problems.<br />
* The vmix mixer controls allow you to adjust the volume of each application individually.<br />
* Better support for some sound card models, for example for the Creative X-Fi.<br />
* Sound quality is usually better. '''reference needed to validate this statement'''<br />
* Better support for applications written for the OSS API, of course. The OSS API is widely spread and a lot of applications support it. The ALSA's OSS API emulation, however, is often buggy.<br />
<br />
== Advantages over ALSA (for developers) ==<br />
* Cleaner and easier to use API.<br />
* API is much better [http://manuals.opensound.com/developer documented].<br />
* Support for sound drivers in the userspace (oss_userdev).<br />
* Portability across all supported platforms. If the application works using OSS under Linux, it will work under FreeBSD and Solaris too, for example.<br />
* Portability across operating systems. It's [http://revolf.free.fr/Alchimie-7/Alchimie7_OSS_Haiku.en.pdf easier] to port OSS to a new operating system.<br />
<br />
== Disadvantages vs. ALSA ==<br />
* USB audio devices support is currently experimental under Linux.<br />
* Bluetooth audio devices are currently not supported.<br />
* AC'97 and HDAudio dial-up soft-modems (for example Si3055) are currently not supported.<br />
* MIDI support is currently not finished. However, you can still use MIDI with a software synthesizer like timidity or fluidsynth.<br />
* Suspend is currently not supported. You need to unload OSS (by using {{Codeline|soundoff}}) before suspending, and to reload OSS (by using {{Codeline|soundon}}) after resuming.<br />
* Automatic jack sensing currently doesn't work properly with '''some''' HDAudio-powered motherboards. This means that, depending on your motherboard model, you may have to manually switch off your speakers when plugging your earphone.<br />
<br />
= Installing =<br />
<br />
* Disable ALSA by blocking the <tt>soundcore</tt> module in {{Filename|/etc/[[rc.conf]]}}:<br />
<br />
MODULES=(!soundcore ..............<br />
<br />
And by rebooting.<br />
<br />
If you didn't want to reboot, you could also quit your desktop environment (if any) to free the soundcard, and go to pure console for doing the next steps.<br />
<br />
* Install OSS by running:<br />
<br />
# pacman -S oss<br />
<br />
* Start OSS by running:<br />
<br />
# /etc/rc.d/oss start<br />
<br />
* Add <tt>oss</tt> to your <tt>DAEMONS</tt> variable at {{Filename|/etc/rc.conf}}, so OSS is loaded automatically at each boot.<br />
<br />
* In the case OSS is not able to detect your card when starting it, run :<br />
<br />
# ossdetect -v<br />
<br />
Then {{Codeline|soundoff && soundon}} to reactivate it.<br />
<br />
<br />
'''Note:''' The above instructions will currently install OSS 4.1. If you want OSS 4.0, you can still find it at [http://aur.archlinux.org/packages.php?ID=23383 AUR].<br />
<br />
= Testing =<br />
<br />
You can test OSS by running:<br />
<br />
$ osstest<br />
<br />
{{Note| Beware the default volume is very loud. Avoid using earphones or lower the volume by using <tt>ossxmix</tt>. }}<br />
<br />
You should be able to hear music during the test process. If there is no audio, try to adjust the mixer as explained in the following sections and/or read the Troubleshooting sections.<br />
<br />
= The mixer =<br />
<br />
The command line mixer is called <tt>ossmix</tt>. It's very like the BSD audio mixer (<tt>mixerctl</tt>).<br />
<br />
A more friendly, graphical mixer, is available too. It's called <tt>ossxmix</tt>. It needs the optional depend <tt>gtk2</tt> to work.<br />
<br />
The <tt>ossxmix</tt> controls are explained in the following example:<br />
<br />
______________________________<br />
/ High Definition Audio ALC262 \ ----------------------------------> One tab for each sound card<br />
/________________________________\_______________________________<br />
|<br />
| [x] vmix0-enable [vmix0-rate: 48.000kHz] vmix0-channels \ The vmix (virtual mixer) special configurations<br />
| [ Stereo [v] ] |--> appear at the top. These include sampling rate<br />
| / and mixer priority. They are provided by OSS.<br />
| __codec1______________________________________________________ <br />
| | _jack_______________________________________________________ \ <br />
| | | _int-speaker____________________ __green_________________ |<br />
| | | | | | | These are your sound card configurations.<br />
| | | | _mode______ | | | | _mode______ | | | Every mixer control that is shown here is<br />
| | | | [ mix [v] ] o o [x] [ ]mute | | [ mix [v] ] o o [x] |--> provided by your sound card. Every sound card<br />
| | | | | | | | | | | specific control is shown here.<br />
| | | |________________________________| |_______________________ |<br />
| | |____________________________________________________________ |<br />
| |______________________________________________________________ /<br />
|<br />
| ___vmix0_______________________________________________________ \<br />
| | __mocp___ O O _firefox_ O O __pcm7___ O O | Here are the vmix mixer controls. These are<br />
| | | | O O | | x x | | O O | virtual mixer controls provided by OSS. Each<br />
| | | | | | x O | | | | x x | | | | O O | slider is the volume control of a different<br />
| | | o o [x] | x x | o o [x] | x x | o o [x] | O O |--> application. When one application uses the<br />
| | | | | | x x | | | | x x | | | | O O | sound card, its name is shown in the place of<br />
| | |_________| x x |_________| x x |_________| O O | the 'pcm#' labels. There are also sound level<br />
| |______________________________________________________________ | meter levels for each application.<br />
|________________________________________________________________ /<br />
<br />
=== Saving and restoring mixer settings ===<br />
<br />
If you wish to save your mixer settings manually, run <tt>savemixer</tt>. You will require to be a user with write permissions to {{Filename|/usr/lib/oss/etc/save.mixer}} or you'll need to use the <tt>-f</tt> switch to select another file. <tt>savemixer -L</tt> restores mixer settings.<br />
<br />
Please note that the init scripts run these commands before shutdown/after starting to keep mixer settings across boot, so most users don't need to worry about it.<br />
<br />
= Configuring Applications for OSS =<br />
<br />
== Skype ==<br />
<br />
The <tt>skype</tt> package only includes support for ALSA. To get an OSS-capable Skype, install the <tt>skype-oss</tt> package:<br />
<br />
# pacman -S skype-oss<br />
<br />
If you are using x86_64, you can get the [http://aur.archlinux.org/packages.php?ID=18312 bin32-skype-oss] package from AUR.<br />
<br />
== Wine ==<br />
<br />
* Run <tt>winecfg</tt>.<br />
<br />
$ winecfg<br />
<br />
* Go to the <tt>Audio</tt> tab.<br />
<br />
* Select <tt>OSS Driver</tt>.<br />
<br />
== Gajim ==<br />
By default Gajim uses {{Codeline|aplay -q}} to play a sound. To change this go in Advanced Settings and search for the {{Codeline|soundplayer}} variable. The ossplay program included in the oss package is a good replacement:<br />
<br />
{{Codeline|ossplay -qq}}<br />
<br />
== MOC ==<br />
<br />
To use MOC with OSS v4.1 you must change section OSSMixerDevice to OSSMixerDevice= /dev/ossmix in your config (located in /home/yourusername/.moc).<br />
And now MOC should work with OSS v4.1.<br />
Or you can compile moc-svn package from AUR (he got support for new vmix).<br />
<br />
== Other applications ==<br />
<br />
* If you can't get sound from an application not listed here, try looking at the [http://www.4front-tech.com/wiki/index.php/Configuring_Applications_for_OSSv4 Configuring Applications for OSSv4] page.<br />
* Search OSS specific packages by using {{Codeline|pacman -Ss -- '-oss'}} and [http://aur.archlinux.org/packages.php?K=-oss&start=0&PP=100| in AUR].<br />
<br />
= Troubleshooting =<br />
<br />
== Troubleshooting HDAudio devices ==<br />
<br />
=== Understanding why problems arise ===<br />
<br />
If you have a HDAudio sound device, it's very likely that you will have to adjust some mixer settings before your sound works.<br />
<br />
HDAudio devices are very powerful in the sense that they can contain a lot of small circuits (called ''widgets'') that can be adjusted by software at any time. These controls are exposed to the mixer, and they can be used, for example, to turn the earphone jack into a sound input jack instead of a sound output jack.<br />
<br />
However, there is a side effect, mainly because the HDAudio standard is more flexible than it perhaps should be, and because the vendors often only care to get their ''official drivers'' working.<br />
<br />
Then, when using HDAudio devices, you often find disorganized mixer controls, that doesn't work at all by default, and you are forced to try every mixer control combination, until it works.<br />
<br />
=== How to solve ===<br />
<br />
Open <tt>ossxmix</tt> and try to change every mixer control in the ''middle area'', that contains the sound card specific controls, as explained in the previous "[[OSS#The_mixer|The mixer]]" section.<br />
<br />
You'll probably want to setup a program to record/play continously in the background (e.g. {{Codeline|ossrecord - | ossplay -}} for recording or {{Codeline|osstest -lV}} for playing), while changing mixer settings in ossxmix in the foreground.<br />
<br />
* Raise every volume control slider.<br />
* In each option box, try to change the selected option, trying all the possible combinations.<br />
* If you get noise, try to lower and/or mute some volume controls, until you find the source of the noise.<br />
<br />
Please note again that you do '''not''' need to change any controls in the ''top area'' nor in the ''bottom area'', as they are virtual <tt>vmix</tt>-related mixer controls.<br />
<br />
== Troubleshooting other issues ==<br />
<br />
* If you get distorted sound, try lowering some volume control sliders.<br />
<br />
* If you need to change the default sound card, look at [http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Changing_the_default_sound_output here].<br />
<br />
* If you have another issues, try searching or asking for help at the [http://www.4front-tech.com/forum 4front forums].<br />
<br />
= Tips and Tricks =<br />
<br />
== Using multimedia keys with OSS ''''' ![http://aur.archlinux.org/packages.php?ID=22146/ WARNING, OSSVOL IS OUT OF DATE ON THE AUR]! ''''' --[[User:Liquibyte|Liquibyte]] 23:37, 19 June 2009 (EDT) ==<br />
An easy way to mute/unmute and increase/decrease the volume is to use the [http://www.opensound.com/wiki/index.php/Tips_And_Tricks#ossvol {{Codeline|ossvol}} script]. It is available in [[AUR]].<br />
<br />
Once you installed it try to toggle the sound:<br />
$ ossvol -t<br />
<br />
Type {{Codeline|ossvol -h}} for the other commands.<br />
<br />
If you don't know how to assign commands to your multimedia keys, see [[Extra Keyboard Keys]].<br />
<br />
==={{Codeline|ossvol}} troubleshooting===<br />
If you get an error like:<br />
Bad mixer control name(987) 'vol'<br />
you need to edit the script ({{Filename|/usr/bin/ossvol}}) and change the value of the {{Codeline|CHANNEL}} variable which is at the beginning of the script. For example mine is {{Codeline|CHANNEL<nowiki>=</nowiki>"vmix0-outvol"}}.<br />
<br />
== Other tips ==<br />
<br />
* [http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Starting_ossxmix_minimized_to_tray_on_desktop_startup Starting ossxmix minimized to tray on desktop startup].<br />
* [http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Recording_sound_output_of_a_program Recording sound output of a program].<br />
<br />
== Laptop suspend and hibernation ==<br />
<br />
OSS does not automatically support suspend meaning that OSS must be manually stopped prior to suspending or hibernating a laptop.<br />
<br />
OSS provides <tt>soundon</tt> and <tt>soundoff</tt> to enable and disable OSS, although any processes that use sound must be terminated first.<br />
<br />
The following script is a rather basic method of automatically unloading OSS prior to suspending and reloading afterwards. This has been tested with KDE 4.2 but has not tried in other desktop environments.<br />
<br />
* Save the contents of this script (as root) into {{Filename|/etc/pm/sleep.d/50ossound}}:<br />
<br />
#!/bin/sh<br />
. "${PM_FUNCTIONS}"<br />
<br />
suspend_osssound()<br />
{<br />
/usr/lib/oss/scripts/killprocs.sh<br />
/usr/sbin/soundoff<br />
}<br />
<br />
resume_osssound()<br />
{<br />
/usr/sbin/soundon<br />
}<br />
<br />
case "$1" in<br />
hibernate|suspend)<br />
suspend_osssound<br />
;;<br />
thaw|resume)<br />
resume_osssound<br />
;;<br />
*) exit $NA<br />
;;<br />
esac<br />
<br />
The KDE notify daemon (which provides the system sounds) will automatically reload itself after being terminated by OSS. <br />
<br />
{{Note|This script is rather basic and will terminate any application directly accessing OSS, this means save your work prior to suspending your laptop.}}<br />
<br />
== ALSA emulation ==<br />
<br />
=== Introduction ===<br />
<br />
You can instruct <tt>alsa-lib</tt> to use OSS as its audio output system. This works as a sort of ALSA emulation.<br />
<br />
Note, however, that this method may introduce additional latency in your sound output, and that the emulation is not complete and doesn't work with all applications. It doesn't work, for example, with programs that try to detect devices using ALSA.<br />
<br />
So, as most applications support OSS directly, use this method only as a last resort.<br />
<br />
In the future, more complete methods may be available for emulating ALSA, such as <tt>libsalsa</tt> and <tt>cuckoo</tt>.<br />
<br />
=== HOW-TO ===<br />
<br />
* Install the <tt>alsa-plugins</tt> package.<br />
<br />
# pacman -S alsa-plugins<br />
<br />
* Edit {{Filename|/etc/asound.conf}} as follows.<br />
<br />
pcm.oss {<br />
type oss<br />
device /dev/dsp<br />
}<br />
<br />
pcm.!default {<br />
type oss<br />
device /dev/dsp<br />
}<br />
<br />
ctl.oss {<br />
type oss<br />
device /dev/mixer<br />
}<br />
<br />
ctl.!default {<br />
type oss<br />
device /dev/mixer<br />
}<br />
<br />
{{Note | If you don't want to use OSS anymore, don't forget to revert changes that you do here in {{Filename|/etc/asound.conf}}.}}<br />
<br />
= Experimental packages =<br />
<br />
== Mercurial repository version ==<br />
<br />
There is a [http://aur.archlinux.org/packages.php?ID=21126 oss-mercurial package] in AUR. This package compiles and installs the latest OSS development version direcly from the Mercurial repository.<br />
<br />
You can try this package if you want to contribute code to OSS or if only a very recent change in OSS code introduced support to your sound device.<br />
<br />
=OSS and KDE4=<br />
<br />
KDE 4 uses the xine backend that does not have OSSv4 support because HAL doesn't support OSSv4 yet. As an alternative you could use a version of KDE's phonon with gstreamer support. The phonon version included with the KDE 4 install does not have gstreamer support but you can either add 'phonon-gstreamer' from AUR or build from abs:<br />
<br />
{{Note | I use [[KDEmod]] 4.2.2 includes Phonon with gstreamer support. I just rebooted and an "OSS default output" appeared in {{Codeline|systemsettings}}, I placed it on top and it works.}}<br />
<br />
{{Note | phonon-gstreamer is buggy and not all applications will work with it. Additionally gstreamer support in phonon is being dropped.}}<br />
<br />
To enable gstreamer support in phonon get the PKGBUILD with ABS. Install abs and run it as root.<br />
<br />
Then cp the phonon PKGBUILD:<br />
<br />
cp -a /var/abs/extra/phonon ~/abs/local/phonon<br />
<br />
cd into the new directory and open the {{Filename|PKGBUILD}} in your favorite editor.<br />
<br />
Change<br />
-DWITH_GStreamer=OFF<br />
to<br />
-DWITH_GStreamer=ON<br />
<br />
Now simply run makepkg and after it is done you can install phonon with gstreamer support with:<br />
<br />
pacman -U phonon*.pkg.tar.gz<br />
<br />
Last but not least install the needed gstreamer packages with<br />
<br />
pacman -S gstreamer0.10-plugins<br />
<br />
Next you will need to export the oss4sink variable:<br />
<br />
export PHONON_GST_AUDIOSINK=oss4sink<br />
<br />
In Systemsettings -> Multimedia select the Gstreamer backened which should enable your sound in KDE.<br />
<br />
Keep in mind that kmix does have sliders for applications-volume, so you have to use {{Codeline|ossxmix}} to change those.</div>Liquibyte