Re: [gentoo-user] Re: OT: No audio while playing HTML5-video (YouTube)

2016-01-12 Thread Mick
On Wednesday 13 Jan 2016 08:00:11 Nikos Chantziaras wrote:
> On 13/01/16 07:53, Nikos Chantziaras wrote:
> > default should be ~/.mpv/config
> 
> Or "~/.config/mpv/config".

I had the former file in which I added your suggested stanza, but youtube 
videos dragged from FF continue to refuse to play (mpv crashes).  This is what 
is saved in the logs:

Error Information:
An exit code of 2 was returned from mpv --profile=pseudo-gui -- .

Output Data:
There was no output

Error Logs:
There was no error message
-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Re: OT: No audio while playing HTML5-video (YouTube)

2016-01-12 Thread Nikos Chantziaras

On 13/01/16 07:53, Nikos Chantziaras wrote:

default should be ~/.mpv/config


Or "~/.config/mpv/config".




[gentoo-user] Re: OT: No audio while playing HTML5-video (YouTube)

2016-01-12 Thread Nikos Chantziaras

On 13/01/16 00:40, Mick wrote:

On Tuesday 12 Jan 2016 19:56:18 Nikos Chantziaras wrote:

On 12/01/16 05:08, meino.cra...@gmx.de wrote:

Stroller  [16-01-12 04:00]:

On Mon, 11 January 2016, at 6:15 p.m., meino.cra...@gmx.de wrote:

Oh, how I like music videos without sound ;)


I trust you're aware you can use net-misc/youtube-dl until you get this
sorted.

It's not clear to me that _any_ HTML5 audio is playing in your browser.

What version of Firefox do you have, what are it's USE flags?

Stroller.


...yes, sour are right :)
Until now no a single HTML5-video is playing its sound...


A better way:

Open mpv from your "start menu". Drag&drop the youtube video into the
mpv window.

No need to mess with terminals :-)


Hmm ... this won't work here.  :(

An exit code of 2 was returned.


You need to have the youtube-dl script installed (net-misc/youtube-dl). 
Make sure you use the ~arch version, since YouTube can change their APIs 
very fast, and that script has almost daily updates. But it's safe using 
~arch for this package, since it's just a python script.


To make sure you get the highest quality youtube format (including 
getting 60FPS video when available), make sure this line:


  ytdl-format=bestvideo[ext=webm]+bestaudio/bestvideo+bestaudio/best

Is in your mpv config file (default should be ~/.mpv/config). If you 
have a 1080p monitor, make sure you're excluding 4K. In that case, the 
above line should be:



ytdl-format=bestvideo[width<=?1920][ext=webm]+bestaudio/bestvideo[width<=?1920][ext=mp4]+bestaudio/best

In both cases, VP9 is given higher priority and H.264 is only used when 
no VP9 version of the video exists. (YouTube provides much higher 
quality video in the VP9 format.)





Re: [gentoo-user] Nouveau blank screen

2016-01-12 Thread lee
Håkon Alstadheim  writes:

> I have an old but good graphics card, "NVIDIA Corporation GT200GL
> [Quadro FX 3800]". The proprietary driver is EOL, not supported after
> kernel 3.14.*, so I'd like to switch to nouveau. I'm having trouble
> getting nouveau to work at all, it is giving me a blank screen and
> apparently not grabbing my keyboard (ctrl:swapcaps has no effect).
>
> Nothing stands out as errors in Xorg.0.log, same errors are both under
> nvidia and nouveau, but nvidia gives me a useable desktop. Both seem
> to detect my monitor (benq) correctly.
>
> ---
> $ grep '(EE)' Xorg.0.log.nvidia Xorg.0.log.nouveau | grep -v '(WW)'
> Xorg.0.log.nvidia:[39.193] (EE) systemd-logind: failed to get
> session: PID 2112 does not belong to any known session
> Xorg.0.log.nouveau:[35.428] (EE) systemd-logind: failed to get
> session: PID 2167 does not belong to any known session
> Xorg.0.log.nouveau:[37.322] (EE) NOUVEAU(0): [COPY] failed to
> allocate class.
> ---
> The PID belongs to /usr/bin/X, see below.
> ---
> I'm running gentoo-sources-4.3.3 kernel with experimental feature to
> select Haswell architecture. The host is a virtual machine running
> under app-emulation/xen-4.6.0-r6. Driver is
> x11-drivers/xf86-video-nouveau-1.0.11, use-flag glamor enabled.

