LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-10-2009, 03:57 PM   #16
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556

Sorry -- I misread the issue :|

I too have not found a way to still run X, with HAL dead.

Sasha

Last edited by GrapefruiTgirl; 09-10-2009 at 03:59 PM.
 
Old 09-10-2009, 05:23 PM   #17
Ramurd
Member
 
Registered: Mar 2009
Location: Rotterdam, the Netherlands
Distribution: Slackwarelinux
Posts: 703

Rep: Reputation: 111Reputation: 111
Maybe a totally different question: but why is HAL bad? It took me some getting-used-to, but eventually I found it the solution to many of my issues... This gets me curious, and curiosity can only be met with answers :-)
 
Old 09-11-2009, 03:04 AM   #18
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
Ramurd, as stated in my first post here:
Quote:
this a "how-to" question, I do not expect answers like "why don't you use HAL?" -- there is already (at least) one thread about that anyway.
So please post your question elsewhere, here could be a good place.
 
Old 09-11-2009, 03:37 AM   #19
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
edit:
moved my reply to Ramurd to here to keep this thread clean.

Last edited by GazL; 09-11-2009 at 03:41 AM.
 
Old 09-11-2009, 04:04 AM   #20
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
Thanks GazL.

About disabling HAL, unfortunately the problem is not solved in avoiding dbus usage, as CUPS needs dbus to work -- and I need CUPS to print.

Trying to print without it this morning (Paris time) I saw this in /var/log/syslog:
Code:
Sep 11 10:33:05 darkstar Officejet_Pro_K550?serial=MY5AL2105T: prnt/backend/hp.c 535: dBus Connection Error (Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory)!
Any thought ?
 
Old 09-11-2009, 04:47 AM   #21
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
I guess you could look at recompiling the xserver package and see if you can configure out HAL support at compile time and see if it avoids the problem. But it's getting a little on the involved side.

I hate to say it, but perhaps it's best to just reconsider letting HAL run.
 
Old 09-11-2009, 08:44 AM   #22
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by GazL View Post
I guess you could look at recompiling the xserver package and see if you can configure out HAL support at compile time and see if it avoids the problem. But it's getting a little on the involved side.

I hate to say it, but perhaps it's best to just reconsider letting HAL run.
I agree, fwiw : compiling HAL out of X is getting more involved, and the end may/probably doesn't justify the means.

Here's a thought (though again, more complex than may justify doing it):

We know that X/K/GDM quits/restarts repeatedly if HAL isn't running at the *DM login. BUT: we also seem to know that once we're logged in, HAL can be killed and stuff seems to work fine. SO:

A little bit of editing of the X or DE startup scripts could produce a situation whereby HAL gets stopped after login, but gets restarted before/during/after logout.

This would have HAL running outside of X, but when using X, it would not be running.

...just a thought
Sasha
 
Old 09-11-2009, 12:14 PM   #23
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
I tried to compile xserver with --disable-config-hal option (just editing /source/x/x11/configure/xorg-server in the slackware64-13 tree) but got a compilation error. I will try to find out why this evening (Paris time).

Last edited by Didier Spaier; 09-14-2009 at 03:59 PM. Reason: errors corrected
 
Old 09-14-2009, 12:19 PM   #24
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Did you get any further with this Didier?
 
Old 09-14-2009, 03:58 PM   #25
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
Yes, it works!

I didn't post earlier because at first I had compilation errors.

I suspected this being a side effect of installing all the packages needed to get a multilib Slackware as explained in this page written by Eric Hameleers aka Alien BOB. So I removed all new packages and installed back the "original" ones. But still the same errors.

To make sure it was not caused by some modification of my system before I complain to Pat something like "heh, one of your Slackbuilds don't work" I ended up doing this:
- install VirtualBox in Slackware64-13.0
- install Slackware64-13.0 in a virtual machine with VirtualBox
- mount the DVD as /mnt in the embedded Slackware-13.0 (not modified at all) and run directly /mnt/source/x/x11/x11.Slackbuild

It worked and I got all the packages!

Then as I need only xorg-server I ran following command:
/mnt/source/x1/X11/x11.Slackbuild xserver

It worked!

All I had to do now was edit the configure file, make the packages again and reinstall (in the "physical" machine, of course) the updated packages.

Now I am writing under X and without HAL (but with the dBus daemon running, so I can print with CUPS) and so far, everything seems to work.

