Il blog di Gas

Solo un altro sito WordPress

Archive for the ‘audio’ tag

Cuffie bluetooth in linux

without comments

Assieme al cellulare mi sono arrivate un paio di cuffie bluetooth della motorola, il supporto in linux c’è anche se le cose sono in continuo cambiamento.

Requisiti:
poter compilare , alsa e bluetooth gia testati e funzionanti , detto questo per gentoo dovrebbe solo servire il cvs , per ubuntu invece

  • build-essential
  • libbluetooth2-dev (3.5 or newer)
  • automake
  • autoconf
  • cvs
  • libtool
  • libasound2-dev
  • libdbus-1-dev
  • libdbus-glib-1-dev

Io sono su gentoo e sono riuscito a far andare il tutto con bluez-utils>=3.16, la guida originale è per ubuntu

Read the rest of this entry »

Written by gas

settembre 4th, 2007 at 9:33 pm

Posted in Linux

Tagged with , ,

Laptop sound working

with 2 comments

I finally have sound , nice to hear :P

My laptop is a Packard Bell Easynote MX51-B-058 and is shipped with with Realtek ALC660 HD Audio sound chip, lspci gives the following:

gas@gas-laptop:~$ sudo lspci
00:00.0 RAM memory: nVidia Corporation C51 Host Bridge (rev a2)
00:00.1 RAM memory: nVidia Corporation C51 Memory Controller 0 (rev a2)
00:00.2 RAM memory: nVidia Corporation C51 Memory Controller 1 (rev a2)
00:00.3 RAM memory: nVidia Corporation C51 Memory Controller 5 (rev a2)
00:00.4 RAM memory: nVidia Corporation C51 Memory Controller 4 (rev a2)
00:00.5 RAM memory: nVidia Corporation C51 Host Bridge (rev a2)
00:00.6 RAM memory: nVidia Corporation C51 Memory Controller 3 (rev a2)
00:00.7 RAM memory: nVidia Corporation C51 Memory Controller 2 (rev a2)
00:02.0 PCI bridge: nVidia Corporation C51 PCI Express Bridge (rev a1)
00:03.0 PCI bridge: nVidia Corporation C51 PCI Express Bridge (rev a1)
00:04.0 PCI bridge: nVidia Corporation C51 PCI Express Bridge (rev a1)
00:05.0 VGA compatible controller: nVidia Corporation C51 PCI Express Bridge (rev a2)
00:09.0 RAM memory: nVidia Corporation MCP51 Host Bridge (rev a2)
00:0a.0 ISA bridge: nVidia Corporation MCP51 LPC Bridge (rev a3)
00:0a.1 SMBus: nVidia Corporation MCP51 SMBus (rev a3)
00:0b.0 USB Controller: nVidia Corporation MCP51 USB Controller (rev a3)
00:0b.1 USB Controller: nVidia Corporation MCP51 USB Controller (rev a3)
00:0d.0 IDE interface: nVidia Corporation MCP51 IDE (rev a1)
00:0e.0 IDE interface: nVidia Corporation MCP51 Serial ATA Controller (rev a1)
00:10.0 PCI bridge: nVidia Corporation MCP51 PCI Bridge (rev a2)
00:10.1 Audio device: nVidia Corporation MCP51 High Definition Audio (rev a2)
00:14.0 Bridge: nVidia Corporation MCP51 Ethernet Controller (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/fOpteron] Miscellaneous Control
01:00.0 Ethernet controller: Atheros Communications, Inc. Unknown device 001c (rev 01)

even if it says “Audio device:nVidia” you must use the snd-hda-intel module to make it work and actually ubuntu loads it during startup but sound still doens’t come out from speakers or headphones That module supports lots of chipset and sometimes they are not recognized properly and you must tell him what kind of chip you are using.
My “real” sound chip is the ALC660 from realtek and the solution for me was having a look at:

gas@gas-laptop:~$ zless /usr/share/doc/alsa-base/driver/ALSA-Configuration.txt.gz

scroll down until you find
Module snd-hda-intel
--------------------

Module for Intel HD Audio (ICH6, ICH6M, ESB2, ICH7, ICH8),
ATI SB450, SB600, RS600,
VIA VT8251/VT8237A,
SIS966, ULI M5461

and down again until you find
ALC861/660
3stack 3-jack
3stack-dig 3-jack with SPDIF I/O
6stack-dig 6-jack with SPDIF I/O
3stack-660 3-jack (for ALC660)
uniwill-m31 Uniwill M31 laptop
auto auto-config reading BIOS (default)

