LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-23-2010, 07:21 PM   #1
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
dbus and Xorg


Recently I installed a ARCH system and came to a similar issue that I have found before and wondered who exactly over at xorg thought this particular match was a good idea. I of course am refering to the good old problem of xorg devs thinking everyone uses dbus and hal these days.

For those lost in my words above let me explain. You see when you first get xorg on a system, well it don't like to play nice. Actually it does something very very bad IMHO. If you do not add a line in the xorg.conf file under Serverflags that says AllowEmptyImput "False" then xorg will start and leave you without keyboard or mouse support. So you have to literally turn the computer off. Who over at xorg thought this was a good idea? Why is it not set by default (esp if it cannot find dbus or hal on the system) to allow empty imput?

This really brings me to my second point here and that is do we really need dbus and hal. The really funny question is that back before dbus and hal linux could do everything that dbus and hal do. The only thing that I know dbus is good for is mounting external drives automatically and detecting input devices. But both of these can be accomplished without using dbus or hal. I have no issues doing either of these and I do not have either one installed. They have almost just become a unnecessary requirement for some programs that got along fine without them for years.

Back in the day when dbus was new I dare say that I was excited to see it come as it looked like it would solve alot of problems. But looking at it today I have to conclude that it just causes more problems, uses up resources, and can be a potential security risk.

I really think there needs to be a better more simpler solution as the value add of these systems are lost in the ether, or people just simply find ways to work around them.

I welcome your input if you have constructive input.
 
Old 05-23-2010, 08:43 PM   #2
vorbote
Member
 
Registered: Aug 2009
Location: 2,625 m of paranoia above sea level
Distribution: Arch Linux, Debian GNU/Linux, Fedora, Void Linux, FreeBSD, OpenBSD and Win10
Posts: 77

Rep: Reputation: Disabled
The purpose of D-Bus and HAL is automatic hardware detection. Yes, I know where you are coming from, having used Linux since Torvalds announced it in comp.minix and UNIX for a long time before Fall of 91, but I can't agree with you in earnest. Automatic hardware detection and autoconfiguration are worthwhile goals and that's what D-Bus and HAL provide.

Now, I can't disagree with you if you are complaining about HAL. It was a prototype and it is Fedora and Ubuntu's fault that it became a standard before its time. The real implementation, namely, udisk, upower and libudev are far, far better at solving the problem of publishing kernel runtime hardware detection to user space. Now, D-Bus is a different kettle of fish. As far as RPC implementations go, it is one of the cleanest and less mad things around. CORBA is a horrid hack and Sun RPC (still used in NFS) is as flaky as it can get. (And don't get me started in such abominations such as ToolTalk, the sure fire way to get your Sun Workstation owned, meh!).

Now, we have to wait (I'm frying other kettle of fish) for the X developers to get their act together and reimplement their HAL hacks using the libudev API and we will be all happy campers.

Last edited by vorbote; 05-23-2010 at 08:44 PM.
 
Old 05-23-2010, 08:59 PM   #3
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
You say that Linux could do all these things before HAL and dbus, but to be honest it couldn't - it was a pain in the ass. When I first started using Linux it was RedHat 7, and configuring XFree86 was a major, major nightmare. Nothing Just Worked. All that crap has now gone - Xorg doesn't even need an xorg.conf file any more. With dbus memory sticks can be auto-mounted, when I plug a bluetooth adapter in I can tether to my mobile with no hassle, when I plug a monitor into my laptop I can flip between screens with the click of a mouse.

All the old problems with the Linux Desktop have been solved with dbus, udev, XRandR and (dare I say it) PulseAudio. HAL was a crap stop-gap, so I'll give you that, fortunately it's going away - Fedora have completely removed it in F13. To be perfectly honest, I used to think all this stuff was a waste of time. I used to compile my own kernels and glibc as well, though.

Give in to the dark side. Run dbus. Remove your xorg.conf. You know you want to.

Dave
 
Old 05-23-2010, 09:08 PM   #4
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Original Poster
Rep: Reputation: 87
One of the biggest problems I have with dbus really is developer of other apps that use it for no reason. There have been many times where adding dbus support is an option to a program, but its never real clear on why its needed or why the option is even there. You can compile the program without it and it works just fine. I just wish devs would not just add it just to add it. Im happy to see that some projects have shied away from it instead of just putting into there program simply for the grounds of saying "well it uses dbus so its gotta be great". Seams back in the day people added it to there project just because it was cool and new.

I do agree on your point that as of this moment there is nothing that does what dbus does thats better, and most of the time it does what its supposed to without issues.
 
Old 05-23-2010, 09:10 PM   #5
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Original Poster
Rep: Reputation: 87
Quote:
Give in to the dark side. Run dbus. Remove your xorg.conf. You know you want to.
No I don't want to... Dbus goes full retard on me with a synapics touch pad, and its way easier for me to uncomment a few lines in xorg.conf then for me to compose a horrible xml document.
 
Old 05-24-2010, 06:30 AM   #6
vorbote
Member
 
Registered: Aug 2009
Location: 2,625 m of paranoia above sea level
Distribution: Arch Linux, Debian GNU/Linux, Fedora, Void Linux, FreeBSD, OpenBSD and Win10
Posts: 77

Rep: Reputation: Disabled
Quote:
Originally Posted by exvor View Post
No I don't want to... Dbus goes full retard on me with a synapics touch pad, and its way easier for me to uncomment a few lines in xorg.conf then for me to compose a horrible xml document.
If you want to use the old mouse/keyboard/synaptics drivers rather than work with the evdev driver that uses D-Bus, you can add the options "AllowEmptyInput false" and "AutoAddDevices false" to the serverflags section of your xorg.conf file and configure everything by hand.

Last edited by vorbote; 05-24-2010 at 06:56 AM. Reason: Oops! AllowEmptyInput mush be "false"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dbus "rm /var/run/dbus/Desktop can't remove..." longus Slackware 6 12-15-2008 03:33 AM
Fedora Core 9 update dbus.exception & dbus.proxies & DBus.Error.AccessDenied errors trien27 Fedora 1 12-08-2008 11:23 PM
Medion MIM 2310 powersoff without Xorg...when Xorg installed does not power off. gluesniffmonkey Linux - Laptop and Netbook 6 12-04-2007 07:28 PM
Sid Users - Beware of Xorg 7.3 (xserver-xorg-input-evdev) bug rickh Debian 4 10-24-2007 03:30 AM
recent dist-upgrade of xorg has killed my mouse (and thusly, xorg). Lokathor Debian 4 06-10-2006 04:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration