Re: [gentoo-user] QEMU virtio_gpu

2016-11-28 Thread Daniel Campbell
On 11/25/2016 11:10 AM, john wrote:
> On Thu, 24 Nov 2016 13:12:33 +
> john  wrote:
> 
>> Hi,
>>
>> I am trying to run qemu virtual machine with virtio_gpu using the
>> following command 
>>
>> /usr/bin/qemu-system-x86_64 -enable-kvm -m 4096 -smp 8 -localtime
>> -cdrom Fedora-Workstation-Live-x86_64-25_Beta-1.1.iso  -boot
>> once=d,menu=off -vga virtio -display gtk,gl=on
>>
>> but getting the following error when machine gets to display manager
>>
>> (qemu-system-x86_64:3192): 
>> Gdk-WARNING **:gdk_gl_context_set_required_version - GL context
>> versions less than 3.2 are not supported. 
>>
>> No provider of glUniform4uiv found.  
>> Requires oneof: 
>> Desktop OpenGL 3.0 
>> OpenGL ES 3.0
>> GL extension "GL_EXT_gpu_shader4"
>>
>>
>> I have also tried using -display with sdl,gl=on
>>
>> I have tried this in another (arch) linux box and works so I think it
>> must be a use flag or something but struggling to find out which one
>> or perhaps missing something else!
>>
>> lsmod shows virtio_gpu
>>
>> emerge -vp mesa
>> media-libs/mesa-13.0.1::gentoo  USE="bindist classic dri3 egl gallium
>> gbm gles2 llvm nettle nptl -d3d9 -debug -gcrypt -gles1 -libressl
>> -opencl -openmax -openssl -osmesa -pax_kernel -pic (-selinux) -vaapi
>> -valgrind -vdpau -vulkan -wayland -xa -xvmc" ABI_X86="(64) -32 (-x32)"
>> VIDEO_CARDS="radeon radeonsi (-freedreno) -i915 -i965 -ilo -intel
>> -nouveau -r100 -r200 -r300 -r600 (-vc4) -vmware" 0 KiB
>>
>> virglrenderer is installed.
>>
>> If anyone has qemu and virtio-gpu running please let me know and I'll
>> keep trying.
>>
>>
>> Many Thanks
>> John
>>
> 
> After having a search around the net and trying a few things emerged
> mesa with the use flag -bindist and qemu machine fired up with
> virtio_gpu
> 
> the following command showed this in virtual guest
> dmesg | grep virt
> 
> Not sure what the bindist use flag is for but hey ho it's working.
> Now shall I ditch lxc for qemu??
> 
> John. Long live Gentoo (the Ferrari of Linux distros).
> 
> 
>  
> 
'bindist' is short for "binary distribution"; some code (mostly
microcode, firmware, GPU drivers, multimedia codecs) is copyright- or
patent-encumbered, meaning that you can't legally distribute some pieces
of software in binary (compiled) form. The 'bindist' USE flag, in
combination with the LICENSE variable in make.conf, give you the tools
needed to decide how free (libre) you want your system to be.

USE=bindist should be set per-package inside package.use, unless you
understand the implications of setting or unsetting it globally.

Great to read things are working!
-- 
Daniel Campbell - Gentoo Developer
OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net
fpr: AE03 9064 AE00 053C 270C  1DE4 6F7A 9091 1EA0 55D6



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Boot freeze/kthreadd stack trace - AMD_PMU_INIT

2016-11-28 Thread Fernando Rodriguez
On 11/21/2016 01:15 AM, taii...@gmx.com wrote:
> Specs:
> blob free coreboot on a kgpe-d16 (amd opteron)
> 
> 
> Happens with both the livecd/usb and a kernel I compiled on another
> machine (however with that one I simply get a black screen and a bootloop)

Look at CONFIG_PANIC_TIMEOUT. If it's set to anything other than 0 your
kernel will reboot itself on panic after the timeout. It's probably
panicing when initialing the video drivers since you get a blank screen
so you'll probably want to boot with a vga fb driver (blacklist or
delete all other video modules) and post the backtrace if it still panics.


