https://wiki.archlinux.org/api.php?action=feedcontributions&user=PaterSiul&feedformat=atomArchWiki - User contributions [en]2024-03-29T07:00:48ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Open_Sound_System&diff=258234Open Sound System2013-05-22T10:37:31Z<p>PaterSiul: /* Skype */</p>
<hr />
<div>[[Category:Sound]]<br />
[[Category:Audio/Video]]<br />
[[de:OSS]]<br />
[[es:Open Sound System]]<br />
[[fr:OSS]]<br />
[[it:Open Sound System]]<br />
[[tr:Açık_Ses_Sistemi_(OSS)]]<br />
[[zh-CN:Open Sound System]]<br />
The [[Wikipedia:Open Sound System|Open Sound System]] (or '''OSS''') is an alternative sound architecture for Unix-like and POSIX-compatible systems. OSS version 3 was the original sound system for Linux, but was superseded by the [[Advanced Linux Sound Architecture]] (or '''ALSA''') in 2002 when OSS version 4 became proprietary software. OSSv4 became free software again in 2007 when [http://www.opensound.com/ 4Front Technologies] released its source code and provided it under the GPL license.<br />
<br />
== Comparisons with ALSA ==<br />
Some advantages and disadvantages compared to using the Advanced Linux Sound Architecture.<br />
<br />
=== OSS Advantages (users) ===<br />
* Per-application volume control.<br />
* Lower latency due to everything running within the Linux Kernel. Initial response time in audio applications is usually better.<br />
* OSS always has sound mixing, ALSA does not.<br />
* Sound mixing is of higher quality, due to OSS using more precise math in its sound mixing.<br />
* Some legacy cards have better support.<br />
<br />
=== OSS Advantages (developers) ===<br />
* Support for drivers in userspace.<br />
* Cross-platform (OSS runs on BSDs and Solaris).<br />
* Cleaner and easier to use API.<br />
<br />
=== ALSA advantages over OSS ===<br />
<br />
* Better support for USB audio devices.<br />
* Support for Bluetooth audio devices.<br />
* Support for [[Wikipedia:AC'97|AC'97]] and [[Wikipedia:Intel_High_Definition_Audio|HD Audio]] dial-up soft-modems such as Si3055.<br />
* Better support for MIDI devices.<br />
* Support for suspend.<br />
* Better support for jack detection.<br />
<br />
{{Note|<br />
* OSS has experimental output support for USB audio devices, but no input.<br />
* OSS supports MIDI devices with the help of a software synthesizer such as [[Timidity]] or [[FluidSynth]].<br />
}}<br />
<br />
== Install ==<br />
Install {{Pkg|oss}} from the [[Official Repositories|official repositories]].<br />
<br />
There is also a development version of OSS available in the [[AUR]] with the {{AUR|oss-hg}} package.<br />
<br />
{{Note|{{AUR|oss-hg}} does not yet have a [[systemd]] unit file, but you can use the one from [https://projects.archlinux.org/svntogit/community.git/tree/trunk/oss.service?h&#61;packages/oss oss]. For this you need to copy it to {{ic|/usr/lib/systemd/system/oss4.service}}.}}<br />
<br />
This will install the OSS, run the OSS install script (temporarily disabling the ALSA modules) and install the OSS kernel modules. Since ALSA is enabled by default in the boot scripts, you need to disable it so it does not conflict with OSS. You can do this by blacklisting the module:<br />
<br />
{{hc|/etc/modprobe.d/alsa_blacklist.conf|<br />
install soundcore /bin/false}}<br />
<br />
After blacklisting the module, you can [[Daemon|enable]] the '''oss''' (or '''oss4''' if using the development version) daemon to start at boot.<br />
<br />
In case you are not part of the ''audio'' group, add yourself and '''relogin''' for the changes to take effect:<br />
# gpasswd -a $USER audio<br />
<br />
In case OSS is not able to detect your card when starting it, run:<br />
<br />
# ossdetect -v<br />
# soundoff && soundon<br />
<br />
== Testing ==<br />
<br />
{{Warning|The default volume is very loud, avoid using earphones and physically lower the volume of your speakers (if possible) before running the test.}}<br />
<br />
'''Test OSS by running:'''<br />
<br />
$ osstest<br />
<br />
You should be able to hear music during the test process. If there is no audio, try to adjust the volume or refer to the [[#Troubleshooting]] section.<br />
<br />
If you want to hear sounds from more than one application simultaneously, you need {{ic|vmix}}, OSS's software mixer. <br />
<br />
'''Check that vmix is enabled by running:'''<br />
<br />
$ ossmix -a | grep -i vmix<br />
<br />
You should see a line like {{ic|<nowiki>vmix0-enable ON|OFF (currently ON)</nowiki>}}. If you do not see any lines beginning with {{ic|vmix}}, it probably means that {{ic|vmix}} has not been attached to your sound device. To attach {{ic|vmix}}, issue the command:<br />
<br />
$ vmixctl attach device<br />
<br />
where ''device'' is your sound device, e.g. {{ic|/dev/oss/oss_envy240/pcm0}}.<br />
<br />
To avoid having to issue this command manually in the future, you can add it to {{ic|/usr/lib/oss/soundon.user}}, as suggested [http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Changing_the_default_sound_output here].<br />
<br />
If you get a '''"Device or resource busy"''' error, you need to add {{ic|1=vmix_no_autoattach=1}} to {{ic|/usr/lib/oss/conf/osscore.conf}} and then reboot.<br />
<br />
'''See which devices are detected by running:'''<br />
<br />
$ ossinfo<br />
<br />
You should be able to see your devices listed under ''Device Objects'' or ''Audio Devices''. If the device that you want to use is not at the top of one of these sections, you have to edit {{ic|/usr/lib/oss/etc/installed_drivers}} and place the driver for your device at the very top. It may be required to do a:<br />
$ soundoff && soundon<br />
If this does not work, comment all drivers listed except the ones for your device.<br />
<br />
== Volume Control Mixer ==<br />
To control the volume of various devices, mixers levels will need to be set. There are two mixers:<br />
* '''ossmix''': a command-line mixer, similar to the BSD audio mixer {{ic|mixerctl}}. <br />
* '''ossxmix''': a GTK+-based graphical mixer.<br />
<br />
The basic {{ic|ossxmix}} controls look like:<br />
<br />
{{bc|<nowiki><br />
/ High Definition Audio ALC262 \ --------------------------------> 1<br />
/________________________________\________________________________<br />
| \<br />
| [x] vmix0-enable [vmix0-rate: 48.000kHz] vmix0-channels |--> 2<br />
| [ Stereo [v] ] |<br />
| |<br />
| __codec1______________________________________________________ |<br />
| | _jack______________________________________________________ ||--> 3<br />
| | | _int-speaker_________________ _green_________________ |||<br />
| | | | | | | |||<br />
| | | | _mode_____ | | | | _mode_____ | | | |||<br />
| | | | [ mix [v] ] o o [x] [ ]mute | | [ mix [v] ] o o [x] | |||<br />
| | | | | | | | | | | |||<br />
| | | |_____________________________| |_______________________| |||<br />
| | |___________________________________________________________|||<br />
| |______________________________________________________________||<br />
| ___vmix0______________________________________________________ |<br />
| | __mocp___ O O _firefox_ O O __pcm7___ O O | |--> 4<br />
| | | | O O | | x x | | O O | |<br />
| | | | | | x O | | | | x x | | | | O O | |<br />
| | | o o [x] | x x | o o [x] | x x | o o [x] | O O | |<br />
| | | | | | x x | | | | x x | | | | O O | |<br />
| | |_________| x x |_________| x x |_________| O O | |<br />
| |_____________________________________________________________| |<br />
|_________________________________________________________________|<br />
</nowiki>}}<br />
<br />
# One tab for each sound card<br />
# The {{ic|vmix}} (virtual mixer) special configurations appear at the top. These include sampling rate and mixer priority.<br />
# These are your sound card jack configurations (input and output). Every mixer control that is shown here is provided by your sound card.<br />
# Application {{ic|vmix}} mixer controls and sound meters. If the application is not actively playing a sound it will be labeled as {{ic|pcm08, pcm09...}} and when the application is playing the application name will be shown.<br />
<br />
=== Color Definitions ===<br />
For high definition (HD) audio, {{ic|ossxmix}} will color jack configurations by their pre-defined jack colors:<br />
<br />
{| style="border: 1px solid #CCCCCC; background-color: #dddddf"<br />
! Color<br />
! Type<br />
! Connector<br />
|- style=color:black;background:lightgreen<br />
|green<br />
| front channels (stereo output)<br />
| 3.5mm TRS<br />
|- style=color:white;background:black <br />
|black<br />
| rear channels (stereo output)<br />
| 3.5mm TRS<br />
|- style=color:white;background:gray<br />
|grey<br />
| side channels (stereo output)<br />
|3.5mm TRS<br />
|- style=color:black;background:gold<br />
|gold<br />
| center and subwoofer (dual output)<br />
|3.5mm TRS<br />
|- style=color:black;background:lightblue<br />
|blue<br />
| line level (stereo input)<br />
|3.5mm TRS<br />
|- style=color:black;background:pink <br />
|pink<br />
| microphone (mono input)<br />
|3.5mm TS<br />
|}<br />
<br />
=== Saving Mixer Levels ===<br />
Mixer levels are saved when you shut off your computer. If you want to save the mixer level immediately, execute as root:<br />
# savemixer<br />
<br />
{{ic|savemixer}} can be used to write mixer levels to a file with the {{ic|-f}} switch and restore by the {{ic|-L}} switch.<br />
<br />
=== Other Mixers ===<br />
Other mixers that have support for OSS:<br />
* {{App|Gnome Volume Control| for [[GNOME]].|http://library.gnome.org/users/gnome-volume-control/stable/|{{Pkg|gnome}}}}<br />
* {{App|Kmix|for [[KDE]].|http://www.kde.org/applications/multimedia/kmix/|{{Pkg|kdemultimedia-kmix}}}}<br />
* {{App|VolWheel|for [[LXDE]].|http://oliwer.net/b/volwheel.html|{{Pkg|volwheel}}}}<br />
<br />
After installing VolWheel, you will need to do the following to enable OSS support:<br />
* add it to the [[LXDE]] {{ic|autostart}} file:<br />
echo "volwheel" >> ~/.config/lxsession/LXDE/autostart<br />
* right click on the system tray icon, choose the ''Preferences'' item and then change:<br />
** Driver: '''OSS'''.<br />
** Default Channel: '''vmix0-outvol''' (find out what channel to use from {{ic|ossmix}}).<br />
** Default Mixer: '''ossxmix'''.<br />
** In the MiniMixer tab (optional), add '''vmix0-outvol''' and optionally others.<br />
<br />
== Configuring Applications for OSS ==<br />
<br />
=== Applications that use GStreamer ===<br />
If you have problems with applications that use Gstreamer for audio, you can try removing {{Pkg|pulseaudio}} and installing the {{Pkg|gstreamer0.10-good-plugins}} package which is needed by {{ic|oss4sink}} and {{ic|oss4src}}.<br />
<br />
Then you have to change the GStreamer settings to output the sound to OSS instead of the default ALSA with {{ic|gstreamer-properties}} (part of the {{Pkg|gnome-media}} package). After starting {{ic|gstreamer-properties}}, you have to modify the fields as follows:<br />
* in the ''Default Output'' section: if OSS is not available as a plugin, change ''Plugin'' to '''Custom''' and ''Pipeline'' to '''oss4sink'''.<br />
* in the ''Default Input'' section: if OSS is not available, change ''Plugin'' to '''Custom''' and ''Pipeline'' to '''oss4src'''.<br />
<br />
{{Note|You can also use {{ic|osssrc}} as an alternative to {{ic|oss4src}} if you find that it produces better sound.}}<br />
<br />
Some applications (e.g. Rhythmbox, Totem) do not read the settings set by {{ic|gstreamer-properties}}, as they rely on {{ic|musicaudiosink}} instead of {{ic|audiosink}} (which is modified by {{ic|gstreamer-properties}}). <br />
<br />
To work around this, you can set the values for {{ic|audiosink}} with {{ic|gstreamer-properties}} and use {{ic|gconf-editor}} to copy the value of {{ic|/system/gstreamer/0.10/default/audiosink}} to {{ic|musicaudiosink}} (at the same location).<br />
<br />
If you are using Phonon with the GStreamer backend you will need to set a environmental variable:<br />
export PHONON_GST_AUDIOSINK=oss4sink<br />
<br />
You can add this to your {{ic|~/.bashrc}} to be loaded on login.<br />
<br />
=== Applications that use OpenAL ===<br />
<br />
By default OpenAL uses ALSA. To change this, simply define the usage of OSS in {{ic|/etc/openal/alsound.conf}}:<br />
{{hc|/etc/openal/alsound.conf|<br />
drivers<nowiki>=</nowiki>oss<br />
}}<br />
<br />
=== Audacity ===<br />
<br />
If [http://audacity.sourceforge.net/ Audacity] starts, but it complains that it cannot open the device or simply does not play anything, then you may be using {{ic|vmix}} which prevents Audacity from having exclusive access to your sound device. To fix this, before running Audacity, run:<br />
$ ossmix vmix0-enable OFF<br />
<br />
You can restore {{ic|vmix}} after closing Audacity with:<br />
$ ossmix vmix0-enable ON<br />
<br />
=== Gajim ===<br />
By default, [http://gajim.org/ Gajim] uses {{ic|aplay -q}} to play a sound. For OSS you can change it to the equivalent {{ic|ossplay -qq}} by going to ''Edit > Preferences > Advanced'', opening the ''Advanced Configuration Editor'' and modifying the {{ic|soundplayer}} variable accordingly.<br />
<br />
=== MOC ===<br />
To use [[Moc|MOC]] with OSS v4.1 you must change {{ic|OSSMixerDevice}} to {{ic|/dev/ossmix}} in your configuration file (located in {{ic|~/.moc}}). For issues with the interface try changing the {{ic|OSSMixerChannel}} by pressing {{Keypress|w}} in {{ic|mocp}} (to change to the sofware mixer).<br />
<br />
=== MPD ===<br />
[[MPD]] is configured through {{ic|/etc/mpd.conf}} or {{ic|~/.mpdconf}}. Check both of these files, looking for something that looks like:<br />
{{hc|/etc/mpd.conf|<br />
...<br />
audio_output {<br />
type "alsa"<br />
name "Some Device Name"<br />
}<br />
...}}<br />
<br />
If you find an uncommented (the lines do not begin with #'s) ALSA configuration like the one above, comment all of it out, or delete it, and add the following:<br />
{{hc|/etc/mpd.conf|<br />
...<br />
audio_output {<br />
type "oss"<br />
name "My OSS Device"<br />
}<br />
...}}<br />
<br />
Further configuration might not be necessary for all users. However, if you experience issues (in that MPD does not work properly after it has been restarted), or if you like having specific (i.e. more user-configured, less auto-configured) configuration files, the audio output for OSS can be more specifically configured as follows: <br />
* First, run:<br />
$ ossinfo | grep /dev/dsp<br />
<br />
* Look for the line that says something similar to {{ic|/dev/dsp -> /dev/oss/<SOME_CARD_IDENTIFIER>/pcm0}}. Take note of what your {{ic|<SOME_CARD_IDENTIFIER>}} is, and add these lines to your OSS {{ic|audio_output}} in your MPD configuration file:<br />
{{hc|/etc/mpd.conf|<br />
...<br />
audio_output {<br />
type "oss"<br />
name "My OSS Device"<br />
'''device "/dev/oss/<SOME_CARD_IDENTIFIER>/pcm0"'''<br />
'''mixer_device "/dev/oss/<SOME_CARD_IDENTIFIER>/mix0"'''<br />
}<br />
...<br />
}}<br />
<br />
See also: [[Music Player Daemon#Global Configuration]].<br />
<br />
=== MPlayer ===<br />
If you are using a GUI (SMplayer, GNOME MPlayer, etc.) you can select OSS as the default output in the settings dialogs. If you use [[MPlayer]] from the command-line, you should specify the sound output: <br />
$ mplayer -ao oss /some/file/to/play.mkv<br />
<br />
If you do not want to bother typing it over and over again add {{ic|1=ao=oss}} to your configuration file (at {{ic|~/.mplayer/config}}).<br />
<br />
See also: [[Mplayer#Configuration]].<br />
<br />
=== Skype ===<br />
The {{Pkg|skype}} package only includes support for ALSA, since OSS support was dropped in the recent versions. To get an OSS-capable [[Skype]], install the {{Pkg|skype-oss}} package from the Community repo.<br />
<br />
Or use {{Pkg|pulseaudio}} with module-oss: Edit {{Ic|/etc/pulse/default.pa}}, comment out the line that starts with {{Ic|load-module module-udev-detect}} and add {{Ic|1=load-module module-oss device="/dev/dsp" sink_name=output source_name=input mmap==0}}.<br />
<br />
See also: [[Skype#Skype-OSS Sound (Pre-2.0)]].<br />
<br />
=== VLC media player ===<br />
You can select OSS as the default output in the audio settings.<br />
<br />
=== Wine ===<br />
To set OSS support in [[Wine]] start:<br />
$ winecfg<br />
and go to the {{ic|Audio}} tab and select the {{ic|OSS Driver}}.<br />
<br />
See also: [[Wine#Sound]].<br />
<br />
===Other applications===<br />
<br />
* If you can not 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 for OSS specific packages by using {{ic|pacman -Ss -- -oss}} or by looking in the [https://aur.archlinux.org/packages.php?K=-oss&start=0&PP=100 AUR].<br />
<br />
== Tips and tricks ==<br />
<br />
=== Using multimedia keys with OSS ===<br />
An easy way to mute/unmute and increase/decrease the volume is to use the {{AUR|ossvol}} script, available in the [[AUR]]. For more information about the script see [http://www.opensound.com/wiki/index.php/Tips_And_Tricks#ossvol this article] on the OSS wiki.<br />
<br />
Once you installed it, type:<br />
$ ossvol -t<br />
to toggle mute, or:<br />
$ ossvol -h<br />
to see the available commands.<br />
<br />
{{Note|If {{ic|ossvol}} gives an error like '''Bad mixer control name(987) 'vol'''', you need to edit the {{ic|/usr/bin/ossvol}} script and change the {{ic|CHANNEL}} variable to your default channel (usually {{ic|vmix0-outvol}}).}}<br />
<br />
If you want to use multimedia keys with {{ic|ossvol}}, see [[Extra Keyboard Keys]] and make sure they are properly configured. After that you can use, for example, [[Xbindkeys]] to bind them to the {{ic|ossvol}} script. Add the following to your {{ic|~/.xbindkeysrc}} file:<br />
{{hc|~/.xbindkeysrc|<br />
# Toggle mute<br />
"ossvol -t"<br />
m:0x0 + c:121<br />
XF86AudioMute<br />
<br />
# Lower volume<br />
"ossvol -d 2"<br />
m:0x0 + c:122<br />
XF86AudioLowerVolume<br />
<br />
# Raise volume<br />
"ossvol -i 2"<br />
m:0x0 + c:123<br />
XF86AudioRaiseVolume<br />
}}<br />
and optionally change the multimedia keys with whatever shortcuts you prefer.<br />
<br />
=== Changing the Sample Rate ===<br />
Changing the output sample rate is not obvious at first. Sample rates can only be changed by root and {{ic|vmix}} must be unused by any programs when a change is requested. Before you follow any of these steps, ensure you are going through a receiver/amplifier and using quality speakers and not simply computer speakers. If you are only using computer speakers, do not bother changing anything here as you will not notice a difference.<br />
<br />
By default the sample rate is 48000hz. There are several conditions in which you may want to change this. This all depends on your usage patterns. You want the sample rate you are using to match the media you use the most. If your computer has to change the sampling rate of the media to suit the hardware it is likely, though not guaranteed, that you will have a loss in audio quality. This is most noticeable in down sampling (ie. 96000hz &rarr; 48000hz). There is an article about this issue in [http://www.stereophile.com/news/121707lucky/ Stereophile] which was [http://lists.apple.com/archives/coreaudio-api/2008/Jan/msg00272.html discussed] on Apple's ''CoreAudio API'' mailing list if you wish to learn more about this issue.<br />
<br />
Some example sample rates:<br />
<br />
; 44100hz: Sample rate of standard [[Wikipedia:Red Book (CD standard)|Red Book]] audio CDs.<br />
; 88000hz: Sample rate of [[Wikipedia:Super Audio CD|SACD]] high definition audio discs/downloads. It is rare that your motherboard will support this sample rate.<br />
; 96000hz: Sample rate of most high definition audio downloads. If your motherboard is an [[Wikipedia:AC'97|AC'97]] motherboard, this is likely to be your highest bitrate.<br />
; 192000hz: Sample rate of BluRay, and some (very few) high definition downloads. Support for external audio receiver equipment is limited to high end audio. Not all motherboards support this. An example of a motherboard chipset that would support this includes [[Wikipedia:Intel High Definition Audio|HD Audio]]. <br />
<br />
To check what your sample rate is currently set to, run:<br />
ossmix | grep rate<br />
<br />
You are likely to see {{ic|vmix0-rate <decimal value> (currently 48000) (Read-only)}}.<br />
<br />
If you do not see a {{ic|vmix0-rate}} (or {{ic|vmix1-rate}}, etc.) being outputted, then it probably means that {{ic|vmix}} is disabled. In that case, OSS will use the rate requested by the program which uses the device, so this section does not apply. Exception to this are Envy24 (and Envy24HT) cards that have a special setting {{ic|envy24.rate}} which has a similar function (see the {{ic|oss_envy24}} manpage).<br />
<br />
To change your sample rate:<br />
# First, make sure your card is able to use the new rate. Run {{ic|ossinfo -v2}} and see if the wanted rate is in the ''Native sample rates'' output.<br />
# As root, run {{ic|/usr/lib/oss/scripts/killprocs.sh}}. Be aware, this will close any program that currently has an open sound channel.<br />
# After all programs occupying {{ic|vmix}} are terminated, run as root: {{ic|vmixctl rate /dev/dsp 96000}} replacing the rate with your desired sample rate (and {{ic|ossmix envy24.rate 96000}} if applicable).<br />
# Run {{ic|<nowiki>ossmix | grep rate</nowiki>}} and check for {{ic|vmix0-rate <decimal value> (currently 96000) (Read-only)}} to see if you were successful.<br />
#'''To make the changes permanent''' add the following to the {{ic|soundon.user}} file:<br />
{{hc|/usr/lib/oss/soundon.user|<br />
#!/bin/sh<br />
<br />
vmixctl rate /dev/dsp 96000<br />
# ossmix envy24.rate 96000 # uncomment if you have an Envy24(HT) card<br />
<br />
exit 0<br />
}}<br />
and make it executable:<br />
# chmod +x /usr/lib/oss/soundon.user<br />
<br />
=== A simple system tray applet ===<br />
For those wanting a very lightweight OSS system tray applet see [http://pastebin.furver.se/0xflchkfz/ this one].<br />
<br />
To install it:<br />
* Download [http://pastebin.furver.se/0xflchkfz/0xflchkfz.txt the script] with whatever name you want (e.g. {{ic|ossvolctl}})<br />
* Make it executable:<br />
$ chmod +x ossvolctl<br />
* And copy it to your {{ic|/usr/bin}}:<br />
# cp ossvolctl /usr/bin/ossvolctl<br />
or:<br />
# install -Dm755 ossvolctl /usr/bin/ossvolctl<br />
<br />
=== Start ossxmix docked to the system tray on startup ===<br />
<br />
==== KDE ====<br />
<br />
Create an application launcher file named {{ic|ossxmix.desktop}} in you local application launchers directory ({{ic|~/.local/share/applications/}} with:<br />
{{hc|~/.local/share/applications/ossxmix.desktop|<nowiki><br />
[Desktop Entry]<br />
Name=Open Sound System Mixer<br />
GenericName=Audio Mixer<br />
Exec=ossxmix -b<br />
Icon=audio-card<br />
Categories=Application;GTK;AudioVideo;Player;<br />
Terminal=false<br />
Type=Application<br />
Encoding=UTF-8</nowiki><br />
}}<br />
<br />
To have it autostart with your system, add it to the list in ''System Settings > System Administration > Startup and Shutdown > Autostart''.<br />
<br />
==== Gnome ====<br />
<br />
As root create a file {{ic|/usr/local/bin/ossxmix_bg}} with the following content:<br />
{{hc|/usr/local/bin/ossxmix_bg|<br />
#!/bin/sh<br />
<br />
exec /usr/bin/ossxmix -b<br />
}}<br />
<br />
Then go to ''System > Preferences > Start Up Applications'' and:<br />
* Click ''Add'', type {{ic|OSSMIX}} in the ''Name'' field and {{ic|/usr/local/bin/ossxmix_bg}} in ''Command'' field then click ''Add Button''.<br />
* Login and logout to see the changes.<br />
<br />
=== Record sound output from a program ===<br />
<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 />
=== Suspend and Hibernation ===<br />
<br />
OSS does not automatically support suspend, it must be manually stopped prior to suspending or hibernating and restarted afterwards.<br />
<br />
OSS provides {{ic|soundon}} and {{ic|soundoff}} to enable and disable OSS, although they only stop OSS if all processes that use sound are terminated first.<br />
<br />
The following script is a rather basic method of automatically unloading OSS prior to suspending and reloading afterwards.<br />
{{hc|/usr/lib/systemd/system-sleep/50osssound.sh|<br />
#!/bin/sh<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 />
pre)<br />
suspend_osssound<br />
;;<br />
post)<br />
resume_osssound<br />
;;<br />
*) exit $NA<br />
;;<br />
esac<br />
}}<br />
<br />
Save the contents of this script (as root) into {{ic|/usr/lib/systemd/system-sleep/50osssound.sh}} and make it executable:<br />
# chmod a+x /usr/lib/systemd/system-sleep/50osssound.sh<br />
<br />
{{Warning|This script is rather basic and will terminate any application directly accessing OSS. Save your work prior to suspending/hibernating.}}<br />
<br />
An alternative would be to use [[Suspend_to_RAM|s2ram]] for suspending. Just create a suspend script to {{ic|/sbin/suspend}} and make it executable.<br />
{{bc|<nowiki><br />
#!/bin/sh<br />
<br />
## Checking if you are a root or not<br />
if ! [ -w / ]; then<br />
echo >&2 "This script must be run as root"<br />
exit 1<br />
fi<br />
<br />
s2ram -f<br />
<br />
sleep 2<br />
<br />
/etc/rc.d/oss restart 2>/tmp/oss.txt || echo "OSS restart failed, check /tmp/oss.txt for information"<br />
</nowiki>}}<br />
With this, all your apps should be fine.<br />
<br />
{{Note |If you are using Opera you must kill {{ic|operapluginwrapper}} before suspend. To do this add {{ic|1=pid=$(pidof operapluginwrapper) && kill $pid}} before {{ic|s2ram -f}}.}}<br />
<br />
=== Changing the Default Sound Output ===<br />
<br />
When running {{ic|osstest}}, the first test passes for the first channel, but not for the stereo or right channel, it sounds distorted/hisses. If this is what your sound is like, then it is set to the wrong output.<br />
<br />
*** Scanning sound adapter #-1 ***<br />
/dev/oss/oss_hdaudio0/pcm0 (audio engine 0): HD Audio play front<br />
- Performing audio playback test... <br />
<left> OK <right> OK <stereo> OK <measured srate 47991.00 Hz (-0.02%)> <br />
<br />
The left sounded good, the right and stereo were the distorted ones.<br />
<br />
Let the test continue until you get a working output:<br />
/dev/oss/oss_hdaudio0/spdout0 (audio engine 5): HD Audio play spdif-out <br />
- Performing audio playback test... <br />
<left> OK <right> OK <stereo> OK <measured srate 47991.00 Hz (-0.02%)> <br />
<br />
If this passed the test on all left, right and stereo, proceed to next step.<br />
<br />
For the command to change the default output see [http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Changing_the_default_sound_output this OSS wiki article]. Change it to what works for you, for example:<br />
# ln -sf /dev/oss/oss_hdaudio0/spdout0 /dev/dsp_multich<br />
For surround sound (4.0-7.1) choose {{ic|dsp_multich}}, for only 2 channels, {{ic|dsp}} is sufficient. See [http://manuals.opensound.com/usersguide/dsp.html this] for all available devices. <br />
<br />
=== Creative Sound Blaster X-Fi Surround 5.1 SB1090 USB ===<br />
This information is taken from the [http://www.4front-tech.com/forum/viewtopic.php?f=3&t=3423 4front-tech forum].<br />
<br />
It is surprising to learn that the external card does not work just because of a missing true return value in the function {{ic|write_control_value(...)}} in {{ic|ossusb_audio.c}}.<br />
<br />
To fix this, a recompile of OSS is necessary, for now.<br />
<br />
* Grab the latest OSS from the Arch Repo<br />
https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/oss<br />
* Extract it<br />
* {{ic|cd}} into the folder<br />
* run {{ic|makepkg --nobuild}}<br />
* {{ic|cd}} to {{ic|src/kernel/drv/oss_usb/}} and edit {{ic|ossusb_audio.c}}: add a {{ic|return 1;}}.<br />
** should look like so:<br />
{{hc|ossusb_audio.c|<br />
static int<br />
write_control_value (ossusb_devc * devc, udi_endpoint_handle_t * endpoint,<br />
int ctl, int l, unsigned int v)<br />
{<br />
return 1;<br />
...<br />
}}<br />
<br />
* {{ic|cd}} to {{ic|src/kernel/setup}} and edit {{ic|srcconf_linux.inc}}, search for {{ic|-Werror}} and remove it, otherwise OSS will not compile.<br />
* do {{ic|makepkg --noextract}}<br />
<br />
Now you must install the package with {{ic|pacman -U}}. Remove OSS first if already installed.<br />
<br />
=== ALSA emulation ===<br />
You can instruct {{ic|alsa-lib}} 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 does not work with all applications. It does not 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 {{ic|libsalsa}} and {{ic|cuckoo}}.<br />
<br />
==== Instructions ====<br />
<br />
* Install the {{ic|alsa-plugins}} package, available in the official repositories.<br />
<br />
* Edit {{ic|/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 do not want to use OSS anymore, do not forget to revert changes in {{ic|/etc/asound.conf}}.}}<br />
<br />
=== Settings for a specific driver ===<br />
If something is not working, there is a possibility that some of your OSS settings are driver specific or just wrong for your driver.<br />
<br />
To solve this:<br />
* Find out which driver is used<br />
<br />
{{hc|<nowiki>$ lspci -vnn | grep -i -A 15 audio</nowiki>|<br />
<nowiki>00:1e.2 Multimedia audio controller [0401]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller [8086:266e] (rev 03)<br />
Subsystem: Hewlett-Packard Company NX6110/NC6120 [103c:099c]<br />
Flags: bus master, medium devsel, latency 0, IRQ 21<br />
I/O ports at 2100 [size=256]<br />
I/O ports at 2200 [size=64]<br />
Memory at d0581000 (32-bit, non-prefetchable) [size=512]<br />
Memory at d0582000 (32-bit, non-prefetchable) [size=256]<br />
Capabilities: <access denied><br />
Kernel driver in use: *oss_ich*<br />
Kernel modules: snd-intel8x0</nowiki><br />
}}<br />
<br />
* Locate configuration file for device in:<br />
# cd /usr/lib/oss/conf/<br />
<br />
* Try changing defaults. There are only few settings, and they are self explanatory <br />
<br />
For example, the setting: <br />
ich_jacksense = 1 <br />
in {{ic|oss_ich.conf}} turns on {{ic|jack-sense}} (which is responsible for recognizing plugged headphones and muting the speaker). Other settings for {{ic|jack-sense}} can be found in {{ic|hdaudio.conf}} where you have to change the {{ic|hdaudio_jacksense}} variable.<br />
<br />
* [[Daemon|Restart]] the '''oss''' daemon for changes take effects.<br />
<br />
== Troubleshooting ==<br />
<br />
=== Troubleshooting HD Audio devices ===<br />
<br />
==== Understanding the problem ====<br />
<br />
If you have a HD Audio sound device, it is very likely that you will have to adjust some mixer settings before your sound works.<br />
<br />
HD Audio 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 are also bad side effects, mainly because the HD Audio standard is more flexible than it perhaps should be, and because the vendors often only care to get their ''official drivers'' working.<br />
<br />
When using HD Audio devices, you often find disorganized mixer controls, that do not work at all by default, and you are forced to try every mixer control combination possible, until it works.<br />
<br />
==== Solution ====<br />
<br />
Open {{ic|ossxmix}} and try to change every mixer control in the '''middle area''', that contains the sound card specific controls, as explained in the [[OSS#Volume Control Mixer]] section.<br />
<br />
You will probably want to setup a program to record/play continuously in the background (e.g. {{ic|<nowiki>ossrecord - | ossplay -</nowiki>}} for recording or {{ic|osstest -lV}} for playing), while changing mixer settings in {{ic|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 />
* Editing {{ic|/usr/lib/oss/conf/oss_hdaudio.conf}}, uncommenting and changing {{ic|1=hdaudio_noskip=0}} to a value from '''0-7''' can give you more jack options in {{ic|ossxmix}}.<br />
{{Note|If you modify this file, [[Daemon|restart]] the '''oss''' daemon for the changes to take effect.}}<br />
<br />
=== MMS sound cracking in Totem ===<br />
If you hear various cracks or strange noises in Totem during playback, you can try using another backend such as [[FFmpeg]]. This will not fix the issue that somehow pops up in GStreamer when playing MMS streams but it will give you the option to play it with good sound quality. Playing it in MPlayer is simple:<br />
# mplayer mmsh://yourstreamurl<br />
<br />
=== Microphone playing through output channels ===<br />
<br />
By default, OSS plays back the microphone through the speakers. To disable this in {{ic|ossxmix}} find the ''Misc'' section and uncheck every {{ic|input-mix-mute}} box.<br />
<br />
== See also ==<br />
* [http://www.opensound.com/ Official Website]<br />
* [http://www.opensound.com/wiki OSS Wiki]<br />
* [http://www.opensound.com/forum/index.php OSS Forum]<br />
* [http://www.opensound.com/developer/index.html Developer Information]<br />
* [http://opensound.hg.sourceforge.net/hgweb/opensound/opensound/summary Sourceforge Repository]</div>PaterSiulhttps://wiki.archlinux.org/index.php?title=Aiptek_Tablet&diff=211731Aiptek Tablet2012-07-01T13:53:50Z<p>PaterSiul: Added to Category: Input devices</p>
<hr />
<div>[[Category:Input devices]]<br />
This has been tested with an Aiptek HyperPen 12000U. I have no idea if it works with a different tablet.<br />
<br />
==Installation==<br />
<br />
You need to install {{Pkg|xf86-input-aiptek}}<br />
pacman -S xf86-input-aiptek<br />
<br />
Create {{Ic|/etc/udev/rules.d/20-aiptek.rules}} with the following content:<br />
ACTION!="add|change", GOTO="xorg_aiptek_end"<br />
KERNEL!="event[0-9]*", GOTO="xorg_aiptek_end"<br />
<br />
ATTRS{idVendor}=="08ca", ATTRS{idProduct}=="0010", ENV{x11_driver}="aiptek", SYMLINK+="input/aiptektablet"<br />
<br />
LABEL="xorg_aiptek_end"<br />
<br />
Create {{Ic|/etc/X11/xorg.conf.d/20-aiptek.conf}} with the following content<br />
Section "InputClass"<br />
Identifier "pen"<br />
Driver "aiptek"<br />
Option "Device" "/dev/input/aiptektablet"<br />
Option "SendCoreEvents" "true"<br />
Option "USB" "on"<br />
Option "Type" "stylus"<br />
Option "Mode" "absolute"<br />
Option "zMin" "0"<br />
Option "zMax" "511"<br />
EndSection<br />
Section "InputClass"<br />
Identifier "pen"<br />
Driver "aiptek"<br />
Option "Device" "/dev/input/aiptektablet"<br />
Option "SendCoreEvents" "true"<br />
Option "USB" "on"<br />
Option "Type" "erasor"<br />
Option "Mode" "absolute"<br />
Option "zMin" "0"<br />
Option "zMax" "511"<br />
EndSection<br />
Section "InputClass"<br />
Identifier "pen"<br />
Driver "aiptek"<br />
Option "Device" "/dev/input/aiptektablet"<br />
Option "SendCoreEvents" "true"<br />
Option "USB" "on"<br />
Option "Type" "cursor"<br />
Option "Mode" "absolute"<br />
Option "zMin" "0"<br />
Option "zMax" "511"<br />
EndSection<br />
<br />
Then restart udev and X or your display manager (gdm, kdm, slim, ...)<br />
<br />
==Gimp==<br />
Should work right away. If not, those settings worked for me:<br />
<br />
Edit -> Input Devices -> Aiptek<br />
* Mode: Screen<br />
* X: 1<br />
* Y: 2<br />
* Pressure: 3<br />
* X-Tilt, Y-Tilt and Wheel shouldn't matter</div>PaterSiulhttps://wiki.archlinux.org/index.php?title=Aiptek_Tablet&diff=211730Aiptek Tablet2012-07-01T13:12:00Z<p>PaterSiul: </p>
<hr />
<div>This has been tested with an Aiptek HyperPen 12000U. I have no idea if it works with a different tablet.<br />
<br />
==Installation==<br />
<br />
You need to install {{Pkg|xf86-input-aiptek}}<br />
pacman -S xf86-input-aiptek<br />
<br />
Create {{Ic|/etc/udev/rules.d/20-aiptek.rules}} with the following content:<br />
ACTION!="add|change", GOTO="xorg_aiptek_end"<br />
KERNEL!="event[0-9]*", GOTO="xorg_aiptek_end"<br />
<br />
ATTRS{idVendor}=="08ca", ATTRS{idProduct}=="0010", ENV{x11_driver}="aiptek", SYMLINK+="input/aiptektablet"<br />
<br />
LABEL="xorg_aiptek_end"<br />
<br />
Create {{Ic|/etc/X11/xorg.conf.d/20-aiptek.conf}} with the following content<br />
Section "InputClass"<br />
Identifier "pen"<br />
Driver "aiptek"<br />
Option "Device" "/dev/input/aiptektablet"<br />
Option "SendCoreEvents" "true"<br />
Option "USB" "on"<br />
Option "Type" "stylus"<br />
Option "Mode" "absolute"<br />
Option "zMin" "0"<br />
Option "zMax" "511"<br />
EndSection<br />
Section "InputClass"<br />
Identifier "pen"<br />
Driver "aiptek"<br />
Option "Device" "/dev/input/aiptektablet"<br />
Option "SendCoreEvents" "true"<br />
Option "USB" "on"<br />
Option "Type" "erasor"<br />
Option "Mode" "absolute"<br />
Option "zMin" "0"<br />
Option "zMax" "511"<br />
EndSection<br />
Section "InputClass"<br />
Identifier "pen"<br />
Driver "aiptek"<br />
Option "Device" "/dev/input/aiptektablet"<br />
Option "SendCoreEvents" "true"<br />
Option "USB" "on"<br />
Option "Type" "cursor"<br />
Option "Mode" "absolute"<br />
Option "zMin" "0"<br />
Option "zMax" "511"<br />
EndSection<br />
<br />
Then restart udev and X or your display manager (gdm, kdm, slim, ...)<br />
<br />
==Gimp==<br />
Should work right away. If not, those settings worked for me:<br />
<br />
Edit -> Input Devices -> Aiptek<br />
* Mode: Screen<br />
* X: 1<br />
* Y: 2<br />
* Pressure: 3<br />
* X-Tilt, Y-Tilt and Wheel shouldn't matter</div>PaterSiulhttps://wiki.archlinux.org/index.php?title=Aiptek_Tablet&diff=211729Aiptek Tablet2012-07-01T13:08:24Z<p>PaterSiul: </p>
<hr />
<div>This has been tested with an Aiptek HyperPen 12000U. I have no idea if it works with a different tablet.<br />
<br />
==Installation==<br />
<br />
You need to install {{Pkg|xf86-input-aiptek}}<br />
pacman -S xf86-input-aiptek<br />
<br />
Create /etc/udev/rules.d/20-aiptek.rules with the following content:<br />
ACTION!="add|change", GOTO="xorg_aiptek_end"<br />
KERNEL!="event[0-9]*", GOTO="xorg_aiptek_end"<br />
<br />
ATTRS{idVendor}=="08ca", ATTRS{idProduct}=="0010", ENV{x11_driver}="aiptek", SYMLINK+="input/aiptektablet"<br />
<br />
LABEL="xorg_aiptek_end"<br />
<br />
Create /etc/X11/xorg.conf.d/20-aiptek.conf with the following content<br />
Section "InputClass"<br />
Identifier "pen"<br />
Driver "aiptek"<br />
Option "Device" "/dev/input/aiptektablet"<br />
Option "SendCoreEvents" "true"<br />
Option "USB" "on"<br />
Option "Type" "stylus"<br />
Option "Mode" "absolute"<br />
Option "zMin" "0"<br />
Option "zMax" "511"<br />
EndSection<br />
Section "InputClass"<br />
Identifier "pen"<br />
Driver "aiptek"<br />
Option "Device" "/dev/input/aiptektablet"<br />
Option "SendCoreEvents" "true"<br />
Option "USB" "on"<br />
Option "Type" "erasor"<br />
Option "Mode" "absolute"<br />
Option "zMin" "0"<br />
Option "zMax" "511"<br />
EndSection<br />
Section "InputClass"<br />
Identifier "pen"<br />
Driver "aiptek"<br />
Option "Device" "/dev/input/aiptektablet"<br />
Option "SendCoreEvents" "true"<br />
Option "USB" "on"<br />
Option "Type" "cursor"<br />
Option "Mode" "absolute"<br />
Option "zMin" "0"<br />
Option "zMax" "511"<br />
EndSection<br />
<br />
Then restart udev and X or your display manager (gdm, kdm, slim, ...)<br />
<br />
==Gimp==<br />
Should work right away. If not, those settings worked for me:<br />
<br />
Edit -> Input Devices -> Aiptek<br />
* Mode: Screen<br />
* X: 1<br />
* Y: 2<br />
* Pressure: 3<br />
* X-Tilt, Y-Tilt and Wheel shouldn't matter</div>PaterSiulhttps://wiki.archlinux.org/index.php?title=Aiptek_Tablet&diff=211693Aiptek Tablet2012-07-01T09:53:15Z<p>PaterSiul: </p>
<hr />
<div>This has been tested with an Aiptek HyperPen 12000U. I have no idea if it works with a different tablet.<br />
<br />
==Installation==<br />
<br />
You need to install {{Pkg|xf86-input-aiptek}}<br />
pacman -S xf86-input-aiptek<br />
<br />
Create /etc/udev/rules.d/20-aiptek.rules with the following content:<br />
ACTION!="add|change", GOTO="xorg_aiptek_end"<br />
KERNEL!="event[0-9]*", GOTO="xorg_aiptek_end"<br />
<br />
ATTRS{idVendor}=="08ca", ATTRS{idProduct}=="0010", ENV{x11_driver}="aiptek", SYMLINK+="input/aiptektablet"<br />
<br />
LABEL="xorg_aiptek_end"<br />
<br />
Create /etc/X11/xorg.conf.d/20-aiptek.conf with the following content<br />
Section "InputClass"<br />
Identifier "pen"<br />
MatchProduct "Aiptek|AIPTEK|aiptek"<br />
MatchDevicePath "/dev/input/event*"<br />
Driver "aiptek"<br />
Option "SendCoreEvents" "true"<br />
Option "USB" "on"<br />
Option "Type" "stylus"<br />
Option "Mode" "absolute"<br />
Option "zMin" "0"<br />
Option "zMax" "511"<br />
EndSection<br />
Section "InputClass"<br />
Identifier "pen"<br />
MatchProduct "Aiptek|AIPTEK|aiptek"<br />
MatchDevicePath "/dev/input/event*"<br />
Driver "aiptek"<br />
Option "SendCoreEvents" "true"<br />
Option "USB" "on"<br />
Option "Type" "erasor"<br />
Option "Mode" "absolute"<br />
Option "zMin" "0"<br />
Option "zMax" "511"<br />
EndSection<br />
Section "InputClass"<br />
Identifier "pen"<br />
MatchProduct "Aiptek|AIPTEK|aiptek"<br />
MatchDevicePath "/dev/input/event*"<br />
Driver "aiptek"<br />
Option "SendCoreEvents" "true"<br />
Option "USB" "on"<br />
Option "Type" "cursor"<br />
Option "Mode" "absolute"<br />
Option "zMin" "0"<br />
Option "zMax" "511"<br />
EndSection<br />
<br />
Then restart udev and X or your display manager (gdm, kdm, slim, ...)<br />
<br />
==Gimp==<br />
Should work right away. If not, those settings worked for me:<br />
<br />
Edit -> Input Devices -> Aiptek<br />
* Mode: Screen<br />
* X: 1<br />
* Y: 2<br />
* Pressure: 3<br />
* X-Tilt, Y-Tilt and Wheel shouldn't matter</div>PaterSiulhttps://wiki.archlinux.org/index.php?title=Aiptek_Tablet&diff=211692Aiptek Tablet2012-07-01T09:52:32Z<p>PaterSiul: Created page with "This has been tested with an Aiptek HyperPen 12000U. I have no Idea if it works with a different Tablet. ==Installation== You need to install {{Pkg|xf86-input-aiptek}} pacm..."</p>
<hr />
<div>This has been tested with an Aiptek HyperPen 12000U. I have no Idea if it works with a different Tablet.<br />
<br />
==Installation==<br />
<br />
You need to install {{Pkg|xf86-input-aiptek}}<br />
pacman -S xf86-input-aiptek<br />
<br />
Create /etc/udev/rules.d/20-aiptek.rules with the following content:<br />
ACTION!="add|change", GOTO="xorg_aiptek_end"<br />
KERNEL!="event[0-9]*", GOTO="xorg_aiptek_end"<br />
<br />
ATTRS{idVendor}=="08ca", ATTRS{idProduct}=="0010", ENV{x11_driver}="aiptek", SYMLINK+="input/aiptektablet"<br />
<br />
LABEL="xorg_aiptek_end"<br />
<br />
Create /etc/X11/xorg.conf.d/20-aiptek.conf with the following content<br />
Section "InputClass"<br />
Identifier "pen"<br />
MatchProduct "Aiptek|AIPTEK|aiptek"<br />
MatchDevicePath "/dev/input/event*"<br />
Driver "aiptek"<br />
Option "SendCoreEvents" "true"<br />
Option "USB" "on"<br />
Option "Type" "stylus"<br />
Option "Mode" "absolute"<br />
Option "zMin" "0"<br />
Option "zMax" "511"<br />
EndSection<br />
Section "InputClass"<br />
Identifier "pen"<br />
MatchProduct "Aiptek|AIPTEK|aiptek"<br />
MatchDevicePath "/dev/input/event*"<br />
Driver "aiptek"<br />
Option "SendCoreEvents" "true"<br />
Option "USB" "on"<br />
Option "Type" "erasor"<br />
Option "Mode" "absolute"<br />
Option "zMin" "0"<br />
Option "zMax" "511"<br />
EndSection<br />
Section "InputClass"<br />
Identifier "pen"<br />
MatchProduct "Aiptek|AIPTEK|aiptek"<br />
MatchDevicePath "/dev/input/event*"<br />
Driver "aiptek"<br />
Option "SendCoreEvents" "true"<br />
Option "USB" "on"<br />
Option "Type" "cursor"<br />
Option "Mode" "absolute"<br />
Option "zMin" "0"<br />
Option "zMax" "511"<br />
EndSection<br />
<br />
Then restart udev and X or your Display Manager (gdm, kdm, slim, ...)<br />
<br />
==Gimp==<br />
Should work right away. If not, those settings worked for me:<br />
<br />
Edit -> Input Devices -> Aiptek<br />
* Mode: Screen<br />
* X: 1<br />
* Y: 2<br />
* Pressure: 3<br />
* X-Tilt, Y-Tilt and Wheel shouldn't matter</div>PaterSiul