Reply
Thread Tools
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#31
Originally Posted by droll View Post
i had this issue after upgrading to pr 1.3. reboots would fix it but one i connect my bt headset, pulseaudio would die. in my case i fixed it with a reflash and i recall the problem started after i installed preenv - which could be a coincidence...
No, I have just installed preenv after reflash no problems
so far. It must be a different thing.

nicolai
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#32
Well one side effect of audio not starting up at boot is that the boot video is not played and that seems to substantially speed up the boot process
 
Posts: 2 | Thanked: 19 times | Joined on Nov 2010
#33
Originally Posted by nicolai View Post
I found the reason. At least on my device pulseaudio application
depends on the library libFLAC.

On device start the system starts the pulseaudio daemon.
As it needs libFLAC the system tries to load this library.
The library is at
/opt/maemo/usr/lib/libFLAC.so.8.2.0

So the application pulseaudio fails to load
(cannot load library libFLAC.so, no such file)
Because all this happens before the internal mmc is mounted :-)

After failing to start the daemon the system tries this again and again.
It may work at some point when the internal mmc is mounted.
But sometimes the restart (respawn) happens to often and
the system stops this process.

I don't know why pulseaudio needs this lib, it has something to
do with the package decoders-support. But it seems this only
happens if you upgraded to PR1.3.

I did a reflash now and installed decoders-support.
The libFLAC library is on /opt/maemo ....
But pulseaudio starts without an error.
(And it does not depend on this library anymore,
ldd /usr/bin/pulseaudio shows which librarys are needed
by an executable/library).

Nicolai


Code:
Nokia-N900:~# ldd /usr/bin/pulseaudio | grep FLAC
        libFLAC.so.8 => /usr/lib/libFLAC.so.8 (0x4060b000)
Nokia-N900:~# ls -la /usr/lib/ | grep FLAC
lrwxrwxrwx    1 root     root           16 Oct 26 23:20 libFLAC.so.8 -> libFLAC.so.8.2.0
lrwxrwxrwx    1 root     root           35 Oct 26 23:20 libFLAC.so.8.2.0 -> /opt/maemo/usr/lib/libFLAC.so.8.2.0
Nokia-N900:~# cp /opt/maemo/usr/lib/libFLAC.so.8.2.0 .
Nokia-N900:~# cp libFLAC.so.8.2.0 /usr/lib/
Nokia-N900:~# ls -la /usr/lib/ | grep FLAC
lrwxrwxrwx    1 root     root           16 Oct 26 23:20 libFLAC.so.8 -> libFLAC.so.8.2.0
-rw-r--r--    1 root     root       303348 Nov 15 10:40 libFLAC.so.8.2.0
Fixed it by copying it from /opt/ to /usr/lib/. No idea if this causes problems at later but atleast this **** starts now at boot times.

Last edited by sickki; 2010-11-15 at 09:04.
 

The Following 4 Users Say Thank You to sickki For This Useful Post:
Posts: 24 | Thanked: 5 times | Joined on Oct 2010 @ Portugal
#34
Hi,

Yesterday I uninstalled power kernel and I can in fact confirm that it is not related to that kernel.
It's like nicolai said and sickki further developed and most likely related to the PR1.3 update.
But why isn't it affecting more people? (considering there aren't many posts)
And also why does pulseaudio refuse to start at times, even when you start it manually? (sudo gainroot; start pulseaudio)

I'm going to try sickki's workaround and see what happens.

*EDIT* I already had this file in /usr/lib/ on rootfs (but also in /opt/maemo). Or are these symbolic links??? (how do I tell the difference?)

*EDIT2* thanks, sickki. The files in /usr/lib/ were symlinks indeed. Copied the library file from /home/opt to rootfs.

silbah

Last edited by silbah; 2010-11-15 at 14:48.
 
Posts: 2 | Thanked: 19 times | Joined on Nov 2010
#35
Originally Posted by silbah View Post
Hi,
*EDIT* I already had this file in /usr/lib/ on rootfs (but also in /opt/maemo). Or are these symbolic links??? (how do I tell the difference?)

silbah
If you write this: ls -la /usr/lib/ | grep FLAC

lrwxrwxrwx 1 root root 16 Oct 26 23:20 libFLAC.so.8 -> libFLAC.so.8.2.0
lrwxrwxrwx 1 root root 35 Oct 26 23:20 libFLAC.so.8.2.0 -> /opt/maemo/usr/lib/libFLAC.so.8.2.0

It should show this: libFLAC.so.8.2.0 -> /opt/maemo/usr/lib/libFLAC.so.8.2.0 means that it's just symlink to /opt/.

Just write: cp /opt/maemo/usr/lib/libFLAC.so.8.2.0 /usr/lib/libFLAC.so.8.2.0

If you wan't to try fix what helped for me.
 

The Following 15 Users Say Thank You to sickki For This Useful Post:
Posts: 1 | Thanked: 0 times | Joined on Nov 2010
#36
@sickki

Thx Man!... Your fix saved me from reflashing the phone.

- Mani
 
Posts: 24 | Thanked: 5 times | Joined on Oct 2010 @ Portugal
#37
Originally Posted by manivs View Post
@sickki

Thx Man!... Your fix saved me from reflashing the phone.

- Mani
+1
It worked for me too
 
Posts: 52 | Thanked: 41 times | Joined on Sep 2010
#38
@sickki thanks a lot, I see if audio doesn't stop anymore, and I'll let you know

EDIT:
IT WORKS! THANK YOU VERY MUCH!

Last edited by ukaef; 2010-11-24 at 14:35.
 
Erazor's Avatar
Posts: 160 | Thanked: 33 times | Joined on May 2010
#39
Originally Posted by sickki View Post
If you write this: ls -la /usr/lib/ | grep FLAC

lrwxrwxrwx 1 root root 16 Oct 26 23:20 libFLAC.so.8 -> libFLAC.so.8.2.0
lrwxrwxrwx 1 root root 35 Oct 26 23:20 libFLAC.so.8.2.0 -> /opt/maemo/usr/lib/libFLAC.so.8.2.0

It should show this: libFLAC.so.8.2.0 -> /opt/maemo/usr/lib/libFLAC.so.8.2.0 means that it's just symlink to /opt/.

Just write: cp /opt/maemo/usr/lib/libFLAC.so.8.2.0 /usr/lib/libFLAC.so.8.2.0

If you wan't to try fix what helped for me.

BIG FAT THANKS

works for me, too.

1000 kisses xD


Best thx

Greetz
Erazor
 
Posts: 343 | Thanked: 165 times | Joined on Sep 2010
#40
I just ended up reflashing my phone. That had nothing to do with the audio bug, I just kinda installed Multiboot on top of Uboot just to see what would happen. My configuration is almost identical but so far I haven't had any issues.
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:31.