Покажи Публикации - vankataloz
* Виж публикациите на потр. | Виж темите на потр. | Виж прикачените файлове на потр
Страници: [1] 2 3 4
1  Linux секция за начинаещи / Настройка на хардуер / Re: RQ: Драйвери за Dell Vostro 1015 Linux Ubuntu 9.10 -: Apr 15, 2010, 19:20
Цитат
#! /bin/sh -e

# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009  Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
. ${libdir}/grub/grub-mkconfig_lib

if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
  OS=GNU/Linux
else
  OS="${GRUB_DISTRIBUTOR}"
fi

# loop-AES arranges things so that /dev/loop/X can be our root device, but
# the initrds that Linux uses don't like that.
case ${GRUB_DEVICE} in
  /dev/loop/*|/dev/loop[0-9])
    GRUB_DEVICE=`losetup ${GRUB_DEVICE} | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
 # We can't cope with devices loop-mounted from files here.
    case ${GRUB_DEVICE} in
      /dev/*) ;;
      *) exit 0 ;;
    esac
  ;;
esac

if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
    || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
    || [ "`grub-probe -t abstraction --device ${GRUB_DEVICE} | sed -e 's,.*\(lvm\).*,\1,'`" = "lvm"  ] ; then
  LINUX_ROOT_DEVICE=${GRUB_DEVICE}
else
  LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
fi

# add crashkernel option if we have the required tools
if [ -x "/usr/bin/makedumpfile" ] && [ -x "/sbin/kexec" ]; then
    GRUB_CMDLINE_EXTRA="$GRUB_CMDLINE_EXTRA crashkernel=384M-2G:64M,2G-:128M"
fi

linux_entry ()
{
  cat << EOF
menuentry "$1" {
        recordfail=1
        if [ -n \${have_grubenv} ]; then save_env recordfail; fi
EOF
  if [ "x$3" = "xquiet" ]; then
    cat << EOF
        set quiet=1
EOF
  fi
  save_default_entry | sed -e "s/^/\t/"
  prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
  cat << EOF
        linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro $2
EOF
  if test -n "${initrd}" ; then
    cat << EOF
        initrd  ${rel_dirname}/${initrd}
EOF
  fi
  cat << EOF
}
EOF
}

list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* ; do
        if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
      done`

while [ "x$list" != "x" ] ; do
  linux=`version_find_latest $list`
  echo "Found linux image: $linux" >&2
  basename=`basename $linux`
  dirname=`dirname $linux`
  rel_dirname=`make_system_path_relative_to_its_root $dirname`
  version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
  alt_version=`echo $version | sed -e "s,\.old$,,g"`
  linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"

  initrd=
  for i in "initrd.img-${version}" "initrd-${version}.img" \
           "initrd-${version}" "initrd.img-${alt_version}" \
           "initrd-${alt_version}.img" "initrd-${alt_version}"; do
    if test -e "${dirname}/${i}" ; then
      initrd="$i"
      break
    fi
  done
  if test -n "${initrd}" ; then
    echo "Found initrd image: ${dirname}/${initrd}" >&2
  else
    # "UUID=" magic is parsed by initrds.  Since there's no initrd, it can't work here.
    linux_root_device_thisversion=${GRUB_DEVICE}
  fi

  linux_entry "${OS}, Linux ${version}" \
      "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_EXTRA} ${GRUB_CMDLINE_LINUX_DEFAULT}" \
      quiet
  if [ "x${GRUB_DISABLE_LINUX_RECOVERY}" != "xtrue" ]; then
    linux_entry "${OS}, Linux ${version} (recovery mode)" \
        "single ${GRUB_CMDLINE_LINUX}"
  fi

while [ "x$list" != "x" ] ; do
  linux=`version_find_latest $list`
  echo "Found linux image: $linux" >&2
  basename=`basename $linux`
  dirname=`dirname $linux`
  rel_dirname=`make_system_path_relative_to_its_root $dirname`
  version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
  alt_version=`echo $version | sed -e "s,\.old$,,g"`
  linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"

  initrd=
  for i in "initrd.img-${version}" "initrd-${version}.img" \
           "initrd-${version}" "initrd.img-${alt_version}" \
           "initrd-${alt_version}.img" "initrd-${alt_version}"; do
    if test -e "${dirname}/${i}" ; then
      initrd="$i"
      break
    fi
  done
  if test -n "${initrd}" ; then
    echo "Found initrd image: ${dirname}/${initrd}" >&2
  else
    # "UUID=" magic is parsed by initrds.  Since there's no initrd, it can't work here.
    linux_root_device_thisversion=${GRUB_DEVICE}
  fi

  linux_entry "${OS}, Linux ${version}" \
      "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_EXTRA} ${GRUB_CMDLINE_LINUX_DEFAULT}" \
      quiet
  if [ "x${GRUB_DISABLE_LINUX_RECOVERY}" != "xtrue" ]; then
    linux_entry "${OS}, Linux ${version} (recovery mode)" \
        "single ${GRUB_CMDLINE_LINUX}"
  fi

while [ "x$list" != "x" ] ; do
  linux=`version_find_latest $list`
  echo "Found linux image: $linux" >&2
  basename=`basename $linux`
  dirname=`dirname $linux`
  rel_dirname=`make_system_path_relative_to_its_root $dirname`
  version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
  alt_version=`echo $version | sed -e "s,\.old$,,g"`
  linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"

  initrd=
  for i in "initrd.img-${version}" "initrd-${version}.img" \
           "initrd-${version}" "initrd.img-${alt_version}" \
           "initrd-${alt_version}.img" "initrd-${alt_version}"; do
    if test -e "${dirname}/${i}" ; then
      initrd="$i"
      break
    fi
  done
  if test -n "${initrd}" ; then
    echo "Found initrd image: ${dirname}/${initrd}" >&2
  else
    # "UUID=" magic is parsed by initrds.  Since there's no initrd, it can't work here.
    linux_root_device_thisversion=${GRUB_DEVICE}
  fi

  linux_entry "${OS}, Linux ${version}" \
      "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_EXTRA} ${GRUB_CMDLINE_LINUX_DEFAULT}" \
      quiet
  if [ "x${GRUB_DISABLE_LINUX_RECOVERY}" != "xtrue" ]; then
    linux_entry "${OS}, Linux ${version} (recovery mode)" \
        "single ${GRUB_CMDLINE_LINUX}"
  fi

while [ "x$list" != "x" ] ; do
  linux=`version_find_latest $list`
  echo "Found linux image: $linux" >&2
  basename=`basename $linux`
  dirname=`dirname $linux`
  rel_dirname=`make_system_path_relative_to_its_root $dirname`
  version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
  alt_version=`echo $version | sed -e "s,\.old$,,g"`
  linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"

  initrd=
  for i in "initrd.img-${version}" "initrd-${version}.img" \
           "initrd-${version}" "initrd.img-${alt_version}" \
           "initrd-${alt_version}.img" "initrd-${alt_version}"; do
    if test -e "${dirname}/${i}" ; then
      initrd="$i"
      break
    fi
  done
  if test -n "${initrd}" ; then
    echo "Found initrd image: ${dirname}/${initrd}" >&2
  else
    # "UUID=" magic is parsed by initrds.  Since there's no initrd, it can't work here.
    linux_root_device_thisversion=${GRUB_DEVICE}
  fi

  linux_entry "${OS}, Linux ${version}" \
      "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_EXTRA} ${GRUB_CMDLINE_LINUX_DEFAULT}" \
      quiet
  if [ "x${GRUB_DISABLE_LINUX_RECOVERY}" != "xtrue" ]; then
    linux_entry "${OS}, Linux ${version} (recovery mode)" \
        "single ${GRUB_CMDLINE_LINUX}"
  fi

  list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
done

Няма такова нещо...
2  Linux секция за начинаещи / Настройка на хардуер / Re: RQ: Драйвери за Dell Vostro 1015 Linux Ubuntu 9.10 -: Apr 15, 2010, 19:15
А как да го добавя? С място? Слято? Запетайка? Дай пример.
3  Linux секция за начинаещи / Настройка на хардуер / Re: RQ: Драйвери за Dell Vostro 1015 Linux Ubuntu 9.10 -: Apr 15, 2010, 18:55
# add crashkernel option if we have the required tools
if [ -x "/usr/bin/makedumpfile" ] && [ -x "/sbin/kexec" ]; then
    GRUB_CMDLINE_EXTRA="$GRUB_CMDLINE_EXTRA crashkernel=384M-2G:64M,2G-:128M"
fi

linux_entry ()
{


Само тука имам kernel= на нещо си... Къде да го добавя това?
4  Linux секция за начинаещи / Настройка на хардуер / Re: RQ: Драйвери за Dell Vostro 1015 Linux Ubuntu 9.10 -: Apr 15, 2010, 12:05
Няма разлика...
5  Linux секция за начинаещи / Настройка на хардуер / Re: RQ: Драйвери за Dell Vostro 1015 Linux Ubuntu 9.10 -: Apr 15, 2010, 01:25
Как да разбера ?
6  Linux секция за начинаещи / Настройка на хардуер / Re: RQ: Драйвери за Dell Vostro 1015 Linux Ubuntu 9.10 -: Apr 14, 2010, 22:54
Код:
sudo alsamixer
..and all to max...

Звука ми тръгва и спира когато си иска... Не вярвам да е намален.

Еdit: всичко е на max
7  Linux секция за начинаещи / Настройка на хардуер / Re: RQ: Драйвери за Dell Vostro 1015 Linux Ubuntu 9.10 -: Apr 14, 2010, 22:53
Как мога да върна системата до това състояние в което е инсталирана? Тогава нямаше проблеми...
8  Linux секция за начинаещи / Настройка на хардуер / Re: RQ: Драйвери за Dell Vostro 1015 Linux Ubuntu 9.10 -: Apr 14, 2010, 22:03
Не... Мисля, че има някакъв проблем тука - не разбирам мн мн от това...

Unknown hardware: "HDA-Intel" "Conexant ID 5067" "HDA:14f15067,10280402,00100300" "0x1028" "0x0402"

Май не разпознава звуковата карта...
9  Linux секция за начинаещи / Настройка на хардуер / Re: RQ: Драйвери за Dell Vostro 1015 Linux Ubuntu 9.10 -: Apr 14, 2010, 17:47
ivan@DellVostro1015:~$ alsactl init
Unknown hardware: "HDA-Intel" "Conexant ID 5067" "HDA:14f15067,10280402,00100300" "0x1028" "0x0402"
Hardware is initialized using a guess method
/usr/share/alsa/init/default:51: control element not found
/usr/share/alsa/init/default:52: missing closing brace for format
/usr/share/alsa/init/default:52: error parsing CTL attribute
/usr/share/alsa/init/default:52: invalid rule
ivan@DellVostro1015:~$ alsactl store
alsactl: save_state:1530: Cannot open /var/lib/alsa/asound.state for writing: Permission denied
ivan@DellVostro1015:~$


Edit: След като се логнах като администратор:

root@DellVostro1015:~# alsactl init
Unknown hardware: "HDA-Intel" "Conexant ID 5067" "HDA:14f15067,10280402,00100300" "0x1028" "0x0402"
Hardware is initialized using a guess method
/usr/share/alsa/init/default:51: control element not found
/usr/share/alsa/init/default:52: missing closing brace for format
/usr/share/alsa/init/default:52: error parsing CTL attribute
/usr/share/alsa/init/default:52: invalid rule
root@DellVostro1015:~# alsactl store
10  Linux секция за начинаещи / Настройка на хардуер / Re: RQ: Драйвери за Dell Vostro 1015 Linux Ubuntu 9.10 -: Apr 14, 2010, 11:49
Я пробвай да напишеш: "alsactl init" и после "alsactl store" и виж дали има промяна.

Къде да го напиша?
11  Linux секция за начинаещи / Настройка на хардуер / Re: RQ: Драйвери за Dell Vostro 1015 Linux Ubuntu 9.10 -: Apr 13, 2010, 23:34
Независимо дали гледам филм с плеър или клипове или слушам mp3...
12  Linux секция за начинаещи / Настройка на хардуер / Re: RQ: Драйвери за Dell Vostro 1015 Linux Ubuntu 9.10 -: Apr 13, 2010, 19:51
Хайде помогнете моля Ви! Звука ми идва и изчезва, когато си поиска...
13  Linux секция за начинаещи / Настройка на програми / Re: Проблем с флаша... -: Apr 13, 2010, 17:04
И пак е така...
14  Linux секция за начинаещи / Настройка на програми / Re: Проблем с флаша... -: Apr 13, 2010, 11:29
Явно има начин да не трътне... Защото не ми тръгва :D
15  Linux секция за начинаещи / Настройка на хардуер / Re: RQ: Драйвери за Dell Vostro 1015 Linux Ubuntu 9.10 -: Apr 13, 2010, 00:22
Звука ми изчезва от време на време...

Edit: Намерих от някъде и написах този код - вижте резултата...


ivan@DellVostro1015:~$ sudo alsa reload
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/ivan/.gvfs
      Output information may be incomplete.
/sbin/alsa: Warning: Processes using sound devices: 3161(pulseaudio).
Unloading ALSA sound driver modules: snd-hda-intel snd-hda-codec snd-hwdep snd-pcm-oss snd-mixer-oss snd-pcm snd-seq-dummy snd-seq-oss snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-timer snd-seq-device snd-page-alloc (failed: modules still loaded: snd-hda-intel snd-hda-codec snd-hwdep snd-pcm snd-timer snd-page-alloc).
Loading ALSA sound driver modules: snd-hda-intel snd-hda-codec snd-hwdep snd-pcm-oss snd-mixer-oss snd-pcm snd-seq-dummy snd-seq-oss snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-timer snd-seq-device snd-page-alloc.
ivan@DellVostro1015:~$



Мисля, че това е свързано с изчезването ми на звука... Some ideas?
Страници: [1] 2 3 4