> Other distros kernels work fine, it is just gentoo.

Then I suggest you try grabbing the kernel's config file from another
distro and use that as a starting point to configure your kernel

> The livecd and compiled kernel work fine on all my other computers/VMM's.
> 
> Upon loading I get to amd performance counters, it freezes and 5-10 secs
> later I receive stack trace for kthreadd "hung" (amd_pmu_init - seems to
> be the primary reason) I never get to a login prompt.
> 
> It isn't microcode related as I removed the microcode packages from the
> other distros I tried.
> 
> Any ideas? Is there any additional info that would be helpful? How can I
> dump the boot text?

It's gonna be trial and error. Keep disabling features and try a
different kernel version (the one that worked with other distros) until
you pinpoint the problem. The only hints you got are the panic backtrces
and boot output. Then file a bug.

As for dumping the boot output if you can't get to userland I think the
only way is with a serial or net console. Also look at
CONFIG_BOOT_PRINTK_DELAY, it can setup a delay before every printk
message so you at least get time to read it.

-- 

Fernando Rodriguez



Re: [gentoo-user] Firefox 49.0 & Youtube....Video: Yes - Audio: No...

2016-11-28 Thread Miroslav Rovis
I just got Firefox to play HTML5 pages (and likely other stuff as well),
with audio working, my system.

But let me first vent my frustration for why it was so hard...

On 161120-20:46+0100, Miroslav Rovis wrote:
> Hi Daniel!
> 
...
> On 161120-00:10-0800, Daniel Campbell wrote:
> > On 11/19/2016 01:59 AM, Miroslav Rovis wrote:
> > > On 161119-10:22+0100, Miroslav Rovis wrote:
...

It took me such long time, well, yes, because ALSA had advanced and I
kept the old config, simply because it worked with all apps (but not the
Firefox, more below...)...

What other conclusion could a not very advanced user get but this one
below?:
> Just in the meantime, a (hopefully) easier question: doesn't this bug
> below mean harder to get non-pulse audio to work with Firefox:
> > >> Mozilla went pulse all the way:
> > >>  Require PulseAudio on Linux
> > >> https://bugzilla.mozilla.org/show_bug.cgi?id=1247056
> > >> See also:
> > >> Firefox nightly requires Pulse Audio
> > >> http://forums.debian.net/viewtopic.php?f=20&t=130028
> and if the other info that the dev at alsa-user gave me:
> http://www.mail-archive.com/alsa-user@lists.sourceforge.net/msg31929.html
> where he gave the link to:
> html5 in ff through jack
> http://lists.linuxaudio.org/pipermail/linux-audio-user/2016-June/105188.html

And I've just delivered on this promise of mine:
> if that means the info in that bug page is incomplte in the sense it is
> misleading to users who want to stick with sans-pulse alsa... then once
> I figure out how to do it, I'll post there for other users to know...
Pls. read my comment of just some half hour ago:
https://bugzilla.mozilla.org/show_bug.cgi?id=1247056#c171

> [ I'll try all of your suggestions ... as I'm confident again there must
> be a way to fix audio in FF without pulse... ] just as the other dev
> said, that it is there, only for Archlinux, at:
> http://www.mail-archive.com/alsa-user@lists.sourceforge.net/msg31927.html
How on Earth would a non-advanced user know after reading that Mozilla
bug, that she/he don't need to get that another layer for suspicious
purposes onto their fine ALSA?

Now I'll explain what was the reason it did not work (because I promised
I would ;-) and you were kind to offer help)...

On 161120-00:10-0800, Daniel Campbell wrote:
> On 11/19/2016 01:59 AM, Miroslav Rovis wrote:
> > On 161119-10:22+0100, Miroslav Rovis wrote:
> >> On 161119-00:33-0800, Daniel Campbell wrote:
> > ...
>  And there is a question/query/my-asking-for-advice further below.
> > ...
...
No, jack was not needed, but according to:
https://wiki.gentoo.org/wiki/ALSA#JACK_audio_connection_kit
is far superior to pulseaudio, just to make clear. The below wasn't
needed for me to solve my issue. 
>  [linuxaudio.org] html5 in ff through jack
>  http://lists.linuxaudio.org/pipermail/linux-audio-user/2016-June/thread.html#105188
> > ...