To make a long story short, if your installation is cleaner than mine all you have to do is:
1) Copy somewhere the directory /source/x/x11 of the DVD (or a mirror) of the distribution and cd there
2) Edit the file configure/xorg-server (that is to say, source/x/x11/configure/xorg-server) to add following option:
Code:
--disable-config-hal
4) Run following command:
Code:
./x11.Slackbuild xserver
5) Replace the "original" packages by the new ones:
Code:
upgradepkg --reinstall /tmp/x11-build/xorg-server-1.6.3-x86_64-1.txz
upgradepkg --reinstall /tmp/x11-build/xorg-server-xephyr-1.6.3-x86_64-1.txz
upgradepkg --reinstall /tmp/x11-build/xorg-server-xnest-1.6.3-x86_64-1.txz
upgradepkg --reinstall /tmp/x11-build/xorg-server-xvfb-1.6.3-x86_64-1.txz
6) Kill X, then stop the HAL daemon and prevent it from starting at next (re)boot:
Code:
/etc/rc.d/rc.hald stop
chmod -x /etc/rc.d/rc.hald
Then you can start X again or reboot.

WARNINGS
1) Remember that if/when a new xorg-server is released by Pat (for instance following a security advisory) and you still don't want to use HAL, you will have to follow that procedure again.
2) This seems to work here but I didn't make methodical testing.

May be only xorg-server-1.6.3 needs to be modified for all this to work, I don't know.

Happy Slackin!

PS I still don't know why I got these compilation errors on my "real" system but that's another story.

EDIT. This seems to work with as well as without an xorg.conf file and (if HAL is launched) do not prevent auto-mounting of removable devices in XFCE and KDE; may be I could suggest Pat to add the "--disable-config-hal" option in the official xorg-server packages ? What do you think ?

Last edited by Didier Spaier; 09-15-2009 at 05:21 AM. Reason: Error in a package name corrected
 
Old 09-15-2009, 09:36 AM   #26
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Excellent stuff!

I can't see Pat wanting to go with '--disable-hal' in the stock packages. Though there does seem to be a fair number of us who'd rather not have any hal in our X system, hal is becoming the expected norm. Perhaps he'd be open to having a non-hal alternate package in 'extra' though to save people the effort of recompiling it themselves?

The fact the Xserver as shipped was blowing up when dbus was running but hal wasn't, is clearly a bug. It ought to fallback to non-hal mode gracefully in that situation, but at least now we have a proven workaround. Hopefully recompiling won't be necessary in future versions.

Anyway, good job and thanks for posting the results.
 
Old 09-15-2009, 10:00 AM   #27
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Thanks from me too, for the effort & time put into this.

I agree, it'd be nice to have the option of a NON-Hal Xorg in Slackware /Extra but I would understand if Pat is not open to the idea; it does kinda cause a fork in the road so to speak, in terms of him maintaining two versions of the same package, just because a few of us don't like HAL. Also, at times like bug reporting, it may be looked upon as a 'taint' by which, if we report a bug yet are running non-HAL-Xorg, we may be told to re-test for the bug with the official Xorg (in the same sense of bug reporting on tainted kernels)

Anyhow, nice work!
Once I have my install finalized, I'll be rebuilding X as was described here.

Sasha
 
Old 09-15-2009, 11:24 AM   #28
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
Most things doesn't seem to change if one --disable-config-hal in xorg-server: one can still use HAL and if the HAL daemon is launched auto-mounting of removable devices works.

Only caveat AFAIK: in this case any X setting should be made through an /etc/X11/xorg.conf, not an fdi file in /etc/hal as stated in CHANGES_AND_HINTS.TXT

Would someone be eager to look at this issue more thoroughly please do it

Last edited by Didier Spaier; 09-15-2009 at 11:25 AM.
 
Old 09-15-2009, 11:32 AM   #29
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by Didier Spaier View Post
Only caveat AFAIK: in this case any X setting should be made through an /etc/X11/xorg.conf, not an fdi file in /etc/hal as stated in CHANGES_AND_HINTS.TXT
Not really a caveat though in this case; I think that's how things _should_ be: X stuff gets configured in xorg.conf. Makes perfect sense (to me anyway)

What we need is another word; if "caveat" = "beware", and beware being the forboding, ominous sort of word that it is, we need a word meaning "be aware"...

Cheers
Sasha
 
Old 09-15-2009, 11:46 AM   #30
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
Sasha, I meant caveat as in caveat emptor.

Please forgive my bad English anyway; sixty years old and still trying to learn it

Hopefully with the help of WordNet, available at Slackbuilds.org it will be easier.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating from Slackware64-current to Slackware64 13. glore2002 Slackware 4 08-28-2009 06:50 PM
[SOLVED] Slackware64-C client wont detect Slackware64-C Samba server slackass Slackware 5 08-07-2009 11:23 PM
cannot mount internal hard drive: .hal-mtab and .hal-mtab-lock messed up extremewaffles Linux - Newbie 3 07-01-2009 05:15 PM
Selectively disable partitions in KDE/HAL automount lucmove Linux - Desktop 3 05-12-2009 02:28 PM
Disable HAL and dbus on server systems? ufotofu Slackware 6 05-12-2008 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:03 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