Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: V3.2-2003-04-28

  1. #11
    Junior Member registered user
    Join Date
    Apr 2003
    Location
    Trois-Rivières, Québec
    Posts
    13

    alsa afther knx-hdinstall

    If your sound card works with alsa
    you can add the line
    /etc/init.d/alsa-autoconfig
    in the boot script /etc/init.d/bootmisc.sh
    And alsa ver will be actived at eaxh boot.

    Also i suggest to add in the KNOPPIX/usr/local/bin/knx-hdinstall some lines like the folling:

    # add alsa activation to bootmisc.sh
    # In the boot script /etc/init.d/bootmisc.sh if you add line
    # /etc/init.d/alsa-autoconfig
    # Alsa server start at boot and it ok for my kde.
    # In the KNOPPIX/usr/local/bin/knx-hdinstall of my personalized KNOPPIX I have add some line like:

    if checkbootparam alsa >/dev/null 2>&1; then
    ALSA_CARD="$(getbootparam 'alsa' 2>/dev/null)"
    [ -n "$ALSA_CARD" ] || ALSA_CARD="autodetect"
    else
    ALSA_CARD="autodetect"
    fi

    noalsa=""
    checkbootparam noalsa && noalsa='#'
    checkbootparam noaudio && noalsa='#'
    checkbootparam nosound && noalsa='#'
    checkbootparam NOALSA && noalsa='#'
    checkbootparam NOAUDIO && noalsa='#'
    checkbootparam NOSOUND && noalsa='#'

    echo "# Boot parameter for knx-hdinstall add">>$TR/etc/init.d/bootmisc.sh
    echo "# "$CMDLINE >>$TR/etc/init.d/bootmisc.sh
    echo "# KNOPPIX/usr/local/bin/knx-hdinstall add " >>$TR/etc/init.d/bootmisc.sh
    echo "# 2 lignes to start sound server alsa" >>$TR/etc/init.d/bootmisc.sh
    echo "# uncomment to start alsa at boot" >>$TR/etc/init.d/bootmisc.sh
    echo $noalsa"ALSA_CARD="$ALSA_CARD >>$TR/etc/init.d/bootmisc.sh
    echo $noalsa"/etc/init.d/alsa-autoconfig" >>$TR/etc/init.d/bootmisc.sh

    # So the script knx-hdinstall add /etc/init.d/alsa-autoconfig
    # at the boot script /etc/init.d/bootmisc.sh.
    # May be a futur version of knx-hdinstall can
    # transmit.some parameters to alsa and
    # set USE_ALSA="" if alsa are detected unsafe.
    # Also this option can be offer like for the CUPS server./

  2. #12
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: alsa afther knx-hdinstall

    Quote Originally Posted by Jean Béliveau
    If your sound card works with alsa
    you can add the line ....
    Nice!

  3. #13
    Junior Member
    Join Date
    Apr 2003
    Location
    Eau Claire, WI USA
    Posts
    9

    great!

    hopefully this appears soon in next knoppix iso update!

  4. #14
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297

    Re: alsa afther knx-hdinstall

    Quote Originally Posted by Jean Béliveau
    If your sound card works with alsa
    you can add the line
    /etc/init.d/alsa-autoconfig
    in the boot script /etc/init.d/bootmisc.sh
    And alsa ver will be actived at eaxh boot.

    Also i suggest to add in the KNOPPIX/usr/local/bin/knx-hdinstall some lines like the folling:

    # add alsa activation to bootmisc.sh
    # In the boot script /etc/init.d/bootmisc.sh if you add line
    # /etc/init.d/alsa-autoconfig
    # Alsa server start at boot and it ok for my kde.
    # In the KNOPPIX/usr/local/bin/knx-hdinstall of my personalized KNOPPIX I have add some line like:

    if checkbootparam alsa >/dev/null 2>&1; then
    ALSA_CARD="$(getbootparam 'alsa' 2>/dev/null)"
    [ -n "$ALSA_CARD" ] || ALSA_CARD="autodetect"
    else
    ALSA_CARD="autodetect"
    fi

    noalsa=""
    checkbootparam noalsa && noalsa='#'
    checkbootparam noaudio && noalsa='#'
    checkbootparam nosound && noalsa='#'
    checkbootparam NOALSA && noalsa='#'
    checkbootparam NOAUDIO && noalsa='#'
    checkbootparam NOSOUND && noalsa='#'

    echo "# Boot parameter for knx-hdinstall add">>$TR/etc/init.d/bootmisc.sh
    echo "# "$CMDLINE >>$TR/etc/init.d/bootmisc.sh
    echo "# KNOPPIX/usr/local/bin/knx-hdinstall add " >>$TR/etc/init.d/bootmisc.sh
    echo "# 2 lignes to start sound server alsa" >>$TR/etc/init.d/bootmisc.sh
    echo "# uncomment to start alsa at boot" >>$TR/etc/init.d/bootmisc.sh
    echo $noalsa"ALSA_CARD="$ALSA_CARD >>$TR/etc/init.d/bootmisc.sh
    echo $noalsa"/etc/init.d/alsa-autoconfig" >>$TR/etc/init.d/bootmisc.sh

    # So the script knx-hdinstall add /etc/init.d/alsa-autoconfig
    # at the boot script /etc/init.d/bootmisc.sh.
    # May be a futur version of knx-hdinstall can
    # transmit.some parameters to alsa and
    # set USE_ALSA="" if alsa are detected unsafe.
    # Also this option can be offer like for the CUPS server./
    Thats a nice idea, but it is the wrong fix.

    You just have to run alsa-autoconfig ONCE after an hd-install. (So you could detect it as well and then chroot to it, and do it once.)

    Another possibillity is to cp /etc/modutils/1alsa /etc/modutils/alsa-knx-0.9 or similar to /mnt/target/etc/modutils +

    cp /etc/modules.conf /mnt/target/etc/

    Though you have to add in both choices to bootmisc.sh:

    aumix -w 60 -v 60

    cu

    Fabian

  5. #15
    Junior Member registered user
    Join Date
    Apr 2003
    Location
    Trois-Rivières, Québec
    Posts
    13
    I have test knx-hdinstall wth the folling uncommented line instead of the line of my late post
    on alsa after knx-hdinstall.:

    noalsa=""
    checkbootparam noalsa && noalsa='# '
    checkbootparam noaudio && noalsa='# '
    checkbootparam nosound && noalsa='# '

    echo "# 2 lignes to start sound server alsa" >>$TR/etc/init.d/bootmisc.sh
    echo "# uncomment to start alsa at boot" >>$TR/etc/init.d/bootmisc.sh
    echo $noalsa"aumix -w 60 -v 60" >>$TR/etc/init.d/bootmisc.sh

    # use Knoppix-generated modutils/1alsa and alsa-0.9-knoppix
    cp -af /etc/modutils/1alsa $TR/etc/modutils/1alsa
    cp -af /etc/modutils/alsa-0.9-knoppix $TR/etc/modutils/alsa-0.9-knoppix

    I was inspired of the folling lignes in knx-hdinstal:

    # use Knoppix-generated XF86Config
    cp -af /etc/X11/XF86Config $TR/etc/X11/XF86Config
    cp -af /etc/X11/XF86Config-4 $TR/etc/X11/XF86Config-4

    1alsa and alsa-0.9-knoppix are copied in /etc/modutils/ of the target partition

    and "aumix -w 60 -v 60" ais added to bootmis.sh

    But sound card not work on reboot on target partition!
    So i need more explanation froim fabianx

  6. #16
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297
    Quote Originally Posted by Jean Béliveau
    I have test knx-hdinstall wth the folling uncommented line instead of the line of my late post
    on alsa after knx-hdinstall.:

    noalsa=""
    checkbootparam noalsa && noalsa='# '
    checkbootparam noaudio && noalsa='# '
    checkbootparam nosound && noalsa='# '

    echo "# 2 lignes to start sound server alsa" >>$TR/etc/init.d/bootmisc.sh
    echo "# uncomment to start alsa at boot" >>$TR/etc/init.d/bootmisc.sh
    echo $noalsa"aumix -w 60 -v 60" >>$TR/etc/init.d/bootmisc.sh

    # use Knoppix-generated modutils/1alsa and alsa-0.9-knoppix
    cp -af /etc/modutils/1alsa $TR/etc/modutils/1alsa
    cp -af /etc/modutils/alsa-0.9-knoppix $TR/etc/modutils/alsa-0.9-knoppix

    I was inspired of the folling lignes in knx-hdinstal:

    # use Knoppix-generated XF86Config
    cp -af /etc/X11/XF86Config $TR/etc/X11/XF86Config
    cp -af /etc/X11/XF86Config-4 $TR/etc/X11/XF86Config-4

    1alsa and alsa-0.9-knoppix are copied in /etc/modutils/ of the target partition

    and "aumix -w 60 -v 60" ais added to bootmis.sh

    But sound card not work on reboot on target partition!
    So i need more explanation froim fabianx
    if checkbootparam alsa
    then
    echo "# line to unmute the mixer (eso. needed for alsa)" >>$TR/etc/init.d/bootmisc.sh
    echo "aumix -w 60 -v 60" >>$TR/etc/init.d/bootmisc.sh
    # use Knoppix-generated modutils/1alsa and alsa-0.9-knoppix
    cp -af /etc/modutils/1alsa $TR/etc/modutils/1alsa
    cp -af /etc/modutils/alsa-0.9-knoppix $TR/etc/modutils/alsa-0.9-knoppix
    chroot $TR depmod -a
    fi

    That should work, or try:

    if checkbootparam alsa
    then
    echo "# line to unmute the mixer (eso. needed for alsa)" >>$TR/etc/init.d/bootmisc.sh
    echo "aumix -w 60 -v 60" >>$TR/etc/init.d/bootmisc.sh
    chroot $TR /etc/init.d/alsa-autoconfig
    fi

    cu

    Fabianx

  7. #17
    Junior Member
    Join Date
    May 2003
    Location
    Thousand Oaks, CA
    Posts
    5

    Re: alsa afther knx-hdinstall

    Quote Originally Posted by Fabianx
    Thats a nice idea, but it is the wrong fix.

    You just have to run alsa-autoconfig ONCE after an hd-install. (So you could detect it as well and then chroot to it, and do it once.)

    Fabian
    Presumably, the purpose of using Knoppix as a Linux hard disk installer is to cut through the installation clutter/delay/problems that so many distros seem to have.

    The "correct fix" is to take a snapshot of the Knoppix environment as tweaked by a user after detection of hardware and other boot up issues from the live-on-cd execution and then use those exact settings within a on-the-fly, modified knx-hdinstall script.

    You might think it's the "wrong fix", but then again, your frame of reference might be off. After all, a battleship can't intimidate a lighthouse into moving out of its path.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 5
    Last Post: 09-07-2003, 10:47 AM
  2. Replies: 9
    Last Post: 08-18-2003, 01:28 PM
  3. kernel won't boot on 5/20/2003 or 6/6/2003
    By jedovaty in forum Hardware & Booting
    Replies: 2
    Last Post: 06-12-2003, 06:36 PM
  4. V3.2-2003-04-10
    By Stephen in forum News
    Replies: 13
    Last Post: 04-14-2003, 04:03 AM
  5. V3.2-2003-04-09
    By aay in forum News
    Replies: 14
    Last Post: 04-11-2003, 02:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


