amilo-forum.de

Inoffizielles Forum rund um die Notebooks der Amilo- und Lifebook-Serien von Fujitsu

Linux auf amilo M3438G

Alle Fragen, die sich speziell um Linux oder andere Unix-ähnliche Betriebssysteme drehen.

Beitragvon KLG » 15.09.2005 03:26

KLG hat geschrieben:so, whats the audio's driver module name?
I mean in the Gentoo alsa guide it uses Creative and driver emuk....
What is our notebook's sound card driver name?

Thank you


[EDIT] I have installed the current drives (1.0.9) from alsa.org site, I can listem mp3 from the laptop, but only when the external speakers are connected. The internal speakers don;t work (they work in windows)

I run Gentoo 2.6.12r10
KLG
 
Beiträge: 18
Registriert: 17.07.2005 20:53

Beitragvon cybercoder » 15.09.2005 19:20

Hi again,

I wrote myself two little scripts which organizes kernel and additional drivers compilation.

See which kernel I use in the scripts and eventually change it to the version you you use. - I also tried 2.6.13 versions which do not work on my box. - Disable ACPI Battery-Support and use good-old apm instead until someone fixes the acpi-support!
For sound, I have basic sound support compiled into the kernel and nothing else checked in "make menuconfig".

Asure yourself you don't have any alsa ebuilds installed and unmerge installed ones!
AND ASURE YOURSELF THAT THE VOLUME WHEEL ON THE LEFT OF THE LAPTOP IS TURNED UP BEFORE TESTING SOUND!

This is how I make fast tries with new kernel versions or other configs:
Before you start for the first time:
1) Create a directory /usr/src/alsa
2) Copy my alsa-cvs-update script into that directory
3) Add the fitting grub entries to grub.conf
4) Copy the make-all script to /usr/local/bin
5) /usr/src/alsa-cvs-update

And now you may power-test different kernel configurations by:
/usr/local/bin/make-all
reboot and test your new kernel...

This one is just to let me do everything else in one step:
Code: Alles auswählen
#!/bin/sh
#
# My name is make-all and I reside in /usr/local/bin
# Do whatever you like with me ;-)
#
# Copyright 2005 by Henri Schomäcker <hs@byteconcepts.de>
#

cd /usr/src/linux

MY_KERNEL_VERSION=$(basename `readlink /usr/src/linux`)

make menuconfig

make && make modules_install

mount /boot

cp ./arch/i386/boot/bzImage /boot/${MY_KERNEL_VERSION}
cp ./System.map /boot/System.map-${MY_KERNEL_VERSION}
cp ./.config ../${MY_KERNEL_VERSION}.config

modules-update

echo
echo "Now lets re-emerge required packages..."
echo
emerge iptables nvidia-kernel nvidia-glx

echo
echo "...and now lets re-compile and install alsa from sources..."
echo
cd /usr/src/alsa
make
alsaconf

echo
echo "Check if this entry exists in grub.conf:"
echo "------------------------------------------------------------------"
echo "title=${MY_KERNEL_VERSION}"
echo "root (hd0,1)"
echo "kernel (hd0,1)/${MY_KERNEL_VERSION} root=/dev/sda4  <- Set this to your root-partition"
echo "------------------------------------------------------------------"
echo
echo "Now you may restart and try your new kernel..."
echo



The next one is to simplify the update of the alsa cvs-sources:
Code: Alles auswählen
#!/bin/sh
#
# My name is alsa-cvs-update and I reside in /usr/src/alsa
# Do whatever you like with me ;-)
#
# Copyright 2005 by Henri Schomäcker <hs@byteconcepts.de>
#

clear

echo

if [[ ! `which cvs` ]]; then echo "Please install (emerge/apt-get/rpm) the software-packet cvs first!\n"; exit 1; fi;

echo "This script logs into the ALSA cvs-repository and "
echo "fetches the newest alsa drivers and utilities"
echo

echo "If this is your initial download, please enter    [i]"
echo "If you want to update your alsa cvs-tree, enter   [u]"
echo
echo "If you better like to quit, press any other key"
echo
echo "...and then press <ENTER>"
echo

stty -echo    # Turns off screen echo.
old_tty_settings=$(stty -g)     # Save old settings.
stty -icanon

ACTION=$(head -c1)                      # or $(dd bs=1 count=1 2> /dev/null)
                                                        # on non-GNU systems

stty "$old_tty_settings"      # Restore old settings.
stty echo    # Turns on screen echo.


if [[ "${ACTION}" == "i" ]]; then
        echo "Now please enter the the path to your alsa cvs directory and then press <ENTER>"
        read ALSACVSDIR

        if [[ ! -d ${ALSACVSDIR} ]]; then
                echo " * Your Alsa directory does not exist!"
                echo " * Quitting..."

                exit 1
        fi

        cd ${ALSACVSDIR}
        echo -n "Actual directory: "
        pwd

        # Log into the cvs-repository
        echo "Loggin into the cvs-repository. Please just press <ENTER> to log in:"
        cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/alsa login

        # Check out the cvs-tree (Only needed for the first time)
        cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/alsa co .
