Re: Help with getting a script to run at bootup..

From: Scott Gardner (gardners14_at_cox.net)
Date: 06/16/04


Date: Wed, 16 Jun 2004 03:25:02 -0700

Scott Gardner wrote:

> Scott Leighton wrote:
>
>> Scott Gardner wrote:
>>
>>>
>>> Then, I reboot the computer, and press F2 to watch the details as the
>>> system
>>> boots up. I can see the output from my "mute_digital" script running
>>> right before the details screen goes away, so I'm pretty sure it's
>>> running at startup, but after I get to my desktop, there's no sound, and
>>> when I run alsamixer, the optical output isn't muted.
>>>
>>
>> Did you take a look at /var/log/boot.msg to see if any error
>> message flashed on the screen?
>>
>> Scott
>>
>>
>
> Here's the output from boot.msg. I included the commands that executed
> right before and right after my script, to make sure I didn't miss
> anything: My script is the one title "mute_digital"
>
>
> <notice>start services (splash_late)
> <notice>exit status of (splash_late) is (0)
> <notice>start services (mute_digital)
> numid=163,iface=MIXER,name='Audigy Analog/Digital Output Jack'
> ; type=BOOLEAN,access=rw---,values=1
> : values=off
> <notice>exit status of (mute_digital) is (0)
> <notice>start services (webmin smb)
>
>
> The text that's returned by the script is the same as if I run it from a
> command line.
>
> Scott Gardner

Found out a little bit more about the problem. I decided to play an album
while booting up the system. During the bootup, as soon as the system
loads the emu101k service, I get sound from my sound card. Then X starts,
and I get the KDE desktop. While the KDE splash screen is displayed, there
are several icons in the splash screen that progressively go from dim to
bright as KDE loads. The second icon is a wrench ("services", I think?),
and the third icon is a globe ("Devices" perhaps?). Anyway, right about
the time the wrench icon goes bright and it starts working on the globe
icon, the sounds cuts off again.

So, I think there's something in the KDE environment that's re-enabling the
optical output of my sound card and killing the analog output. The script
I added to the rc5 directory looks like it's unnecessary, since the sound
actually worked even before my script executed. It's something that
happens later when KDE is loading that's re-enabling the optical output and
screwing me.

I'll try to find the KDE component that's doing it, but in the meantime, is
there a place I can put my script so that it will execute after KDE is
finished loading?

Thanks again,
Scott Gardner



Relevant Pages

  • KDE Trash Can Icon Change
    ... My problem is that KDE does not notice I have ... changed the state of the Trash directory from "has trash" to "empty" ... How would I change the icon from within a BASH script so my desktop ...
    (alt.os.linux)
  • Re: Non existing programs in the K menu
    ... possible to have an icon or menu startup for them? ... Do you just need to run the script, ... First make sure you know how to point to an excecutable file. ... One is KDE, the other is GNOME, but both will work on your openSUSE ...
    (alt.os.linux.suse)
  • Re: How dial outside of KDE/Gnome ???
    ... ]>>> I can dial my ISP nicely from KDE or Gnome. ... Worked fine in command line driven mode (even script ...
    (comp.os.linux.networking)
  • Summary: Re: Installing Gnome and KDE using Jumpstart?
    ... Stefan Varga (great scripts for KDE) ... > use finish script in rules file ... > I want to install KDE and Gnome2.0 on all our clients. ... > updating all of them to Solaris 9, I am trying to add to our jumpstart ...
    (SunManagers)
  • Re: kweather in metric
    ... Next, it's not just to "switch" the binaries to try the new update to see what it reports, you need to turn off the whole KDE, switch the files and start it again, whcih results in all to much work. ... extracting and installing the rpm's took more ... I'm all to lazy to rebuild the whole ebuild, so I just extract the source and only build the kweather with my fix for the sunraise/sunset times for remote locations (sadly this don't work for the icon itself, I get a night icon more often than a day icon). ... I think it had been good if KDE used the local defaults, buyt had a configuration page in the control-center where you could adjust locale settings and use a "custom" local instead of those defaults. ...
    (comp.windows.x.kde)