Have you passed the graphics card through to the VM?

Is the user trying to run the X server in the video group?

Systemd appears to complicate things greatly.  Have you tried to use
startx?

Can you attach x11vnc to the session (assuming that one does exist) to
see what would be on the screen from a remote machine?



Re: [gentoo-user] snapshots?

2016-01-12 Thread lee
Rich Freeman  writes:

> On Tue, Jan 5, 2016 at 5:16 PM, lee  wrote:
>> Rich Freeman  writes:
>>
>>>
>>> I would run btrfs on bare partitions and use btrfs's raid1
>>> capabilities.  You're almost certainly going to get better
>>> performance, and you get more data integrity features.
>>
>> That would require me to set up software raid with mdadm as well, for
>> the swap partition.
>
> Correct, if you don't want a panic if a single swap drive fails.
>
>>
>>> If you have a silent corruption with mdadm doing the raid1 then btrfs
>>> will happily warn you of your problem and you're going to have a
>>> really hard time fixing it,
>>
>> BTW, what do you do when you have silent corruption on a swap partition?
>> Is that possible, or does swapping use its own checksums?
>
> If the kernel pages in data from the good mirror, nothing happens.  If
> the kernel pages in data from the bad mirror, then whatever data
> happens to be there is what will get loaded and used and/or executed.
> If you're lucky the modified data will be part of unused heap or
> something.  If not, well, just about anything could happen.
>
> Nothing in this scenario will check that the data is correct, except
> for a forced scrub of the disks.  A scrub would probably detect the
> error, but I don't think mdadm has any ability to recover it.  Your
> best bet is probably to try to immediately reboot and save what you
> can, or a less-risky solution assuming you don't have anything
> critical in RAM is to just do an immediate hard reset so that there is
> no risk of bad data getting swapped in and overwriting good data on
> your normal filesystems.

Then you might be better off with no swap unless you put it on a file
system that uses check sums.

>> It's still odd.  I already have two different file systems and the
>> overhead of one kind of software raid while I would rather stick to one
>> file system.  With btrfs, I'd still have two different file systems ---
>> plus mdadm and the overhead of three different kinds of software raid.
>
> I'm not sure why you'd need two different filesystems.

btrfs and zfs

I won't put my data on btrfs for at least quite a while.

> Just btrfs for your data.  I'm not sure where you're counting three
> types of software raid either - you just have your swap.

btrfs raid is software raid, zfs raid is software raid, mdadm is
software raid.  That makes three different sofware raids.

> And I don't think any of this involves any significant overhead, other
> than configuration.

mdadm does have a very significant performance overhead.  ZFS mirror
performance seems to be rather poor.  I don't know how much overhead is
involved with zfs and btrfs software raid, yet since they basically all
do the same thing, I have my doubts that the overhead is significantly
lower than the overhead of mdadm.

>> How would it be so much better to triple the software raids and to still
>> have the same number of file systems?
>
> Well, the difference would be more data integrity insofar as hardware
> failure goes, but certainly more risk of logical errors (IMO).

There would be a possibility for more data integrity for the root file
system, assuming that btrfs is as reliable as ext4 on hardware raid.  Is
it?

That's about 10GB, mostly read and not written to.  It would be a
very minor improvement, if any.

 When you use hardware raid, it
 can be disadvantageous compared to btrfs-raid --- and when you use it
 anyway, things are suddenly much more straightforward because everything
 is on raid to begin with.
>>>
>>> I'd stick with mdadm.  You're never going to run mixed
>>> btrfs/hardware-raid on a single drive,
>>
>> A single disk doesn't make for a raid.
>
> You misunderstood my statement.  If you have two drives, you can't run
> both hardware raid and btrfs raid across them.  Hardware raid setups
> don't generally support running across only part of a drive, and in
> this setup you'd have to run hardware raid on part of each of two
> single drives.

I have two drives to hold the root file system and the swap space.  The
raid controller they'd be connected do does not support using disks
partially.

>>> and the only time I'd consider
>>> hardware raid is with a high quality raid card.  You'd still have to
>>> convince me not to use mdadm even if I had one of those lying around.
>>
>> From my own experience, I can tell you that mdadm already does have
>> significant overhead when you use a raid1 of two disks and a raid5 with
>> three disks.  This overhead may be somewhat due to the SATA controller
>> not being as capable as one would expect --- yet that doesn't matter
>> because one thing you're looking at, besides reliability, is the overall
>> performance.  And the overall performance very noticeably increased when
>> I migrated from mdadm raids to hardware raids, with the same disks and
>> the same hardware, except that the raid card was added.
>
> Well, sure, the raid card probably had battery-backed cache if it was
>