AMD EPYC 7282 CPU Processor 16 Cores 32 Threads 2.8GHZ up to 3.2GHZ 120W no lock picture

AMD EPYC 7282 CPU Processor 16 Cores 32 Threads 2.8GHZ up to 3.2GHZ 120W no lock

$75.00



Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc... picture

Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...

$619.99



Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc... picture

Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...

$419.99



Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1 picture

Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1

$39.99



INTEL CORE i5-6500 QUAD-CORE LGA 1151 3.2GHz CPU PROCESSOR SR2L6  picture

INTEL CORE i5-6500 QUAD-CORE LGA 1151 3.2GHz CPU PROCESSOR SR2L6

$25.00



AMD Ryzen 5 4500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor picture

AMD Ryzen 5 4500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor

$79.00



Intel Quad Core i3-12100 3.3GHz 12MB LGA1700 12th Gen. CPU Processor SRL62 picture

Intel Quad Core i3-12100 3.3GHz 12MB LGA1700 12th Gen. CPU Processor SRL62

$45.96



Intel Core i7-3770 3.40GHz 8MB Quad Core Socket LGA1155 CPU Processor SR0PK picture

Intel Core i7-3770 3.40GHz 8MB Quad Core Socket LGA1155 CPU Processor SR0PK

$35.00



Intel 16 Core i7-13700T DESKTOP processor TURBO Boost 4.90Ghz CM8071504820903 picture

Intel 16 Core i7-13700T DESKTOP processor TURBO Boost 4.90Ghz CM8071504820903

$269.00



Intel Core i7-7700 3.60GHz Quad-Core CPU picture

Intel Core i7-7700 3.60GHz Quad-Core CPU

$41.58