Idea
#10926: Disabling unneeded services
|
| |
191
|
|
|
Written by sayakb the 9 Jul 08 at 12:33.
Category: Hardware support.
Related to:
Nothing/Others.
Status: New
|
|
|
Description
Can it be done that the services have a partial sleep mode. ie. for example, bluetooth services will stay disabled until a bluetooth device is actually plugged in. Many desktop users do not have bluetooth and the service has to be manually disabled in some cases..
Attachments
No attachments.
Duplicates
Comments
|
droetker wrote on the 9 Jul 08 at 15:53
| |
Maybe the bluetooth service could be started with an udev rule when a bluetooth device is plugged in per usb or switched on.
|
|
glotz wrote on the 9 Jul 08 at 18:44
| |
I think the install should ask you whether you need these services. There's quite a lot of crud there.
|
|
brettalton wrote on the 9 Jul 08 at 21:07
| |
Including Tracker.
|
|
juno eclipse wrote on the 9 Jul 08 at 21:37
|
Definitively a good idea...
+10
|
|
_sebastian_ wrote on the 9 Jul 08 at 22:32
|
there could be a service watching out for any service which might be needed or not needed (any more). This Watchdog service would know the rules when to start or stop a certain service.
It seems to me that bluetooth is a good example of a not so much needed service. *reading through other ideas*
+1
|
|
Auzy wrote on the 10 Jul 08 at 01:09
|
All the bluetooth service only total approximately 2MB of ram (and some of it, not sure it can really be udev'ed like the applet). Cups uses 600kb (but probably cant be disabled because of network printers).
And tracker only uses 8MB here, but you CANT disable that by default (other OS's enable file indexing by default, and if we were using tracker properly, which we aren't, then the benefits would be more evident).
So when you say unneeded services, you ONLY mean bluetooth (which is only 2MB). I'm voting "0". Seriously, all that can be gained is maybe only 500kb of ram. This idea is one of those great in theory ideas, until the facts are checked.
Furthermore, those who want this can simply go to services and turn it off manually (I know 3 clicks is a lot of effort, but I'm sure you'll survive).
+0, this idea seems to revolve around bad facts. There is only a 500kb saving.
|
|
mp3phish wrote on the 10 Jul 08 at 02:21
|
I agree with Auzy to a point. But in reality, a bluetooth service should not be started unless or until a bluetooth driver is used. Why would you be running a background service for hardware that is not used? isn't that the WHOLE purpose of plug and play? Whether its a USB device or an integrated device, the service should depend on the existence of a bluetooth device. Bluetooth is NOT the only complaint this idea recognizes, its just one example.
There are two ways to solve this problem:
1) the bluetooth service should decide whether it can communicate with the bluetooth device, and if not, shut itself down
or
2) whatever service starts the bluetooth service 9i suspect init) should check for bluetooth support before starting the service.
I mean seriously people, come on. This isn't rocket science. Just because it might sayve only 2MB doesn't mean its flawed by design. That is the same mentality that is making ubuntu bloated as crap in the first place (actually, probably the most bloated distro there is)
|
|
DShepherd wrote on the 10 Jul 08 at 03:03
|
Auzy,
I just installed a xubuntu on 128mb of RAM. I need all the 500kb bites there is.
I think this is a good idea.
|
|
Auzy wrote on the 10 Jul 08 at 06:59
|
@DShepherd. You can still disable it manually if you really wish anyway, even now.. Have you actually checked the services on Xubuntu yourself to be SURE that HCId and such are not running anyway? It might not be..
@Mp3phish, I agree it shouldn't be started unless the computer has a bluetooth adapter. However, there are 3 reasons I voted +0..
1) It appears that without hcid running, that Gnome bluetooth cannot be configured at all.. That's probably why it is on by default. To ensure consistent behavior. I'd rather it is enabled rather then the behavior being inconsistent. True its not right, but it looks like it breaks something at the moment.
2) The bloat card is being played in this idea here. Bluetooth was used as an example, because it is the only example. Had the idea been "Don't enable HCID until bluetooth adapter plugged in" and mentioned it was 2MB saved, people would have screamed "bug bug" instead of "ubuntu is bloaty bloaty". I'd be interested in seeing how votes were skewed.
3) I feel its being treated wrong anyway. People who are concerned about bloat SHOULD be voting for automatically installing packages for devices when plugged in. This way none of the bluetooth daemon or gnome configuration tools would even be installed unless the user had the adapter.
Thats my personal opinion. People who are concerned about their 500kb can still EASILY turn off bluetooth anyway (go to services).
|
|
Auzy wrote on the 10 Jul 08 at 07:00
| |
PS glotz, check the so called "crud" too. There isn't much there..
|
|
kahping wrote on the 10 Jul 08 at 12:25
|
what's with the bluetooth obsession? what about others like duplicated services (acpid, apmd)? it's not like u need both at the same time. Ubuntu should only use the one appropriate to the machine and disable the other one
there's even a hotkeys service that's mainly useful for notebooks but not so much for desktops, i think.
why are there 2 system loggers (sysklogd, klogd)? are they dependent on each other? can't Ubuntu just use 1 only?
what about b1tty? only the blind need those for accessibility purposes, right?
finally, there's the RAID management service which is useless to anybody not using a RAID setup.
come to think of it, isn't all this supposed to be resolved by Upstart? Once it's ready to begin deployment in Ubuntu, all this "bloat" should be gone, yes?
|
|
Auzy wrote on the 10 Jul 08 at 12:57
|
wtf are you talking about Kahping..
1) Here only Acpid is running, NOT apmd.
2) Dunno what you are talking about in regards to hotkeys
3) No b1tty service running here
4) Raid service? WTF???
5) According to Google: "The klog dæmon, klogd, is an application process that ties the kernel messaging system to syslogd. Actually, it can also dispatch kernel messages to files". So no duplication here.
This is an almost fresh install here, so if you are running those services, maybe its because:
1) Remnants from an old install (unlikely, but you should submit them as bugs then).
2) Such hardware has been detected on your computer
3) You haven't actually checked.
Its not that I don't trust you, but have you actually checked yourself? Or was it just a quick scan like the first guy?
|
|
Auzy wrote on the 10 Jul 08 at 13:06
|
Actually, can I ask why people are voting this still up.
Is it because none of you guys have actually checked how "valuable" this idea is. This is why Apple has gained such a market-hold. Steve Jobs says "this new MacBook Air is awesome", so people go out and buy it.
Here it seems, that using 1 service as an example to suggest that the problem is major, is enough to convince people to run out and agree. Can I actually ask that everyone who has comments, goes to terminal, runs sudo bash, gnome-system-monitor, and actually lists what services they believe are wasting their precious ram.
Maybe in some configurations more services get run then needed. But here, 500kb worth of bluetooth is all their is.
|
Post your comment
|
|
|