Re: [gentoo-user] snapshots?

2016-01-12 Thread lee
Neil Bothwick  writes:

> On Tue, 5 Jan 2016 18:22:59 -0500, Rich Freeman wrote:
>
>> > There's no need to use RAID for swap, it's not like it contains
>> > anything of permanent importance. Create a swap partition on each
>> > disk and let the kernel use the space as it wants.  
>> 
>> So, while I tend not to run swap on RAID, it isn't an uncommon
>> approach because if you don't put swap on raid and you have a drive
>> failure while the system is running, then you are likely to have a
>> kernel panic.  Since one of the main goals of RAID is availability, it
>> is logical to put swap on RAID.
>
> That's a point I hadn't considered, but I think I'll leave things as they
> are for now. I have three drives with a swap partition on each. My system
> uses very little swap as it is, so the chances of one of those drives
> failing exactly when something is using that particular drive is pretty
> small. There's probably more chance of my winning the lottery...

It seems far more likely for a drive to fail when it is used than when
it is not used.



Re: [gentoo-user] emerging with distcc: What's taking so long?

2016-01-12 Thread lee
Neil Bothwick  writes:

> On Mon, 11 Jan 2016 08:25:05 +0100, lee wrote:
>

> [...]
>> 
>> That there are a few special cases for which some people still need it
>> doesn't mean that everyone should be forced to use a multilib profile
>> when 100% of the software they're running is 64bit.
>
> Firstly, things like Flash and Skype are not special cases, they are
> widely used and many of us have to use them, whether we like it or not.

They are special cases.  Flash never really worked, and when it does,
it's pretty much unusable because it's too crappy.  Skype only kinda
works and is not usable due to total lack of privacy.

> Secondly, no one is forcing you to use anything? There is a no-multilib
> profile,

There doesn't seem to be a desktop profile that isn't multilib.

> and nothing to stop you creating a no-multilib version of your
> preferred desktop profile if you so wish (the desktop profiles are
> basically a different set of default USE flags).

I wouldn't know how to do that.

In any case, the default is simply wrong.

> Multilib should be gong away on due time. Until then you have two courses
> of action: complain about it or use a no-multilib profile with your
> preferred flags. Only one of those choices has any real benefit.

There is no non-multilib profile one could use when they want a desktop
profile.  Perhaps multilib goes away in 20 years or so, or never.  That
doesn't help.



Re: [gentoo-user] snapshots?

2016-01-12 Thread lee
Neil Bothwick  writes:

> On Tue, 05 Jan 2016 23:16:48 +0100, lee wrote:
>
>> > I would run btrfs on bare partitions and use btrfs's raid1
>> > capabilities.  You're almost certainly going to get better
>> > performance, and you get more data integrity features.  
>> 
>> That would require me to set up software raid with mdadm as well, for
>> the swap partition.
>
> There's no need to use RAID for swap, it's not like it contains anything
> of permanent importance. Create a swap partition on each disk and let
> the kernel use the space as it wants.

When a disk fails a swap partition is on, the system is likely to go
down.  Raid is not a replacement for backups.

>> The relevant advantage of btrfs is being able to make snapshots.  Is
>> that worth all the (potential) trouble?  Snapshots are worthless when
>> the file system destroys them with the rest of the data.
>
> You forgot the data checksumming.

Not at all, I'm seeing it as an advantage, especially when you want to
store large amounts of data.  Since I don't trust btrfs with that, I'm
using ZFS.

A system partition of 50 or 60GB --- of which about 10GB are used --- is
not exactly storing large amounts of data, and the data on it doesn't
change much.  In this application, checksums would still be a benefit,
yet a rather small one.  So as I said, the /relevant/ advantage of btrfs
is being able to make snapshots.  And that isn't worth the trouble.

> If you use hardware RAID then btrfs
> only sees a single disk. It can still warn you of corrupt data but it
> cannot fix it because it only has the one copy.

or it corrupts the data itself ;)

>> Well, then they need to make special provisions for swap files in btrfs
>> so that we can finally get rid of the swap partitions.
>
> I think there are more important priorities, its not like having a swap
> partition or two is a hardship or limitation.

Still needing swap partitions and removing the option to use swap files
instead simply defeats the purpose of btrfs and makes it significantly
harder to use.



Re: [gentoo-user] wakeup from suspend