elif [[ "${ACTION}" == "u" ]]; then
        echo "Now please enter the the path to your alsa cvs directory and then press <ENTER>"
        read ALSACVSDIR

        if [[ ! -d ${ALSACVSDIR} ]]; then
                echo " * Your Alsa directory does not exist!"
                echo " * Quitting..."

                exit 1
        fi

        cd ${ALSACVSDIR}
        echo -n "Actual directory: "
        pwd

        echo "Loggin into the cvs-repository. Please just press <ENTER> to log in:"
        cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/alsa login

        # Update the cvs-repository
        cvs -z3 update -P -d
else
        echo "You decided to quit, so..."
fi

exit 0



O.k. if you like, add automatic grub entries ;-)

If you have some trouble with your box and e.g. Gentoo, try it, it works for me reliable.

Yours Henri
Zuletzt geändert von cybercoder am 17.09.2005 02:47, insgesamt 5-mal geändert.
cybercoder
 
Beiträge: 17
Registriert: 05.07.2005 00:16

Beitragvon KLG » 15.09.2005 22:37

i ll try that as soon as possible, but should i disable *only* acpi battery? or the whole Acpi stuff?
KLG
 
Beiträge: 18
Registriert: 17.07.2005 20:53

Beitragvon cybercoder » 16.09.2005 08:14

It seems that only the battery functions are affected by the buggy acpi, so if you turn Battery support off, you'll get no more acpi errors in dmesg but then you also get no battery-status applet in the taskbar.
To enable a correct working battery-status applet, you can also/additionaly enable goodold APM support in the kernel.

If you try with another kernel than 2.6.12-gentoo-r8, you might start your first kernel-config totally without acpi and add this afterwards if the first configuration works correctly.

good luck,
yours Henri
cybercoder
 
Beiträge: 17
Registriert: 05.07.2005 00:16

Beitragvon KLG » 16.09.2005 12:08

henri, i tried many things you suggested (not your scripts) but downloading and compiling manually alsa-drivers and libs from alsa-cvs. I use 1.0.9b

The problem persists, no sound from the internal pc speakers but excellent quality from external ones connected through headphones jack!!!!

i don't know what to do, i came across this solution in gentoo forum but i am not sure that i can adjust it to our laptop

http://sourceforge.net/mailarchive/foru ... um_id=1752
KLG
 
Beiträge: 18
Registriert: 17.07.2005 20:53

Beitragvon cybercoder » 16.09.2005 15:09

Hi again...

I already mentioned it somewhere:
Alsa 1.0.9b is too old and hda sound is broken in 1.0.9b !
This is the reason why we need to use the cvs sources and not the gentoo packages!
So it can't work!

Give it a chance and try the alsa-cvs-update script.
At the moment it'll fetch a 1.10.xxx version.

It'll work if you got a kernel which runs well, I promise!

Yours Henri
cybercoder
 
Beiträge: 17
Registriert: 05.07.2005 00:16

Beitragvon KLG » 16.09.2005 19:22

Lets try your alsa-cvs-update

1. i go into /usr/src/alsa and mkdir an alsa-cvs folder

2. i gedit an alsa-cvs-update file and c/p your script

3. chmod 777 alsa-cvs-update

4./alsa-cvs-update
Code: Alles auswählen
KLG_laptop alsa # ./alsa-cvs-update


This script logs into the ALSA cvs-repository and
fetches the newest alsa drivers and utilities

If this is your initial download, please enter    [i]
If you want to update your alsa cvs-tree, enter   [u]

If you better like to quit, press any other key

...and then press <ENTER>

Now please enter the the path to your alsa cvs directory and then press <ENTER>
/usr/src/alsa/
Actual directory: /usr/src/alsa
Loggin into the cvs-repository. Please just press <ENTER> to log in:
./alsa-cvs-update: line 69: cvs: command not found
./alsa-cvs-update: line 72: cvs: command not found
KLG_laptop alsa #


ok i am obviously doing something wrong.

so what ubout unmerging alsa-driver and alsa-lib

and downloading and colmpiling alsa-dirver /alsa-lib 1.10 from the alsa.org site? ??
KLG
 
Beiträge: 18
Registriert: 17.07.2005 20:53

Beitragvon cybercoder » 17.09.2005 02:25

Ouups, sorry!

please...
emerge cvs
...before! - You need the client for the "Concurrent Versions System" of alsa to fetch the right sources. And the client is in the cvs packet.

I added a question wether it is installed or not to the script now.

If you have no alsa packet emerged right now, everything is fine. You don't even have to know your cards driver.
But don't forget to run...
alsaconf
...after calling the script.

Yours Henri
cybercoder
 
Beiträge: 17
Registriert: 05.07.2005 00:16

Beitragvon KLG » 17.09.2005 04:32

ok i'll try it first thing tommorow morning,

