openSUSE Forums > Install/Boot/Login » What is the startup process

Go Back   openSUSE Forums > Install/Boot/Login
Forums FAQ Members List Search Today's Posts Mark Forums Read


Install/Boot/Login Questions about installation, login, boot issues, partitioning, file systems, software that runs at boot (GRUB, LILO, boot scripts)

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 15-Jun-2009, 14:08
Puzzled Penguin
 
Join Date: Jun 2009
Posts: 20
pilotmm hasn't been rated much yet
Default What is the startup process

Hello All

I have a strange hardware problem that is fixed by restarting the driver. I have tried to fix the problem directly, but am stuck and not getting much help on the forums. So I am resigning to a work-around solution. I want to add a script to the startup sequence that simply restarts the driver. It is important that the script has root privileges.

I tried to add a script `restartDriver' to init.d with a link in rc5.d called `S20restartDriver' yet, it doesn't ever seem to be called. In `restartDriver' I have several echo calls that print to the stdout and a file to tell me that it worked. Yet, I never see anything that it was executed when I restart. I have added things to init.d successfully before in Suse 10.1 however, having trouble with Suse 11.1.

I don't care if this script is ran in the init.d stage or other stages. It isn't a service, just a little fix that needs to be run at the latter part of the start-up procedure. Are there other scripts that I can edit? I am not very familiar with the start up procedure, and have been trying to find documentation for KDE and Suse. Yet, no success. Any help would be greatly appreciated.

Take Care
PILOTMM

Computer Info:
==============
Motherboard: Asus M3N78-VM
CPU: AMD Phenom(tm) II X4 940 Processor
Total memory (RAM): 3.7 GB
Kernel Version: 2.6.27.23-0.1-default x86_64
Operating System: openSuse 11.1
Reply With Quote
  #2 (permalink)  
Old 15-Jun-2009, 14:30
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: What is the startup process

You could always put the whole script into /etc/init.d/boot.local ??
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #3 (permalink)  
Old 15-Jun-2009, 15:48
Puzzled Penguin
 
Join Date: Jun 2009
Posts: 20
pilotmm hasn't been rated much yet
Default Re: What is the startup process

Hi BenderBendingRodriguez

Thanks for the help. I did as you instructed, the work-around commands were executed, yet it wasn't late enough in the boot process to have an effect.

I should elaborate, the problem is with my sound card. From init.d sound is initialized when switching to runlevels 2, 3 and 5. The driver needs to be restarted after that point for it to fix the problem. Are there any other scripts executed after all the run level scripts are executed?

Thanks
PILOTMM

PS If you know who are the people that manage the start-up/sound for openSuse please tell me. I would like to talk to them directly, so hopefully this problem is resolved in future releases.
Reply With Quote
  #4 (permalink)  
Old 15-Jun-2009, 15:52
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: What is the startup process

Check when is the alsasound initiated and change that to as early as possible (preferably just before the boot.local script).

But what is the problem with the sound you're having??
Have You tried this tutorial?
SDB:AudioTroubleshooting - openSUSE
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #5 (permalink)  
Old 15-Jun-2009, 18:15
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,233
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: What is the startup process

Init scripts on SUSE must have the metadata for the service in the significant comments at the top of the file. See /etc/init.d/skeleton for an example and documentation. Then they have to be registered with the init system with insserv or chkconfig. Otherwise the symlinks are not created properly and the scripts are not sequenced to execute.

If it's a patch for alsasound, maybe you could modify the existing script to run the initialisation twice, or do you need to wait a while before the second run?
Reply With Quote
  #6 (permalink)  
Old 16-Jun-2009, 00:45
Puzzled Penguin
 
Join Date: Jun 2009
Posts: 20
pilotmm hasn't been rated much yet
Default Re: What is the startup process

Hello All

BenderBendingRodriguez in Yast I tried switching alsasound to start at the B run level, then have it restarted in boot.local. That had no effect.

I have gone through the recommended tutorial (and several others). The problem is not that I don't have sound, it is just that the driver doesn't share the sound channels. Thanks to the tutorial, I am starting to suspect that pulseaudio is the problem. I would like to know when in the startup sequence pulse audio is started.

For more details on the specific sound problem see my post: Applications cannot share sound channels - LinuxQuestions.org

ken_yap thanks for the info on the meta data and the other programs. I manually added the symbolic links, I guess more is needed in Suse. Good to know for next time.

ken_yap I added the following to my alsasound script to see if it works. Let me reboot and I will report further.

Thanks for all the Help
Take Care
PILOTMM

Code:
       start)
	if [ "$PREVLEVEL" = "N" ]; then
	    test -d /proc/asound && start_rest
	else
	    start_all
	    stop_all  # Added to fix problem
	    start_all # Added to fix problem
	fi
        ;;
Reply With Quote
  #7 (permalink)  
Old 16-Jun-2009, 01:14
Puzzled Penguin
 
Join Date: Jun 2009
Posts: 20
pilotmm hasn't been rated much yet
Default Re: What is the startup process

Hi ken_yap

Thanks for your help. I tried your suggestion, even added a sleep 60s before the restart. Still nothing happened. I am starting the think that the problem is with pulseaudio. So teh restart would have to happen then.

Could anyone tell me when pulse audio starts. Also could someone tell me how to disable its start up. Thanks.

Take Care
PILOTMM
Reply With Quote
  #8 (permalink)  
Old 16-Jun-2009, 03:21
natural_pilot
Guest
 
Posts: n/a
Default Re: What is the startup process

> Could anyone tell me when pulse audio starts.

no idea


> Also could someone tell me how to disable its start up. Thanks.


if you *search* these fora you will (eventually) find that some folks
SOLVE all their sound problems by simply removing all pulse audio
(using YaST)..

please do your own research before you TRY this! (that is, if you
remove pulse audio and your machine catches on fire and burns down
your house--do NOT come crying to me!)

--
natural_pilot
Reply With Quote
  #9 (permalink)  
Old 16-Jun-2009, 05:08
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: What is the startup process

First thing i do is to remove PulseAudio openSUSE's kernel doesn't allow it to be normal instead it's always choppy.
Alsa all the way.

P.S. You give useful info but it looks like there is no one that could help You with that, it's too complicated.
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #10 (permalink)  
Old 16-Jun-2009, 06:03
Knurpht's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: groningen, netherlands
Posts: 1,804
Knurpht 's reputation will be famous soon enoughKnurpht 's reputation will be famous soon enoughKnurpht 's reputation will be famous soon enough
Default Re: What is the startup process

I one of those who completely removed pulseaudio. On my laptop that is. If I were you, and not running Gnome, I would do so as well. It might even be, that if you reboot and reinstall pulseaudio it loads later than originally and does not interfere anymore. Read something like that on Ubuntu fora.
Point is, that you're creating a non standard situation. Doing so requires detailed information to be saved. I know from experience that it's always these things that start counting when there's other problems and you don't remember why you changed what.
__________________
- AMD Athlon X2 6.0 GHz, 8 GB DDR2-800, 30 GB SSD, 1.5 TB, EVGA 9800GT, openSUSE 11.2 KDE4 4.3.3
- ASUS K70IO laptop, GT120M-1GB, 4 GB, 64 GB SSD, opensuse Factory, KDE4 4.3.3

R.E.S.T.E.C.P.

Last edited by Knurpht; 16-Jun-2009 at 06:07. Reason: Point is...
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2