2016-01-12 Thread Frank Steinmetzger
On Sun, Jan 10, 2016 at 02:55:57PM +0100, meino.cra...@gmx.de wrote:
> Hi,
>
> currently I am experimenting with a new embedded system
> (OrangePI PC). I want to suspend the system to RAM.
> After a period of time the system should wakeup.
>
> The RTC on the board seems to support alarms.
>
> Is there a tool to set the alarm time of an RTC
> from the commandline like hwclock set the RTC
> time itsself?

I use rtcwake for that as part of a script to wake me in the morning. Not
sure though whether it works on your board.

-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me with any social network.

Dyslexics of the world, untie!


signature.asc
Description: Digital signature


Re: [gentoo-user] Re: OT: No audio while playing HTML5-video (YouTube)

2016-01-12 Thread Mick
On Tuesday 12 Jan 2016 19:56:18 Nikos Chantziaras wrote:
> On 12/01/16 05:08, meino.cra...@gmx.de wrote:
> > Stroller  [16-01-12 04:00]:
> >>> On Mon, 11 January 2016, at 6:15 p.m., meino.cra...@gmx.de wrote:
> >>> 
> >>> Oh, how I like music videos without sound ;)
> >> 
> >> I trust you're aware you can use net-misc/youtube-dl until you get this
> >> sorted.
> >> 
> >> It's not clear to me that _any_ HTML5 audio is playing in your browser.
> >> 
> >> What version of Firefox do you have, what are it's USE flags?
> >> 
> >> Stroller.
> > 
> > ...yes, sour are right :)
> > Until now no a single HTML5-video is playing its sound...
> 
> A better way:
> 
> Open mpv from your "start menu". Drag&drop the youtube video into the
> mpv window.
> 
> No need to mess with terminals :-)

Hmm ... this won't work here.  :(

An exit code of 2 was returned.
-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Re: Adobe flash warning and tree

2016-01-12 Thread Nikos Chantziaras

On 12/01/16 23:10, Róbert Čerňanský wrote:

On Tue, 12 Jan 2016 19:53:41 +0200
Nikos Chantziaras  wrote:


Adobe does not update Flash for Linux themselves anymore. They gave
that to Google. As a side effect, the only way to get the latest
Flash version on Linux, is to use Google Chrome.


Adobe still provides security fixes for version 11.2 though.  From
https://get.adobe.com/flashplayer/ page:

"Adobe Flash Player 11.2 will be the last version to target Linux as a
supported platform. Adobe will continue to provide security backports
to Flash Player 11.2 for Linux."


That's ancient. The version that comes with Chrome is v20.0.




Re: [gentoo-user] Re: Adobe flash warning and tree

2016-01-12 Thread Róbert Čerňanský
On Tue, 12 Jan 2016 19:53:41 +0200
Nikos Chantziaras  wrote:

> Adobe does not update Flash for Linux themselves anymore. They gave
> that to Google. As a side effect, the only way to get the latest
> Flash version on Linux, is to use Google Chrome.

Adobe still provides security fixes for version 11.2 though.  From
https://get.adobe.com/flashplayer/ page:

"Adobe Flash Player 11.2 will be the last version to target Linux as a
supported platform. Adobe will continue to provide security backports
to Flash Player 11.2 for Linux."

Robert


-- 
Róbert Čerňanský
E-mail: ope...@tightmail.com
Jabber: h...@jabber.sk



[gentoo-user] Re: OT: No audio while playing HTML5-video (YouTube)

2016-01-12 Thread Nikos Chantziaras

On 12/01/16 05:08, meino.cra...@gmx.de wrote:

Stroller  [16-01-12 04:00]:



On Mon, 11 January 2016, at 6:15 p.m., meino.cra...@gmx.de wrote:

Oh, how I like music videos without sound ;)


I trust you're aware you can use net-misc/youtube-dl until you get this sorted.

It's not clear to me that _any_ HTML5 audio is playing in your browser.

What version of Firefox do you have, what are it's USE flags?

Stroller.




...yes, sour are right :)
Until now no a single HTML5-video is playing its sound...


A better way:

Open mpv from your "start menu". Drag&drop the youtube video into the 
mpv window.


No need to mess with terminals :-)





[gentoo-user] Re: Adobe flash warning and tree

2016-01-12 Thread Nikos Chantziaras

On 10/01/16 07:27, Dale wrote:

Howdy,

I keep getting a warning that Flash needs to be upgraded.  I went to
packages.g.o and there doesn't seem to be a newer version than what I
have.  What gives?


