Prisijungti

ubuntu 16.04 neužsikrauna

sat
  • 12 Spa '16

Kelintą kart neužsikrauna grafinė aplinka. Kartais padeda gdm pakeitimas į wdm. Nepavyksta žiūrėti lrt tiesiogiai ir įrašu. Gal kas susidūrėt su tokia problema. Ubuntu 16.04. ne unity.

sat
  • 12 Spa '16

Dar problemos su garsu, nėra garso vlc, rhythmbox. Ubuntu-resticted-exstras , codecai, gstream įdiekta.

TechtronicMindaugas N.
  • 12 Spa '16

@sat labas,

Kartais padeda gdm pakeitimas į wdm. Nepavyksta žiūrėti lrt tiesiogiai ir įrašu. Gal kas susidūrėt su tokia problema. Ubuntu 16.04. ne unity.

Bandom dar karta, tik tokiu formatu:

Sveiki, padekit spresti problema
Negaliu ziureti lrt transliaciju adresu https://666.0.0.1/rtmp/opus.m3u - pakimba visa operacine sistema su tokia klaida ....
Informacija apie sistema: Ubuntu 16.04 Gnome Shell 0.666 kuri man paleidzia GDM, naudojamas GPU yra Nvidia gtx 6666 su uzdaro kodo Nvidia tvarkyklemis 123.666-r4....

Placiau http://www.catb.org/~esr/faqs/smart-questions.html

Dar problemos su garsu, nėra garso vlc, rhythmbox. Ubuntu-resticted-exstras , codecai, gstream įdiekta.

Paleidus naudojant terminala rhythmbox ar Vlc raso gal ka?

sat
  • 1
  • 13 Spa '16

Garsas prapuolė po grafinės aplinkos užlūžimo. Dabar paleidus terminale vlc, radijo stotį, kuri anksčiau veikė rašo:

st@st-KT400-8235:~$ vlc
VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80)
[08596948] core libvlc: VLC paleidžiama naudojant numatytąją sąsają. Norėdami naudoti leistuvę be sąsajos, naudokite „cvlc“.
[085a66b0] core playlist: stopping playback
[08666280] http access: Raw-audio server found, mp3 demuxer selected
sat
  • 1
  • 13 Spa '16

Dėl garso rhythmbox rašo daugiau:

st@st-KT400-8235:~$ sudo rhythmbox

(rhythmbox:3573): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
Rhythmbox: could not connect to socket
Rhythmbox: Toks failas ar aplankas neegzistuoja
/usr/lib/rhythmbox/plugins/magnatune/MagnatuneAccount.py:37: PyGIWarning: Secret was imported without specifying a version first. Use gi.require_version('Secret', '1') before import to ensure that the right version gets loaded.
  from gi.repository import Secret
Traceback (most recent call last):
  File "/usr/lib/rhythmbox/plugins/magnatune/magnatune.py", line 94, in do_activate
    self.entry_type = MagnatuneEntryType()
  File "/usr/lib/rhythmbox/plugins/magnatune/magnatune.py", line 50, in __init__
    self.account = MagnatuneAccount.instance()
  File "/usr/lib/rhythmbox/plugins/magnatune/MagnatuneAccount.py", line 56, in instance
    __instance = MagnatuneAccount()
  File "/usr/lib/rhythmbox/plugins/magnatune/MagnatuneAccount.py", line 68, in __init__
    self.secret_service = Secret.Service.get_sync(Secret.ServiceFlags.OPEN_SESSION, None)
GLib.Error: g-io-error-quark: Klaida kviečiant StartServiceByName elementui org.freedesktop.secrets: Baigėsi laikas (24)

(rhythmbox:3573): IBUS-WARNING **: The owner of /home/st/.config/ibus/bus is not root!

(rhythmbox:3573): Rhythmbox-WARNING **: Could not open device /dev/radio0

(rhythmbox:3573): Gtk-WARNING **: Duplicate child name in GtkStack: Įdėti į grojaraštį


(rhythmbox:3573): Gtk-WARNING **: Duplicate child name in GtkStack: Įdėti į grojaraštį


(rhythmbox:3573): Gtk-WARNING **: Duplicate child name in GtkStack: Įdėti į grojaraštį


(rhythmbox:3573): Gtk-WARNING **: Duplicate child name in GtkStack: Įdėti į grojaraštį


(rhythmbox:3573): Gtk-WARNING **: Duplicate child name in GtkStack: Įdėti į grojaraštį


(rhythmbox:3573): Gtk-WARNING **: Duplicate child name in GtkStack: Įdėti į grojaraštį


