Friday, December 12, 2008

Sound issues on my Hardy 64bit

Still no success with the Alsa/PulseAudio settings on Hardy 64bit (Hercules Game Theater XP 5.1, CS46xx).
Only way I can get the sound to work, is to set everything to OSS.

Now, a few links with hints/guides to follow:

Alsa:
need to have soundcore loaded:
modinfo soundcore


Multiple soundcards:

explicitly assign the default device numbers of our sound card drivers by adding lines at the end of the /etc/modprode.d/alsa-base file like this (These are mine):
Code:
options snd_hda_intel index=0
options snd_cmipci index=1
options snd_atiixp index=2
options snd_usb_audio index=3
This way each device will always be numbered the same.

You can use:
Code:
cat /proc/asound/modules
to discover your sound device driver module names and their order.

Generic troubleshoot:


to check if the system recognnizes the soundcard:
aplay -l
lspci -v | less

sounds module installed?:
find /lib/modules/`uname -r` | grep snd

The 10,000 Page Guide to Sound Troubleshooting:
Among several tips, this:
Create a new user and login with that: if sound works, it's an issue of user configuration

Another (older) guide on sound problems:

This is a quite comprehensive guide, with a "failure/success" path to follow. Nice.

PulseAudio fixes:

It says libflashsupport should not be installed.
this is confusing, since it's the only way I could find to let Flash produce sounds.

PulseAudio installation (Italian):
Italian guide to PulseAudio installation.
Makes use of most of the previous hints, and summarizes them.
Too simple?
A noticeable difference with the "fixes" page:
Here it uses ladspa without even checking its installation. In "fixes":
Install the required LADSPA plugins and tools:
Code:
$ sudo apt-get install swh-plugins ladspa-sdk

Maybe
Also, there is no editing of the /etc/pulse/default.pa and no note on the necessity of changing the
slave.pcm "plughw"
line in ~/.asoundrc (or /etc/asound.conf)

Surround guide (italian):
To be tested yet

---------------------------
Edit:
this might be the real fix: remove pulsaudio....!
Or even better, in the same thread: post 51.
Or still, I can keep my "OSS" settings: not brilliant, but working...!
---------------------------

Tuesday, July 29, 2008

Installazione Ubuntu Hardy Heron 8.04 AMD64

Sono passato dalla vecchia Dapper alla nuova Hardy, sul computer fisso.

Di seguito i vari step seguiti, in forma di nota/promemoria.

CAP 0: mettiamoci in condizione di tornare indietro, se qualcosa va storto....:

Backup Dapper

Disinstallare software inutili

Fare lista sw

dpkg --get-selections > installed-packages.txt

oppure da synaptic (vengono meno voci. Perche?)

Fare lista di storia di installazioni con synaptic (export to txt)

Fare screenshot del menu applicazioni (magari c’e’ un file con l’elenco delle icone: verificare e salvare da qualche parte, cosi’ c’e’ un elenco delle applicazioni installate)

--> copiato i vari file .desktop (in usr/share/applications e in ~/.local/share/applications)

Cancellare roba inutile, anche dal trash

Copiare fstab, menu.lst, part table di fdisk, xorg.conf

Copiare bookmarks, dati thunderbird, dati utenti

Partimage di boot (5min), home (30min) e sistema (30min)