This was one of two issues that needed to be fixed/put in place/corrected:
> > Also:
> >>> defaults.ctl.card x;
> >>> defaults.pcm.card x;

Yeah! And what I had, the below...:
> > I every do often change my default card... I have only these two lines
> > (if I grep out all that is commented out) in my:
> > $ cat ~/.asoundrc | grep -v '^#'  
This:
> > pcm.!default { type hw card 1 }
> > ctl.!default { type hw card 1 }
was wrong!
(that's old config, maybe 2-3 or more years old. It just worked all the
time, who cared... MPlayer, Vlc, the old cinch cables --the RCA IIRC--
could get the recordings from old/new equipment... So who cared...)

So one of my two issues was exactly this one (and the change to make):
https://wiki.gentoo.org/wiki/ALSA#Firefox_and_YouTube_have_no_audio_with_custom_.asoundrc_but_other_apps_do

And after making the other change first, which is simply what Gentoo Firefox
Wiki says at:
https://wiki.gentoo.org/wiki/Firefox#Lack_of_sound
so after:
# emerge gst-plugins-meta:1.0

and changing my ~/.asoundrc to:

defaults.ctl.card 0
defaults.pcm.card 0

(or it will be

defaults.ctl.card 1
defaults.pcm.card 1

sometimes, in my case)

only then did Firefox finally start to play both video and audio when I
opened HTML5 pages.

