Recompilation of the package "gnome-settings-daemon"
The complete documentation and examples are in the attachment.
RATIONALE: "gnome-settings-daemon" is a known trouble maker
Newest version causes high CPU load when pulseaudio not running
https://bugs.launchpad.net/ubuntu/+sour ... bug/404340If you removed PulseAudio from Ubuntu 9.10, it is advisable to recompile "gnome-settings-daemon" with the configure option --disable-pulse
After the successful installation of the recompiled "gnome-settings-daemon" you can
remove this hidden folder: ~/.pulse
and this hidden file: ~/.pulse-cookie
*********************
gnome-settings-daemon
*********************
Original howto is here:
http://linuxinnovations.blogspot.com/20 ... -with.htmlBasic Tools:
Install needed packages for building (some are what the package maintainers use)
sudo apt-get update
sudo apt-get install devscripts build-essential fakeroot
The first thing to do is to enable deb-src in your software sources
gksu gedit /etc/apt/sources.list
sudo apt-get update
Install all dependencies for building the package
sudo apt-get build-dep gnome-settings-daemon
Create a folder for building the package "gnome-settings-daemon" (in this folder, all your source and debs will be)
mkdir ~/Build-gsd-001
cd ~/Build-gsd-001
Get the source package (deb-src) for rebuilding the debian package "gnome-settings-daemon"
apt-get source gnome-settings-daemon
This command downloads the source package and unpacks it.
Check the result:
$ ls
gnome-settings-daemon-2.28.1
gnome-settings-daemon_2.28.1-0ubuntu1.diff.gz
gnome-settings-daemon_2.28.1-0ubuntu1.dsc
gnome-settings-daemon_2.28.1.orig.tar.gz
Change to the folder with the unpacked source
cd gnome-settings-daemon-2.28.1
Check the options of the configure script:
./configure --help
This option is interesting for us:
--disable-pulse turn off PulseAudio support
Now a small exercise in shamanism.
Execute the command:
EDITOR=gedit dch -nmu low
This will open a gedit text editor. Simply hit save and close it.
This ancient shamanistic ritual creates empty file: ~/Build-gm-002/gnome-settings-daemon-2.28.1/debian/changelog.dch
There is a belief that this ritual, if correctly performed, may ensure the success of recompilation.
Edit the rules (see EXAMPLES in the attachment):
gedit ./debian/rules
Add this line to the proper place:
DEB_CONFIGURE_EXTRA_FLAGS += --disable-pulse
Now save and close.
Then we have to edit these files:
gedit ./debian/control
gedit ./debian/control.in
See EXAMPLES in the attachment.
It might be reasonable to increase the number of the version.
A higher number of the version will prevent the package from upgrading.
Open "changelog":
gedit ./debian/changelog
and increase the number of version (fist line)
OLD:
gnome-settings-daemon (2.28.1-0ubuntu1) karmic; urgency=low
NEW:
gnome-settings-daemon (2.35.1-0ubuntu1) karmic; urgency=low
See EXAMPLES in the attachment.
# # now back to the commands
# # -b builds a binary package (deb)
# # -j4 is useful for multicore processors, but won't hurt if you don't have one
# # -D checks for build conflicts and aborts if there is a
# # conflict (i and everyone i know have never ran into this problem)
dpkg-buildpackage -b -j4 -D
Move back a directory
cd ..
Use the following command to see what debs you have created
ls *deb
$ ls *deb
gnome-settings-daemon_2.35.1-0ubuntu1_i386.deb
gnome-settings-daemon-dev_2.35.1-0ubuntu1_i386.deb
Check the result:
dpkg --info gnome-settings-daemon_2.35.1-0ubuntu1_i386.deb
Before installation, disable "gnome-settings-daemon" (System -> Preferences -> Startup Applications)
and reboot.
Install "gnome-settings-daemon"
sudo dpkg -i gnome-settings-daemon_2.35.1-0ubuntu1_i386.deb
Enable "gnome-settings-daemon" (System -> Preferences -> Startup Applications)
and reboot
sudo reboot
After the successful installation of the recompiled "gnome-settings-daemon" you can
remove this hidden folder:
~/.pulse
and this hidden file:
~/.pulse-cookie
**************************************************************************
This is my installation listing of the recompiled "gnome-settings-daemon":
$ sudo dpkg -i gnome-settings-daemon_2.35.1-0ubuntu1_i386.deb
[sudo] password for igor:
(Reading database ... 152778 files and directories currently installed.)
Preparing to replace gnome-settings-daemon 2.28.1-0ubuntu1 (using gnome-settings-daemon_2.35.1-0ubuntu1_i386.deb) ...
Unpacking replacement gnome-settings-daemon ...
Setting up gnome-settings-daemon (2.35.1-0ubuntu1) ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place