What are the files event-sound-cache.tdb.xxx.i686-pc-linux-gnu for?

Moderator: Forum moderators

Post Reply
Adam Li
Posts: 72
Joined: Mon Aug 03, 2020 3:16 pm
Location: Warsaw / Poland
Has thanked: 12 times
Been thanked: 5 times

What are the files event-sound-cache.tdb.xxx.i686-pc-linux-gnu for?

Post by Adam Li »

Hi

Puppy: BionicPup32-8 19.03

In the directory

Code: Select all

/root/.cache/

I find

Code: Select all

event-sound-cache.tdb.xxx.i686-pc-linux-gnu
files: 567
size: 12 228 bytes each

Are these files useful for something and can they somehow be automatically deleted? For some time now I have been trying to eliminate anything that takes up unnecessary space in pup_save.

Best regards
Adam Li

Laptop Core2 Duo CPU T6400 @ 2.00GHz / 3GB / GeForce 9300M GS
BionicPup32-8 19.03 / Precise 5.7.1 - Both Frugal Instal on HDD
Sorry for possible mistakes - English is not my mother tongue.

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: What are the files event-sound-cache.tdb.xxx.i686-pc-linux-gnu for?

Post by OscarTalks »

I have noticed those many times. I am not sure where they come from, maybe libcanberra which I think is supposed to generate some kind of sound notifications. In Puppy I don't think this is functional, but the library is installed to satisfy dependencies. Anyone can correct me if I am wrong. They are just some sort of cache files so I believe you can delete them. If they are appearing a lot, you could place a script in /root/Startup with the command to delete all such files.

Adam Li
Posts: 72
Joined: Mon Aug 03, 2020 3:16 pm
Location: Warsaw / Poland
Has thanked: 12 times
Been thanked: 5 times

Re: What are the files event-sound-cache.tdb.xxx.i686-pc-linux-gnu for?

Post by Adam Li »

1. In 1st step I manually deleted this files. Nothing wrong after - sound is working no problem.
2. I read on Askbuntu that deleting these files helps if the sound is down :D

Laptop Core2 Duo CPU T6400 @ 2.00GHz / 3GB / GeForce 9300M GS
BionicPup32-8 19.03 / Precise 5.7.1 - Both Frugal Instal on HDD
Sorry for possible mistakes - English is not my mother tongue.

User avatar
peebee
Posts: 1632
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 157 times
Been thanked: 713 times
Contact:

Re: What are the files event-sound-cache.tdb.xxx.i686-pc-linux-gnu for?

Post by peebee »

Maybe raise a Woof-CE issue that these files should be deleted at system startup?

I think they are just an Ubuntu phenomenon - Slackware does not seem to be inflicted with them....

Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: What are the files event-sound-cache.tdb.xxx.i686-pc-linux-gnu for?

Post by OscarTalks »

peebee wrote: Fri Jul 30, 2021 9:05 am

I think they are just an Ubuntu phenomenon - Slackware does not seem to be inflicted with them....

Maybe because the Slackware Pups do not have libcanberra?

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: What are the files event-sound-cache.tdb.xxx.i686-pc-linux-gnu for?

Post by OscarTalks »

A bit more information about this.
From the libcanberra homepage at http://0pointer.de/lennart/projects/libcanberra/
"An optional lookup cache can be used if Samba's tdb trivial database is available."
So I am fairly sure that in Ubuntu and Debian, libcanberra is compiled with support for libtdb
This is what is creating these cache files.

As a test, in my personal Dpup Stretch, I have compiled libcanberra from source, with the (optional) dependency on libtdb disabled. I will see if the cache files no longer appear.

Code: Select all

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-alsa --disable-oss --disable-pulse --disable-gstreamer --disable-gtk --disable-gtk3 --disable-tdb --disable-lynx

It tried to ignore my --disable-tdb so I removed the tdb.pc file from /usr/lib/pkgconfig and then it configured OK.

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: What are the files event-sound-cache.tdb.xxx.i686-pc-linux-gnu for?

Post by OscarTalks »

If anyone is interested in testing this out, here are the .PET packages of libcanberra compiled from source in BionicPup32 with libtdb disabled. I think this will prevent the sound cache files from appearing, but I am not totally sure what events can trigger these files so I can't be certain.

Attachments
libcanberra-0.30-i686-bionic.pet
(40.99 KiB) Downloaded 37 times
libcanberra_DEV-0.30-i686-bionic.pet
(6.52 KiB) Downloaded 26 times
Post Reply

Return to “Bionic”