A quick test was this page (but on my offline Apache, saying it because
I need to propagate the change to this clone that I access online with,
I did the changes on my maste machine, so if all keeps well when into
clone, I won't need to inform of some functionality still not there)
(doing the one-liner below worked):

$ firefox
http://www.CroatiaFidelis.hr/foss/cenz/iskon-t-com-miro-rovis/150320-17h_T-com_davi_ugovorima.webm

(that's actually a one-liner, only wrapped in mail)

> >>> Hope this helps.
> >>>
> >>> [0]: https://wiki.gentoo.org/wiki/ALSA#Configuration
> >>> [1]:
> >>> https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Set_the_default_sound_card
> > It appears to be basically the same info as in your kind explanation...
> > 
> > But this is now getting way more than 15 minutes... I will try to find

[gentoo-user] HTML5 player (YouTube) is a pain!...Alternatives?

2016-11-28 Thread Meino . Cramer
Hi,

I get sick of this [CESNORED] HTML5 stuff coming from YouTube!
Most of the videos while playayaingnaying arereare stututterutering
liiklike helellell. 

I tested a lot of HTML5 addons to fix that problem and googled
around the world but nothing helps. The only thing I found is an
iconic sentence, which is true in this case also:
"You are not alone...!".

Is there any way to feed the stream from youtube direktly into
a not blown player like mpv/mplayer or such (I would prefer
not to load a complete gui (vlc) with any click again and again.)?

Thanks for any help in advance!
Cheers
Meino

PS: For the completeness:
I have tried to fix that problem by:
Restarting firefox
Disabling hardware acceleration
Disabling webgl
Checking, whether the YouTube-testpage shows "all ok" for HTML5 (it does)
Checking various about:config-setting for usefulness
De-/Installing various addons, which all promise the heaven on earth




Re: [gentoo-user] HTML5 player (YouTube) is a pain!...Alternatives?

2016-11-28 Thread Alarig Le Lay
On Tue Nov 29 07:42:16 2016, meino.cra...@gmx.de wrote:
> Is there any way to feed the stream from youtube direktly into
> a not blown player like mpv/mplayer or such (I would prefer
> not to load a complete gui (vlc) with any click again and again.)?

Hi,

Yes, you can play video from youtube with mpv if you have emerged
net-misc/youtube-dl.

-- 
alarig


signature.asc
Description: PGP signature


Re: [gentoo-user] HTML5 player (YouTube) is a pain!...Alternatives?

2016-11-28 Thread Marat BN
I've been running the youtube-flash-player Firefox addon
https://addons.mozilla.org/en-US/firefox/addon/youtube-flash-player/ for
several months now with decent results.  It just reverts YouTube back to
the old Flash video player.  It's been working well for me.  I'm not
affiliated with it and I recommend it.


-- Marat


 Original Message 
Subject: [gentoo-user] HTML5 player (YouTube) is a pain!...Alternatives?
From: meino.cra...@gmx.de
To: Gentoo 
Date: 11/28/2016 10:42 PM
> Hi,
>
> I get sick of this [CESNORED] HTML5 stuff coming from YouTube!
> Most of the videos while playayaingnaying arereare stututterutering
> liiklike helellell. 
>
> I tested a lot of HTML5 addons to fix that problem and googled
> around the world but nothing helps. The only thing I found is an
> iconic sentence, which is true in this case also:
> "You are not alone...!".
>
> Is there any way to feed the stream from youtube direktly into
> a not blown player like mpv/mplayer or such (I would prefer
> not to load a complete gui (vlc) with any click again and again.)?
>
> Thanks for any help in advance!
> Cheers
> Meino
>
> PS: For the completeness:
> I have tried to fix that problem by:
> Restarting firefox
> Disabling hardware acceleration
> Disabling webgl
> Checking, whether the YouTube-testpage shows "all ok" for HTML5 (it does)
> Checking various about:config-setting for usefulness
> De-/Installing various addons, which all promise the heaven on earth
>
>




Re: [gentoo-user] HTML5 player (YouTube) is a pain!...Alternatives?

2016-11-28 Thread Meino . Cramer
Alarig Le Lay  [16-11-29 08:16]:
> On Tue Nov 29 07:42:16 2016, meino.cra...@gmx.de wrote:
> > Is there any way to feed the stream from youtube direktly into
> > a not blown player like mpv/mplayer or such (I would prefer
> > not to load a complete gui (vlc) with any click again and again.)?
> 
> Hi,
> 
> Yes, you can play video from youtube with mpv if you have emerged
> net-misc/youtube-dl.
> 
> -- 
> alarig

Hi Alarig,

thanks for your help! :)

yes...I know...but this implies (as far as I know):
Copying the url from FF as argument to youtube-dl,
downloading the file, and than watching it.
This was my (painful) workaround the last days.

I woyld like something like:
Click on youtube-url, a window (console) pops up 
and starts  to watch the video
directly.

Is it possible somehow?

Thanks in advance for any help!

Cheers,
Meino







Re: [gentoo-user] Firefox 49.0 & Youtube....Video: Yes - Audio: No...

2016-11-28 Thread Daniel Campbell
On 11/28/2016 08:30 AM, Miroslav Rovis wrote:
> I just got Firefox to play HTML5 pages (and likely other stuff as well),
> with audio working, my system.
> 
> But let me first vent my frustration for why it was so hard...
> 
> On 161120-20:46+0100, Miroslav Rovis wrote:
>> Hi Daniel!
>>
> ...
>> On 161120-00:10-0800, Daniel Campbell wrote:
>>> On 11/19/2016 01:59 AM, Miroslav Rovis wrote:
 On 161119-10:22+0100, Miroslav Rovis wrote:
> ...
> 
> It took me such long time, well, yes, because ALSA had advanced and I
> kept the old config, simply because it worked with all apps (but not the
> Firefox, more below...)...
> 
> What other conclusion could a not very advanced user get but this one
> below?:
>> Just in the meantime, a (hopefully) easier question: doesn't this bug
>> below mean harder to get non-pulse audio to work with Firefox:
> Mozilla went pulse all the way:
>  Require PulseAudio on Linux
> https://bugzilla.mozilla.org/show_bug.cgi?id=1247056
> See also:
> Firefox nightly requires Pulse Audio
> http://forums.debian.net/viewtopic.php?f=20&t=130028
>> and if the other info that the dev at alsa-user gave me:
>> http://www.mail-archive.com/alsa-user@lists.sourceforge.net/msg31929.html
>> where he gave the link to:
>> html5 in ff through jack
>> http://lists.linuxaudio.org/pipermail/linux-audio-user/2016-June/105188.html
> 
> And I've just delivered on this promise of mine:
>> if that means the info in that bug page is incomplte in the sense it is
>> misleading to users who want to stick with sans-pulse alsa... then once
>> I figure out how to do it, I'll post there for other users to know...
> Pls. read my comment of just some half hour ago:
> https://bugzilla.mozilla.org/show_bug.cgi?id=1247056#c171
> 
>> [ I'll try all of your suggestions ... as I'm confident again there must
>> be a way to fix audio in FF without pulse... ] just as the other dev
>> said, that it is there, only for Archlinux, at:
>> http://www.mail-archive.com/alsa-user@lists.sourceforge.net/msg31927.html
> How on Earth would a non-advanced user know after reading that Mozilla
> bug, that she/he don't need to get that another layer for suspicious
> purposes onto their fine ALSA?
> 
> Now I'll explain what was the reason it did not work (because I promised
> I would ;-) and you were kind to offer help)...
> 
> On 161120-00:10-0800, Daniel Campbell wrote:
>> On 11/19/2016 01:59 AM, Miroslav Rovis wrote:
>>> On 161119-10:22+0100, Miroslav Rovis wrote:
 On 161119-00:33-0800, Daniel Campbell wrote:
>>> ...
>> And there is a question/query/my-asking-for-advice further below.
>>> ...
> ...
> No, jack was not needed, but according to:
> https://wiki.gentoo.org/wiki/ALSA#JACK_audio_connection_kit
> is far superior to pulseaudio, just to make clear. The below wasn't
> needed for me to solve my issue. 
>> [linuxaudio.org] html5 in ff through jack
>> http://lists.linuxaudio.org/pipermail/linux-audio-user/2016-June/thread.html#105188
>>> ...
> 
> This was one of two issues that needed to be fixed/put in place/corrected:
>>> Also:
> defaults.ctl.card x;
> defaults.pcm.card x;
> 
> Yeah! And what I had, the below...:
>>> I every do often change my default card... I have only these two lines
>>> (if I grep out all that is commented out) in my:
>>> $ cat ~/.asoundrc | grep -v '^#'  
> This:
>>> pcm.!default { type hw card 1 }
>>> ctl.!default { type hw card 1 }
> was wrong!
> (that's old config, maybe 2-3 or more years old. It just worked all the
> time, who cared... MPlayer, Vlc, the old cinch cables --the RCA IIRC--
> could get the recordings from old/new equipment... So who cared...)
> 
> So one of my two issues was exactly this one (and the change to make):
> https://wiki.gentoo.org/wiki/ALSA#Firefox_and_YouTube_have_no_audio_with_custom_.asoundrc_but_other_apps_do
> 
> And after making the other change first, which is simply what Gentoo Firefox
> Wiki says at:
> https://wiki.gentoo.org/wiki/Firefox#Lack_of_sound
> so after:
> # emerge gst-plugins-meta:1.0
> 
> and changing my ~/.asoundrc to:
> 
> defaults.ctl.card 0
> defaults.pcm.card 0
> 
> (or it will be
> 
> defaults.ctl.card 1
> defaults.pcm.card 1
> 
> sometimes, in my case)
> 
> only then did Firefox finally start to play both video and audio when I
> opened HTML5 pages.
> 
> A quick test was this page (but on my offline Apache, saying it because
> I need to propagate the change to this clone that I access online with,
> I did the changes on my maste machine, so if all keeps well when into
> clone, I won't need to inform of some functionality still not there)
> (doing the one-liner below worked):
> 
> $ firefox
> http://www.CroatiaFidelis.hr/foss/cenz/iskon-t-com-miro-rovis/150320-17h_T-com_davi_ugovorima.webm
> 
> (that's actually a one-liner, only wrapped in mail)
> 
> Hope this helps.
>
> [0]: https://wiki.gentoo.org/wiki/ALSA#Configuration
> [1]:
> https://wiki.archlinux.org/index.php/Adva