LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-01-2006, 03:16 PM   #1
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: Almalinux
Posts: 66

Rep: Reputation: 15
USB/hald problems after upgrading to Mandriva 2006


I recently upgraded from Mandrake 2005LE to Mandriva 2006. I didn't want to have an unsupported release so when they stopped providing 2005LE patches and updates I decided to move up to the next version -- had I read all the criticism of 2006 I probably would have waited. Everything seemed to be ok until I noticed that none of my USB devices were recognized anymore. This was a huge problem because I am using a USB network adapter. I managed to get it working, but I don't know how to keep it that way, so I'm looking for some advice. Here's what I've figured out:

After the upgrade, the "usb" service was no longer loaded at startup by default. This loads the usbcore module, which is needed for usbnet, echi_hcd, and ohci_hcd. I'm not very good at working with startup scripts or other lower-level configuring, so I usually use webmin or a similar program to configure my system. I was able to enable the usb service, but it is currently last in the boot order. I still run into problems because there are several programs that are run during startup (before the usb service is loaded) that require my USB network adapter, for example. Once the system has booted up I can start them manually, but I'd prefer the automatic approach. How can I change the boot order of the usb service so it is one of the first things to start?

A second somewhat unrelated problem has to do with the haldaemon service. It fails to start when the system boots up due to an error. I figured out that it seems to be a problem with the messagebus service. Even though messagebus is started correctly during startup, I have to restart it so I can manually start haldaemon:

-right after boot:
Code:
root@computer ~ # service messagebus status
dbus-daemon-1 (pid 5495) is running...
root@computer ~ # service haldaemon status
hald is stopped
root@computer ~ # service haldaemon start
Starting HAL daemon:                                            [FAILED]
-to start the haldaemon:
Code:
root@computer ~ # service messagebus restart
Stopping system message bus:                                    [FAILED]
Starting system message bus:                                    [  OK  ]
root@computer ~ # service messagebus status
dbus-daemon-1 (pid 6816 5495) is running...
root@computer ~ # service haldaemon start
Starting HAL daemon:                                            [  OK  ]
root@positron ~ # service haldaemon status
hald (pid 6834) is running...
Has anyone encountered this problem or have an idea on how to fix it?

Thanks!
 
Old 10-03-2006, 01:19 AM   #2
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
Quote:
I was able to enable the usb service, but it is currently last in the boot order
look at the command chkconfig
I guesss if you remove the service with it then put it back it may
occupy a different position

Otherwise the position is given by the script /etc/init.d/ somewhere
which will be named Snnsomething where nn are digits, you could
rename it so nn is lower (you will have to do this in all run levels
and for the Kill script Knn

Otherwise maybe upgrade to 2007?

As a temp fix you could add
service haldaemon start
to your /etc/rc.local
 
Old 10-03-2006, 08:15 PM   #3
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: Almalinux
Posts: 66

Original Poster
Rep: Reputation: 15
Thanks for the tip. I looked through my /etc/init.d/ directory, and there are lots of service scripts:

Code:
root@computer /etc/init.d # ls
acpi*       dm*         keytable*            mtink*     oki4daemon*       routed*     upsmon*
acpid*      dund*       kheader*             mysqld*    pand*             shorewall*  usb*
alsa*       functions   killall*             netfs*     partmon*          single*    usb.lock
apcupsd*    haldaemon*  lads*                netplugd*  portmap*          smb*        webmin*
arpwatch*   halt*       mailman*             network*   portsentry*       sound*     webmin.rpmnew*
atd*        halt.old*   mandrake_consmap     nfs*       postfix*          sshd*      webmin.rpmsave*
autofs*     harddrake*  mandrake_everytime*  nfslock*   prelude-manager*  syslog*     winbind*
bluetooth*  hidd*       mandrake_firstime*   nifd*      proftpd*          tmdns*      xfs*
crond*      httpd*      mDNSResponder*       ntpd*      psacct*           udev*       xinetd*
cups*       iptables*   messagebus*          numlock*   rawdevices*       upsd*
I couldn't find the type of scripts you mentioned. Am I looking in the right place? I did find some startup scripts in /etc/rc.d that appeared to start the usb service (specifically rc.sysinit) but making changes there didn't appear to help. I also tried making changes in /etc/modprobe.preload but that didn't seem to work either. The usb service is still being loaded late during boot (the webmin interface has it listed as 99 in the boot order, I'd like to move it to about 14 or so). Unfortunately, chkconfig was also unsuccessful:

Code:
root@computer /etc/rc.d # chkconfig --list usb
service usb does not support chkconfig
I'm considering trashing the whole thing and doing a clean install, but I'd like to see if there's any possible way I can get this working...I'm afraid it might be a common problem with 2006, in which case I guess I'll just go back to 2005LE. I didn't think that 2007 was out of the beta stages yet, and based off this experience there's no way I'm going to use a beta release. What's the most recent/best 2007 release candidate?

Any other suggestions?
 
Old 10-04-2006, 01:13 AM   #4
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
it think this is the syntax
chkconfig --list
then something like
Code:
chkconfig --del name
	      The  service is removed from chkconfig management, and any sym-
	      bolic links in /etc/rc[0-6].d which pertain to it are  removed.
then something like
chkconfig --add usb
chkconfig --level 12345 usb on

>>Am I looking in the right place? I did find some startup scripts in /etc/rc.d
Yes and know. I assumed you were familiar or would research this a bit.
Your listing is good: it shows usb in /etc/rc.d
So that service exists
each script in that directory is "duplicated" in /etc/rc[0-6].d
just with a symbolic link; these links in **each** rd[n].d
you want to rename

Quote:
I'm considering trashing the whole thing and doing a clean install, but I'd like to see if there's any possible way I can get this working
Try the above, it is a learning opportunity (ok yu may break something
but that is one way to learn.
The 2007 is coming out very soon (less than 4 weeks). It is advertised
as cover of some mags. There is a Release Candidate called suna I think.
Leave it alone. Just wait for the official / community version
EDIT hoops it is out today/yesterday
http://www.mandriva.com/en/download

Last edited by Emmanuel_uk; 10-04-2006 at 02:03 AM.
 
Old 10-13-2006, 11:40 AM   #5
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: Almalinux
Posts: 66

Original Poster
Rep: Reputation: 15
Ok after some screwing around I was able to get things working pretty much as well as they did before the "upgrade." The usb service needs to be one of the first things run during bootup (right after udev). I also found out that messagebus wasn't in my startup directory either even though the service would be running by the time the system came up. My guess is that it is started by a different process in a manner that makes it inaccessible to haldaemon.

So here's the listing of my /etc/rc5.d directory as an example:
Code:
root@computer /etc/rc5.d # ls
S01udev@       S11mysqld@    S17alsa@        S30dm@          S60apcupsd@          S81winbind@  S99webmin@
S02usb@        S11netplugd@  S18sound@       S55sshd@        S60autofs@           S90crond@
S03iptables@   S11portmap@   S19messagebus@  S55tmdns@       S60nfs@              S91smb@
S05harddrake@  S12syslog@    S20xfs@         S56ntpd@        S75keytable@         S92httpd@
S05psacct@     S13partmon@   S25haldaemon@   S56rawdevices@  S80postfix@          S95kheader@
S10network@    S15cups@      S25netfs@       S56xinetd@      S80prelude-manager@  S99local@
Note that I have added the usb service as S02usb (immediately after udev) and the messagebus service as S19messagebus (a little before haldaemon). For some reason the upgrade removed these services from the startup process. After tweaking my network settings alittle, I am pleased to say that my usb network controller is now fully operational and comes up automatically during the boot process. Adding messagebus appears to run the service twice:

Code:
root@computer /etc/rc5.d # service messagebus status
dbus-daemon-1 (pid 6061 4352) is running...

root@computer /etc/rc5.d # ps -eF | grep dbus
15      4352     1  0   560  1184   0 11:22 ?        00:00:00 dbus-daemon-1 --system
bones   6060     1  0   651   732   0 11:22 ?        00:00:00 /usr/bin/dbus-launch --exit-with-session --auto-syntax
bones   6061     1  0   537   876   0 11:22 ?        00:00:00 dbus-daemon-1 --fork --print-pid 8 --print-address 6 --session
But haldaemon will now start correctly during boot, so it seems to work. I know a lot of people had problems with USB devices after upgrading to Mandriva 2006, so hopefully this will help out some people.
 
  


Reply

Tags
haldaemon, mandriva, usb



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
Problems for install ADSL USB Modem in Mandriva 2006 victorsr Linux - Laptop and Netbook 2 09-27-2006 03:28 PM
Problem with USB after upgrading to 2006 perdyv Mandriva 4 12-11-2005 03:07 AM
Mandriva 2006 does not recognize USB tolstyi Mandriva 4 12-04-2005 11:48 AM
ATI TV Wonder Pro problem after upgrading to Mandriva 2006 from 2005 LE Olle Gladso Linux - Hardware 1 11-26-2005 10:52 PM
Mandriva 2006 usb mouse lost parametric Mandriva 2 10-23-2005 06:09 AM

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

All times are GMT -5. The time now is 11:42 PM.

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