as you can see the default config for those chips is “auto” and thats bad….for me the right one was 3stack-660.

Last step and we are done:
gas@gas-laptop:~$ sudo nano /etc/modprobe.d/alsa-base

and add as the last line the following:
options snd-hda-intel model=3stack-660

now, just because we mostly all come from windows,reboot.

Have fun hearing

Written by gas

luglio 9th, 2007 at 9:36 pm

Posted in English,Linux

Tagged with , ,

The Sound of RAM

with 2 comments

I just read a crazy article and I wanted to try it. Here’s how you can enconde in ogg the sound of your machine’s RAM.

To listen it:

sudo cat /dev/mem >> /dev/audio

To record it:

sudo cat /dev/mem | oggenc -rq 1 -o mem.ogg -

Here’s mine

The Sound of RAM

I used ogg2mp3 in portage for the transcoding.

Original aricle: mogrify » Blog Archive » 33 seconds of RAM

Written by gas

aprile 1st, 2007 at 4:13 pm

Posted in English,Linux

Tagged with ,

Rhythmbox and ekiga

without comments

Today after syncing I found out that Rhythmbox 0.9.8 (codename “Type Slowly” :) it hangs!!!) and Ekiga 2.0.5 are now in portage. I use rhythmbox a lot and hopefully I’ll enjoy one of the improvementes like the album cover shown in the trayicon tooltip :shock: and the ability to transcode songs before sending them to the ipod .

Overview of changes in Rhythmbox 0.9.8 "Type slowly"

=====================================================* move to SVN and move round lots of files. yay!

* use "friendly" date-time in track list (William Jon McCann)

* add visualisation plugin (JOnathan Matthew)

* support more lastfm:// URIs (Jonathan Matthew)

* split code out into a library common to plugins and the binary (Jonathan Matthew)

* display cover art in the tray icon tooltop and song-change notification (Ed Catmur)

* Magnatune improvements (Adam Zimmerman)

* core art improvements, support art for podcasts et al (Ed Catmur, Martin Szulecki)

* Python plugin improvements (James Livingston, Jonathan Matthew)

* add support for the Jamendo online catalogue (Guillaume Desmottes)

* support new Gnome "media key" mechanism (James Livingston, Jonathan Matthew)

* support track transfer for "generic" audio players, and improve iPod

  track transfer support, including transcoding (James Livingston)

* many build/run issues on Solaris (Irene Huang)

* Nokia N800 support (William Jon McCann)

* Many core improvements, for future work

* the usual pile of minor features and bug fixes

As far as I can tell from the changelog there have been a few fixes for ekiga but no big improvements.

Thinking about ekiga i realize that is very easy to get lost in very simple things, especially for gnome developers. Every tray icon of any Voip/Chatting software on this planet change when you have a missed called , so you can actually realize that someone was looking for you but not with ekiga. You must open it and once you have done it there are no symbols that warns you about the missed called at first glance but there’s a single text message …. it doesn’t seems so smart…

Written by gas

marzo 6th, 2007 at 6:37 pm

Posted in English

Tagged with , , ,

Il Music Center

without comments

Il Music Center è diventato Experts e il reparto hifi per auto viene abbandonato , il materiale viene svenduto e vengono fuori cose un po strane…..

Kit 2 vie Hertz hsk130 , venduto in italia a 180/200 euri ma si trova anche a meno, 280Euri con un fantomatico sconto del 50% al music center.

Autoradio Blaupunkt Woodstock listino 500Euri, a 100E con lo sconto del 50% 50 euri,un decimo del prezzo originale.Peccato che sugli Hertz il tipo non mi ha detto niente, sulla Woodstock:”Mi scusi ma c’è il prezzo sbagliato”.

Ma andate a cagare…..

Alla fine mi son comprato un kit 2 vie della ciare , il woofer è il modello cw131 quello col magnetone da 1 tonnellata dietro,tutto dal mitico “Elettronica Trentini” per 130Euri.Ovviamento non ci stava nella predisposizione della clio ed ho dovuto sfondare il supportino in plasica ma ora è tutto un altro pianeta.Appena mi ripiglio dagli esami smonto il cruscotto ed installo i tweeter.

Questo è il link al Cdtest per controllare a quali frequenze l’impianto è debole (aka le casse sbindellano)

Written by gas

gennaio 20th, 2007 at 12:05 pm

Posted in Generale

Tagged with ,