Posts

Showing posts from February, 2013

One way to record a program's Audio output

Image
One way to record a program's Audio output Table of Contents 1 PulseAudio Audio Server Introduction 2 Record a program's Audio output. 1 PulseAudio Audio Server Introduction Linux Audio System can be divided into 3 layers. Alsa/Oss package provide a bottom layer to driver sound card. PulseAudio/Jack/ESD package provide middle ware layer named Audio Server. Multimedia applications written by the API provided by Audio Server. PulseAudio is focused on desktop and mobile audio needs. It doesn't try to address low latency, but does provide seamless device switching, network routing, global per-application volume control and lots great stuff. 2 Record a program's Audio output. Following is the step by step tutorial to record an Audio output. Load a null-sink pactl load-module module-null-sink sink_name =steam Load combine-sink module-combine-sink is used to combine slaves sinks to build virtual sinks. # First use "pactl list

Suspend my laptop by Command

Image
Suspend my laptop by Command Suspend my laptop by Command I upgrade my fedora desktop to fedora18, and get some trouble after upgrade. One of them is that my old script to suspend my laptop do not works anymore(I like to suspend my laptop without close its screen lid.) . My old script to suspend the PC: # !/bin/ bash dbus-send --system --print-reply --dest=org.freedesktop.Hal \ /org/freedesktop/Hal/devices/computer \ org.freedesktop.Hal.Device.SystemPowerManagement.Suspend \ int32:0 Table of Contents 1 Why HAL dbus interface did not works 2 Two ways to Suspend/Hibernate the Laptop 1 Why HAL dbus interface did not works The reason is that HAL(Hardware Abstraction layer) is now deprecated on freedesktop environment, and it is emerged into udev package. In HAL's offical website, It declared that HAL is in maintenance mode, all future development focus in udisks and upower. So I guess upower maybe provide some power ma