i currently use alsa 1.0.9 from gentoo portage, if i press "u" in your script will overwrite automatically or is it safer to unmerge alsa-lib and alsa-driver, rmod all snd modules and run your script pressing *i* ???
KLG
 
Beiträge: 18
Registriert: 17.07.2005 20:53

Beitragvon cybercoder » 17.09.2005 10:41

Good morning everybody ;-)

unmerge the alsa ebuilds first or your compiled alsa cvs libs etc. will be overwritten if you do a emerge -u world or system etc.

1) Ensure that NO alsa is checked in the kernel config
2) then run alsa-cvs-update and press i for the first time
Only press u to update a source-tree you fetched with i before
3) Then the sources will be fetched into /usr/src/alsa
4) cd /usr/src/alsa
5) make
6) alsaconf
7) reboot

That should be it.
yours Henri
cybercoder
 
Beiträge: 17
Registriert: 05.07.2005 00:16

Beitragvon KLG » 17.09.2005 16:32

i know i am becoming rather annoying., but unmerging alsa ebuilds what doyou mean? Delete the /usr/portage/media-sound/alsa-driver directory?
How do i unmerge ebuilds.

emerge --sync won't rewrite it? ther must

Ord o you mean emerge --unmerge alsa-driver alsa-lib alsa-util???
KLG
 
Beiträge: 18
Registriert: 17.07.2005 20:53

Beitragvon timmhelbig » 17.09.2005 16:39

Got sound and acpi working!!!!

After I tried everything mentioned in this thread and much more, I nearly gave up. The last chance was to check if Realtek did something..... and they did :D Go to the realtek site and download the Linux Driver:
http://www.realtek.com.tw/downloads/dlh ... tware=True

Unpack it somewhere and use the install script.

After this the control layout in alsamixer changed again, very few controls now, but it works. Don't forget to unmute External Speakers. Also the headphone can now be plugged in the right plug.

ACPI went fine after I changed to gentoo-sources-2.6.13-r1, which is still masked. The issue with the battery is now gone. It always show's the right state. AC and Battery.

One issue is still remaining. If I use the nvidia Driver (6629) I have random lookups when booting. When X starts the screen appears trashy and gets brighter every second. The machine is then no longer responding, even over.

@KLG: Unmerging a package means to remove it from your machine in means that all installed files from this package are removed. /usr/portage will not be touched. You unmerging with
Code: Alles auswählen
emerge -C <package-name>


So, for alsa this would be

Code: Alles auswählen
emerge -C alsa-driver alsa-lib alsa-utils
Timm
timmhelbig
 
Beiträge: 4
Registriert: 17.09.2005 16:33

Beitragvon cybercoder » 17.09.2005 17:13

KLG hat geschrieben:i know i am becoming rather annoying., but unmerging alsa ebuilds what doyou mean? Delete the /usr/portage/media-sound/alsa-driver directory?
How do i unmerge ebuilds.

emerge --sync won't rewrite it? ther must

Ord o you mean emerge --unmerge alsa-driver alsa-lib alsa-util???


Sorry, this was a missunderstanding:

Yes, I mean ...
Code: Alles auswählen
emerge --unmerge alsa-driver alsa-lib alsa-util

or
Code: Alles auswählen
emerge -C alsa-driver alsa-lib alsa-util

which is the short option for deinstalling a package in gentoo

In fact, If you would leave the packages installed, the installed alsa files will be overwritten when you compile alsa from the cvs-sources and everything would probabely work, too.

But if you later on would like to update the whole system, for example with the following command...
Code: Alles auswählen
emerge -uD world

...then portage will see that you have older alsa-ebuilds installed and will also update these ebuilds and therefor overwrite the alsa files you compiled manually again.

So you should uninstall (emerge --unmerge in gentoo) the installed alsa ebuilds to stay away from further troube with alsa.

Yours Henri
cybercoder
 
Beiträge: 17
Registriert: 05.07.2005 00:16

Beitragvon KLG » 17.09.2005 19:59

2.6.13 finally ACPI works...

I am sick of compiling and emerging the same things, so i will unmerge alsa-xxx, clear all the module-list and wait for the kernel to be unmasked. if i get really really unpatient (i will be in 2-3 days), i ll do all the above.

So lets change subject
Did you made the modem working? i mean do you have a ppp connection?

same issues with nvidia, so the driver is to blame... trashy screen that it s the word i was searching to describe the problem.. I think i ll switch to nvidia 7174
works fine with ubuntu.
KLG
 
Beiträge: 18
Registriert: 17.07.2005 20:53

Beitragvon timmhelbig » 18.09.2005 00:00

The ACPI Battery issue is not gone. AE_TIME messages are seem to happen when the touchpad is used. Whenever I connect a USB Mouse, the message is not showing again.
Timm
timmhelbig
 
Beiträge: 4
Registriert: 17.09.2005 16:33

VorherigeNächste

Zurück zu Linux / Unix / BSD