Adobe does not update Flash for Linux themselves anymore. They gave that 
to Google. As a side effect, the only way to get the latest Flash 
version on Linux, is to use Google Chrome.






Re: [gentoo-user] Re: Difficulty fixing GLSA 201512-07 (gstreamer-0.10)

2016-01-12 Thread Grant
>> >> > AFAICT, details of the gstreamer bug itself haven't been made
>> >> > public yet, and nobody is sure whether the unmaintained 0.10
>> >> > branch needs a patch.  See
>> >> >  and the
>> >> > following comment.
>> >>
>> >> So everyone is just living with the supposed security
>> >> vulnerability on their system?
>> >
>> >Not everyone.  SUSE and Debian seem to have patches for this for
>> >0.10.
>> >
>> >
>> >
>> >
>>
>> https://build.opensuse.org/package/view_file/multimedia:libs/gstreamer-0_10-plugins-bad/gstreamer-0_10-plugins-bad-mp4-overflow.patch?expand=1
>
> The bug is fixed -- that patch is applied in gst-plugins-bad-0.10.23-r3.


Should we expect the glsa-check reported vulnerability to go away?

- Grant



Re: [gentoo-user] Transferring a theme/addon from one profile to another without downloading

2016-01-12 Thread covici
Dale  wrote:

> meino.cra...@gmx.de wrote:
> > Hi,
> >
> > I have one profile with addons and themes, which are no longer
> > available. They still run fine with my current firefox.
> >
> > Now I need to setup a new profile (video/audio problems - see previous
> > thread) and want to transfer these no longer available addons/themes
> > from the old to the new profile.
> >
> > Is there any way to do this without downloading them from
> > addons.mozilla.org again?
> >
> >
> > Thank you very much for any help in advance!
> > Best regards,
> > Meino
> >
> >
> >
> >
> 
> 
> This may help but may not. 
> 
> I know recently when I had problems with Lastpass causing Firefox to
> crash, I only had to delete the directory it has in the extensions
> directory.  Once that was done, Firefox worked but without that
> plugin/extension.  So, I know removing it will make it go away but I'm
> not sure if the reverse can be said without testing.  Basically, copying
> the directory/file over from another profile may or may not make it work. 
> 
> I just did a word search for "lastpass" in a profile and the search
> found it mentioned in several other files.  Here is a partial list:
> 
> pref.js
> addons.json
> extensions.json
> extension.ini
> 
> There are a few others but you get the idea.  I'm not sure if Firefox
> would pick up and add what is needed to those files when you start it
> and it sees the new plugins/extension files are there.  It may but it
> also may have to be done during the install of the plugin/extension. 
> 
> Also, when I have recovered from a backup copy or copied from a old
> system to a new system, file permissions is something that must match
> up.  Firefox, at least in my past experience, has shown itself to be
> picky on that.  Sometimes, it doesn't even give a error, it just works
> oddly.  So, double check those permissions. 
> 
> Good question.  Looking forward to seeing if anyone else has done this
> and how it worked, or didn't work. 

I had the problem of html5 notplaying audio, I created a new profile,
andit madeit work and I just re-installed the add-ins I wanted.  I then
copied the entire profile  directory  so that in case this happened
again, I could always revert to my backup copy.

I did actually have to do this once.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Nouveau blank screen

2016-01-12 Thread Håkon Alstadheim
Den 11. jan. 2016 18:22, skrev Alexander Kapshuk:
[...]
> Section "Device"
>
>  Identifier "noveau device"
>
>
> Typo here. This should read 'nouveau'.
>
Thanks for checking, but I believe the Identifier is just for human
consumption, i.e. it does not matter. The Driver line has it spelled
correctly :/ .
>From Xorg.0.log:

[35.341] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[35.341] (**) |   |-->Device "noveau device"


 I've corrected the typo however.
> What is the output of 'grep NOUVEAU /path/to/your/kernel/sources/.config'?
>
zgrep -i nouveau /proc/config.gz
CONFIG_DRM_NOUVEAU=m
CONFIG_NOUVEAU_DEBUG=5
CONFIG_NOUVEAU_DEBUG_DEFAULT=3
# CONFIG_DRM_NOUVEAU_BACKLIGHT is not set

 
>  
>
>  Driver "nouveau"
> EndSection
> XORGX11
> ;;
>

Still stumped :-/ . I've since upgraded to gentoo-sources-4.4.0. Still 
no go.