Partimage di partition table (http://www.partimage.org/Partimage-manual_Backup-partition-table)

        dd if=/dev/hda of=backup-hda.mbr count=1 bs=512

Now, we will save entries of the extended partitions:

        sfdisk -d /dev/hda > backup-hda.sf

To restore:

        dd if=backup-hda.mbr of=/dev/hda
        sfdisk /dev/hda < style="">

CAP 1: Installazione sistema

Una guida passo-passo

http://www.howtoforge.com/the-perfect-desktop-ubuntu-8.04-lts-hardy-heron


il mio schema di partizioni:

Device

Mount point

File system

size

/dev/hda1

/home

reiserfs

30GB

/dev/hda2

/media/music_fat32

vfat

30GB

/dev/hda3

/media/shared_fat32

vfat

50GB





/dev/sda1

/media/winXP

ntfs

30GB

/dev/sda2

/boot

ext3

100MB

/dev/sda3

/

reiserfs

50GB

/dev/sda5

/media/myth

ext3

50GB

/dev/sda6

/media/distro

ext3

8GB

/dev/sda7

swap

swap

1GB

/dev/sda8

/media/video_fat32

vfat

100GB


L'installazione dal liveCD AMD64 va liscissima.
Mi ha cambiato i nomi delle partizioni (chissa' perche') e ora vede il disco IDE hda come sdb. A parte questo tutto tranquillo.
Ho mantenuto la mia home, sperando di tenere tutti i dati e i settaggi.
In ~35min ho la Hardy installata e pronta all'uso, con dati e settaggi conservati!

Cap 2: Personalizzazioni


Step1 - Ritocchi al sistema base:


Nautilus: enable delete

Font: pref/appearance --> subpixel smoothing

pref/appearance/advanced --> 96dpi

Services: admin/services --> rimuovere gli inutili (--> bluetooth)

Startup: pref/sessions --> disabilitare roba inutile

Uninstall: togliere programmi inutili (--> nessun programma tolto)

Update: ricaricare e fare update del sistema

Reboot


Al termine dello step1 (~15min), ho 47.3GB free (49.2GB dichiarati da system monitor) → usati circa 2GB in /


Proseguiamo con le installazioni dei software necessari a rendere usabile (ai miei scopi) la essenzialissima Ubuntu.
Installo tutto da Synaptic, per poter avere un log di tutte le dipendenze installate di volta in volta, in modo da poterle eliminare insieme al programma in caso di malfunzionamento

Step2 - I fondamentali:

Fonts: msttcorefonts

Compilare: build-essential

Posta: Thunderbird

Sistema: partimage, checkinstall, language-support-it

Java: gcjwebplugin (non funziona!) oppure icedtea: jre e plugin (ok)

Flash: flashplugin-nonfree, libflashsupport

(http://www.ubuntu1501.com/2008/06/play-video-audio-while-playing-flash.html)

padevchooser → fotte tutto!!! pare che ne' alsa ne' pulseaudio funzionino: devo usare OSS in pref/sound

pulseaudio fallisce cosi': audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink: Failed to connect stream: Invalid argument

idem alsa e CS46xx (scheda Hercules Game Theater XP)

Ntfs: ntfs-config per abilitare/disabilitare scrittura su ntfs

Multimedia: vlc, DVD95, gthumb (da usare al posto di fspot), doppio click su un .mp3 e installazione gstreamer ffmpeg e extra plugins

Compiz: pref/appearance/visual effect à per abilitare effetti (compizconfig-settings-manager)

Repo: aggiungere medibuntu

Codecs: w64codecs, libdvdcss2

Internet: aMule

update e reboot

2ore circa, 46.7GB free


Step2b: Partimage di installazione base (root, boot). Root ~2.8GB

Step3 - Utili:

Software complessi o con molte dipendenze, che potrebbero appesantire il sistema o renderlo instabile.

Li installo uno per volta.

https://help.ubuntu.com/

http://ubuntuforums.org/showthread.php?t=766683

Exaile (al posto di amarok) (c’e’ bisogno anche di python-gnome2-extras python-gtkhtml2 per abilitare lyrics e guitar tablature)

Dvd::rip

EasyTag (o exfalso)

WinFF (e’ 32 bit! Richiede ia32-libs) (converte video da un formato a un altro)

cd ~/Desktop && sudo dpkg --force-architecture -i winff.deb

HandbrakeCLI (http://ubuntuforums.org/showpost.php?p=5410459&postcount=54)

Step3b - Utili, II parte :http://ubuntuforums.org/showthread.php?t=766683

Multimedia, codecs, falsh e Java

sudo apt-get remove gnash gnash-common libflash-mozplugin libflashsupport mozilla-plugin-gnash swfdec-mozilla && sudo apt-get install alsa-oss faac faad flashplugin-nonfree faad gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse ia32-libs icedtea-java7-jre icedtea-java7-plugin liblame0 non-free-codecs unrar

Ancora flash audio non funziona!!! --> http://ubuntuforums.org/showpost.php?p=5465376&postcount=13

Download libflashsupport.so compilato con OSS support:

http://ubuntuforums.org/attachment.p...6&d=1210377383

sudo apt-get install alsa-oss

sudo apt-get remove libflashsupport

cd ~/Desktop; gunzip libflashsupport.so.gz; sudo mv libflashsupport.so /usr/lib

sudo ln -s /usr/lib/libflashsupport.so /usr/lib/firefox/plugins

sudo ln -s /usr/lib/libflashsupport.so /usr/lib/mozilla/plugins

sudo ln -s /usr/lib/libflashsupport.so /usr/lib/firefox-addons/plugins

If you're running x86_64:

sudo cp /usr/lib/libflashsupport.so /usr/lib32/

ora flash funziona!!!!

unrar

htop

lm-sensors

(Tovid) Devede, avidemux

Google Earth

Dizionario Ita-Eng: vocabulary.aioe.org in Applicazioni -> Accessori -> Dizionario

Ubuntustudio-video (--> openmovieeditor, kino, jack, imagemagik)

Mplayer (installato come dipendenza di openmovieeditor)