(rhythmbox:3573): Rhythmbox-WARNING **: Unable to grab media player keys: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SettingsDaemon was not provided by any .service files
Traceback (most recent call last):
  File "/usr/lib/rhythmbox/plugins/artsearch/local.py", line 129, in _enum_children_cb
    enumfiles = parent.enumerate_children_finish(result)
GLib.Error: g-io-error-quark: Operacija nepalaikoma (15)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/rhythmbox/plugins/artsearch/local.py", line 136, in _enum_children_cb
    self.callback(self.callback_args)
  File "/usr/lib/rhythmbox/plugins/artsearch/artsearch.py", line 59, in search_done
    self.next_search()
  File "/usr/lib/rhythmbox/plugins/artsearch/artsearch.py", line 55, in next_search
    search.search(self.key, self.last_time, self.store, self.search_done, None)
  File "/usr/lib/rhythmbox/plugins/artsearch/musicbrainz.py", line 111, in search
    self.try_search_artist_album(key, store, callback, args)
  File "/usr/lib/rhythmbox/plugins/artsearch/musicbrainz.py", line 97, in try_search_artist_album
    callback(*args)
  File "/usr/lib/rhythmbox/plugins/artsearch/artsearch.py", line 59, in search_done
    self.next_search()
  File "/usr/lib/rhythmbox/plugins/artsearch/artsearch.py", line 55, in next_search
    search.search(self.key, self.last_time, self.store, self.search_done, None)
  File "/usr/lib/rhythmbox/plugins/artsearch/lastfm.py", line 156, in search
    callback (args)
  File "/usr/lib/rhythmbox/plugins/artsearch/artsearch.py", line 59, in search_done
    self.next_search()
  File "/usr/lib/rhythmbox/plugins/artsearch/artsearch.py", line 49, in next_search
    key = RB.ExtDBKey.create_storage("album", self.key.get_field("album"))
TypeError: Argument 1 does not allow None as a value
sat
  • 13 Spa '16

Gal rhythmbox daug rašo todėl, kad pulseaudio nustatymuose load-module module-udev-detect buvau darašęs eilutę tsched=0, kai ištryniau nieko neberašo.

sat
  • 1
  • 13 Spa '16

Komanda sudo gedit /etc/pulse/default.pa rodo:

#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio 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 Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

# This startup script is used only if PulseAudio is started per-user
# (i.e. not in system mode)

.nofail

### Load something into the sample cache
#load-sample-lazy x11-bell /usr/share/sounds/freedesktop/stereo/bell.oga
#load-sample-lazy pulse-hotplug /usr/share/sounds/freedesktop/stereo/device-added.oga
#load-sample-lazy pulse-coldplug /usr/share/sounds/freedesktop/stereo/device-added.oga
#load-sample-lazy pulse-access /usr/share/sounds/freedesktop/stereo/message.oga

.fail

### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

### Automatically augment property information from .desktop files
### stored in /usr/share/application
load-module module-augment-properties
TechtronicMindaugas N.
  • 13 Spa '16

VLC media player informacija rasomka nera naudinga, bet va rhythmbox yra daug klaidu kurios atsiranda del to kad buvo paleistas su super-user teisemis (bet kad ir taip paleistas gerai parodo ant kiek prastai jis parasytas). Kiek pamenu Vlc issprende rhythmbox-super-user-problema, reikedavo ji surinkti Vlc paciam kad galmetu naudoti su tokiomis teisemis :-)

Gal turi mpv grotuva? Jeigu taip tai gali paprasciau diagnozuoti audio/video problemas:

Audio

Gauti sarasa palaikomu audio output driverius galima su komanda:

mpv --ao=help

Patikrinti pasirinkta audio output driveri galima:

mpv --ao=alsa http://radio.audiomastering.lt:8000/hq

Video

Kaip ir su Audio, galima naudoti skirtingus video driverius:

mpv --vo=help
mpv --vo=vdpau http://video.h265files.com/video-h264.mkv

Debug

Mpv be jokiu extra parametru/pakeitimu raso aotiktas klaidas, bet siuo atveju mus domina issamesne informacija ir ja galima gauti darasius prie mpv komandos argumenta -v:

mpv -v --ao=alsa http://radio.audiomastering.lt:8000/hq

sat
  • 1
  • 13 Spa '16
st@st-KT400-8235:~$ sudo mpv -v --ao=alsa http://radio.audiomastering.lt:8000/hq[sudo] password for st: 
[cplayer] Command line options: '-v' '--ao=alsa' 'http://radio.audiomastering.lt:8000/hq'
[cplayer] mpv 0.14.0 (C) 2000-2015 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] ffmpeg library versions:
[cplayer]    libavutil       54.31.100
[cplayer]    libavcodec      56.60.100
[cplayer]    libavformat     56.40.101
[cplayer]    libswscale      3.1.101
[cplayer]    libavfilter     5.40.101
[cplayer]    libswresample   1.2.101
[cplayer] ffmpeg version: 2.8.6-1ubuntu2
[cplayer] 
[cplayer] Configuration: ./waf -v configure --prefix=/usr --libdir=/usr/lib/i386-linux-gnu --confdir=/etc/mpv --zshdir=/usr/share/zsh/vendor-completions --enable-cdda --enable-sdl2 --enable-sndio --enable-zsh-comp --enable-libmpv-shared --disable-build-date
[cplayer] List of enabled features: alsa asm atomics audio-input av-pix-fmt-mmal av-version-info avcodec-chroma-pos-api avframe-metadata avframe-skip-samples c11-tls cdda cplayer debug-build dlopen drm dvbin dvdnav dvdread egl-x11 enca encoding fchmod gl gl-wayland gl-x11 glibc-thread-name glob iconv jack jpeg lcms2 libass libass-osd libav libavdevice libavfilter libbluray libdl libguess libm libmpv-shared librt libswresample linux-fstatfs lua nanosleep optimize oss-audio oss-audio-native posix posix-or-mingw posix-spawn pthreads pulse resampler rubberband sdl2 shm sndio sse4-intrinsics stdatomic subprocess termios tv tv-v4l2 vaapi vaapi-egl vaapi-glx vaapi-hwaccel vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vdpau-hwaccel videodev vt.h wayland x11 xext xinerama xrandr xss xv zlib zsh-comp
[global] config path: '' -> '/home/st/.config/mpv'
[global] config path: 'mpv.conf' -/-> '/home/st/.config/mpv/mpv.conf'
[global] config path: 'config' -/-> '/home/st/.config/mpv/config'
[global] config path: 'mpv.conf' -/-> '/home/st/.mpv/mpv.conf'
[global] config path: 'config' -/-> '/home/st/.mpv/config'
[global] config path: 'mpv.conf' -/-> '/etc/mpv/mpv.conf'
[global] config path: 'config' -/-> '/etc/mpv/config'
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Setting option 'ao' = 'alsa' (flags = 8)
[global] config path: 'input.conf' -/-> '/home/st/.config/mpv/input.conf'
[global] config path: 'input.conf' -/-> '/home/st/.mpv/input.conf'
[global] config path: 'input.conf' -/-> '/etc/mpv/input.conf'
[input] Falling back on default (hardcoded) input config
[osc] Loading script @osc.lua...
[global] config path: 'scripts' -/-> '/home/st/.config/mpv/scripts'
[global] config path: 'scripts' -/-> '/home/st/.mpv/scripts'
[global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[osc] loading mp.defaults
[osc] loading @osc.lua
[global] config path: 'lua-settings/osc.conf' -/-> '/home/st/.config/mpv/lua-settings/osc.conf'
[global] config path: 'lua-settings/osc.conf' -/-> '/home/st/.mpv/lua-settings/osc.conf'
[global] config path: 'lua-settings/osc.conf' -/-> '/etc/mpv/lua-settings/osc.conf'
[osc] lua-settings/osc.conf not found. 
[cplayer] Run command: define-section, flags=0, args=[showhide, mouse_move script-binding osc/__keybinding1
[cplayer] mouse_leave script-binding osc/__keybinding2
[cplayer] , force]
[cplayer] Run command: enable-section, flags=0, args=[showhide, allow-hide-cursor+allow-vo-dragging]
[cplayer] Run command: define-section, flags=0, args=[input, mouse_btn0 script-binding osc/__keybinding3
[cplayer] shift+mouse_btn0 script-binding osc/__keybinding4
[cplayer] mouse_btn2 script-binding osc/__keybinding5
[cplayer] mouse_btn0_dbl ignore
[cplayer] shift+mouse_btn0_dbl ignore
[cplayer] mouse_btn2_dbl ignore
[cplayer] del script-binding osc/__keybinding6
[cplayer] , force]
[cplayer] Run command: enable-section, flags=0, args=[input, ]
[cplayer] Run command: disable-section, flags=0, args=[input]
[cplayer] Done loading @osc.lua.
[ytdl_hook] Loading script @ytdl_hook.lua...
[global] config path: 'scripts' -/-> '/home/st/.config/mpv/scripts'
[global] config path: 'scripts' -/-> '/home/st/.mpv/scripts'
[global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[ytdl_hook] loading mp.defaults
[ytdl_hook] loading @ytdl_hook.lua
[cplayer] Run command: hook-add, flags=0, args=[on_load, 1, 10]
[cplayer] Done loading @ytdl_hook.lua.
[global] config path: 'scripts' -/-> '/home/st/.config/mpv/scripts'
[global] config path: 'scripts' -/-> '/home/st/.mpv/scripts'
[global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[global] config path: 'watch_later' -> '/home/st/.config/mpv/watch_later'
[cplayer] Playing: http://radio.audiomastering.lt:8000/hq
[cplayer] Running hook: ytdl_hook/on_load
[global] config path: 'youtube-dl' -/-> '/home/st/.config/mpv/youtube-dl'
[global] config path: 'youtube-dl' -/-> '/home/st/.mpv/youtube-dl'
[global] config path: 'youtube-dl' -/-> '/etc/mpv/youtube-dl'
[ytdl_hook] youtube-dl succeeded! 
[ytdl_hook] Got direct URL 
[cplayer] Run command: hook-ack, flags=0, args=[on_load]
[ffmpeg] Opening http://radio.audiomastering.lt:8000/hq
[ffmpeg] Could not set AVOption tls_verify='0'
[ffmpeg] Mime-type: 'audio/mpeg'
[ffmpeg] Stream opened successfully.
[cache] Cache size set to 150000 KiB (75000 KiB backbuffer)
[demux] Trying demuxer: disc (force-level: normal)
[demux] Trying demuxer: edl (force-level: normal)
[demux] Trying demuxer: cue (force-level: normal)
[demux] Trying demuxer: rawaudio (force-level: normal)
[demux] Trying demuxer: rawvideo (force-level: normal)
[demux] Trying demuxer: tv (force-level: normal)
[demux] Trying demuxer: mkv (force-level: normal)
[demux] Trying demuxer: rar (force-level: normal)
[demux] Trying demuxer: lavf (force-level: normal)
[lavf] Found 'mp3' at score=25 size=8192.
[ffmpeg/demuxer] mp3: Skipping 786 bytes of junk at 0.
[ffmpeg/demuxer] mp3: max_analyze_duration 500000 reached at 522449 microseconds st:0
[lavf] avformat_find_stream_info() finished after 32768 bytes.
[demux] Detected file format: mp3 (libavformat)
[demux] Stream is not seekable.
[cache] blocking for STREAM_CTRL 8
[cache] blocking for STREAM_CTRL 8
[global] config path: 'sub/' -/-> '/home/st/.config/mpv/sub/'
[global] config path: 'sub/' -/-> '/home/st/.mpv/sub/'
[global] config path: 'sub/' -/-> '/etc/mpv/sub/'
[cplayer]  (+) Audio --aid=1 (mp3)
[display-tags] File tags:
[display-tags]  icy-title: Ray Hurley ft. PSG - Closer (40% bass)
[ad] Codec list:
[ad]     lavc:mp3 - MP3 (MPEG audio layer 3)
[ad]     lavc:mp3float (mp3) - MP3 (MPEG audio layer 3)
[ad] Opening audio decoder lavc:mp3
[ad] Requesting 1 threads for decoding.
[ad] Selected audio codec: MP3 (MPEG audio layer 3) [lavc:mp3]
[cplayer] Starting playback...
[af] Audio filter chain:
[af]   [in] 44100Hz stereo 2ch s16p
[af]   [out] 44100Hz stereo 2ch s16p
[af]   [ao] 44100Hz stereo 2ch s16p
[ao] Trying audio driver 'alsa'
[ao/alsa] requested format: 44100 Hz, stereo channels, s16p
[ao/alsa] using ALSA version: 1.1.0
[ao/alsa] opening device 'default'
[ao/alsa] trying format s16
[ao/alsa] hw pausing supported: yes
[ao/alsa] buffersize: 11025 samples
[ao/alsa] period size: 689 samples
[ao/alsa] device buffer: 11024 samples.
[ao/alsa] using soft-buffer of 11024 samples.
[cplayer] AO: [alsa] 44100Hz stereo 2ch s16
[cplayer] AO: Description: ALSA audio output
[af] Adding filter lavrresample 
[af] Audio filter chain:
[af]   [in] 44100Hz stereo 2ch s16p
[af]   [lavrresample] 44100Hz stereo 2ch s16
[af]   [out] 44100Hz stereo 2ch s16
[af]   [ao] 44100Hz stereo 2ch s16
[cplayer] playback restart complete
TechtronicMindaugas N.
  • 2
  • 13 Spa '16

Nematau jokiu problemu naudojant alsa+ffmpeg (neskaitant kad ir vel naudojama komanda sudo), gal paprasciausiai garsas yra 'muted'?
Gali patikrinti su komanda alsamixer

muted

sat
  • 14 Spa '16

Niekur nėra pažymeta mute. Tikriausiai yra sisteminė klaida (kartais išmesdavo lentelę ",aptikta sisteminė klaida"). Kolonkės garsas atsirasdavo tik išjungiant kompą. Kita operacinė (opensuse) veikia gerai. Perinstliavau vel ubuntu 16.04 kylin, bet su unity labai lėtai veikia. visas nebūtinas programas sustabdžiau, gal yra kokių pasiūlimų, kaip pagreitinti. Kompas adm xp 2500,vaizdo plokštė Galium0.4 LLVM 3.8 128 bits

TechtronicMindaugas N.
  • 15 Spa '16

Niekur nėra pažymeta mute. Tikriausiai yra sisteminė klaida (kartais išmesdavo lentelę ",aptikta sisteminė klaida"). Kolonkės garsas atsirasdavo tik išjungiant kompą. Kita operacinė (opensuse) veikia gerai.

@sat keista ta problema garso, sistema raso jog viskas veikia kaip priklauso, gal pakeisti parametrai isejimu (buna sound cards kur galima keisti kanalu skaiciu arba equalizer) ar dar koks ~misconfiguration~, nes problema su garsu yra tiek su gstreamer tiek su ffmpeg iskaitant pulse bei alsa. Del klaidos kuria mato Ubuntu, butu saunu i ja paziureti, gal Ubuntu leidzia tai padaryti ? O gal ta problema raso i syslog (bus matoma su dmesg komanda). Taip pat naudinga butu zinoti kas ten per garso chipas...

Surinkti informacija gali Alsa skriptas, ji paleisti gali tokiu budu :

cd /tmp
wget http://www.alsa-project.org/alsa-info.sh
sudo bash alsa-info.sh --pastebin

Gauta nuoroda pasidalink cia.

Perinstliavau vel ubuntu 16.04 kylin, bet su unity labai lėtai veikia. visas nebūtinas programas sustabdžiau, gal yra kokių pasiūlimų, kaip pagreitinti. Kompas adm xp 2500,vaizdo plokštė Galium0.4 LLVM 3.8 128 bits

Jeigu naudojamas AMD 2500 tai kazin ar Unity/Gnome/KDE yra geras sprendimas naudoti, greitinti ten nera ka.

Paprastas budas

1: Atnaujinti hardware :-)

Sudetingesnis budas

1: Keisti WM/DE i ka nors "lengvesnio" - Fluxbox, OpenBox, AwesomeWM, i3, dwm...
2: Pasalinti nereikalingas programas/bibliotekas - is patirties pastebejau jog tai GNU/Linxu padeda pagreitinti programu startup laika.
3: Stabdyti nenaudojamus servisus - toks kaip Ubuntu yra pritaikytas veikti visur bei bet kur, o ir viskas turi veikti out-of-the-box, tad nieko nuostabaus kad buna paleisti servisai tokie kaip Samba, Cups, DNS caching ir dar daug kitu.
4: Keisti programas i ka nors lengvesnio - siais laikais Chromiumas ar tai Firefox naudoja begales resursu, turbut nieko jau nestebina chromiumas kuris naudoja 4GB+ atminties, yra kur kas lengvesniu web browseriu kurie naudoja webkit (deprecated jau) arba webengine (skaityk wikipedia, rasi ten ir browserius kurie naudoja siuos engine). As pasirinkau qutebrowser :-)
5: Vengti DE programu - Gnome/KDE/XFCE yra desktop environment's kuriu programos neveikia be viso DE. Tarkim noredamas naudoti Kate text editoriu turesi instaliuoti visa Qt bei KDE, atrodo kad tik Kate paleides, bet background'e paleidzia visa KDE.
6: Pasirinkti ka nors paprastensio aka be tokiu grieztu modifikaciju kaip Ubuntu - Debian yra viena is tu distru kuri leidzia instaliuoti "svaru desktop" kuris bus tik desktop ir nieko daugiau.

Hardcore

1: Keisti distra i meta-distra kuri leis paciam tvarkyti programu priklausomybes (iskaitant ir tai ka programos palaikys).
2: Surinkti is iseities kodo Linux pagal hardware specifikacijas.
3: Surinkti is iseities kodo savo kompiliatoriu/linkeri kuris naudos tokias technologijas kaip LTO/Gold.
4: Surinkti is iseities kodo visas naudojamas programas/bibliotekas pagal naudojamo procesoriaus instruction set, optimizuoti jas naudojant Graphite/LTO/OpenMP...

Atsakyti