[gentoo-user] No sound from audacity...

2020-06-26 Thread tuxic
Hi,

got a strange problem with audacity:
I did:
Load a *.wav file into audacity (it contains sound as visible in audacity 
Menu->Select->Select all
Press play bottom

Nothing

This is printed on the console:

Expression 'framesAvail' failed in 
'/var/tmp/portage/media-libs/portaudio-19.06.00-r3/work/portaudio/src/hostapi/alsa/pa_linux_alsa.c',
 line: 3625
Expression 'PaAlsaStreamComponent_GetAvailableFrames( self, &framesAvail, xrun 
)' failed in 
'/var/tmp/portage/media-libs/portaudio-19.06.00-r3/work/portaudio/src/hostapi/alsa/pa_linux_alsa.c',
 line: 3974
Expression 'PaAlsaStreamComponent_RegisterChannels( &self->playback, 
&self->bufferProcessor, &playbackFrames, &xrun )' failed in 
'/var/tmp/portage/media-libs/portaudio-19.06.00-r3/work/portaudio/src/hostapi/alsa/pa_linux_alsa.c',
 line: 4103
Expression 'PaAlsaStream_SetUpBuffers( stream, &framesGot, &xrun )' failed in 
'/var/tmp/portage/media-libs/portaudio-19.06.00-r3/work/portaudio/src/hostapi/alsa/pa_linux_alsa.c',
 line: 4344

My installation is:


[I] media-sound/audacity
 Available versions:  2.2.2^t (~)2.3.2^t (~)2.3.3^t {alsa doc ffmpeg +flac 
id3tag jack +ladspa +lame +lv2 mad (+)midi nls +portmixer sbsms +soundtouch 
twolame vamp +vorbis +vst CPU_FLAGS_X86="sse"}
 Installed versions:  2.3.3^t(11:30:03 AM 06/26/2020)(alsa ffmpeg flac 
ladspa lame lv2 mad nls portmixer soundtouch vorbis vst -doc -id3tag -jack 
-midi -sbsms -twolame -vamp CPU_FLAGS_X86="sse")
 Homepage:https://web.audacityteam.org/
 Description: Free crossplatform audio editor


Playback works fine using mpv, Firefox, etc...only audacity has a
problem.

Is it hardwired to pulseaudio?

Cheers!
Meino





[gentoo-user] Terminal weirdness...

2020-06-19 Thread tuxic
Hi,

when updateing my repository of neomutt and build it it normally went
fine and the executable can be used. 

This was the case til the release dated 1.5.2020.

Afer that some hotkey commands were no longer recognized - the
keypress itsself was recognized, but either the wrong function
was executed or "key not bound" was displayed.
This is true for ^O for opening a folder of a mailinglist.
^N still works.

I asked people from the neomutt mailing list but the suggested
solutions didn't work:

stty flush undef

or instead

stty discard  undef


Now the next stable version of neomutt was released but
my problem remains.

Yesterday I was playing around with simh and tried
to boot and run some old unix v7 tapes.

While preparing the boot process simh prints
some weird characters on the screen, which were
not diplayed in the tutorial online.

I don't know, wheter this is related.

In the relevant time I didn't changed any terminal related/
language related or such things in my setup.

I simply don't know where to search for what to fix
this.

Any help is very appreciated!

Cheers!
Meino











Re: [gentoo-user] Kind of sample player?

2020-06-15 Thread tuxic
On 06/15 10:28, Ashley Dixon wrote:
> On Mon, Jun 15, 2020 at 10:10:21AM +0200, tu...@posteo.de wrote:
> > The only one I found in portage is 'linuxsampler', which fails to
> > compile with a lot of "deprecated" messages.
> 
> Could you elaborate more on this ? Linux Sampler is an active project and
> shouldn't fail to compile.
> 
> https://www.linuxsampler.org/
> 
> -- 
> 
> Ashley Dixon
> suugaku.co.uk
> 
> 2A9A 4117
> DA96 D18A
> 8A7B B0D2
> A30E BF25
> F290 A8AA
> 

Hi,

Just installed 'ardour' just to see for what this is good, then I saw
your posting.

I reinstalled linuxsampler to post the logs hereand it compiled
fine.

Don't ask me why...

If I come accross some more infos etc...I will post it here.

Cheers!
Meino








[gentoo-user] Kind of sample player?

2020-06-15 Thread tuxic
Hi,

Trying to express what I am searching for:

I have some samples of instruments play one or only a few tones.
For each there is one sample per tone.

I am looking for a software, with which I can play these samples
controlled by a midi keyboard. The samples should be played
in a way, that dynamic of the key and pitch are respected (therefore the
sample need to be modified on-the-fly).

Unfortunately I am neither a musician nor a native language speaker...

The only one I found in portage is 'linuxsampler', which fails to
compile with a lot of "deprecated" messages.

Is there any other software, which may be appropiate for this purpose
in portage?

Cheers!
Meino






Re: [Gentoo] : Re: [gentoo-user] [OT] splitting audio file at points of silence ?

2020-06-14 Thread tuxic
On 06/14 01:35, elu6-u...@spamex.com wrote:
> [snipped]
> 
>    Hi,
> 
>    I want to split an audio file containing crow calls at points
>    where no crow call is. The "silence" in between is not exactly
>    "silence" but some low level noise.
> 
> [snipped]
> 
>    However, there is `mp3splt`, provided in the package
> `media-sound/mp3splt`.
>    It's described in the question provided as a comment to your UNIX S.E.\
> link.
> 
> [snipped]
> 
>    Jun 14, 2020, 04:43 by a...@suugaku.co.uk:
> 
>    mp3splt primarily works with mp3s, but can also support ogg, which can be
> a
>    container format for flac. I've never used it myself, but it looks
> promising,
>    providing you are OK with placing your flacs inside an ogg.
> 
> [snipped]
> 
> The package media-sound/mp3splt has use flag "flac". If set mp3splt can
> directly read and write flac files.
> 
> I have used mp3splt to successfully split podcast files for burning to a CD.
> It has many options that allow tuning of the split points. I found it a pain
> to setup, but now that setup in complete it works reliably.
> 
> Tom Naujokas (elu6-u259 at spamex.com)
> 

Hi Tom,

thanks for the info! :)

In the meanwhile I have used Audacity...it has a "Sound finder" and
"Silence finder" tool under the "Analyse Tab", which has some very
handy parameters.

The result will be visualised before any split file is written and can
be manually corrected per segment and to each segment can be listened 
separately 
beforhand.

Cheers!
Meino







Re: [gentoo-user] [OT] splitting audio file at points of silence ?

2020-06-14 Thread tuxic
On 06/14 11:45, David Haller wrote:
> Hello,
> 
> On Sun, 14 Jun 2020, tu...@posteo.de wrote:
> >I want to split an audio file containing crow calls at points
> >where no crow call is. The "silence" in between is not exactly
> >"silence" but some low level noise.
> >
> >Searching the internet for "split audio at silence" and similiar
> >gives me this link
> >https://unix.stackexchange.com/questions/318164/sox-split-audio-on-silence-but-keep-silence
> >
> >which uses a program called "silence" to detect the silence.
> >
> >Unfortunately I can't figure out, what package contains that program
> >or from where I can download that program.
> 
> You need 'media-sound/sox' and then use the silence effect. Note that
> it is _one_ command on _one_line in that answer on stackexchange
> 
> sox -V3 audiobook.mp3 audiobook_part_.mp3 silence \
> 1 0.5 0.1% 1 0.5 0.1% : newfile : restart
> 
> See 'man 7 soxeffect'
> 
> HTH,
> -dnh
> 
> -- 
> Ich glaube aber nicht, dass der DDR Ram hat. Er hat seinen Rechner doch erst
> vor einem Jahr gekauft! Die werden Ihm da doch nicht uralt-Speicherbausteine
> hereingesteckt haben. Maximal kann er also "Ex-DDR"-Speicher haben (Sprich
> Infineon, denn die Produzieren ja auch in Dresden ...).-- Konrad Neitzel
> 


Hi dnh,

Oh..<"hand against my forhand"-effect>

For me:
Lesson 1: Reading

;)

Thanks a lot for your help!

Cheers!
Meino






Re: [gentoo-user] [OT] splitting audio file at points of silence ?

2020-06-14 Thread tuxic
Hi Dale, hi Ashley,

thanks for all the help and informations! :)

In the meanwhile I found another way to split that file "as is"
(flac remains flac) with audacity.

Audacity contains a "sound finder" and "silence finder" analysis
tool, with which it is possible to set marks/regions in the file,
which mark sound and silence.

The tools are configurable. This way one can tinker with the
parameters until a near perfect match as acchieved and then
write out the files with File->Export->Multiple.

The visual representation of sound and silence is by far better
then test-listening all created files after each iteration with
any cli solution.

Cheers!
Meino




On 06/14 09:43, Ashley Dixon wrote:
> On Sun, Jun 14, 2020 at 10:19:05AM +0200, tu...@posteo.de wrote:
> > Searching the internet for "split audio at silence" and similiar
> > gives me this link
> > https://unix.stackexchange.com/questions/318164/
> > 
> > which uses a program called "silence" to detect the silence.
> > 
> > Unfortunately I can't figure out, what package contains that program
> > or from where I can download that program.
> 
> There is no binary in Portage providing the binary "silence":
> 
> $ e-file silence
> 
> *  net-irc/irssi
>Available Versions:1.0.0 1.0.7 1.2.1 1.2.2 
>Homepage:  https://irssi.org/
>Description:   A modular textUI IRC client with IPv6
> support
>Matched Files: /usr/share/irssi/help/silence;
> 
> However, there is `mp3splt`,  provided  in  the  package  
> `media-sound/mp3splt`.
> It's described in the question provided as a comment to your  UNIX  S.E.\  
> link.
> [1]
> 
> > The input audio is a flac file  and I don't want to convert this into
> > any lossy audio format to preserve as much as possible of the signal.
> 
> mp3splt primarily works with mp3s, but can also support  ogg,  which  can  be 
>  a
> container format for flac.  I've never used it myself, but it  looks  
> promising,
> providing you are OK with placing your flacs inside an ogg.
> 
> Hope this helps.
> 
> [1] https://askubuntu.com/questions/27574
> 
> -- 
> 
> Ashley Dixon
> suugaku.co.uk
> 
> 2A9A 4117
> DA96 D18A
> 8A7B B0D2
> A30E BF25
> F290 A8AA
> 





[gentoo-user] [OT] splitting audio file at points of silence ?

2020-06-14 Thread tuxic
Hi,

I want to split an audio file containing crow calls at points
where no crow call is. The "silence" in between is not exactly
"silence" but some low level noise.

Searching the internet for "split audio at silence" and similiar
gives me this link
https://unix.stackexchange.com/questions/318164/sox-split-audio-on-silence-but-keep-silence

which uses a program called "silence" to detect the silence.

Unfortunately I can't figure out, what package contains that program
or from where I can download that program.

The input audio is a flac file  and I don't want to convert this into
any lossy audio format to preserve as much as possible of the signal.

Where can I get this program ?

or

How can I split an audio file at points of defineable 
level of "silence" into several audio files in one go?


Cheers!
Meino






[gentoo-user] "Procmail => maildrop" - Converter?

2020-06-12 Thread tuxic
Hi,

does anyone know of a converter to convert .procmailrc 
to .mailfilter (or at least the recipies of it) ?

Thanks a lot for any hint!
Cheers!
Meino





Re: [gentoo-user] clone root from HDD to SSD causes no video with NVIDIA driver

2020-06-10 Thread tuxic
On 06/09 05:13, Raffaele BELARDI wrote:
> > -Original Message-
> > From: tu...@posteo.de 
> > Sent: Tuesday, June 9, 2020 05:44
> > To: gentoo-user@lists.gentoo.org
> > Subject: Re: [gentoo-user] clone root from HDD to SSD causes no video with
> > NVIDIA driver
> > 
> > 
> > Hi,
> > 
> > if even displaying the console login failed, then the hole display system 
> > has
> > gone nuts...but since the boot process as such (that is:
> > the bios prompt right after POSTing) is visible, I would say, that there is 
> > no
> > physical problem (that is: cable connected to port 2 of the monitor while 
> > the
> > monitor is switched to port 1 and such).
> > 
> > I would try this:
> > Boot your PC, ssh into the PC and download the according nvidia-drivers
> > directly from NVIDIA of the same version.
> > 
> > quickpkg the installed drivers and remove them
> > 
> > Check whether /usr/src/linux links to the kernel sources of the kernel
> > version you are booting.
> > 
> > Install the NVIDIA-drivers you have downloaded.
> > 
> > Reboot.
> > 
> > Background:
> > The portage package does not install nvidia-drivers correctly - in my case, 
> > X
> > and such works fine but RTX/Optix which is used by Blender was defunc.
> > After installing the original package and masked the one which came with
> > portage everything works fine.
> 
> But the portage driver works on this same system when booted from the HDD 
> instead of the SSD so I'd think the driver is ok, unless it has some 
> dependency on UEFI vs MBR. That would be strange, but anything is possible.
> 
> Raffaele
> 

Hi,

since I am using an EFI-boot with NVidia-drivers, which boots from SSD
may be my configurations may help:

kernel:

#
# Frame buffer Devices
#
CONFIG_FB_CMDLINE=y
CONFIG_FB_NOTIFY=y
CONFIG_FB=y
# CONFIG_FIRMWARE_EDID is not set
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_SYS_FILLRECT=y
CONFIG_FB_SYS_COPYAREA=y
CONFIG_FB_SYS_IMAGEBLIT=y
# CONFIG_FB_FOREIGN_ENDIAN is not set
CONFIG_FB_SYS_FOPS=y
CONFIG_FB_DEFERRED_IO=y
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_TILEBLITTING=y

#
# Frame buffer hardware drivers
#
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_UVESA is not set
# CONFIG_FB_VESA is not set
# CONFIG_FB_EFI is not set
# CONFIG_FB_N411 is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_OPENCORES is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I740 is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_IBM_GXT4500 is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not set
CONFIG_FB_SIMPLE=y
# CONFIG_FB_SM712 is not set
# end of Frame buffer Devices

kernel commandline
BOOT_IMAGE=/boot/vmlinuz-5061700-64-RT root=/dev/nvme0n1p3 ro console=tty1 
nomodeset enable_mtrr_cleanup mtrr_spare_reg_nr=6 mtrr_gran_size=64K 
mtrr_chunk_size=64M

These are examples...please adapt to your setup accordingly.

HTH!
:)

Cheers!
Meino






Re: [gentoo-user] 100% CPU load is different to 100% CPU load?

2020-06-09 Thread tuxic
On 06/09 07:06, Rich Freeman wrote:
> On Tue, Jun 9, 2020 at 5:17 AM  wrote:
> >
> > What is the difference between 100% CPU load and 100% CPU load to
> > create such an difference in temperature?
> > How is X% load calculated?
> >
> 
> I think a lot more detail around what you're actually running would be
> needed to provide more insight here.  I can think of a few things that
> could cause this:
> 
> The kernel maintains a number of stats around CPU load including %
> utilized by userspace, the kernel, IRQs, IO waiting, and truly idle
> time.  Depending on where you were getting that "100%" figure I can't
> be sure what was included in that.  If it was just 100-idle then you
> could have had IO waiting included in the load - this is time when you
> have a running process that wants to do something but it is blocked on
> IO, such as reading from a disk.  If you have 12 threads all doing
> random IO from a spinning hard disk you can easily end up with the CPU
> spending a whole lot of time doing nothing, but where it is otherwise
> "busy."  If the stat was system+user then that reflects actual CPU
> processing activity.
> 
> Next, not all instructions are created equally, and a CPU core is a
> fairly complex device that has many subdivisions.  There are circuits
> that do nothing but integer or floating-point math, others that
> fetch/store data, some that do logical comparisons, and so on.  While
> the OS tries to keep all the CPU cores busy, the CPU core itself also
> tries to keep all of its components busy (something aided by
> optimizing compilers).  However, the CPU only has so many instructions
> in the pipeline at one time, and they often have interdependencies,
> and so the CPU can only use out-of-order execution to a limited degree
> to keep all its parts active.  If you get a lot of cache misses the
> CPU might spend a lot of time waiting for memory access.  If you get a
> lot of one type of instruction in a row some parts of the CPU might be
> sitting idle.  Depending on the logical flow you might get a larger or
> smaller number of speculative execution misses that result in waiting
> for the pipeline to be flushed.  This can result in the power
> consumption of the CPU varying even if it is "100% busy."  It could be
> 100% busy executing 1 instruction per clock, or it could be 100% busy
> executing 4 instructions per clock.  Either way the processor queue is
> 100% blocked, but the instructions are being retired at different
> rates.  Modern CPUs can reduce the power consumption by idle
> components so part of a CPU core can be using its maximum power draw
> while another part of the same core can be using very little power.
> The end result of this at scale is that the CPU can produce different
> amounts of heat at 100% use depending on what it is actually doing.
> 
> I'm sure people have written about this extensively because it is very
> important with benchmarking.  When individually given a two uniform
> set of tasks a CPU might execute a certain number of tasks per second,
> but.when you combine the two sets of tasks and run them in parallel
> the CPU might actually be able to perform more tasks per second
> combined, because it is better able to utilize all of its components.
> A lot of synthetic loads may not fully load the CPU unless it was
> designed to balance the types of instructions generated.  Natural
> loads often fail to load a CPU fully due to the need for IO waiting.
> 
> So, I guess we can get back to your original question.  Generally 100%
> load means that from the kernel scheduler's perspective the CPU has
> been assigned threads to execute 100% of the time.  A thread could be
> a big string of no-op instructions and from the kernel's perspective
> that CPU core is 100% busy since it isn't available to assign other
> threads to.
> 
> -- 
> Rich
> 

Hi Rich,

simply: WHOW! :)
Thanks a lot, Sir! ::))

That helps !

Cheers!
Meino






[gentoo-user] 100% CPU load is different to 100% CPU load?

2020-06-09 Thread tuxic
Hi,

yesterday I md5summed my hole system with find.|
xargsmd5sum

With options I set xargs to use all 12 thread and use as much args per
call as possible in one line.

After a while I checked the CPU with glance and it shows, that all
12 cores/threads were "loaded" with 100% each constantly over a
period of about 1h. The CPU temperature rises to about 47°C.

The CPU does not contain a GPU. Graphics goes extra.

Today I created again a CPU load over a comparable duration with
a constant 100% CPU load on each core/thread.

Interesting it does not take more than 3 minutes to reach 65°C CPU
temperature.

Both temperatures reflect the die temperature.

What is the difference between 100% CPU load and 100% CPU load to
create such an difference in temperature?
How is X% load calculated?

Cheers!
Meino







Re: [gentoo-user] clone root from HDD to SSD causes no video with NVIDIA driver

2020-06-08 Thread tuxic
On 06/09 08:23, J. Roeleveld wrote:
> On Tuesday, June 9, 2020 5:43:33 AM CEST tu...@posteo.de wrote:
> > Hi,
> > 
> > if even displaying the console login failed, then the hole display
> > system has gone nuts...but since the boot process as such (that is:
> > the bios prompt right after POSTing) is visible, I would say, that
> > there is no physical problem (that is: cable connected to port 2 of
> > the monitor while the monitor is switched to port 1 and such).
> > 
> > I would try this:
> > Boot your PC, ssh into the PC and download the according
> > nvidia-drivers directly from NVIDIA of the same version.
> > 
> > quickpkg the installed drivers and remove them
> > 
> > Check whether /usr/src/linux links to the kernel
> > sources of the kernel version you are booting.
> > 
> > Install the NVIDIA-drivers you have downloaded.
> > 
> > Reboot.
> > 
> > Background:
> > The portage package does not install nvidia-drivers correctly -
> > in my case, X and such works fine but RTX/Optix which is used
> > by Blender was defunc. After installing the original package
> > and masked the one which came with portage everything works
> > fine.
> > 
> > Cheers!
> > Meino
> > 
> > On 06/08 06:20, Raffaele BELARDI wrote:
> > > > -Original Message-
> > > > From: tu...@posteo.de 
> > > > Sent: Monday, June 8, 2020 18:14
> > > > To: gentoo-user@lists.gentoo.org
> > > > Subject: Re: [gentoo-user] clone root from HDD to SSD causes no video
> > > > with
> > > > NVIDIA driver
> > > > 
> > > > You said, you are able to ssh into your PC.
> > > > I would try the following: Boot the PC, ssh into it and disable the
> > > > start of X. Boot again: Are you getting the console login successfully?
> > > 
> > > X is started by lxdm, which is started by an /etc/local.d/ script. I
> > > removed that, after reboot I no longer see X processes, but no conole
> > > except for SSH. Syslog still shows the nvidia module being loaded. I
> > > removed 'modules' from boot runlevel, nvidia is still loaded. I unmerged
> > > nvidia-drivers, nvidia still loaded. This is puzzling me.> 
> > > > Can you check, whether /dev , /proc , /sys and other directories of a
> > > > special function are created and filled correctly?
> > > > Are the permissions ok?
> > > > Is /run available and setup correctly?
> > > 
> > > To the best of my knowledge yes, they look fine.
> > > 
> > > > Are there any leftovers from the root@hd in /etc/fstab?
> > > 
> > > I rewrote fstab using UUID instead of /dev/sdx, there shouldn't be
> > > problems there.> 
> > > > If you get to console successfully, is it possible to start X from the
> > > > commandline? What is printed on the terminal?
> > > > What does X.log say?
> > > 
> > > No console except SSH. I'm not sure I can invoke startx from an SSH.
> > > 
> > > Thanks,
> > > 
> > > raffaele
> 
> 
> For plain console (TTY1,...) you need to enable EFI_FB in the kernel.
> 
> I use Nvidia and also have this enabled in the kernel, so it can work 
> together.
> I also use the nvidia-drivers package provided in Portage. Not everything is 
> added, but most is. The RTX/Optix libraries are added when using a "multilib" 
> profile, judging from the ebuild.
> 
> As you came from an older, non-GPT setup, I am assuming this is also the 
> first 
> attempt to boot using EFI?
> 
> --
> Joost
> 
> 
> 

Hi Joost,

I am on pure AMD64 with Gentoo...so "multilib" is not an option for
me.

Cheers!
Meino




Re: [gentoo-user] clone root from HDD to SSD causes no video with NVIDIA driver

2020-06-08 Thread tuxic


Hi,

if even displaying the console login failed, then the hole display
system has gone nuts...but since the boot process as such (that is:
the bios prompt right after POSTing) is visible, I would say, that
there is no physical problem (that is: cable connected to port 2 of 
the monitor while the monitor is switched to port 1 and such).

I would try this:
Boot your PC, ssh into the PC and download the according
nvidia-drivers directly from NVIDIA of the same version.

quickpkg the installed drivers and remove them

Check whether /usr/src/linux links to the kernel
sources of the kernel version you are booting.

Install the NVIDIA-drivers you have downloaded.

Reboot.

Background:
The portage package does not install nvidia-drivers correctly -
in my case, X and such works fine but RTX/Optix which is used
by Blender was defunc. After installing the original package
and masked the one which came with portage everything works
fine.

Cheers!
Meino





On 06/08 06:20, Raffaele BELARDI wrote:
> > -Original Message-
> > From: tu...@posteo.de 
> > Sent: Monday, June 8, 2020 18:14
> > To: gentoo-user@lists.gentoo.org
> > Subject: Re: [gentoo-user] clone root from HDD to SSD causes no video with
> > NVIDIA driver
> > 
> > You said, you are able to ssh into your PC.
> > I would try the following: Boot the PC, ssh into it and disable the start 
> > of X.
> > Boot again: Are you getting the console login successfully?
> 
> X is started by lxdm, which is started by an /etc/local.d/ script. I removed 
> that, after reboot I no longer see X processes, but no conole except for SSH.
> Syslog still shows the nvidia module being loaded. I removed 'modules' from 
> boot runlevel, nvidia is still loaded. I unmerged nvidia-drivers, nvidia 
> still loaded. This is puzzling me.
> 
> > Can you check, whether /dev , /proc , /sys and other directories of a 
> > special
> > function are created and filled correctly?
> > Are the permissions ok?
> > Is /run available and setup correctly?
> 
> To the best of my knowledge yes, they look fine.
> 
> > Are there any leftovers from the root@hd in /etc/fstab?
> 
> I rewrote fstab using UUID instead of /dev/sdx, there shouldn't be problems 
> there.
>  
> > If you get to console successfully, is it possible to start X from the
> > commandline? What is printed on the terminal?
> > What does X.log say?
> 
> No console except SSH. I'm not sure I can invoke startx from an SSH.
> 
> Thanks,
> 
> raffaele
> 



Re: [gentoo-user] clone root from HDD to SSD causes no video with NVIDIA driver

2020-06-08 Thread tuxic
Hi Raffaele,

may be this could give some insight of was is happening.

You said, you are able to ssh into your PC. 
I would try the following: Boot the PC, ssh into it and disable the
start of X. Boot again: Are you getting the console login
successfully?

Can you check, whether /dev , /proc , /sys and other directories of a
special function are created and filled correctly?
Are the permissions ok?
Is /run available and setup correctly?

Are there any leftovers from the root@hd in /etc/fstab?

If you get to console successfully, is it possible to start X from
the commandline? What is printed on the terminal?
What does X.log say?

Hopefully we will find something to fix that problem!

Cheers!
Meino




On 06/08 04:02, Raffaele BELARDI wrote:
> Hello,
> 
> I am trying to switch an existing and fully working HDD, MBR-based ~amd64 
> LXDE/Kodi setup to a 500Gb SSD. I also took the opportunity to dual boot 
> Gentoo with Win10 on the same SSD. As suggested by the Wiki [1] I first 
> installed Win letting it GPT-partition the SSD and leaving some empty space 
> for a Gentoo ext4 root partition. Then I copied the Gentoo root from the HDD 
> to the SSD ('cp -a' except /dev, /sys and /proc which I recreated empty on 
> the SSD), UEFI-booted a SysRescue USB and installed GRUB2 to the 
> Windows-created ESP. Now, while the chain-loaded Windows boots happily, I'm 
> not able to get any GUI or terminal interface for SSD-booted Linux. The old, 
> HDD-based installation is still available and running fine.
> 
> In details:
> 
>   1.  GRUB starts and shows the linux/windows choices, select linux
>   2.  The screen changes to 'loading linux-x.x.x', the disk light shows 
> activity, I have indirect evidence that the OpenRC init reaches conclusion, 
> but the screen does not change
>   3.  I am able to SSH into the PC, all partitions are mounted, everything 
> looks fine
>   4.  Xorg.0.log shows NVIDIA driver was loaded but probably not executed, 
> all the NVIDIA lines are missing
>   5.  Only /dev/nvidiactl is present, /dev/nvidia0 and /dev/nvidia-modeset 
> are missing
>   6.  Syslog shows that the NVIDIA driver was loaded by the kernel, no crash
>   7.  CTRL-ALT-Fn  apparently has no effect
>   8.  I'm sure the kernel is fine for this NVIDIA driver because the HDD 
> installation works with it, nevertheless I recompiled and reinstalled the 
> kernel and NVIDIA drivers to the SSD from the SSH, no change
> 
> Before I give up and reinstall Gentoo from scratch on the SSD what else could 
> I try? I can share the logs if needed.
> 
> Thanks,
> 
> Raffaele
> 
> [1] https://wiki.gentoo.org/wiki/UEFI_Dual_boot_with_Windows_7/8



Re: [gentoo-user] Got a json file from YouTube...

2020-06-05 Thread tuxic
On 06/06 05:29, David Haller wrote:
> Hello,
> 
> On Fri, 05 Jun 2020, tu...@posteo.de wrote:
> >Is there something in portage, which is recommended to 
> >reformat/display this json-input into something more 
> >readable...?
> 
> json_pp from dev-lang/perl which you should already have
> installed ;) Example usage:
> 
> $ json_pp < some.json | less
> 
> HTH,
> -dnh
> 
> -- 
> A mouse is a device used to focus xterms.
> 


Hi,

thanks a lot ! Both application will help me a lot!
:)

Cheers!
Meino





[gentoo-user] Got a json file from YouTube...

2020-06-05 Thread tuxic
Hi,

via https://youtuberandomcomment.com/ ->Download all is it possible
to download all comments of a YouTube-Videoas a json file, which
contains exactly one, very long line.

This is exactly the formatting I would prefer to read
threaded comments ;

Is there something in portage, which is recommended to 
reformat/display this json-input into something more 
readable...?

Cheers!
Meino





Re: [gentoo-user] Screenrecording with audio from firefox

2020-06-03 Thread tuxic


Hi Daniel,

sorry for not understanding the whole setup ...

Please see my inserted questions below:


On 06/03 04:44, Daniel Sonck wrote:
> It might be that your Qt5 is perhaps partially updated or out of date even, 
> but not sure. I do know that it can be a pain to compile due to Qt5 changing. 
> If it's too much of a hassle to get it to work, Catia could be replaced by 
> QJackCtl, however then you will need to have the tweaks Cadence does for you 
> manually applied. Which, according to my system, is:
> 
> pcm.!default {
> type plug
> slave { pcm "jack" }
> }
> 
> pcm.jack {
> type jack
> playback_ports {
> 0 system:playback_1
> 1 system:playback_2
> }
> capture_ports {
> 0 system:capture_1
> 1 system:capture_2
> }
> }
> 
> ctl.mixer0 {
> type hw
> card 0
> 
> ( In case you want to entirely not bother with pulseaudio )

The above setup is for alsa/jack/obs...right.
Since jackd does not start (it crashes) and I am currently not in 
the mood to fix an error which helps to fix a problem which should
fix a problem for an application which in first place was there to
help me to fix an issue to record from Firefox...I will try
pulseaudio -- despite the fact, that I really don't like it.

> Or, like me where I have it set to pulseaudio mode which creates:

Ok...the following is for alsa/pulseaudio/obs

> pcm.!default {
> type plug
> slave { pcm "pulse" }
> }
> 
> pcm.pulse {
> type pulse
> }
> 
> ctl.mixer0 {
> type hw
> card 0
> }
> 
> This would go into a file .asoundrc in your $HOME and force ALSA native 
> programs to actually hook up as Jack clients, 

...sorry...why jack? Do I need jack for pulseaudio?

> so you can manage your audio. 
> Note that you would still need to go into QJackCtls settings to setup the 
> correct main audio device

Pulseaudio->pavucontrolright?

I am..irritated..at least;)

HLL! :)

Cheers!
Meino



 
> On Wednesday, June 3, 2020 4:30:11 PM CEST tu...@posteo.de wrote:
> > ‘QPainterPath ballPath’ has incomplete type and cannot be defined
> 
> 
> 
> 
> 



Re: [gentoo-user] Screenrecording with audio from firefox

2020-06-03 Thread tuxic
Hi Daniel,

thanks a lotcadence failed to compile...

In file included from /usr/include/qt5/QtCore/qhashfunctions.h:44,
 from /usr/include/qt5/QtCore/qlist.h:47,
 from /usr/include/qt5/QtCore/qstringlist.h:41,
 from /usr/include/qt5/QtGui/qcolor.h:46,
 from /usr/include/qt5/QtGui/qpixmap.h:45,
 from /usr/include/qt5/QtGui/QPixmap:1,
 from ../widgets/pixmapdial.hpp:21,
 from ../widgets/pixmapdial.cpp:18:
/usr/include/qt5/QtCore/qstring.h:393:14: note: declared here
  393 | QString &sprintf(const char *format, ...) 
Q_ATTRIBUTE_FORMAT_PRINTF(2, 3);
  |  ^~~
../widgets/pixmapdial.cpp: In member function ‘virtual void 
PixmapDial::paintEvent(QPaintEvent*)’:
../widgets/pixmapdial.cpp:231:26: error: aggregate ‘QPainterPath ballPath’ has 
incomplete type and cannot be defined
  231 | QPainterPath ballPath;
  |  ^~~~
../widgets/pixmapdial.cpp:278:26: error: aggregate ‘QPainterPath ballPath’ has 
incomplete type and cannot be defined
  278 | QPainterPath ballPath;
  |  ^~~~
make[1]: *** [Makefile:63: ../widgets/pixmapdial.o] Error 1
make[1]: *** Waiting for unfinished jobs
c++ jackmeter.o qrc_resources-jackmeter.o ../widgets/digitalpeakmeter.o -Wl,-O1 
-Wl,--as-needed -lQt5Widgets -lQt5Gui -lQt5Core -ldl -o cadence-jackmeter
make[1]: Leaving directory 
'/var/tmp/portage/media-sound/cadence-0.9.0-r4/work/Cadence-0.9.0/c++/jackmeter'
make[1]: Leaving directory 
'/var/tmp/portage/media-sound/cadence-0.9.0-r4/work/Cadence-0.9.0/c++/xycontroller'
make: *** [Makefile:34: xycontroller] Error 2
 * ERROR: media-sound/cadence-0.9.0-r4::gentoo failed (compile phase):
 *   emake failed


Cheers!
Meino






On 06/03 04:20, Daniel Sonck wrote:
> I'm not entirely sure if it's part of portage yet (long time since I touched 
> gentoo) but it's a modern jack routing program in similar style to the 
> cadence 
> program. If cadence exists, it's likely bundled with catia otherwise it can 
> be 
> found in the audio overlay, this issue specifically mentions it: https://
> github.com/gentoo-audio/audio-overlay/issues/47
> 
> On Wednesday, June 3, 2020 4:17:15 PM CEST tu...@posteo.de wrote:
> > Hi Daniel,
> > 
> > short question...what is catia (beside a CAD program by Dassault
> > Systems... ;)...
> > Can't find that in portage...
> > 
> > Cheers!
> > Meino
> > 
> > On 06/03 03:47, Daniel Sonck wrote:
> > > I just installed simplescreenrecorder as well. The same pulseaudio method
> > > should also work for that by choosing the "Monitor" variants, although I
> > > have to add that it would not allow you to capture both a mic and firefox
> > > (or other application at the same time) unless you play back your own
> > > microphone sound. With OBS you can add an Input and Output source to have
> > > both mic and desktop audio.
> > > 
> > > If you want to have more control or are reluctant to use pulseaudio (as
> > > some are) then it gets more complicated. With ALSA, I know there are ways
> > > to support it by editing the ALSA configuration file but I don't know
> > > anything about that (nor do I really like that approach).
> > > 
> > > I would then recommend using JACK instead, and setup ALSA programs to use
> > > a
> > > wrapper for JACK, this would allow you to route any audio through anything
> > > (for which people in Music as I am use Jack) including mixing it together
> > > before sending to SimpleScreenRecorder or OBS. The 2 tools I recommend to
> > > add would be cadence (for configuring Jack + ALSA) and catia (to setup
> > > the proper audio routing) possibly combined with some jack audio mixer to
> > > get a "virtual mixing panel".
> > > 
> > > Hope this helps
> > > 
> > > Regards,
> > > 
> > > Daniel
> > > 
> > > On Wednesday, June 3, 2020 3:30:53 PM CEST tu...@posteo.de wrote:
> > > > Hi,
> > > > 
> > > > To record my screen with audio I installed
> > > > obs and then simplescreenrecoder.
> > > > 
> > > > Recording the video stream more or less works (I cannot record a
> > > > firefox-window and need to record the full screen).
> > > > 
> > > > But recording the audio from the source which will be replayed
> > > > by firefox only give me a stuttering sinus tone.
> > > > 
> > > > According to different tutorials I watched the recording of
> > > > a gameplay works with video/audio which exactly mine setup.
> > > > 
> > > > Interestingly I cannot find the regarding options of both
> > > > screen recorders any more (the tutorials refer to older versions
> > > > of the recorders).
> > > > 
> > > > How can I record video and audio from the played source nonetheless?
> > > > 
> > > > Cheers!
> > > > Meino
> 
> 
> 
> 
> 



Re: [gentoo-user] Screenrecording with audio from firefox

2020-06-03 Thread tuxic
Hi Daniel,

short question...what is catia (beside a CAD program by Dassault
Systems... ;)...
Can't find that in portage...

Cheers!
Meino



On 06/03 03:47, Daniel Sonck wrote:
> I just installed simplescreenrecorder as well. The same pulseaudio method 
> should also work for that by choosing the "Monitor" variants, although I have 
> to add that it would not allow you to capture both a mic and firefox (or 
> other 
> application at the same time) unless you play back your own microphone sound. 
> With OBS you can add an Input and Output source to have both mic and desktop 
> audio.
> 
> If you want to have more control or are reluctant to use pulseaudio (as some 
> are) then it gets more complicated. With ALSA, I know there are ways to 
> support it by editing the ALSA configuration file but I don't know anything 
> about that (nor do I really like that approach).
> 
> I would then recommend using JACK instead, and setup ALSA programs to use a 
> wrapper for JACK, this would allow you to route any audio through anything 
> (for which people in Music as I am use Jack) including mixing it together 
> before sending to SimpleScreenRecorder or OBS. The 2 tools I recommend to add 
> would be cadence (for configuring Jack + ALSA) and catia (to setup the proper 
> audio routing) possibly combined with some jack audio mixer to get a "virtual 
> mixing panel".
> 
> Hope this helps
> 
> Regards,
> 
> Daniel
> 
> On Wednesday, June 3, 2020 3:30:53 PM CEST tu...@posteo.de wrote:
> > Hi,
> > 
> > To record my screen with audio I installed
> > obs and then simplescreenrecoder.
> > 
> > Recording the video stream more or less works (I cannot record a
> > firefox-window and need to record the full screen).
> > 
> > But recording the audio from the source which will be replayed
> > by firefox only give me a stuttering sinus tone.
> > 
> > According to different tutorials I watched the recording of
> > a gameplay works with video/audio which exactly mine setup.
> > 
> > Interestingly I cannot find the regarding options of both
> > screen recorders any more (the tutorials refer to older versions
> > of the recorders).
> > 
> > How can I record video and audio from the played source nonetheless?
> > 
> > Cheers!
> > Meino
> 
> 
> 
> 
> 



[gentoo-user] Screenrecording with audio from firefox

2020-06-03 Thread tuxic
Hi,

To record my screen with audio I installed 
obs and then simplescreenrecoder.

Recording the video stream more or less works (I cannot record a
firefox-window and need to record the full screen).

But recording the audio from the source which will be replayed
by firefox only give me a stuttering sinus tone.

According to different tutorials I watched the recording of
a gameplay works with video/audio which exactly mine setup.

Interestingly I cannot find the regarding options of both
screen recorders any more (the tutorials refer to older versions
of the recorders).

How can I record video and audio from the played source nonetheless?

Cheers!
Meino





[gentoo-user] Problem with socks syscall

2020-06-03 Thread tuxic
Hi,

I experimented with torify of the TOR project today and failed

host:/tmp>sudo torify aria2c --async-dns false http:aria2c http://example.com
1591180702 WARNING torsocks[20364]: [syscall] Unsupported syscall number 2. 
Denying the call (in tsocks_syscall() at syscall.c:604)
1591180702 WARNING torsocks[20364]: [syscall] Unsupported syscall number 2. 
Denying the call (in tsocks_syscall() at syscall.c:604)
Exception caught
Exception: [download_helper.cc:451] errorCode=1 Unrecognized URI or unsupported 
protocol: false

[1]20363 exit 1 sudo torify aria2c --async-dns false http:aria2c 
http://example.com

Aria2, torsocks and torify are freshly compiled/installed:

[I] net-misc/aria2
 Available versions:  1.34.0-r2^t {adns bittorrent +gnutls jemalloc libuv 
+libxml2 metalink +nettle nls scripts sqlite ssh ssl tcmalloc test xmlrpc}
 Installed versions:  1.34.0-r2^t(12:37:52 PM 06/03/2020)(adns bittorrent 
gnutls jemalloc libuv libxml2 metalink nettle nls scripts sqlite ssh ssl xmlrpc 
-tcmalloc -test)
 Homepage:https://aria2.github.io/
 Description: A download utility with segmented downloading with 
BitTorrent support

[I] acct-group/tor
 Available versions:  0
 Installed versions:  0(07:00:43 PM 06/02/2020)
 Description: group for tor daemon

[I] acct-user/tor
 Available versions:  0
 Installed versions:  0(07:00:50 PM 06/02/2020)
 Description: user for tor daemon

[I] net-proxy/torsocks
 Available versions:  2.2.0 2.3.0 {static-libs}
 Installed versions:  2.3.0(07:23:00 PM 06/02/2020)(-static-libs)
 Homepage:https://github.com/dgoulet/torsocks
 Description: Use most socks-friendly applications with Tor

[I] net-vpn/tor
 Available versions:  0.4.2.7^t (~)0.4.3.5^t {caps doc libressl lzma +man 
scrypt seccomp selinux +server systemd test tor-hardening zstd}
 Installed versions:  0.4.3.5^t(07:11:51 PM 06/02/2020)(caps doc lzma man 
scrypt seccomp server tor-hardening zstd -libressl -selinux -systemd -test)
 Homepage:http://www.torproject.org/
 Description: Anonymizing overlay network for TCP

The TOR webbrowser works without any problems.

This is my first contact with tor/torsocks/...

I briefly checked the kernel for a SOCK-related configuration
item and found nothing. On the other hand, if this configuration
item is named completly different, then I would be out of business.

How can I use torify/torsocks successfully?

Cheers!
Meino





Re: [gentoo-user] ReactOS with Virtual Box: B.O.D. Black Screen of (?)death(?)

2020-05-31 Thread tuxic
On 06/01 01:21, Walter Dnes wrote:
> On Sun, May 31, 2020 at 03:26:06PM +0200, tu...@posteo.de wrote
> 
>   This is a bit of a long shot.  I run ArcaOS (modern version of OS/2)
> in QEMU.  During the install phase it would come up in 1024 x 768 mode.
> But at reboot after install, it had video problems and refused to go
> beyond ancient VGA mode... 640 x 480 pixels x 16 colours.
> 
>   After some trial and error I rebuilt my linux kernel *WITHOUT* Bochs
> video extensions.  Bochs video extensions allow the VM to "talk to the
> virtual bare metal" video.  Without Bochs, the VM talks to VESA VBE, and
> the ArcOS system setup menu offers up to 2560 x 1600 x 16 million
> colours. My monitor is "only" 1920 x 1080.
> 
>   Maybe ReactOS is coming up OK but can't talk to the video because it
> expects standard VESA VBE.  Suggestion; try rebuilding your linux kernel
> *WITHOUT* Bochs video extensions.  If you have Bochs as a module, you
> may be able to "blacklist" it instead.
> 
> -- 
> Walter Dnes 
> I don't run "desktop environments"; I run useful applications
> 

Hi Walter,

BOCHS wasn't compiled in nor set as module.

Cheers!
Meino





Re: [gentoo-user] ReactOS with Virtual Box: B.O.D. Black Screen of (?)death(?)

2020-05-31 Thread tuxic
Hi Ashley,

the compilation failed so I took the binary version 5.2.40,
which reproduces the same behaviour as with the previous
attempt.

Cheers!
Meino



On 05/31 05:54, tu...@posteo.de wrote:
> 
> Hi Ashley,
> 
> thanks for the hint ... I am currently recompiling...
> ...will see then.
> 
> Cheers!
> Meino
> 
> 
> 
> On 05/31 04:42, Ashley Dixon wrote:
> > On Sun, May 31, 2020 at 05:31:25PM +0200, tu...@posteo.de wrote:
> > > Yep...even (re-) booting the newly created image works...the ReactOS
> > > logo apearsand then instead of the desktop I get this black
> > > void...
> > >
> > > I have not tested other systems yet.
> > > It works fine with my old computer...but that it doesn't work now, may
> > > be a coincidence in time and not necessarily a logical dependency.
> > > I can't rememember of VirtualBox or one of its dependencies were
> > > updates in the meanwhile...
> > 
> > From [1]:
> > 
> > Note: VirtualBox 5.2.38 version is highly and strongly recommended.
> > VirtualBox 6.x branch is still very buggy and unstable, causes fake
> > regressions to be found in ReactOS.
> > 
> > I know you often run unstable software; are you on the 6.x series ? Try
> > downgrading to the stable version currently in gentoo.git (5.2.40).
> > 
> > [1] https://reactos.org/wiki/VirtualBox
> > 
> > -- 
> > 
> > Ashley Dixon
> > suugaku.co.uk
> > 
> > 2A9A 4117
> > DA96 D18A
> > 8A7B B0D2
> > A30E BF25
> > F290 A8AA
> > 
> 
> 
> 



Re: [gentoo-user] ReactOS with Virtual Box: B.O.D. Black Screen of (?)death(?)

2020-05-31 Thread tuxic


Hi Ashley,

thanks for the hint ... I am currently recompiling...
...will see then.

Cheers!
Meino



On 05/31 04:42, Ashley Dixon wrote:
> On Sun, May 31, 2020 at 05:31:25PM +0200, tu...@posteo.de wrote:
> > Yep...even (re-) booting the newly created image works...the ReactOS
> > logo apearsand then instead of the desktop I get this black
> > void...
> >
> > I have not tested other systems yet.
> > It works fine with my old computer...but that it doesn't work now, may
> > be a coincidence in time and not necessarily a logical dependency.
> > I can't rememember of VirtualBox or one of its dependencies were
> > updates in the meanwhile...
> 
> From [1]:
> 
> Note: VirtualBox 5.2.38 version is highly and strongly recommended.
> VirtualBox 6.x branch is still very buggy and unstable, causes fake
> regressions to be found in ReactOS.
> 
> I know you often run unstable software; are you on the 6.x series ? Try
> downgrading to the stable version currently in gentoo.git (5.2.40).
> 
> [1] https://reactos.org/wiki/VirtualBox
> 
> -- 
> 
> Ashley Dixon
> suugaku.co.uk
> 
> 2A9A 4117
> DA96 D18A
> 8A7B B0D2
> A30E BF25
> F290 A8AA
> 





Re: [gentoo-user] ReactOS with Virtual Box: B.O.D. Black Screen of (?)death(?)

2020-05-31 Thread tuxic
Hi Ashley,


On 05/31 04:03, Ashley Dixon wrote:
> On Sun, May 31, 2020 at 03:26:06PM +0200, tu...@posteo.de wrote:
> > I tried to install ReactOS into my Virtual Box which went fine so far.
> > Booting itsself was no problem eitherbut instead of getting a desktop I
> > got a simple uniform black screen.  No error messages so 
> > far...nothingonly
> > the black void.
> 
> Did you manage to get to the stage of the graphical wizard, which displays 
> after
> rebooting for the first time ?  This is the point at which you set the name  
> and
> Administrative Password.

Yep...even (re-) booting the newly created image works...the ReactOS
logo apearsand then instead of the desktop I get this black
void...

> > Does someone run ReactOS successfully with virtualbox and knows how to
> > circumvent this BOD?
> 
> I've got it running perfectly on QEMU, although it does  seem  a  bit  
> sluggish.
> With VirtualBox, are you able to virtualise other  systems,  or  is  this  
> issue
> specific to ReactOS ?

I have not tested other systems yet.
It works fine with my old computer...but that it doesn't work now, may
be a coincidence in time and not necessarily a logical dependency.
I can't rememember of VirtualBox or one of its dependencies were
updates in the meanwhile...

Have you ever managed to run a previous version of ReactOS
> in the past, or is this your first attempt at doing so ?

As said, I have successfully run ReatOS on my old computer.

Cheers!
Meino



 
> -- 
> 
> Ashley Dixon
> suugaku.co.uk
> 
> 2A9A 4117
> DA96 D18A
> 8A7B B0D2
> A30E BF25
> F290 A8AA
> 





[gentoo-user] ReactOS with Virtual Box: B.O.D. Black Screen of (?)death(?)

2020-05-31 Thread tuxic
Hi,

I tried to install ReactOS into my Virtual Box which went fine
so far.
Booting itsself was no problem eitherbut instead of getting 
a desktop I got a simple uniform black screen.
No error messages so far...nothingonly the black void.

bugs.gentoo.org when searched for "ReactOS" or "black screen"
shows nothing related.

In the internet I found one anchient message from glorious
times, when bugs were real bugs ... ...
a message, which is no longer related due to its age.

Does someone run ReactOS successfully with virtualbox
and knows how to circumvent this BOD?

Thanks a lot in advance!
Cheers!
Meino





Re: [gentoo-user] Defining languages via USE flags for tesseract

2020-05-26 Thread tuxic
On 05/26 02:34, Ashley Dixon wrote:
> On Tue, May 26, 2020 at 03:28:56PM +0200, tu...@posteo.de wrote:
> > I want to include "de" (german) to the USE flags for
> > app-text/tesseract and all I tried has not worked.
> >
> > How can I successfully define the language via USE flags
> > for app-text/tesseract?
> 
> How about the following entry in package.use ?
> app-text/tessdata_* L10N: de
> 
> -- 
> 
> Ashley Dixon
> suugaku.co.uk
> 
> 2A9A 4117
> DA96 D18A
> 8A7B B0D2
> A30E BF25
> F290 A8AA
> 

Hi Ashley,

same flag exists for app-text/tesseract. I tried that form and it
does not work...
Why is tessdata are not pulled?

H...

You see, I am already working on "that project"...and may be
I have something for you tommorow...

Cheers!
Meino






[gentoo-user] Defining languages via USE flags for tesseract

2020-05-26 Thread tuxic
Hi,

I want to include "de" (german) to the USE flags for
app-text/tesseract and all I tried has not worked.

How can I successfully define the language via USE flags
for app-text/tesseract?

Cheers!
Meino





Re: [gentoo-user] handbrake fails to compile

2020-05-24 Thread tuxic
On 05/24 08:10, Pengcheng Xu wrote:
> > -Original Message-
> > From: tu...@posteo.de 
> > Sent: Sunday, May 24, 2020 7:16 PM
> > To: gentoo-user@lists.gentoo.org
> > Subject: Re: [gentoo-user] handbrake fails to compile
> > 
> > On 05/24 11:54, Neil Bothwick wrote:
> > > On Sun, 24 May 2020 12:44:20 +0200, tu...@posteo.de wrote:
> > >
> > > > media-video/handbrake-1.3.2:0/0::gentoo fails to compile (I am on
> > > > "unstable").
> > > >
> > > > Searching online I found, that running perl-cleaner would fix that
> > > > problem which I done:
> > > >
> > > > perl-cleaner --all
> > > >
> > > >  - but without success.
> > > >
> > > > Message was:
> > > >
> > > >  * ERROR: media-video/handbrake-1.3.2::gentoo failed (compile phase):
> > > >  *   emake failed
> > > >
> > > > I attached the build.log. If any further information are added I
> > > > will be happy to post them.
> > > >
> > > > How can I fix that?
> > >
> > > Try the patch in https://bugs.gentoo.org/724650
> > >
> > > mkdir -p /etc/portage/patches/media-video/handbrake-1.3.2
> > >
> > > and drop the patch into that directory.
> > >
> > >
> > > --
> > > Neil Bothwick
> > >
> > > If a stealth bomber crashes in a forest, will it make a sound?
> > 
> > Hi Neil,
> > 
> > that works! Thanks  a lot.
> > 
> > A more general question: It is not the first time I searched for fixes for
> > compilation failures I came accross and I never got a link into the gentoo 
> > bug
> > tracker. As search terms I used "handbrake gentoo compile failure".
> > 
> > Is the bug tracker secureVud somehow against search machine robots somehow 
> > or
> > via robots.txt or is it me using a foreign language wrongly?
> 
> Instead, you may want to search for anything relevant on the Bugzilla, 
> forums, and mailing list archives *first* :)

Hi,

I am a non native speaker -- when I asked using the wrong words.

My question was: 
"Is the bug tracker secureVud somehow against search machine robots somehow or 
via robots.txt or is it me using a foreign language wrongly?"

Cheers!
Meino



> 
> > 
> > Cheers!
> > Meino
> > 
> > 
> > 
> > 
> 
> Regards,
> -- 
> Pengcheng Xu
> https://jsteward.moe





Re: [gentoo-user] handbrake fails to compile

2020-05-24 Thread tuxic
On 05/24 11:12, R wrote:
> 
> tu...@posteo.de writes:
> 
> > media-video/handbrake-1.3.2:0/0::gentoo fails to compile (I am on
> > "unstable").
> > 
> 
> > Message was:
> > 
> >  * ERROR: media-video/handbrake-1.3.2::gentoo failed (compile  phase):
> >  *   emake failed
> 
> Funny, when I `cat` the ebuild, it has a few TODO items.
> And it says documentation building is broken; in the compile phase.
> 
> `cat /usr/portage/media-video/handbrake/handbrake-1.3.0-r2.ebuild`
> 
> ...
> src_compile(){
> ...
># TODO: Documentation building is currently broken, try tofix
> it.
>#
># if use doc ; then
>#   emake -C build doc
># fi
> 
> Also, do you have media-video/handbrake-1.3.2-*r2* ?
> You might want to trying syncing up again, if you don't.
> 
> > How can I fix that?
> Maybe try:
> `USE="-doc" emerge -av1 media-video/handbrake`
> 
> Or:
> `emerge --sync && #command above`
> 
> Regards,
> Roger
> 

Hi,

then *r2 has been released secongs after my syincing...h...

Syncing again currentlyplease hold the linebeep
Syncing again currentlyplease hold the linebeep
Syncing again currentlyplease hold the linebeep

...

# >eix handbrake
[I] media-video/handbrake
 Available versions:  (~)1.2.2-r3 (~)1.3.0-r2 (~)1.3.2 ***l {+fdk 
gstreamer gtk libav-aac numa nvenc x265}
 Installed versions:  1.3.2(01:08:05 PM 05/24/2020)(fdk gtk x265 -gstreamer 
-libav-aac -numa -nvenc)
 Homepage:http://handbrake.fr/
 Description: Open-source, GPL-licensed, multiplatform, 
multithreaded video transcoder

no update was triggered...handbrake-1.3.2-r2 is missing here.

I fixed that with the patch Neil gaves me just before. So handbrake
itsself is fixed locally...but where is handbrake-1.3.2-r2?

My sunc-command:
ionice -c 3 -n 13 nice -n 5 eix-sync ;ionice -c 3 -n 13 nice -n 5 emerge 
--update --newuse --deep --with-bdeps=y --tree --keep-going --backtrack=30 -v 
--verbose-conflicts -1 @world


Cheers!
Meino





Re: [gentoo-user] handbrake fails to compile

2020-05-24 Thread tuxic
On 05/24 11:54, Neil Bothwick wrote:
> On Sun, 24 May 2020 12:44:20 +0200, tu...@posteo.de wrote:
> 
> > media-video/handbrake-1.3.2:0/0::gentoo fails to compile (I am on
> > "unstable").
> > 
> > Searching online I found, that running perl-cleaner would fix that
> > problem which I done:
> > 
> > perl-cleaner --all
> > 
> >  - but without success.
> > 
> > Message was:
> > 
> >  * ERROR: media-video/handbrake-1.3.2::gentoo failed (compile phase):
> >  *   emake failed
> > 
> > I attached the build.log. If any further information are added I will
> > be happy to post them.
> > 
> > How can I fix that?
> 
> Try the patch in https://bugs.gentoo.org/724650
> 
> mkdir -p /etc/portage/patches/media-video/handbrake-1.3.2
> 
> and drop the patch into that directory.
> 
> 
> -- 
> Neil Bothwick
> 
> If a stealth bomber crashes in a forest, will it make a sound?

Hi Neil,

that works! Thanks  a lot.

A more general question: It is not the first time I searched for 
fixes for compilation failures I came accross and I never got a 
link into the gentoo bug tracker. As search terms I used
"handbrake gentoo compile failure".

Is the bug tracker secured somehow against search machine robots
somehow or via robots.txt or is it me using a foreign language
wrongly?

Cheers!
Meino







[gentoo-user] handbrake fails to compile

2020-05-24 Thread tuxic
Hi,

media-video/handbrake-1.3.2:0/0::gentoo fails to compile (I am on
"unstable").

Searching online I found, that running perl-cleaner would fix that
problem which I done:

perl-cleaner --all

 - but without success.

Message was:

 * ERROR: media-video/handbrake-1.3.2::gentoo failed (compile phase):
 *   emake failed

I attached the build.log. If any further information are added I will
be happy to post them.

How can I fix that?

Cheers!
Meino


 * Package:media-video/handbrake-1.3.2
 * Repository: gentoo
 * Maintainer: thev00...@gentoo.org
 * USE:abi_x86_64 amd64 elibc_glibc fdk gtk kernel_linux userland_GNU 
x265
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Using python3.8 to build
>>> Unpacking source...
>>> Unpacking handbrake-1.3.2.tar.bz2 to 
>>> /var/tmp/portage/media-video/handbrake-1.3.2/work
>>> Source unpacked in /var/tmp/portage/media-video/handbrake-1.3.2/work
>>> Preparing source in 
>>> /var/tmp/portage/media-video/handbrake-1.3.2/work/HandBrake-1.3.2 ...
 * Applying handbrake--remove-dvdnav-dup.patch ...
 [ ok ]
 * Applying handbrake--remove-faac-dependency.patch ...
 [ ok ]
 * Applying handbrake-1.3.0-dont-search-for-python.patch ...
 [ ok ]
 * Running eautoreconf in 
'/var/tmp/portage/media-video/handbrake-1.3.2/work/HandBrake-1.3.2/gtk' ...
 * Running autopoint --force ...
 [ ok ]
 * Running libtoolize --install --copy --force --automake ...
 [ ok ]
 * Running aclocal -I m4 ...
 [ ok ]
 * Running autoconf --force ...
 [ ok ]
 * Running autoheader ...
 [ ok ]
 * Running automake --add-missing --copy --foreign --force-missing ...
 [ ok ]
 * Running elibtoolize in: HandBrake-1.3.2/gtk/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.4.3 patch ...
>>> Source prepared.
>>> Configuring source in 
>>> /var/tmp/portage/media-video/handbrake-1.3.2/work/HandBrake-1.3.2 ...
probe: build tuple...(pass) x86_64-pc-linux-gnu
  + ./make/config.guess
  : b'x86_64-pc-linux-gnu'
find: ar...(pass) /usr/bin/ar
  : name[0] = ar
find: cp...(pass) /bin/cp
  : name[0] = cp
find: gm4...(pass) /usr/bin/m4
  : name[0] = gm4
  : name[1] = m4
find: mkdir...(pass) /bin/mkdir
  : name[0] = mkdir
find: gpatch...(pass) /usr/bin/patch
  : name[0] = gpatch
  : name[1] = patch
find: rm...(pass) /bin/rm
  : name[0] = rm
find: ranlib...(pass) /usr/bin/ranlib
  : name[0] = ranlib
find: strip...(pass) /usr/bin/strip
  : name[0] = strip
find: gtar...(pass) /bin/tar
  : name[0] = gtar
  : name[1] = tar
find: python3.8...(pass) /usr/bin/python3.8
  : name[0] = python3.8
find: gcc...(pass) /usr/bin/gcc
  : name[0] = gcc
find: gmake...(pass) /usr/bin/gmake
  : name[0] = gmake
  : name[1] = make
find: autoconf...(pass) /usr/bin/autoconf
  : name[0] = autoconf
find: automake...(pass) /usr/bin/automake
  : name[0] = automake
find: libtool...(pass) /usr/bin/libtool
  : name[0] = libtool
find: lipo...(fail) not found
  : name[0] = lipo
find: pkg-config...(pass) /usr/bin/pkg-config
  : name[0] = pkg-config
find: meson...(pass) /usr/bin/meson
  : name[0] = meson
find: nasm...(pass) /usr/bin/nasm
  : name[0] = nasm
find: ninja-build...(pass) /usr/bin/ninja
  : name[0] = ninja-build
  : name[1] = ninja
find: xcodebuild...(fail) not found
  : name[0] = xcodebuild
compute: available architectures...(pass) x86_64
  : 
probe: number of CPU cores...(pass) 12
  : 
probe: repo info...(fail) code 128
  + ./scripts/repo-info.sh .
  : b'fatal: not a git repository (or any parent up to mount point /)'
  : b'Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not 
set).'
  : b'fatal: not a git repository (or any parent up to mount point /)'
  : b'Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not 
set).'
  : b'Not a valid repository.'
probe: version.txt...(pass)
compute: project data...(pass) HandBrake (release)
  : 
version probe: autoconf 2.69.0...(pass) 2.69
  + /usr/bin/autoconf --version
  : b'autoconf (GNU Autoconf) 2.69'
  : b'Copyright (C) 2012 Free Software Foundation, Inc.'
  : b'License GPLv3+/Autoconf: GNU GPL version 3 or later'
  : b', 
'
  : b'This is free software: you are free to change and redistribute it.'
  : b'There is NO WARRANTY, to the extent permitted by law.'
  : b''
  : b'Written by David J. MacKenzie and Akim Demaille.'
version probe: automake 1.13.0...(pass) 1.16.2
  + /usr/bin/automake --version
  : b'automake (GNU automake) 1.16.2'
  : b'Copyright (C) 2020 Free Software Foundation, Inc.'
  : b'License GPLv2+: GNU GPL version 2 or later 
'
  : b'This is free software: you are free to change and redistribute it.'
  : b'There is NO WARRANTY, to the extent permitted by law.'
  : b''
  : b'Written by Tom Tromey '
  : b'   and Alexandre Duret-Lutz .'
version probe: pkg-config 0.27.0...(pass) 0.29.2
  + /usr/bin/pkg-config --version
  : b'0.29.2'
version probe: meson 0.47.0...(pa

Re: [gentoo-user] How to manage load on the GPU?

2020-05-20 Thread tuxic
On 05/20 09:44, J. Roeleveld wrote:
> On Monday, May 18, 2020 8:22:52 PM CEST tu...@posteo.de wrote:
> > On 05/18 09:58, Matt Connell (Gmail) wrote:
> > > On 2020-05-18 09:40, tastytea wrote:
> > > > Another solution is to modify the priority yourself, with `renice
> > > > --priority 15 $(pidof blender)` for example. The priority can be from
> > > > -20 (very high priority) to 19 (very low priority).
> > > 
> > > According to the man page for renice, there is a --gpu flag that can be
> > > used (today I learned) that the OP may want to try as well.
> > 
> > If it is a load/performance problem, why is only
> > firefox/internet-video affected?
> 
> firefox might be using GPU-offloading for the video playback (decoder in GPU) 
> where MPV might not use the GPU for decoding and is only CPU-bound.
> 
> --
> Joost
> 
> 
> 

Hi Joost,

mpv is installed as follows:


[I] media-video/mpv
 Available versions:  0.32.0-r1^t ***l^t {+X +alsa aqua archive bluray 
cdda +cli coreaudio cplugins cuda debug doc drm dvb dvd +egl gamepad gbm +iconv 
jack javascript jpeg lcms +libass libcaca libmpv +lua luajit openal +opengl oss 
pulseaudio raspberry-pi rubberband samba sdl selinux test tools +uchardet vaapi 
vdpau vulkan wayland +xv zimg zlib PYTHON_TARGETS="python3_6 python3_7 
python3_8"}
 Installed versions:  0.32.0-r1^t(08:15:17 AM 05/16/2020)(X alsa cdda cli 
cuda dvb dvd egl iconv jpeg lcms libass lua luajit opengl oss rubberband sdl 
uchardet xv zlib -aqua -archive -bluray -coreaudio -cplugins -debug -doc -drm 
-gamepad -gbm -jack -javascript -libcaca -libmpv -openal -pulseaudio 
-raspberry-pi -samba -selinux -test -tools -vaapi -vdpau -vulkan -wayland -zimg 
PYTHON_TARGETS="python3_7 -python3_6 -python3_8")
 Homepage:https://mpv.io/ https://github.com/mpv-player/mpv
 Description: Media player based on MPlayer and mplayer2


The USE flag "cuda" - therefore mpv should be able to utilize the
GPU...

Cheers!
Meino





Re: [gentoo-user] How to manage load on the GPU?

2020-05-18 Thread tuxic
On 05/18 09:58, Matt Connell (Gmail) wrote:
> On 2020-05-18 09:40, tastytea wrote:
> > Another solution is to modify the priority yourself, with `renice
> > --priority 15 $(pidof blender)` for example. The priority can be from
> > -20 (very high priority) to 19 (very low priority).
> 
> According to the man page for renice, there is a --gpu flag that can be used
> (today I learned) that the OP may want to try as well.
> 

If it is a load/performance problem, why is only
firefox/internet-video affected?

Cheers!
Meino





[gentoo-user] How to manage load on the GPU?

2020-05-17 Thread tuxic
Hi,

sorry for the somehow vague subject line...no native speaker...

With Blender I do a lot of experimenting and tinkering which
involves rendering most of the time.

With rendering comes ... waiting for the result.

Often (I am trying to) watch videos, like tutorial about
what I currently trying to acchieve with Blender.

The problem is, that the video (the audio does not) stutters
in short periods. 

Interestingly it does this not every time but quite often.

And it only effects videos online.

mpv for example is not affected.

Is there any way to configure whatever it is in a way, that Online
videos can be played smoothlessly also?

Hardware:
AMD Ryzen 5 3600
MSI Ventus RTX 2060 SUPER (NVidia)
32 GB RAM

Any helpful idea is very appreciated!
Cheers!
Meino






Re: [gentoo-user] [OT] BIOS Best settings (no o.c.) for RYZEN 5 3600 / MSI Tomahawk max ?

2020-05-16 Thread tuxic
On 05/16 01:04, Dale wrote:
> tu...@posteo.de wrote:
> > On 05/16 12:46, Dale wrote:
> >> tu...@posteo.de wrote:
> >>> Hi,
> >>>
> >>> I am trying to figure out the best settings (performance wise) for a
> >>> AMD Ryzen 5 3600 with a MSI Tomahawk max motherboard.
> >>>
> >>> I don't want to overclock -- tweaking the bios is for finding
> >>> the optimal setting in oposite to waste performance via sub-optimal
> >>> settings like not activateing XMP profile and running the RAM at
> >>> JEDEC speeds instead of what the vendor guaranties.
> >>>
> >>> Unfortunately, there are quite a view settings to which I didn't 
> >>> find any explanation, for what they are good.
> >>>
> >>> Any help is very appreciated! :)
> >>>
> >>> Cheers,
> >>> Meino
> >> I usually buy boards that can overclock but don't do it.  What I usually
> >> look for once I get my CPU, memory and all installed, the selection for
> >> optimized settings or something to that effect.  I've always found that
> >> that setting works pretty darn well.  I had to tweak the IOMMU or
> >> something setting but other than that, I let it detect the best
> >> settings.  If I upgrade the BIOS, I repeat that on the first boot up. 
> >> In my experience, it picks good safe settings that result in stable
> >> systems. 
> >>
> >> I've never had a MSI mobo, yet, so it may be called something different
> >> but even Dell and Gateway usually have something similar to choose.  It
> >> may be worth looking into . 
> >>
> >> Dale
> >>
> >> :-)  :-) 
> > Hi Dale,
> >
> > thanks for your info! :)
> >
> > I think it is called "Auto" with the MSI bios.
> > When using this, JEDEC timings and a command rate of 2
> > instead of 1 are choosen for DDR4 (as an example)...which
> > isn't optimal.
> >
> > These "Auto" were the reason for better settings.
> > I think I have to tweak the bios settings by hand...
> >
> > Cheers!
> > Meino
> >
> 
> Maybe for once I got lucky and something worked.  ROFL  I once visited
> the overclockers forum and found a listing for the "safe" settings for
> all sorts of Mobo and CPU and memory combinations.  That was back in my
> ABIT NF7?? days.  I don't know if they still post those or not.  The
> overclockers forum isn't just about overclocking.  They have info on
> what is considered safe as well.  May be worth searching for info there
> as well as what people share here.  If you lucky, someone has the same
> hardware you have and can share a screenshot or something. 
> 
> This is a link to the home page.  You can get to the forums as well as
> how-tos and such from there. 
> 
> https://www.overclockers.com/
> 
> Hope that helps.  Even one piece of good info can make it worthwhile. 
> You don't want the smoke to get out of a chip or something.  o_O
> 
> Dale
> 
> :-)  :-) 

Hi Dale,

without your help/info I would have NEVER checked an overclockers
forum for information about the direct opposite of it ! ;)

Thanks a lot, Dale! Will grep the forum there!

Cheers!
Meino









Re: [gentoo-user] [OT] BIOS Best settings (no o.c.) for RYZEN 5 3600 / MSI Tomahawk max ?

2020-05-15 Thread tuxic
On 05/16 12:46, Dale wrote:
> tu...@posteo.de wrote:
> > Hi,
> >
> > I am trying to figure out the best settings (performance wise) for a
> > AMD Ryzen 5 3600 with a MSI Tomahawk max motherboard.
> >
> > I don't want to overclock -- tweaking the bios is for finding
> > the optimal setting in oposite to waste performance via sub-optimal
> > settings like not activateing XMP profile and running the RAM at
> > JEDEC speeds instead of what the vendor guaranties.
> >
> > Unfortunately, there are quite a view settings to which I didn't 
> > find any explanation, for what they are good.
> >
> > Any help is very appreciated! :)
> >
> > Cheers,
> > Meino
> 
> I usually buy boards that can overclock but don't do it.  What I usually
> look for once I get my CPU, memory and all installed, the selection for
> optimized settings or something to that effect.  I've always found that
> that setting works pretty darn well.  I had to tweak the IOMMU or
> something setting but other than that, I let it detect the best
> settings.  If I upgrade the BIOS, I repeat that on the first boot up. 
> In my experience, it picks good safe settings that result in stable
> systems. 
> 
> I've never had a MSI mobo, yet, so it may be called something different
> but even Dell and Gateway usually have something similar to choose.  It
> may be worth looking into . 
> 
> Dale
> 
> :-)  :-) 

Hi Dale,

thanks for your info! :)

I think it is called "Auto" with the MSI bios.
When using this, JEDEC timings and a command rate of 2
instead of 1 are choosen for DDR4 (as an example)...which
isn't optimal.

These "Auto" were the reason for better settings.
I think I have to tweak the bios settings by hand...

Cheers!
Meino





[gentoo-user] [OT] BIOS Best settings (no o.c.) for ZEN 5 3600 / MSI Tomahawk max ?

2020-05-15 Thread tuxic
Hi,

I am trying to figure out the best settings (performance wise) for a
AMD Ryzen 5 3600 with a MSI Tomahawk max motherboard.

I don't want to overclock -- tweaking the bios is for finding
the optimal setting in oposite to waste performance via sub-optimal
settings like not activateing XMP profile and running the RAM at
JEDEC speeds instead of what the vendor guaranties.

Unfortunately, there are quite a view settings to which I didn't 
find any explanation, for what they are good.

Any help is very appreciated! :)

Cheers,
Meino






[gentoo-user] jack vs jack2 USE-flag-wise?

2020-05-15 Thread tuxic
Hi,

I want to set 'jack' as a default USE flag - bu my system is a 
multicore/multithreaded on...so I need not jack aka 

media-sound/jack-audio-connection-kit

but I think I need this one:

* media-sound/jack2
Description: Jackdmp jack implemention for multi-processor 
machine

what USE flag pulls this one instead the first one?

Cheers!
Meino






Re: [gentoo-user] KiCAD: More trouble...

2020-05-11 Thread tuxic
,On 05/11 03:38, tastytea wrote:
> On 2020-05-11T06:58+0200
> tu...@posteo.de wrote:
> 
> > Hi,
> > 
> > I got around the Python problems...but got new compilation hazards...:
> > 
> > 
> > […]
> > /var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4/common/lib_tree_model.cpp:78:14:
> > error: ‘sort’ is not a member of ‘std’; did you mean ‘sqrt’? 78 |
> > std::sort( sort_buf.begin(), sort_buf.end(), |  ^~~~
> > |  sqrt
> 
> Looks like . Try saving the linked
> patch to
> /etc/portage/patches/sci-electronics/kicad-5.1.4/kicad-5.1.5-sort.patch
> and re-merge.
> 
> See also .
> 
> Kind regards, tastytea
> 
> -- 
> Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
> .

Hi tatsytea,

You saved my day -> KiCAD is Installed...everything is fine!
Thanks a lot!

Cheers!
Meino






[gentoo-user] KiCAD: More trouble...

2020-05-10 Thread tuxic
Hi,

I got around the Python problems...but got new compilation hazards...:



cd /var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4_build/common 
&& /usr/bin/x86_64-pc-linux-gnu-g++ -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H 
-DKICAD_SCRIPTING -DKICAD_SCRIPTING_ACTION_MENU -DKICAD_SCRIPTING_MODULES 
-DKICAD_SCRIPTING_PYTHON3 -DKICAD_SCRIPTING_WXPYTHON 
-DKICAD_SCRIPTING_WXPYTHON_PHOENIX -DKICAD_SPICE -DKICAD_USE_OCE 
-DUSE_WX_OVERLAY -DWXUSINGDLL -DWX_COMPATIBILITY -D_FILE_OFFSET_BITS=64 
-D__WXGTK__ 
-I/var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4/include 
-I/var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4/common/. 
-I/var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4/common/./dialogs
 
-I/var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4/common/./widgets
 
-I/var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4/common/./dialog_about
 -I/usr/include/cairo -I/usr/include/pixman-1 
-I/var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4/common/../3d-viewer
 
-I/var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4/common/../pcbnew
 -I/var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4_build 
-I/usr/include/python3.7m 
-I/var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4/scripting 
-I/usr/lib64/oce-0.18/../../include/oce 
-I/var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4/bitmaps_png/include
 
-I/var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4/polygon/include 
-isystem /usr/lib64/wx/include/gtk3-unicode-3.0-gtk3 -isystem 
/usr/include/wx-3.0-gtk3   -DNDEBUG -DNDEBUG -Wall -O2 -pipe -march=native 
-Wsuggest-override -Werror=vla -pthread -Wshadow -fPIC -fvisibility=hidden 
-fvisibility-inlines-hidden   -std=gnu++11 -o 
CMakeFiles/common.dir/prependpath.cpp.o -c 
/var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4/common/prependpath.cpp
/var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4/common/lib_tree_model.cpp:
 In member function ‘void LIB_TREE_NODE::AssignIntrinsicRanks(bool)’:
/var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4/common/lib_tree_model.cpp:78:14:
 error: ‘sort’ is not a member of ‘std’; did you mean ‘sqrt’?
   78 | std::sort( sort_buf.begin(), sort_buf.end(),
  |  ^~~~
  |  sqrt
/var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4/common/lib_tree_model.cpp:
 In member function ‘void LIB_TREE_NODE::SortNodes()’:
/var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4/common/lib_tree_model.cpp:90:10:
 error: ‘sort’ is not a member of ‘std’; did you mean ‘sqrt’?
   90 | std::sort( Children.begin(), Children.end(),
  |  ^~~~
  |  sqrt
[ 43%] Building CXX object common/CMakeFiles/common.dir/printout.cpp.o
cd /var/tmp/portage/sci-electronics/kicad-5.1.4/work/kicad-5.1.4_build/common 
&& /usr/bin/x86_64-pc-linux-gnu-g++ -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H 
-DKICAD_SCRIPTING -DKICAD_SCRIPTING_ACTION_MENU -DKICAD_SCRIPTIN
...

Since the compilation process had run for a while, the logfiles are
longish. If wanted I will post them here...but if someone else already
won this battle and knows how to fix it I don't want to pollute the
gentoo mailinglist with logfiles...


Is there a fix known for this?

Cheers!
Meino







[gentoo-user] kicad failed to compile after update

2020-05-09 Thread tuxic
Hi,

this morning I had a massive update of my system.

Beside others kicad failed to recompile with this message

Calculating dependencies... done!
 * Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 * 
 *   >=dev-libs/boost-1.61:0/1.72.0=[context,nls,threads] pulled in by:
 * sci-electronics/kicad-5.1.5-r1
 * 
 *   
>=dev-libs/boost-1.61:0/1.72.0=[context,nls,threads,python,python_targets_python3_6(-)]
 pulled in by:
 * sci-electronics/kicad-5.1.5-r1
 * 
 *   
>=dev-libs/boost-1.61:=[context,nls,threads,python,python_targets_python3_6(-)] 
pulled in by:
 * sci-electronics/kicad-5.1.5-r1
 * 
 *   dev-python/wxpython:4.0[python_targets_python3_6(-)] pulled in by:
 * sci-electronics/kicad-5.1.5-r1
 * 
 *   media-libs/glew:0/2.1= pulled in by:
 * sci-electronics/kicad-5.1.5-r1


:
[I] dev-libs/boost
 Available versions:  1.72.0-r1(0/1.72.0)^t (~)1.73.0(0/1.73.0)^t {bzip2 
context debug doc icu lzma mpi +nls numpy python static-libs +threads tools 
zlib zstd ABI_MIPS="n32 n64 o32" ABI_RISCV="lp64 lp64d" ABI_S390="32 64" 
ABI_X86="32 64 x32" PYTHON_TARGETS="python2_7 python3_6 python3_7 python3_8"}
 Installed versions:  1.73.0(0/1.73.0)^t(06:38:51 AM 05/10/2020)(bzip2 
context nls python threads zlib -debug -doc -icu -lzma -mpi -numpy -static-libs 
-tools -zstd ABI_MIPS="-n32 -n64 -o32" ABI_RISCV="-lp64 -lp64d" ABI_S390="-32 
-64" ABI_X86="64 -32 -x32" PYTHON_TARGETS="python2_7 python3_7 -python3_6 
-python3_8")
 Homepage:https://www.boost.org/
 Description: Boost Libraries for C++


Is it possible to install the older version of boost somehow "in
parallel" withouth screwing up the rest of the system?

Cheers!
Meino





[gentoo-user] Sensor readout (new PC)

2020-05-06 Thread tuxic
HI,

Still updateing/configuring/correcting/completing my new PC...

This time it is the sensors readout via 'glances'

My setup:
AMD Ryzen 5 2600. MSI Tomahawk Max, NVidia RTX 3600 SUPER
Kernel 5.6.11 vanilla
sys-apps/lm-sensors 3.6.0 

Beforehand I did a sensors-detect and answered every item with
"yes".

This is the final result:
|Driver `k10temp' (built-in):
|  * Chip `AMD Family 17h thermal sensors' (confidence: 9)
|
|Driver `nct6775' (built-in):
|  * ISA bus, address 0xa20
|Chip `Nuvoton NCT6797D Super IO Sensors' (confidence: 9)
|
|No modules to load, skipping modules configuration.


The readout via 'glances' looks like this (the temps are higher than
idle...currently a massive update is running... :) :

|SENSORS
|Tdie 63C   
|Tctl 63C   
|Tccd163C   
|SYSTIN   28C   
|PCH_CPU_TEMP  0C   ???
|CPUTIN   40C   
|AUXTIN0  41C   
|AUXTIN1-128C   ???
|AUXTIN2  35C   
|AUXTIN3  -2C   ???
|SMBUSMASTER 063C   
|PCH_CHIP_CPU_MAX_TEMP 0C   ???
|PCH_CHIP_TEMP 0C   ???
|Composite36C  
|nct6797 1 0R  ?
|nct6797 2  1045R  ?
|nct6797 3  1260R  ?
|nct6797 4 0R  ?
|nct6797 5  1047R  ?
|nct6797 6   924R  ?


The command 'sensors' gives me the following:
|nvme-pci-0100
|Adapter: PCI adapter
|Composite:+36.9°C  (low  =  -0.1°C, high = +74.8°C)
|   (crit = +79.8°C)
|
|k10temp-pci-00c3
|Adapter: PCI adapter
|Vcore: 1.36 V  
|Vsoc:  1.09 V  
|Tdie: +54.8°C  
|Tctl: +54.8°C  
|Tccd1:+56.8°C  
|Icore:39.00 A  
|Isoc:  7.25 A  
|
|nct6797-isa-0a20
|Adapter: ISA adapter
|in0: 1.42 V  (min =  +0.00 V, max =  +1.74 V)
|in1: 1.01 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
|in2: 3.36 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
|in3: 3.33 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
|in4: 1.01 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
|in5:   144.00 mV (min =  +0.00 V, max =  +0.00 V)  ALARM
|in6:   800.00 mV (min =  +0.00 V, max =  +0.00 V)  ALARM
|in7: 3.36 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
|in8: 3.30 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
|in9: 1.83 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
|in10:0.00 V  (min =  +0.00 V, max =  +0.00 V)
|in11:  824.00 mV (min =  +0.00 V, max =  +0.00 V)  ALARM
|in12:1.11 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
|in13:  680.00 mV (min =  +0.00 V, max =  +0.00 V)  ALARM
|in14:1.52 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
|fan1: 0 RPM  (min =0 RPM)
|fan2:   948 RPM  (min =0 RPM)
|fan3:  1144 RPM  (min =0 RPM)
|fan4: 0 RPM  (min =0 RPM)
|fan5:  1053 RPM  (min =0 RPM)
|fan6:   927 RPM  (min =0 RPM)
|SYSTIN: +28.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor 
= CPU diode
|CPUTIN: +35.0°C  (high = +112.0°C, hyst = +90.0°C)  sensor 
= thermistor
|AUXTIN0:+37.0°C  (high = +112.0°C, hyst = +90.0°C)  sensor 
= thermistor
|AUXTIN1:   -128.0°Csensor = thermistor
|AUXTIN2:+35.0°Csensor = thermistor
|AUXTIN3: -2.0°Csensor = thermistor
|SMBUSMASTER 0:  +54.0°C  
|PCH_CHIP_CPU_MAX_TEMP:   +0.0°C  
|PCH_CHIP_TEMP:   +0.0°C  
|PCH_CPU_TEMP:+0.0°C  
|intrusion0:ALARM
|intrusion1:ALARM
|beep_enable:   disabled


fan1 and fan4 are not used, the readout is ok therefore. But PCH_* is
"0.0° C" as the other "???" marked values from above are.

On the internet I found descriptions of new formulas from the early
times of the Ryzen processors to correct existing readouts...but in
the case above, it seems, that there is no readout at all.

Are the lines marked with ??? "normal" or do I need some additional
configuring?

Cheers!
Meino









Re: [gentoo-user] New PC hangs/lacks ?

2020-05-06 Thread tuxic
Hi Walter,

thanks for your input again.

A said previously: This is not a problem of a high load,
which needs to be handled. This is kinda temporary deadlock.
Even if I would choose the best possible scheduler...the
CPU would not get the chance to execute the code of the scheduler,
because something locks the system. This description is meant to
describe the situation more than to describe the exact technical
background, for which I still search a solution to avoid it completly.

In the moment everything runs fine again, without haveing changed
any kernel configuration or anything else actively. /Something/
must have changed, though.

Cheers!
Meino


On 05/06 02:23, Walter Dnes wrote:
>   You can make some tradeoffs with kernel options.  Which one you
> choose is up to you (assuming it's your personal machine).  In
> "make menuconfig" go to...
> 
> General setup  -->
> Preemption Model --->
> 
>   You have 3 choices.  The 1st choice will probably finish your
> rendering fastest, but other programs will have problems breaking in for
> a timeslice.  This will look like freezing.  The 3rd choice will give
> the most possibility for other programs to preempt, but will run
> slightly slower overall.  The 2nd choice is a compromise.  Assuming
> you're the admin of the machine, the choice is up to you.  Sorry, "you
> can't have your cake and eat it too".
> 
> 1) "No Forced Preemption (Server)"; manual version "CONFIG_PREEMPT_NONE"
> 
> > This is the traditional Linux preemption model, geared towards
> > throughput. It will still provide good latencies most of the time,
> > but there are no guarantees and occasional longer delays are possible.
> > 
> > Select this option if you are building a kernel for a server or
> > scientific/computation system, or if you want to maximize the raw
> > processing power of the kernel, irrespective of scheduling latencies.
> 
> 2) "Voluntary Kernel Preemption (Desktop)"; "CONFIG_PREEMPT_VOLUNTARY"
> 
> > This option reduces the latency of the kernel by adding more
> > "explicit preemption points" to the kernel code. These new
> > preemption points have been selected to reduce the maximum latency
> > of rescheduling, providing faster application reactions, at the
> > cost of slightly lower throughput.
> > 
> > This allows reaction to interactive events by allowing a low
> > priority process to voluntarily preempt itself even if it is in
> > kernel mode executing a system call. This allows applications to
> > run more 'smoothly' even when the system is under load.
> 
> 3) "Preemptible Kernel (Low-Latency Desktop)"; "CONFIG_PREEMPT"
> 
> > This option reduces the latency of the kernel by making all kernel
> > code (that is not executing in a critical section) preemptible.
> > This allows reaction to interactive events by permitting a low
> > priority process to be preempted involuntarily even if it is in kernel
> > mode executing a system call and would otherwise not be about to reach
> > a natural preemption point.  This allows applications to run more
> > 'smoothly' even when the system is under load, at the cost of slightly
> > lower throughput and a slight runtime overhead to kernel code.
> 
> -- 
> Walter Dnes 
> I don't run "desktop environments"; I run useful applications
> 



Re: [gentoo-user] New PC hangs/lacks ?

2020-05-06 Thread tuxic
On 05/06 04:19, tu...@posteo.de wrote:
> On 05/06 07:07, Mark Knecht wrote:
> > On Wed, May 6, 2020 at 3:21 AM  wrote:
> > >
> > >
> > > Hi,
> > >
> > > while rendering with Blender the system performance (especially
> > > graphic related stuff) lacks. That's not nice but it seems that this
> > > is the way it is designed.
> > >
> > > What makes me a little nervous are freezes of several seconds. It not
> > > onlu freezes but the whole graphical interface of everything locks
> > > down (I couldn't find a corona computer virus, though).
> > >
> > > In the Xorg log I found this:
> > >
> > > [  2808.761] (WW) NVIDIA: Wait for channel idle timed out.
> > >
> > > which possibly match such a moment of a freeze.
> > >
> > > My setup:
> > > Blender 2.90a (alpha) and Blender 2.83 (beta) and
> > > Blender 2.82a (stable).
> > > All Blender versions show the same problem.
> > >
> > > X11/Openbox
> > >
> > > NVidia 484.82 as delivered by NVidia, since the Gentoo
> > > package does not install all files of the driver which
> > > are needed for Blender (for example to support Optix).
> > >
> > > No other application, which heavily uses the GPU was
> > > running at that time.
> > >
> > > MSI RTX 2060 SUPER
> > > Ryzen 5 3600
> > > 32GB RAM
> > > MSI Tomahawk MAX
> > >
> > > Does everyone has the same problems probably already solved
> > > or any idea how I can those freezes?
> > >
> > > Any help or idea what causes this freezes is very appreciated! :)
> > >
> > > Cheers!
> > > Meino
> > >
> > >
> > >
> > 
> > Meino,
> >Generically, you need to set up some sort of real-time monitoring
> > and watch to see what is using CPU and/or I/O when the machine
> > 'appears' to hang. I say 'appears' because the machine is probably
> > running correctly but doing something other than Blender work.
> > 
> >NOTE: You didn't say that there is or isn't any disk activity when this
> > happens.
> > 
> >When I look at this sort of problem I set up a second machine, ssh
> > in with a bunch of terminals and start with 'top' and 'iotop' to watch
> > for what process might be using resources. top watches CPU, iotop
> > watches disk. Conceptually networking can lock up the machine but
> > it's never happened to me.
> > 
> >You can also look to see if some piece of hardware is generating
> > too many interrupts. Do
> > 
> > watch cat /proc/interrupts
> > 
> > in a wide terminal when not running Blender to get used to what
> > the machine does when idle, then run Blender and see if anything
> > is going crazy generating interrupts.
> > 
> >I hope some part of this helps you find your problem.
> > 
> > Mark
> 
> 
> Hi Mark,
> 
> Thank you for your help and ideas.
> 
> I will try to convince my tablet to connect to my PC and
> will try to lock everyting which may point me into to the
> direction of the problem.
> 
> To complete, what I previously wrote:
> No, the disk is not doing anything beside holidays
> in Honulu...so to say ;)
> 
> As soon I have something new "I'll be back"... :)
> 
> Cheers!
> Meino
> 
> 

Hi,

since three days these locks nags me. Now, equipped with
a tablet, a ssh connection and an eye on the interrupts...
...no locks happen anymore.

Grrrmpppfff...

And let me guess: In the moment when I have the least
of an application for those locks...then they will be
back... :(

Sorry, I cannot reproduce the problem anymore.

Cheers!
Meino






Re: [gentoo-user] New PC hangs/lacks ?

2020-05-06 Thread tuxic
On 05/06 07:07, Mark Knecht wrote:
> On Wed, May 6, 2020 at 3:21 AM  wrote:
> >
> >
> > Hi,
> >
> > while rendering with Blender the system performance (especially
> > graphic related stuff) lacks. That's not nice but it seems that this
> > is the way it is designed.
> >
> > What makes me a little nervous are freezes of several seconds. It not
> > onlu freezes but the whole graphical interface of everything locks
> > down (I couldn't find a corona computer virus, though).
> >
> > In the Xorg log I found this:
> >
> > [  2808.761] (WW) NVIDIA: Wait for channel idle timed out.
> >
> > which possibly match such a moment of a freeze.
> >
> > My setup:
> > Blender 2.90a (alpha) and Blender 2.83 (beta) and
> > Blender 2.82a (stable).
> > All Blender versions show the same problem.
> >
> > X11/Openbox
> >
> > NVidia 484.82 as delivered by NVidia, since the Gentoo
> > package does not install all files of the driver which
> > are needed for Blender (for example to support Optix).
> >
> > No other application, which heavily uses the GPU was
> > running at that time.
> >
> > MSI RTX 2060 SUPER
> > Ryzen 5 3600
> > 32GB RAM
> > MSI Tomahawk MAX
> >
> > Does everyone has the same problems probably already solved
> > or any idea how I can those freezes?
> >
> > Any help or idea what causes this freezes is very appreciated! :)
> >
> > Cheers!
> > Meino
> >
> >
> >
> 
> Meino,
>Generically, you need to set up some sort of real-time monitoring
> and watch to see what is using CPU and/or I/O when the machine
> 'appears' to hang. I say 'appears' because the machine is probably
> running correctly but doing something other than Blender work.
> 
>NOTE: You didn't say that there is or isn't any disk activity when this
> happens.
> 
>When I look at this sort of problem I set up a second machine, ssh
> in with a bunch of terminals and start with 'top' and 'iotop' to watch
> for what process might be using resources. top watches CPU, iotop
> watches disk. Conceptually networking can lock up the machine but
> it's never happened to me.
> 
>You can also look to see if some piece of hardware is generating
> too many interrupts. Do
> 
> watch cat /proc/interrupts
> 
> in a wide terminal when not running Blender to get used to what
> the machine does when idle, then run Blender and see if anything
> is going crazy generating interrupts.
> 
>I hope some part of this helps you find your problem.
> 
> Mark


Hi Mark,

Thank you for your help and ideas.

I will try to convince my tablet to connect to my PC and
will try to lock everyting which may point me into to the
direction of the problem.

To complete, what I previously wrote:
No, the disk is not doing anything beside holidays
in Honulu...so to say ;)

As soon I have something new "I'll be back"... :)

Cheers!
Meino




Re: [gentoo-user] New PC hangs/lacks ?

2020-05-06 Thread tuxic
On 05/06 02:47, Ashley Dixon wrote:
> On Wed, May 06, 2020 at 09:16:33AM -0400, Walter Dnes wrote:
> >   It looks like blender is a heavy-duty program that bogs down your
> > system.  You could buy a new machine, or you could try the "nice"
> > command.  The tradeoff is that your system becomes more responsive
> > because the program is launched with a lower priority.  The usual
> > priority levels range from 20 (lowest priority for your program) to
> > -19 (highest priority for your program).  Note that you have to use
> > root or sudo to use negative nice-level (higher priority).
> 
> Considering the specifications of Meino machine, this is not expected  
> behaviour
> from any application.  I doubt it is possible for a standard consumer to  buy 
>  a
> machine with much better hardware; this  is  certainly  a  more  serious  
> issue,
> whether it be faulty hardware or misbehaving software.
> 
> What else is running at the time of Blender locking up ? Are you absolutely 
> sure
> that it is Blender causing this issue ?
> 
> -- 
> 
> Ashley Dixon
> suugaku.co.uk
> 
> 2A9A 4117
> DA96 D18A
> 8A7B B0D2
> A30E BF25
> F290 A8AA
> 

Hi Ashley! 

;)

Short explanation: With blender you can do animation.
For animations you need to "explain to Blender" how 
thing should move. This is done in the so called
"graph editor" which is - amthemtically spoken -
nothing more than a lot of X/Y graphs, where X
is identical to the current frame number - hence
the time axis - and Y is the amount of movement
in direction of one of the Ds in "3D".

Rendering is no problem (ok, the system "lacks"
a little, but that is expected since a lot of
calculation power is drawn).

But if I click into the graph editor to directly
jump to quite different frame than the previous
or next one, everything freezes.

Blender hast to end its calculations and THEN
everything goes back to normal.

In this time the CPU goes not in full load --
otherwise the fans would become very busy (as 
they do when starting rendering).

The problem here is not, that a sudden load is put
onto the system - that is normal and intended - the
problem is, that everyting locks up.

As said, it /feels/ like a lock on a system bus
or whatelse, what will only be released, when
the calculation for the frame jump has been
ended.

Since Linux is a multitasking and multithreading
OS and the PC has six cores and 12 threads, there
should be at least one thread left to handle the 
keyboard while calculating frames - IF the CPU
get the bus at all.

The example with the bus being locked is AN EXAMPLE
ONLY. I have no clue, whether something gets locked
at all and if so, what gets locked.

There is "nothing" else running except for the
usual daemons, the kernel, openbox, a shell, a terminal.
Or with other words: Nothing stressful.

And I /think/ (read: I don't know), I could have something 
to do with the communication with the GPU...:
If I switch of the preview, there are no locks anymore.

And I think my PC is causing the problem (instead of blender)
since the problem arises with three different versions
of blender.
Blender is used quite often, my PC is a combination, which
is used quite often and I didn't find anything (including
the bugtracker of the Blender development), which could
point me to the root of that problem.

On the other hand: I included the gpu-related USE flags
into make.conf and recompiled all related software.
Chances are there, that I would have triggered the problem
with another application if this problem is caused by
a bogus hardware (includind me screwing up some awkward
BIOS setting).

I am NOT overclocking and I am using "stock settings" in the
BIOS (beside the XMP settings for the RAM - but those are
settings quaranteed to work by the vendor of the RAM).

If any reader of the "Book of possible bogus hardware" is
now that confused as I am - you are welcome ! :)

Cheers!
Meino




Re: [gentoo-user] New PC hangs/lacks ?

2020-05-06 Thread tuxic
On 05/06 09:16, Walter Dnes wrote:
> On Wed, May 06, 2020 at 12:21:00PM +0200, tu...@posteo.de wrote
> 
> > Does everyone has the same problems probably already solved
> > or any idea how I can those freezes?
> 
>   It looks like blender is a heavy-duty program that bogs down your
> system.  You could buy a new machine, or you could try the "nice"
> command.  The tradeoff is that your system becomes more responsive
> because the program is launched with a lower priority.  The usual
> priority levels range from 20 (lowest priority for your program) to
> -19 (highest priority for your program).  Note that you have to use
> root or sudo to use negative nice-level (higher priority).  See website
> https://www.gnu.org/software/coreutils/manual/html_node/nice-invocation.html#nice-invocation
> because the "man nice" page sucks.
> 
>   In your case, you could de-prioritize blender to the lowest level by
> launching it like so...
> 
> nice -n 20 blender 
> 
> -- 
> Walter Dnes 
> I don't run "desktop environments"; I run useful applications
> 

Hi Walter,

Thanks for you help and info!

Buying a new machine is not an option, I bought this one 
a month ago. Take a look the specs.

Nice will also not help, since it is kinda "lock" that suddenly
kicks in. This is only an example: If a programm acquires the
system bus and hold it due to a programming error, the system freezes.
A nice would not help, since no one, who probablu could help to 
get out of this situation will get no processing time.

Sorry if I made myself not clear enough in this regard...I am
no native speaker.

Cheers!
Meino





[gentoo-user] New PC hangs/lacks ?

2020-05-06 Thread tuxic


Hi,

while rendering with Blender the system performance (especially
graphic related stuff) lacks. That's not nice but it seems that this
is the way it is designed.

What makes me a little nervous are freezes of several seconds. It not
onlu freezes but the whole graphical interface of everything locks
down (I couldn't find a corona computer virus, though).

In the Xorg log I found this:

[  2808.761] (WW) NVIDIA: Wait for channel idle timed out.

which possibly match such a moment of a freeze.

My setup:
Blender 2.90a (alpha) and Blender 2.83 (beta) and 
Blender 2.82a (stable).
All Blender versions show the same problem.

X11/Openbox

NVidia 484.82 as delivered by NVidia, since the Gentoo
package does not install all files of the driver which 
are needed for Blender (for example to support Optix).

No other application, which heavily uses the GPU was
running at that time.

MSI RTX 2060 SUPER
Ryzen 5 3600
32GB RAM
MSI Tomahawk MAX 

Does everyone has the same problems probably already solved
or any idea how I can those freezes?

Any help or idea what causes this freezes is very appreciated! :)

Cheers!
Meino






Re: [gentoo-user] Firefox/Watefox and jack?

2020-05-05 Thread tuxic
On 05/05 10:34, Mark Knecht wrote:
> On Tue, May 5, 2020 at 9:38 AM  wrote:
> 
> > Background to my question:
> > I am still searching for a equalizer solution, which does not
> > uses the eq provided by the hardware (I am using a DAC, which
> > does nothing else, than converting PCM into an analog signal.
> > No processing whatsoever.
> >
> > So the eq has to have some sort of DSP funktionality build in.
> >
> > And it should be made for background processing.
> >
> > Anu helpful alsa-based idea is very appreciated...
> >
> > Cheers!
> > Meino
> 
> pulseeffects possibly? I've never used it.
> 
> Good luck,
> Mark


Hi Mark,

in the meanwhile I installed quite a few pulse-related applications
and pulseaudio itsself includeing pusleeffects.

For the first, the equaliser problem is kinda solved -- I haven't
checked, whether the settings will survive a reboot.

I don't know of the quality of the sound processing of the
equaliser...but it is definetlu a step in the right direction.

Hopefully all related applications I use will cooperate... ;)

Thanks to all of us who helped! -- very appreciated!

Cheers!
Meino




Re: [gentoo-user] Firefox/Watefox and jack?

2020-05-05 Thread tuxic
On 05/05 11:22, Matt Connell (Gmail) wrote:
> On 2020-05-05 10:38, tu...@posteo.de wrote:
> > Is Firefox/Waterfox able to interface with jackd?
> 
> Disclaimer, I do not use Jack.
> 
> Firefox builds, in my personal experience, are intended to be used with
> pulseaudio and only pulseaudio.  Some people have made some shims for making
> it worth with alsa, but they don't look sustainable.
> 
> As the other poster said, this endeavor is likely to result in frustration.
> You may get it to 'work' for some value of that word, but depending on
> expectations, it may not be worth your while.
> 

HI all,

thanks for the repsonse.

I am using waterfox, which is not in portage. The mentioning of 
Forefox was onlu to make its heritage clear.

I already have some "experiences" make, when it comes to other things
for audio than alsa.

Background to my question:
I am still searching for a equalizer solution, which does not
uses the eq provided by the hardware (I am using a DAC, which
does nothing else, than converting PCM into an analog signal.
No processing whatsoever.

So the eq has to have some sort of DSP funktionality build in.

And it should be made for background processing.

Anu helpful alsa-based idea is very appreciated...

Cheers!
Meino





[gentoo-user] Firefox/Watefox and jack?

2020-05-05 Thread tuxic
Hi,

to prevent a lot of installation and configuration effort only to
recognize, that it does not work:

Is Firefox/Waterfox able to interface with jackd?

Cheers!
Meino




Re: [gentoo-user] Nvidia driver plus kernel info questions

2020-05-02 Thread tuxic
On 05/02 03:42, Scott Ellis wrote:
> On Sat, May 2, 2020 at 10:33 AM  wrote:
> >
> > Unfortunatelu "something" is broken, when using the portage version
> > of the driver. So I removed that driver and installed the same
> > version as offered by nvidia directlu and that worked.
> >
> 
> There's a lot missing in the portage version of the driver - it
> doesn't even (at least last I checked) install nvidia-ml.so unless
> you're using X.  I suspect your weren't getting libnvoptix installed
> from portage, which was meaning OptiX won't work.
> 
> I don't really care for the `.run` version of the drivers, and prefer
> to keep everything as an ebuild.  I have my hacked up ebuild at
> https://github.com/ScottESanDiego/scotterepo/tree/master/x11-drivers/nvidia-drivers
> if you wanted to just steal that (it's largely just the original
> ebuild, but installing extra "stuff" so that nvidia-smi works
> headless, nvidia-docker works, etc.
> 
>ScottE
> 

Hi Scott,

oh! :) Thank you very much ... is cloned! :)

Cheers!
Meino





Re: [gentoo-user] Trouble with backup harddisks

2020-05-02 Thread tuxic
On 05/02 06:31, Wols Lists wrote:
> On 02/05/20 02:42, tu...@posteo.de wrote:
> > On 05/01 09:27, antlists wrote:
> >> On 01/05/2020 09:03, tu...@posteo.de wrote:
> >>> Hi Wol,
> >>>
> >>> data copied !:)
> >>>
> >>> I did a
> >>>
> >>>  mdadm --examine /dev/sdb
> >>
> >> Except I pointed you at a utility called lsdrv, not mdadm ... :-)
> >>
> >> Cheers,
> >> Wol
> >>
> > 
> > Hi Wol,
> > 
> > Ouuouud...oh damn! Sorry, Wol...
> > 
> > I donwloaded the lsdrv from github and this is, what it prints
> > 
> >   File "./lsdrv", line 323
> > os.mkdir('/dev/block', 0755)
> >   ^
> > SyntaxError: leading zeros in decimal integer literals are not permitted; 
> > use an 0o prefix for octal integers
> > [1]4367 exit 1 ./lsdrv
> > 
> > 
> > Seems a little buggy...
> > 
> did you read the note that says it is a Python 2 script? Unless it's
> been updated (I haven't checked) you need to change the shebang line to
> force python2.
> 
> Cheers,
> Wol
> 
> 

Hi Wol,

the shebang was already changed. It onlu works, when called like

python2.7 lsdrv 

for me.

The output is similiar to what lsblk creates...

Cheers!
Meino





Re: [gentoo-user] Trouble with backup harddisks

2020-05-02 Thread tuxic
On 05/02 06:31, Wols Lists wrote:
> On 02/05/20 02:42, tu...@posteo.de wrote:
> > On 05/01 09:27, antlists wrote:
> >> On 01/05/2020 09:03, tu...@posteo.de wrote:
> >>> Hi Wol,
> >>>
> >>> data copied !:)
> >>>
> >>> I did a
> >>>
> >>>  mdadm --examine /dev/sdb
> >>
> >> Except I pointed you at a utility called lsdrv, not mdadm ... :-)
> >>
> >> Cheers,
> >> Wol
> >>
> > 
> > Hi Wol,
> > 
> > Ouuouud...oh damn! Sorry, Wol...
> > 
> > I donwloaded the lsdrv from github and this is, what it prints
> > 
> >   File "./lsdrv", line 323
> > os.mkdir('/dev/block', 0755)
> >   ^
> > SyntaxError: leading zeros in decimal integer literals are not permitted; 
> > use an 0o prefix for octal integers
> > [1]4367 exit 1 ./lsdrv
> > 
> > 
> > Seems a little buggy...
> > 
> did you read the note that says it is a Python 2 script? Unless it's
> been updated (I haven't checked) you need to change the shebang line to
> force python2.
> 
> Cheers,
> Wol
> 
> 

Hi,

ok...will try that - thanks for the info !!! :)

Cheers!
Meino





Re: [gentoo-user] Nvidia driver plus kernel info questions

2020-05-02 Thread tuxic
On 05/02 11:53, Dale wrote:
> Howdy,
> 
> I mentioned in another thread that I was going to upgrade to a much
> newer kernel.  I also have to make sure Nvidia supports that kernel. 
> So, I went to the Nvidia site and did a search by model number.  This is
> the output of lspci:
> 
> 
> 01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GTX
> 650] (rev a1)
> 
> 
> So, I did the manual thing, since this is Linux not windoze, and
> selected the series and model.  According to the list it provided, I
> should be using the drivers in the 440 slot.  I'm currently using the
> 390 slot since when I installed that card, that is what it showed.  I'm
> almost 100% certain I checked this when installing this card.  My
> question is, is it normal for nvidia to change the series of drivers for
> cards like this?  Am I reading this wrong?  Link to Nvidia site.
> 
> https://www.geforce.com/drivers
> 
> I couldn't provide a link to the selected part since it doesn't seem to
> provide one, java stuff I guess.  Next link I went too. 
> 
> https://www.nvidia.com/en-us/drivers/results/159360/
> 
> According to that the 440 series supports the 5.6 series of kernel.  It
> doesn't indicate a specific version tho.  Does that mean I can go to the
> very latest version or do I need to look elsewhere to see what is
> supported?  If it matters, I use gentoo-sources.  Currently on 4.19.40
> and I'm showing gentoo-sources-5.6.7 as the latest available in the
> tree.  Since I don't upgrade kernels much, may as well take a large
> leap.  ;-)
> 
> Thanks much.  A little confused. 
> 
> Dale
> 
> :-)  :-)
> 
> P. S. Got my garden about half disced. Dry side about ready to plant and
> wet side is lightly disced to help it dry out.  :-D
> 

Hi Dale, 

I am now running kernel 5.6.9 (vanilla) and nvidia-driver 440.82-r3.

Again, Blender cannot find the Optix related parts of the driver.
This package still does not work for me. As far as I can see,
the non-Optix specific things are fine, though.

So I will reboot, remove the portage package of the driver and
install the original by nvidia and this will fix the issue
with Optix...

Cheers!
Meino





Re: [gentoo-user] Nvidia driver plus kernel info questions

2020-05-02 Thread tuxic
On 05/02 11:53, Dale wrote:
> Howdy,
> 
> I mentioned in another thread that I was going to upgrade to a much
> newer kernel.  I also have to make sure Nvidia supports that kernel. 
> So, I went to the Nvidia site and did a search by model number.  This is
> the output of lspci:
> 
> 
> 01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GTX
> 650] (rev a1)
> 
> 
> So, I did the manual thing, since this is Linux not windoze, and
> selected the series and model.  According to the list it provided, I
> should be using the drivers in the 440 slot.  I'm currently using the
> 390 slot since when I installed that card, that is what it showed.  I'm
> almost 100% certain I checked this when installing this card.  My
> question is, is it normal for nvidia to change the series of drivers for
> cards like this?  Am I reading this wrong?  Link to Nvidia site.
> 
> https://www.geforce.com/drivers
> 
> I couldn't provide a link to the selected part since it doesn't seem to
> provide one, java stuff I guess.  Next link I went too. 
> 
> https://www.nvidia.com/en-us/drivers/results/159360/
> 
> According to that the 440 series supports the 5.6 series of kernel.  It
> doesn't indicate a specific version tho.  Does that mean I can go to the
> very latest version or do I need to look elsewhere to see what is
> supported?  If it matters, I use gentoo-sources.  Currently on 4.19.40
> and I'm showing gentoo-sources-5.6.7 as the latest available in the
> tree.  Since I don't upgrade kernels much, may as well take a large
> leap.  ;-)
> 
> Thanks much.  A little confused. 
> 
> Dale
> 
> :-)  :-)
> 
> P. S. Got my garden about half disced. Dry side about ready to plant and
> wet side is lightly disced to help it dry out.  :-D
> 

Hi Dale,

hopefully I understood your question correctlu...

I am running currently the nividia 440.82 (not that one which 
portage...more in a second) with Linux kernel 5.6.8 and a
RTX 2060 SUPER jsut fine.

I few minutes before I had compiled kernel 5.6.9 but hadn't
rebooted my Linux yet.

I am using Blender, which starts to support Optix based rendering,
which is faster than "normal" GPU rendering.

Unfortunatelu "something" is broken, when using the portage version
of the driver. So I removed that driver and installed the same
version as offered by nvidia directlu and that worked.

This problem effects only Blender...as far as I know.

And: I haven't tried nvidia-440.82-r3 which is quite new. Will
try that when booting the new kernel and report later.

HTH!
Cheers!
Meino





Re: [gentoo-user] Trouble with backup harddisks

2020-05-02 Thread tuxic
On 05/02 09:49, Andrea Conti wrote:
> > I think, I feel better if I repartitioning/reformat both drives,
> > though.
> 
> It's not necessary, but if it makes you feel better by all means do so.
> 
> > *GPT/MBR
> > From a discussion based on a "GPT or MBR for my system drive" in
> > conjunction with UEFI it was said, that GPT is more modern and
> > save.
> 
> 
> More modern I concur. For the rest it's mainly about features: >2TB 
> partitions and way more metadata, plus not having to bother with CHS values 
> which make no sense in today's drives.
> And being able to define >4 partitions without littering the disk with 
> extended boot records, which is probably the only thing I'd call "safer".
> 
> My point was that none of this is relevant in an external drive which is 
> under 1TB and will only hold a single partition starting at sector 1 and 
> spanning the rest of the disk.
> A system drive, especially if booting from UEFI is a different case for which 
> GPT absolutely makes sense.
> 

Ok, the other way around: Does GPT hurt more than MBT on a external HD
used for backup puporses (no boot), has 1T and 1 partion of that size?


> > My question was meant not so much as "MBR or GPT?" 
> > but more whether there are some variants of GPT (with 
> > protected MBR for example -- which was completly new to me),
> > which I should use or avoid.
> 
> There are really no "variants" of GPT. The protective MBR is only there to 
> make all space in the disk look allocated to MBR partitioning tools that are 
> not GPT-aware, and is automatically written for you by all GPT partitioning 
> tools.
> 
> In addition to the opaque entry of type 0xee, this MBR can also contain 
> entries pointing to at least some of the actual partitions; this is called a 
> 'hybrid' MBR and allows MBR-only access to partitions that are within the 
> limits of MBR addressing (start and end sector <2TB). These are only useful 
> in very specific cases an I would consider them a hack more than a solution; 
> while gpt-fdisk has some support for creating hybrid MBRs (don't know about 
> fdisk), you won't get one unless you specifically ask for it.
>: 

Thanks of the information! :)

> > But: Are rescue systems for USB-stick more UEFI/GPT aware nowadays
> > or "traditionally" based on MBR/BIOS-boot?
> 
> I think that anything that's not ancient will have tools and kernel support 
> for both MBR and GPT, and will boot fine in both BIOS and UEFI modes.
> 
> > One thing I found is really handy: An USB-stick with an rEfind
> > installation. As long as your PC supports UEFI (or can switched to it)
> > rEfind is able to boot "everything" without prior configuration.
> 
> You can probably do the same with GRUB2, albeit in a way less user-friendly 
> fashion :)
> But why do you consider the ability to boot anything but the rescue system 
> itself important in a rescue system?

Recently a BIOS update deleted all UEFI entries and the system no
longer boots. With rEfind from a USBstick I was able to boot
the sustem nonetheless and the reinstallation of grub solves
the problem.
Task accomplished! :)

> > 
> > Some rescue-system which really shines and with which you have made good
> > experiences?
> 
> My usual go-to is SystemRescueCD (the old 5.x gentoo-based one). 
> 
> andrea

Thanks for the info, Andrea!

Cheers!
Meino


 




Re: [gentoo-user] 32GB RAM and Swap

2020-05-01 Thread tuxic
On 05/01 04:50, Raphael MD wrote:
> Hello!
> 
> Could I turn my Linux swap off.
> I have 32 GB of RAM memory, I suppose my system don’t need swap, because
> I’vea lot of RAM, is this true?
> 
> Thanks
> -- 
> M.S. Raphael Mejias Dias
> ​Nuclear Engineer | Reactors
> 
> Secure e-mail: raphael.mejias.d...@protonmail.com
> PGP Key for raph...@gmail.com:
> https://pgp.mit.edu/pks/lookup?op=get&search=0x87BC5A746072F951

Hi Raphael,

as far as I know, the hibernation mechanism of the kernel uses swap
as storage place for an RAM image.

If you plan to use hibernation, I think you need swap space in the
size of your RAM.

Cheers!
Meino





Re: [gentoo-user] Trouble with backup harddisks

2020-05-01 Thread tuxic
On 05/01 05:32, Peter Humphrey wrote:
> On Friday, 1 May 2020 17:00:56 BST Andrea Conti wrote:
> 
> > GPT is fine too, but for a 1TB disk with a single partition it has 
> > absolutely
> > zero advantage over MBR.
> 
> I can think of one or two people who might demur there.
> 
> -- 
> Regards,
> Peter.
> 
> 
> 
> 

Hi Wolf, hi Andrea, hi Peter,

*Partition type '83':
I changed the type to 83 using fdisk and this worked fine. Now
/dev/sdb1 is recognized again.
Just to confirm this...
I think, I feel better if I repartitioning/reformat both drives,
though.

*GPT/MBR
>From a discussion based on a "GPT or MBR for my system drive" in
conjunction with UEFI it was said, that GPT is more modern and
save.
My question was meant not so much as "MBR or GPT?" 
but more whether there are some variants of GPT (with 
protected MBR for example -- which was completly new to me),
which I should use or avoid.

But: Are rescue systems for USB-stick more UEFI/GPT aware nowadays
or "traditionally" based on MBR/BIOS-boot?

One thing I found is really handy: An USB-stick with an rEfind
installation. As long as your PC supports UEFI (or can switched to it)
rEfind is able to boot "everything" without prior configuration.

Some rescue-system which really shines and with which you have made good
experiences?

Cheers!
Meino





Re: [gentoo-user] Trouble with backup harddisks

2020-05-01 Thread tuxic
On 05/01 09:27, antlists wrote:
> On 01/05/2020 09:03, tu...@posteo.de wrote:
> > Hi Wol,
> > 
> > data copied !:)
> > 
> > I did a
> > 
> >  mdadm --examine /dev/sdb
> 
> Except I pointed you at a utility called lsdrv, not mdadm ... :-)
> 
> Cheers,
> Wol
> 

Hi Wol,

Ouuouud...oh damn! Sorry, Wol...

I donwloaded the lsdrv from github and this is, what it prints

  File "./lsdrv", line 323
os.mkdir('/dev/block', 0755)
  ^
SyntaxError: leading zeros in decimal integer literals are not permitted; use 
an 0o prefix for octal integers
[1]4367 exit 1 ./lsdrv


Seems a little buggy...

Cheers!
Meino





Re: [gentoo-user] Trouble with backup harddisks

2020-05-01 Thread tuxic
On 05/01 03:59, tu...@posteo.de wrote:
> On 04/30 08:32, antlists wrote:
> > On 30/04/2020 18:04, tu...@posteo.de wrote:
> > > I copied the first 230GB of that disk to an empty partition of my new
> > > system and run "testdisk" on itafter the analysis it came back
> > > with "this partition cannot be recovered" but did not sau. whether the
> > > reason is a partition table, which is broken beyond repair, or simply
> > > due to the incomplete image file...
> > 
> > Just come up with another idea that will hopefully give us some clues...
> > 
> > https://raid.wiki.kernel.org/index.php/Asking_for_help#lsdrv
> > 
> > Ignore the fact that it's the raid wiki - this tool basically delves into
> > the drive and tries to find mbr, gpt, superblock, lvm and raid signatures,
> > everything ...
> > 
> > So run that and see what it tells us ...
> > 
> > Cheers,
> > Wol
> > 
> 
> Hi Wol,
> 
> thank you for the link! I have installed mdadm (its on portage) but I
> have not used it, since there is another soultion for this, which I
> tried first. 
> 
> Andrea posted this wonderful line:
> 
> mount -o ro,offset=512 /dev/sdb /mnt/xxx
> 
> which mounts the filesystem by skipping the partitiontable completly.
> 
> Currently I am rescueing the data. If all is safed, I will tru
> mdadm...
> 
> Thank you very much for your help!
> 
> As soon as there are more information, I will report back.
> Maybe this can also help others with similiar problems.
> 
> Cheers!
> Meino
> 
> 
> 

Hi Wol,

data copied ! :)

I did a 

mdadm --examine /dev/sdb

on one of the damaged partitions and this was print
on the console

host:/root>mdadm --examine /dev/sdb
/dev/sdb:
   MBR Magic : aa55
Partition[0] :   1953458175 sectors at1 (type ee)


Cheers!
Meino




Re: [gentoo-user] Trouble with backup harddisks

2020-05-01 Thread tuxic
On 05/01 08:52, Andrea Conti wrote:
> 
> > does my posting from this morning reached you ?
> > ...I did not received anything back from the mailinglist...
> 
> Nope. Just this night's response to Wol.
> 
> 

(hmmm...ok, two send good news two times is not
that bad in this times, I think... ;)

Hi Andrea, hi Wolf,

this magic one liner does the trick indeed!  I have my data back and
copied it to my new system spread over four separate partitions, which
are currently still empty. No error while copuing and both disk
matched.

A very *#BIG THANK YOU#* for all the great help, the research and
the solution. I myself am back in "normal mode" :)

Wol has suggested to run mdadm on the bad harddisk to see, whether
this tool is able to fix it -- which I will next. Since I have
my data back on the PC internal disk, this is no problem at all.

One thing remains...
I want to prevent this kind of hassle in the future... ;)

Perhaps it is a good idea to re-partitions the disk to get rid of
any bogus bit, format the partition and copy back the data then.

What is the most reasonable setup here:
GPT without any hybrid magic and ext4 because it is so common?
Any other, possible more robust configuration, which is also
common with rescue tools and -distributions?

I have to say it once again: Thank you very much for solving
the hassle puzzle! :)

Cheers!
Meino





Re: [gentoo-user] Trouble with backup harddisks

2020-04-30 Thread tuxic
On 04/30 10:47, Wynn Wolf Arbor wrote:
> On 2020-04-30 22:21, Andrea Conti wrote:
> > It won't, as long as it recognizes it as a protective MBR. Which is the
> > right thing to do, as a disk with a protective MBR and no valid GPT is
> > inherently broken.
> 
> True. It was more my intention to depict what the system "should" do in
> order to access the file system.
> 
> > ... or just bypass the partition table altogether. The filesystem starts
> > at sector 1, i.e. 1*512B, so:
> > 
> > mount -o ro,offset=512 /dev/sdb /mnt/xxx
> 
> Interesting, thanks. I was initially considering something like this myself,
> but after a cursory check of the manual, I was under the assumption that
> 'offset' was only valid with loop devices and dismissed that solution.
> 
> Turns out if you mount a drive like this, the kernel uses a loop device in
> the background and you can use the 'offset' option with block devices as
> well. I feel the documentation could be improved here.
> 
> -- 
> Wolf
> 

Hi Andrea, hi Wolf

does my posting from this morning reached you ?
...I did not received anything back from the mailinglist...

Cheers!
Meino





Re: [gentoo-user] Trouble with backup harddisks

2020-04-30 Thread tuxic
On 04/30 08:32, antlists wrote:
> On 30/04/2020 18:04, tu...@posteo.de wrote:
> > I copied the first 230GB of that disk to an empty partition of my new
> > system and run "testdisk" on itafter the analysis it came back
> > with "this partition cannot be recovered" but did not sau. whether the
> > reason is a partition table, which is broken beyond repair, or simply
> > due to the incomplete image file...
> 
> Just come up with another idea that will hopefully give us some clues...
> 
> https://raid.wiki.kernel.org/index.php/Asking_for_help#lsdrv
> 
> Ignore the fact that it's the raid wiki - this tool basically delves into
> the drive and tries to find mbr, gpt, superblock, lvm and raid signatures,
> everything ...
> 
> So run that and see what it tells us ...
> 
> Cheers,
> Wol
> 

Hi Wol,

thank you for the link! I have installed mdadm (its on portage) but I
have not used it, since there is another soultion for this, which I
tried first. 

Andrea posted this wonderful line:

mount -o ro,offset=512 /dev/sdb /mnt/xxx

which mounts the filesystem by skipping the partitiontable completly.

Currently I am rescueing the data. If all is safed, I will tru
mdadm...

Thank you very much for your help!

As soon as there are more information, I will report back.
Maybe this can also help others with similiar problems.

Cheers!
Meino





Re: [gentoo-user] Trouble with backup harddisks

2020-04-30 Thread tuxic
Hi Wolf,

thanks for your great input again!

(see below)

On 04/30 09:27, Wynn Wolf Arbor wrote:
> All the following assuming that the disk was originally partitioned as GPT,
> but after that exclusively accessed as an MBR disk.
> 
> > PT fdisk (gdisk) version 1.0.5
> > 
> > Caution: invalid main GPT header, but valid backup; regenerating main header
> > from backup!
> 
> This makes sense since the GPT backup at the very end of the disk would most
> likely still be intact. gdisk identifies it correctly, but assumes (wrongly)
> that the data on the disk is governed by the GPT layout.
> 
> Since the disk was only ever accessed through an operating system that knew
> solely about MBR, the GPT data meant nothing to it. It happily wrote data
> past the MBR headers. Because the protective MBR is positioned before GPT
> information, the primary GPT header was destroyed and most likely
> overwritten with the file system. See also [1], the actual file system data
> probably begins somewhere past LBA 0.
> 
> > Caution! After loading partitions, the CRC doesn't check out!
> > Warning: Invalid CRC on main header data; loaded backup partition table.
> > Warning! Main and backup partition tables differ! Use the 'c' and 'e' 
> > options
> > on the recovery & transformation menu to examine the two tables.
> 
> This is because the backup GPT written when first partitioned does no longer
> match the data present at the very beginning of the disk.
> 
> If the initial assumption is correct, GPT *must not* be restored. Your
> modern PC sees the GPT partition type and assumes the existence of a GPT. It
> should, however, access the MBR layout and interpret the partition marked
> with the GPT ID as a regular partition.
> 
> Now, how to fix this?
> 
> Like Andrea already said earlier:
> 
> > Since the disk is only 1TB, there is no reason to use GPT at all, so
> > your best bet is to use fdisk to make that a standard MBR by changing
> > the partition type from 'ee' to '83'.
> 
> This would *not* repartition or reformat any data, it would simply tell your
> modern operating system to access the protective partition as a regular one.
> 
> It would, however, require writing the new type to disk. What you could do
> to be more safe here is to take a backup of the first 512 bytes with `dd',
> then change the partition ID with `fdisk', and try mounting it.
> 
> If it works, great. If not, you can restore the first 512 bytes of the disk
> with the backup.
> 
> > "fix manually" scares me...especially because I have no place for
> > 1TB of an image file to with which I can experiment ...
> 
> > Any ideas which could ease my burden and to un-scare my
> > "need to fix it manually" ??? ;) ;)
> 
> There's a few alternatives:
> 
> 1) Boot an older system that only understands MBR, and mount the disk there.
> This was suggested earlier but was dismissed because we assumed the sector
> size had something to do with it. I do not think this is the case anymore -
> the old system should be able to read it.
> 
> 2) Boot a VM with a kernel that only understands MBR, pass USB through to
> the virtual machine, mount the disk there.
> 
> 3) Try confirming that there exists file system data past the MBR header.
> 
> Maybe something like this:
> 
> # dd if=/dev/sdb of=sdb-data bs=512 skip=1 count=16384
> $ file sdb-data
> 
> As established, the block size is 512 bytes. We skip the first 512 bytes
> since that is the protective MBR. sdb-data should then contain the first
> 8MiB worth of actual file system data. The `file' utility can tell you what
> kind of data it is.
> 
> [1] 
> https://en.wikipedia.org/wiki/GUID_Partition_Table#/media/File:GUID_Partition_Table_Scheme.svg
> 
> -- 
> Wolf
> 

I had booted into my old system, attached the disks and both show the
same behaviour: Only the device itself (/dev/sdb) was recognized.

'file' shows the following output:

file sdb-data
sdb-data: Linux rev 1.0 ext4 filesystem data, 
UUID=2f063705-0d3a-4790-9203-1b4edab7788c (extents) (64bit) (large files) (huge 
files)

Looks better than I have thought...or?

I will take a deeper look tommorrow...I am too tired to
"fix partition tables manually" this evening!

Read you tommorrow! :)

Cheers!
Meino




Re: [gentoo-user] Trouble with backup harddisks

2020-04-30 Thread tuxic
On 04/30 03:44, Andrea Conti wrote:
> Hi,
> 
> > > CONFIG_PARTITION_ADVANCED=y
> > > CONFIG_MSDOS_PARTITION=y
> > > CONFIG_EFI_PARTITION=y
> 
> That's all you need.
> 
> > This could be the key. Sector sizes have been changing from 512 to 4096
> > over many years. If your kernel has been updated to expect/use 4096 byte
> > sectors, it might not be able to read the disk properly.
> 
> Sector size is only a (fixed) property of a specific block device, not 
> something expected or required by the kernel.
> Sector sizes other than 512B have been around for ages without any problems, 
> even in consumer hardware (e.g. CDs and DVDs have 2KB sectors).
> 
> > Disklabel type: dos
> 
> > Device Boot StartEndSectors   Size Id Type
> > /dev/sdb1   1 1953458175 1953458175 931.5G ee GPT
> 
> That looks... broken.
> fdisk is recognizing the disk as MBR (a GPT disk would have "Disklabel type: 
> gpt"), but the partition table is a protective MBR, which makes no sense in a 
> non-GPT disk.
> 
> My guess is that this disk was at some time partitioned with GPT (possibly it 
> came that way from WD?), but then it was only used in machines with no kernel 
> support for GPT.
> Such a machine will happily treat that as a normal MBR and allow you to 
> access the protective entry as a normal partition, which means you can create 
> a filesystem on it and fill it with data, destroying the GPT structures.
> 
> A GPT-aware kernel on the other hand will recognize that as a protective MBR 
> and it will ignore it --but since the disk does not contain any valid GPT 
> structures, it will not show any partitions.
> 
> Try running "gdisk -l /dev/sdb"; for a valid GPT disk it will say:
> 
> Partition table scan:
>   MBR: protective
>   BSD: not present
>   APM: not present
>   GPT: present
> 
> If that's not the case and you have no GPT, you will have to fix things 
> manually.
> Since the disk is only 1TB, there is no reason to use GPT at all, so your 
> best bet is to use fdisk to make that a standard MBR by changing the 
> partition type from 'ee' to '83'.
> 
> andrea
> 

Hi Andreas,

thank you very much for your analysis! :)

when doing a gdisk -l /dev/sdb I get this Rocky Horror Picture Show:


PT fdisk (gdisk) version 1.0.5

Caution: invalid main GPT header, but valid backup; regenerating main header
from backup!

Caution! After loading partitions, the CRC doesn't check out!
Warning: Invalid CRC on main header data; loaded backup partition table.
Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!
Main header: ERROR
Backup header: OK
Main partition table: ERROR
Backup partition table: ERROR

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: damaged


Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.

Disk /dev/sdb: 1953458176 sectors, 931.5 GiB
Model: Elements 25A2   
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): BCA95A74-1E0A-4648-9971-20ED4049CAE5
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1953458142
Partitions will be aligned on 2048-sector boundaries
Total free space is 1953458109 sectors (931.5 GiB)

Number  Start (sector)End (sector)  Size   Code  Name



"fix manually" scares me...especially because I have no place for
1TB of an image file to with which I can experiment ...

Any ideas which could ease my burden and to un-scare my 
"need to fix it manually" ??? ;) ;)

Cheers!
Meino







Re: [gentoo-user] Trouble with backup harddisks

2020-04-30 Thread tuxic
Hi Wolf

thank you very much for your analysis ! :)

On 04/30 03:10, Wynn Wolf Arbor wrote:
> Hi,
> 
> On 2020-04-30 13:17, Wols Lists wrote:
> > All I can suggest is to check the kernel and see if it's an option that
> > has been disabled (512-byte sectors, that is).
> 
> As far as I know the kernel still uses 512 bytes internally [1], and I do
> not recall having seen an option that enables or disables support for 512/4K
> sectors.
> 
> That said, the problem may well be stemming from a sector size discrepancy,
> but as I understand it, it would have to do with how and when the partition
> table was created. That is, like described in [2], some USB enclosures seem
> to be a bit overzealous with obscure features, and might take eight disk
> sectors and bundle them together into one 4K sector.
> 
> If the disk was partitioned in the exact same enclosure, and is read from
> the exact same enclosure right now, there shouldn't be any problems. Is this
> the case, Meino?

I have two external disks of that kind, same product, nearly the same
contents, both have a "fixed case" (sorry...no native speaker...the
case and the disk mechanics/electronics is "one thing").
> 
> Also, when did you last access the drives successfully, and with which
> system?

Three weeks ago...about...guessed...with my old system.
Because these were backup disks I *NEVER* touch them with
any partitioning tool whatsoever...

It is complete unknown to me, what could have destroyed the
partitioning...

> On 2020-04-30 11:32, Meino wrote:
> > Disk /dev/sdb: 931.49 GiB, 1000170586112 bytes, 1953458176 sectors
> > Disk model: Elements 25A2   Units: sectors of 1 * 512 = 512 bytes
> > Sector size (logical/physical): 512 bytes / 512 bytes
> > I/O size (minimum/optimal): 512 bytes / 512 bytes
> > 
> > Disklabel type: dos
> > Disk identifier: 0x16f2a91f
> > 
> > Device Boot StartEndSectors   Size Id Type
> > /dev/sdb1   1 1953458175 1953458175 931.5G ee GPT
> 
> Interestingly, this reads *exactly* like the Protective MBR [3] that GPT
> has. That is, the disklabel type is DOS whilst the partition ID is EE.
> There's a single partition that spans the entire drive (and it's also
> seemingly not aligned properly - usually you see Start at 2048).

> As a comparison, here's the output from fdisk for the Protective MBR from
> one of my GPT drives:
> 
> > Disklabel type: dos
> > Disk identifier: 0x
> 
> > Device Boot StartEndSectors Size Id Type
> > /dev/sdc1   1 4294967295 4294967295   2T ee GPT
> 
> I'd assume that the missing disk identifier here is coming from different
> tools writing the protective MBR differently.
> 
> With that said, are you absolutely certain that you did not partition this
> drive with GPT instead of MBR? 

YES! These drives were used as backup and as backup of the backup. I
NEVER touched them with any partitioning tool after I had put a
filesystem and data on it.

> Did you do the partitioning in something like
> fdisk (which asks you specifically what you want), or some other
> application? Did you maybe format this drive on a Windows system?

Windows? no thank you...all my windows here are transparent and
open,.. ;)
Joke aside..
No Windows (tm) here. The disks are used only with my Linux box using
ext4 as filesystem.

> 
> I'm not one to discount entirely strange things happening, but I have never
> before seen a proper MBR laid out like a protective MBR. Indeed it would be
> quite impossible to have systems access data through such a table, since the
> partitions are hidden within that one huge contiguous block.
> 
> Ordinarily I'd point to fdisk not reading the partition table properly, but
> it seems that although your kernel has support for GPT, it doesn't seem to
> see the partitions either (assuming a proper GPT exists at all).

> Do you have some other GPT drives you can access successfully?
With my new PC (my old MBR-based system was 12 years old and needed to
be replaced. My kernel became "GPT aware onlu with my new PC.
Everything before was based on MBR.

My new PC can read GPT disks...my system is based on it.
> 
> I'd say that this requires some more forensic work. Perhaps extracting the
> first few megabytes of the disk and seeing whether there's a proper GPT or
> not. This would of course require manual work.

I copied the first 230GB of that disk to an empty partition of my new
system and run "testdisk" on itafter the analysis it came back
with "this partition cannot be recovered" but did not sau. whether the
reason is a partition table, which is broken beyond repair, or simply
due to the incomplete image file...

> 
> A few more things to try:
> 
> To see what the kernel uses for a particular disk, you can run the
> following: cat /sys/block/sdb/queue/{physical,logical}_block_size
 

host:/home/user>cat /sys/block/sdb/queue/physical_block_size 
512
solfire:/home/user>cat /sys/block/sdb/queue/logical_block_size 
512
host:/home/user>

> fdisk takes a

Re: [gentoo-user] Trouble with backup harddisks

2020-04-30 Thread tuxic
On 04/30 10:55, Wols Lists wrote:
> On 30/04/20 10:32, tu...@posteo.de wrote:
> > Hi,
> > 
> > recently I switched from the old MBR-scheme to GPT on
> > my new PC.
> > 
> > I have two external USB-harddisk, which were partioned/formatted with
> > a MBR-scheme/MSDOS partition (but were never used to boot from. They are 
> > pure
> > data containers).
> > 
> > When I connect these to my new PC, only the device is shown:
> > /dev/sdb, /dev/sdc.
> > 
> > The kernel is configured (beside other things) as follows:
> > 
> > #
> > # Partition Types
> > #
> > CONFIG_PARTITION_ADVANCED=y
> > # CONFIG_ACORN_PARTITION is not set
> > # CONFIG_AIX_PARTITION is not set
> > # CONFIG_OSF_PARTITION is not set
> > # CONFIG_AMIGA_PARTITION is not set
> > # CONFIG_ATARI_PARTITION is not set
> > # CONFIG_MAC_PARTITION is not set
> > CONFIG_MSDOS_PARTITION=y
> > # CONFIG_BSD_DISKLABEL is not set
> > # CONFIG_MINIX_SUBPARTITION is not set
> > # CONFIG_SOLARIS_X86_PARTITION is not set
> > # CONFIG_UNIXWARE_DISKLABEL is not set
> > # CONFIG_LDM_PARTITION is not set
> > # CONFIG_SGI_PARTITION is not set
> > # CONFIG_ULTRIX_PARTITION is not set
> > # CONFIG_SUN_PARTITION is not set
> > # CONFIG_KARMA_PARTITION is not set
> > CONFIG_EFI_PARTITION=y
> > # CONFIG_SYSV68_PARTITION is not set
> > # CONFIG_CMDLINE_PARTITION is not set
> > # end of Partition Types
> > 
> > CONFIG_BLOCK_COMPAT=y
> > CONFIG_BLK_MQ_PCI=y
> > CONFIG_BLK_MQ_VIRTIO=y
> > CONFIG_BLK_PM=y
> > 
> > dmesg shows this:
> > [14617.672363] usb 2-2: New USB device found, idVendor=1058, 
> > idProduct=25a2, bcdDevice=10.21
> > [14617.672364] usb 2-2: New USB device strings: Mfr=1, Product=2, 
> > SerialNumber=3
> > [14617.672364] usb 2-2: Product: Elements 25A2
> > [14617.672365] usb 2-2: Manufacturer: Western Digital
> > [14617.672366] usb 2-2: SerialNumber: 575844314132383959393934
> > [14617.681660] usb-storage 2-2:1.0: USB Mass Storage device detected
> > [14617.681737] scsi host10: usb-storage 2-2:1.0
> > [14618.725450] scsi 10:0:0:0: Direct-Access WD   Elements 25A2
> > 1021 PQ: 0 ANSI: 6
> > [14618.725594] sd 10:0:0:0: Attached scsi generic sg1 type 0
> > [14618.728090] sd 10:0:0:0: [sdb] Spinning up disk...
> > [14619.748918] ...ready
> > 
> > I tried different USB ports in a desperate hope of success...
> > ...no, same problem.
> > 
> > Interestingly fdisk shows the following:
> > 
> > host> sudo fdisk -l /dev/sdb
> > Disk /dev/sdb: 931.49 GiB, 1000170586112 bytes, 1953458176 sectors
> > Disk model: Elements 25A2   
> > Units: sectors of 1 * 512 = 512 bytes
> > Sector size (logical/physical): 512 bytes / 512 bytes
> > I/O size (minimum/optimal): 512 bytes / 512 bytes
> 
> This could be the key. Sector sizes have been changing from 512 to 4096
> over many years. If your kernel has been updated to expect/use 4096 byte
> sectors, it might not be able to read the disk properly.
> 
> > Disklabel type: dos
> > Disk identifier: 0x16f2a91f
> > 
> > Device Boot StartEndSectors   Size Id Type
> > /dev/sdb1   1 1953458175 1953458175 931.5G ee GPT
> > 
> > The type is shown as GPT...but the drive has a MSDOS partition table.
> > 
> > Reading my (old) internal harddrive with an external USB docking
> > station is possible without any problems, though.
> > 
> > Unfortunatelu I have no space for 1T image of that drive -- otherwise
> > I would have made an image copy and experiment with that.
> > 
> > So better ask, than sorry ;)
> > 
> > Is this fixable or did I lost my backups?
> > 
> Do you have access to an old kernel?
> 
> The other thing is try using gdisk (or that could be fdisk under another
> name :-( But some partitioning schemes can write a GPT with protective
> MBR - if you can find something that will take the MBR and write it as a
> GPT that might help, too.
> 
> Cheers,
> Wol
> 

Hi Wol,

thank you for your posting! :)

I switched to my new PC around 31.3.2020...
so there is no change "over the years" involved here...I think.
Where in the kernel this update is made?
I cannot remember to have configured such a thing manually...

Changing the partitiontable in any way is risky to the data 
I think...I am very unsure to do this.

I have access to an old kernel / system and can boot it.

But than I have the same problem another way around: I can
no longer access my new system ... due to the different 
sector size

Are there any other ways to fix this problem?

Cheers!
Meino







[gentoo-user] Trouble with backup harddisks

2020-04-30 Thread tuxic
Hi,

recently I switched from the old MBR-scheme to GPT on
my new PC.

I have two external USB-harddisk, which were partioned/formatted with
a MBR-scheme/MSDOS partition (but were never used to boot from. They are pure
data containers).

When I connect these to my new PC, only the device is shown:
/dev/sdb, /dev/sdc.

The kernel is configured (beside other things) as follows:

#
# Partition Types
#
CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_AIX_PARTITION is not set
# CONFIG_OSF_PARTITION is not set
# CONFIG_AMIGA_PARTITION is not set
# CONFIG_ATARI_PARTITION is not set
# CONFIG_MAC_PARTITION is not set
CONFIG_MSDOS_PARTITION=y
# CONFIG_BSD_DISKLABEL is not set
# CONFIG_MINIX_SUBPARTITION is not set
# CONFIG_SOLARIS_X86_PARTITION is not set
# CONFIG_UNIXWARE_DISKLABEL is not set
# CONFIG_LDM_PARTITION is not set
# CONFIG_SGI_PARTITION is not set
# CONFIG_ULTRIX_PARTITION is not set
# CONFIG_SUN_PARTITION is not set
# CONFIG_KARMA_PARTITION is not set
CONFIG_EFI_PARTITION=y
# CONFIG_SYSV68_PARTITION is not set
# CONFIG_CMDLINE_PARTITION is not set
# end of Partition Types

CONFIG_BLOCK_COMPAT=y
CONFIG_BLK_MQ_PCI=y
CONFIG_BLK_MQ_VIRTIO=y
CONFIG_BLK_PM=y

dmesg shows this:
[14617.672363] usb 2-2: New USB device found, idVendor=1058, idProduct=25a2, 
bcdDevice=10.21
[14617.672364] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[14617.672364] usb 2-2: Product: Elements 25A2
[14617.672365] usb 2-2: Manufacturer: Western Digital
[14617.672366] usb 2-2: SerialNumber: 575844314132383959393934
[14617.681660] usb-storage 2-2:1.0: USB Mass Storage device detected
[14617.681737] scsi host10: usb-storage 2-2:1.0
[14618.725450] scsi 10:0:0:0: Direct-Access WD   Elements 25A21021 
PQ: 0 ANSI: 6
[14618.725594] sd 10:0:0:0: Attached scsi generic sg1 type 0
[14618.728090] sd 10:0:0:0: [sdb] Spinning up disk...
[14619.748918] ...ready

I tried different USB ports in a desperate hope of success...
...no, same problem.

Interestingly fdisk shows the following:

host> sudo fdisk -l /dev/sdb
Disk /dev/sdb: 931.49 GiB, 1000170586112 bytes, 1953458176 sectors
Disk model: Elements 25A2   
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x16f2a91f

Device Boot StartEndSectors   Size Id Type
/dev/sdb1   1 1953458175 1953458175 931.5G ee GPT

The type is shown as GPT...but the drive has a MSDOS partition table.

Reading my (old) internal harddrive with an external USB docking
station is possible without any problems, though.

Unfortunatelu I have no space for 1T image of that drive -- otherwise
I would have made an image copy and experiment with that.

So better ask, than sorry ;)

Is this fixable or did I lost my backups?

Cheers!
Meino










Re: [gentoo-user] Graphics Card Advice

2020-04-30 Thread tuxic
On 04/29 06:05, jdm wrote:
> Hi,
> 
> I have just bought a RX 5600 XT and after a few issues with screen
> freezing after kernel starts loading, resolved by compiling EFIFB (no
> previous FB compiled in) the card has been working fine for 2 days
> booting normally. The machine then started not to boot, not even to get
> to BIOS (so you couldn't even press DEL to get to BIOS screen). I took
> the card out and replaced with old card and PC started fine. I tried
> this 4 times and still with new card PC would not even POST. I don't
> have a little speaker to here if there are any beeps.
> 
> I am returning the card as it feels like that is the problem but have a
> nagging suspicion this could be some other problem like power supply. I
> have 700W coolermaster PSU which should be ample (according to websites)
> but is 9 years (amazingly they had the foresight to provide 8 and 6 pin
> cables which were both plugged in).
> 
> My next issue is do I get another 5600 XT (different brand) or are
> nvidia equivalent better? I have always been an AMD fan. Could I end up
> in the same boat.
> 
> PC spec - ASUS 470 Pro MB with 2700 Ryzen.
> 
> Any advice would be much appreciated?
> 
> John
> 

Hi John,

what graphicscard you want depends heavily on what you want to
do with your PC...
What are the tasks, which put a heavy load on your PC/graphicscard and
which you are do regularily?
Do you do a lot of rendering (Blender for example) or video
(re-)encoding? Do you AI related things (tesorflow for example)?
Or is gaming you main application?

Furthermore: You CPU must fit your graphicscard performancewise.
It makes no sense to choose "a performance beast" and to combine
it with a "entry level being".
The fastest graphicscard can onlu as fast, as data are coming from
the CPU and vice versa.

On the internet you find a combination of the Ryzen 5 3600 with
one of the nvidia RTX 20[678] SUPER cards. The RTX 2060 SUPER
comes with 8GByte of video ram instead of 6 GBYte of the RTX 2060.

"Linus Tech Tipps" and "Tom's Hardware" are probablu to look for.

HTH!

Cheers!
Meino




Re: [gentoo-user] USB sound

2020-04-28 Thread tuxic
On 04/28 10:43, Peter Humphrey wrote:
> Morning all,
> 
> The motherboard sound chip failed, so I bought a USB sound adapter [1].
> Problem: no sound: firefox says it isn't working and KDE sounds don't 
> 'appear'.
> I have all the likely-looking options set in the kernel (5.4.28), modules
> where possible. I've read the Gentoo wiki articles on USB and audio, but they
> didn't offer any help.
> 
> The device uses USB-2 and I have it in a USB-2 socket. I get this on plugging 
> it in:
> 
> $ dmesg -Hw
> [Apr28 09:49] usb 3-13: new full-speed USB device number 17 using xhci_hcd
> [  +0.127080] usb 3-13: New USB device found, idVendor=0d8c, idProduct=0014, 
> bcdDevice= 1.00
> [  +0.02] usb 3-13: New USB device strings: Mfr=1, Product=2, 
> SerialNumber=0
> [  +0.02] usb 3-13: Product: USB Audio Device
> [  +0.01] usb 3-13: Manufacturer: C-Media Electronics Inc.
> [  +0.007851] input: C-Media Electronics Inc. USB Audio Device as 
> /devices/pci:00/:00:14.0/usb3/3-13/3-13:1.3/0003:0D8C:0014.000D/input/input20
> [  +0.051184] hid-generic 0003:0D8C:0014.000D: input,hidraw4: USB HID v1.00 
> Device [C-Media Electronics Inc. USB Audio Device] on 
> usb-:00:14.0-13/input3
> 
> Some more diagnostics:
> 
> # aplay -l
>  List of PLAYBACK Hardware Devices 
> card 0: HDMI [HDA ATI HDMI], device 3: Generic Digital [Generic Digital]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 2: Device [USB Audio Device], device 0: USB Audio [USB Audio]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> 
> # arecord -l
>  List of CAPTURE Hardware Devices 
> card 1: USB [HD Webcam USB], device 0: USB Audio [USB Audio]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 2: Device [USB Audio Device], device 0: USB Audio [USB Audio]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> 
> # lsusb -t | grep -i audio
> |__ Port 6: Dev 3, If 2, Class=Audio, Driver=snd-usb-audio, 480M
> |__ Port 6: Dev 3, If 3, Class=Audio, Driver=snd-usb-audio, 480M
> |__ Port 13: Dev 17, If 0, Class=Audio, Driver=snd-usb-audio, 12M
> |__ Port 13: Dev 17, If 1, Class=Audio, Driver=snd-usb-audio, 12M
> |__ Port 13: Dev 17, If 2, Class=Audio, Driver=snd-usb-audio, 12M
> 
> # lsmod | grep snd
> snd_usb_audio 233472  0
> snd_hwdep  16384  1 snd_usb_audio
> snd_usbmidi_lib28672  1 snd_usb_audio
> snd_rawmidi32768  1 snd_usbmidi_lib
> snd_seq_device 16384  1 snd_rawmidi
> mc 40960  4 
> videodev,snd_usb_audio,videobuf2_v4l2,videobuf2_common
> snd_hda_codec_generic77824  1
> snd_hda_intel  28672  0
> snd_intel_nhlt 16384  1 snd_hda_intel
> snd_hda_codec 122880  2 snd_hda_codec_generic,snd_hda_intel
> snd_hda_core   73728  3 
> snd_hda_codec_generic,snd_hda_intel,snd_hda_codec
> snd_pcm98304  4 
> snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
> snd_timer  32768  1 snd_pcm
> snd81920  10 
> snd_hda_codec_generic,snd_seq_device,snd_hwdep,snd_hda_i>
> soundcore  16384  1 snd
> 
> Why those Intel modules? The built-in Intel device is switched off in the 
> BIOS.
> 
> Can anyone point me in the right direction?
> 
> 1.  The device is a 'Sabrent USB External Stereo Sound Adapter'; The blurb at 
> amazon.co.uk includes Linux in its list of OSes. I bought it via 
> https://smile.amazon.co.uk/Sabrent-External-Adapter-Windows-AU-MMSA/dp/B00IRVQ0F8/ref=sr_1_3?dchild=1&keywords=usb+sound&qid=1588065420&sr=8-3
> 
> -- 
> Regards,
> Peter.
> 
> 
> 
> 


Hi Peter,

not long ago I had fallen over a very similiar effect.
What cured the problem here was to reboot into the BIOS and  to 
disable the AUDIO device.

Cheers!
Meino





Re: [gentoo-user] "Amount" of fstrim? (curiosity driven, no paranoia :)

2020-04-27 Thread tuxic
On 04/28 03:12, Kent Fredric wrote:
> On Sun, 26 Apr 2020 18:15:51 +0200
> tu...@posteo.de wrote:
> 
> > Filesystem  Size  Used Avail Use% Mounted on
> > /dev/root   246G   45G  189G  20% /
> 
> Given that (Size - Used) is roughly 200G, it suggests to me that
> perhaps, some process somewhere is creating and deleting a lot of
> temporary files on this device (or maybe simply re-writing the same
> file multiple times)
> 
> From a userspace, this would be invisible, as the "new"  file would be
> in a new location on the disk, and the "old" file would be invisible,
> and marked "can be overwritten". 
> 
> So if you did:
> 
> for i in {0..200}; do
>cp a b
>rm a
>mv b a 
> done
> 
> Where "a" is a 1G file, I'd expect this to have a *ceiling* of 200G
> that would turn up in fstrim output, as once you reached iteration 201,
> where "can overwrite" would allow the SSD to go back and rewrite over
> the space used in iteration 1.
> 
> While the whole time, the visible disk usage in df -h would never
> exceed 46G .
> 
> I don't know if this is what is happening, I don't have an SSD and
> don't get to use fstrim.
> 
> But based on what you've said, the results aren't *too* surprising.
> 
> Though its possible the hardware has some internal magic to elide some
> writes, potentially making the "cp" action incur very few writes, which
> would show up in the smartctl data, but ext4 might not know anything
> about that, so perhaps fstrim only indicates what ext4 *tracked* as
> being cleaned, while it may have incurred much less cleanup required on
> the hardware.
> 
> That would explain the difference between smartctl and fstrim results.
> 
> Maybe compare smartctl output over time with
> /sys/fs/ext4//session_write_kbytes and see if one grows faster
> than the other? :)
> 
> My local session_write_kbytes is currently at 709G, the partition its
> for is only 552G, with 49G space, and its been booted 33 days, so "21G
> of writes a day".
> 
> And uh, lifetime_write_kbytes is about 18TB. Yikes.
> 
> ( compiling things involves a *LOT* of ephemeral data )
> 
> Also, probably don't assume the amount of free space on your partition
> is all the physical device has at its disposal to use. It seems
> possible that on the hardware, the total pool of "free blocks" is
> arbitrarily usable by the device for wear levelling, and a TRIM command
> to that device could plausibly report more blocks trimmed than your
> current partition size, depending on how its implemented.
> 
> But indeed, lots of speculation here on my part :)
> 

Hi Kent,

Thank yopu very much for your research and your explanations! :)

Due to some statements I found online I did a interesting little
experiment:

fstrim
fstrim
reboot
fstrim 

Reported amount of data for each fstrim:
200.2GiB
  0.0GiB
--
200.2GiB

The reboot seems to be worth the same amount of fstrimmed
data as one week of daily updates and recompilations. ;)

(By the way: This all happens on a ext4 filesystem).

Background according to the reports I found online:

The kernel is keep track of all, which already has been fstrimmed and
avoids to retrimm the same data.
This knowledge gets lost, when the PC is powercycled or rebooted.

I think, the value of the amount of fstrimmed data does not reflect
the amount of data, which gets physically fstrimmed by the SSD
controller.

The kernel onlu throw the information of "possible candidates for
being fstrimmed" towards the SSD controller, which is real master
behind all this.

And as you wrote: The maximum amount of "possible data for being
fstrimmed" is all free space of the filesystem.

Slightly related: 
Do you know the purpose of this value (smartctl -a ):
Data Units Read:656,599 [336 GB]
Data Units Written: 702,251 [359 GB]
Host Read Commands: 4,316,042
Host Write Commands:3,080,180

Are these the raw amount of data, I have send to the SSD?
Looks like a lot...

Cheers!
Meino





















Re: [gentoo-user] "Amount" of fstrim? (curiosity driven, no paranoia :)

2020-04-26 Thread tuxic
On 04/26 09:58, Rich Freeman wrote:
> On Sun, Apr 26, 2020 at 9:43 PM  wrote:
> >
> > To implement a dry run with a printf() is new to me... ;)
> >
> 
> That is all they fstrim authors could do, since there is no dry-run
> option for the actual ioctl, and fstrim itself has no idea how the
> filesystem will implement it (short of re-implementing numerous
> filesystems in the program and running it on unmounted devices).  It
> seems like an fstrim dry-run is only minimally functional, though I
> guess it will test if you made any gross errors in syntax and so on.
> I don't see any reason why they couldn't have a dry-run option for the
> ioctl, but it would have to be implemented in the various filesystems.
> Really it seems like ioctl in general in the kernel isn't
> super-well-documented.  It isn't like the system call interface.  That
> is, unless I just missed some ioctl document floating around.  The
> actual list of ioctls is in the kernel includes, but this does not
> define the syntax of the 3rd parameter of the ioctl system call which
> is function-specific. The structure used by the FITRIM ioctl is in the
> includes, but not with any kind of documentation or even a
> cross-reference to associate the structure with the ioctl itself.
> 
> -- 
> Rich
> 

Hi Rich,

thanks for the explanations again.
But I think it is better not to implement a feature at all as via
printf.

For a dry run I had expected, that some checks had been implemented,
whether a non-dry run would be successfull.

For example:
When submitting 

fstrim -n /

as normal user I get:
/: 0 B (dry run) trimmed

Doing the same without dry run set I get:
fstrim: /: FITRIM ioctl failed: Operation not permitted

When doing a 

fstrim -n /home/user

as normal user, I get the same behaviour as above --
despite that /home/user is on a harddisk with no
fstrim functionality at all.

If fstrim cannot implement the above correctlu, it would
be better not to implement it all...I think.

Cheers!
Meino







Re: [gentoo-user] "Amount" of fstrim? (curiosity driven, no paranoia :)

2020-04-26 Thread tuxic
On 04/26 03:29, Rich Freeman wrote:
> On Sun, Apr 26, 2020 at 12:15 PM  wrote:
> >
> > On 04/26 11:20, Rich Freeman wrote:
> > > On Sun, Apr 26, 2020 at 10:52 AM  wrote:
> > > >
> > > > Fstrim reports about 200 GiB of trimmed data.
> > > >
> > >
> > > My suggestion would be to run fstrim twice in a row and see how fast
> > > it operates and what the results are.  If the second one completes
> > > very quickly that suggests that the drive is sane.  I'd probably just
> > > run it daily in that case, but weekly is probably fine especially if
> > > the drive isn't very full.
> > >
> >
> > host:/root>fstrim -v /
> > /: 3.3 GiB (3578650624 bytes) trimmed
> > host:/root>fstrim -v /
> > /: 0 B (0 bytes) trimmed
> >
> > This time the first fstrim reports a small mount of trimmed
> > data and second one no fstrimmed data at all.
> >
> 
> Ok, I became a bit less lazy and started looking at the source.
> 
> All fstrim does is send an FITRIM ioctl to the kernel for the device.
> This is implemented in a filesystem-dependent manner, and I couldn't
> actually find any documentation on it (actual documentation on the
> ioctl - not the fstrim manpage/etc).  A quick glimpse at the ext4
> source suggests that ext4 has a flag that can track whether a group of
> blocks has been trimmed yet or not since it was last deallocated.  So
> ext4 will make repeated fstrim runs a no-op and the drive won't see
> these.
> 
> At least, that was what I got after about 5-10min of browsing.  I
> didn't take the time to grok how ext4 tracks free space and so on.
> 
> Incidentally, in the other thread the reason that dry-run didn't
> report anything to be trimmed is that this is hard-coded:
> printf(_("%s: 0 B (dry run) trimmed on %s\n"), path, devname);
> https://github.com/karelzak/util-linux/blob/master/sys-utils/fstrim.c#L109
> 
> Otherwise the ioctl returns how much space was trimmed, and fstrim outputs 
> this.
> 
> -- 
> Rich
> 

Hi Rich,

thank you very much for digging into the depth of the sources and for 
explaining it!!! Very appreciated !!! :) :)

To implement a dry run with a printf() is new to me... ;)

Cheers!
Meino






Re: [gentoo-user] "Amount" of fstrim? (curiosity driven, no paranoia :)

2020-04-26 Thread tuxic
On 04/26 11:20, Rich Freeman wrote:
> On Sun, Apr 26, 2020 at 10:52 AM  wrote:
> >
> > Fstrim reports about 200 GiB of trimmed data.
> >
> > From the gut this looks quite a lot -- the whole
> > partition is 256 GB in size.
> >
> > Smartclt report for the drive:
> > Data Units Written: 700,841 [358 GB]
> >
> > Each week 200 GiB fstrimmed data for a partition of
> > 256 GB in size and since the beginning I have written
> > only 358 GB to it.
> >
> > How does this all fit together?
> 
> It doesn't fit together, because the amount of space trimmed has
> nothing to do with the amount of data written.
> 
> How much free space is there?  I would think that fstrim would just
> trim all unused blocks on the filesystem.  Unless it maintained state
> it would have no idea what has changed since the last time it was run,
> so if you ran it 10 times in a row it would trim 200GiB each time.
> 
> Unless your NVMe is brain-dead the only real downside to running it
> more often is the IO.  If you trim 200GiB of data 100x in a row the
> 99x after the first one should all be no-ops if the drive is
> well-designed.  An fstrim should just be a metadata operation.
> 
> Now, not all flash storage is equally well-implemented, and I suspect
> the guidelines to avoid running it often or using discard settings are
> from those who either have really cheap drives, or ones from a long
> time ago.  A lot of linux advice tends to be based on what people did
> 10+years ago, and a lot of linux design decisions get made to
> accommodate the guy who wants everything to work fine on his 386+ISA
> and SGI Indigo in his basement.
> 
> My suggestion would be to run fstrim twice in a row and see how fast
> it operates and what the results are.  If the second one completes
> very quickly that suggests that the drive is sane.  I'd probably just
> run it daily in that case, but weekly is probably fine especially if
> the drive isn't very full.
> 
> -- 
> Rich
> 

Hi Rich, 

thanks for explanation.

My observations does not fit with your explanation, though.

Early in the morning I did a fstrim, which results in the
200GiB of freed data.

Base on you posting I did a fstrim now with no
wait in between:

host:/root>fstrim -v /
/: 3.3 GiB (3578650624 bytes) trimmed
host:/root>fstrim -v /
/: 0 B (0 bytes) trimmed

This time the first fstrim reports a small mount of trimmed
data and second one no fstrimmed data at all.

The SSD is a 
ADATA Technology Co., Ltd. XPG SX8200 Pro PCIe Gen3x4 M.2 2280 Solid State 
Drive (rev 03)
(cut'n'paste from `lspci`)

host:/root>df -h /
Filesystem  Size  Used Avail Use% Mounted on
/dev/root   246G   45G  189G  20% /


Cheers!
Meino






Re: [gentoo-user] Misunderstanding fstrim...

2020-04-26 Thread tuxic
On 04/26 03:26, Alan Mackenzie wrote:
> Hello, Gentoo.
> 
> Seeing that I've had my "new" box for three years, now, I'm thinking
> it's about time to run fstrim.  But how?
> 
> I've got a pair of NVMe drives in a RAID 1 configuration.  On the main
> partition, /dev/md126, I've got several LVM2 things.  In the volume
> group(s?) I've got things like /dev/mapper/vg-home mounted on /home.
> Most of my partitions are ext4.
> 
> When I try things like
> 
> # fstrim --dry-run /home
> 
> , I get the response:
> 
> /home: 0 B (dry run) trimmed
> 
> .  What does this mean, in particular the "0 B" bit?  Does it mean that
> if I let it rip, it would trim 0 Bytes?
> 
> Will I do any damage if I let it go ahead (without the --dry-run)?  Will
> this actually do any good?  Will fstrim work together with LVM volumes?
> 
> Thanks for any help!
> 
> -- 
> Alan Mackenzie (Nuremberg, Germany).
> 

Hi Alan,

NOW I am no longer feel alone with all my fstrim/SSD related
questions! :)

I exactly fall over this before.

It looks like fstrim would take its "dry run" really seriously
and does NOTHING - it even does not communicate with the SSD.
Therefore there is no responds from the SSD how much has been
trimmed...or "0 bytes" in other words.

If you start it with no "dry run", it will send the the SSD
informations, what parts, which still keep data, can be freed,
because this data is no longer linked to anything.

Fstrimming "does harm" ;) in the first place. It will cause
some kind of writing, which is -- in the purest sense of
the word -- "bad" to the SSD. 

But fstrimming is good for the SSD in the more global context, since
all freed blocks now are available for wear leveling to the SSD
controller again.

I cannot say anything in the context of LVM, since I 
don't use it.

But I don't *think* (read: don't know for sure), that
it would harm, since you are dealing with data, which
already has been flagged for "can be overwritte" by
the filesystem.

Since the SSD controller handles chunks of data one
level lower (the controller does not know anything
about filesystems), fstrim tells it, which data
can be overwritten from the filesystems point 
of view.

BUT: Any undelete operation is made impossible
after a fstrim.

Some inside view to the status of the ssd can be taken
by this command:

sudo smartctl -a 

This command only reads from the SSD.

Cheers!
Meino







[gentoo-user] "Amount" of fstrim? (curiosity driven, no paranoia :)

2020-04-26 Thread tuxic
Hi,

jyst out of curiosity:

I have a 512 MB NVMe SDD drive installed, which I had (currently)
formatted with one 256 MB root partition.
I bound /var and /tmp to hardisk.

Currently I am doing one Gentoo update a day and I am running
unstable.

Just to get a feeling, how often I need to fstrim / I do it
currently by hand once in a week.

Fstrim reports about 200 GiB of trimmed data.

>From the gut this looks quite a lot -- the whole
partition is 256 GB in size.

Smartclt report for the drive:
Data Units Written: 700,841 [358 GB]

Each week 200 GiB fstrimmed data for a partition of
256 GB in size and since the beginning I have written
only 358 GB to it.

How does this all fit together?

Cheers!
Meino






Re: [gentoo-user] Troubles setting USE flag for inkscape

2020-04-26 Thread tuxic
On 04/25 10:05, Andreas K. Hüttel wrote:
> > ##  !!! Problem resolving dependencies for media-gfx/inkscape from @selected
> > ##
> > ##  !!! The ebuild selected to satisfy "media-gfx/inkscape" has unmet
> > requirements. ##  - media-gfx/inkscape-1.0_rc1::gentoo USE="jpeg nls openmp
> > -cdr -dbus -dia -exif -graphicsmagick -imagemagick -inkjar -jemalloc -lcms
> > -postscript -spell -static-libs -svg2 -visio -wpg"
> > PYTHON_SINGLE_TARGET="python3_6 python3_8 -python3_7" ##
> > ##The following REQUIRED_USE flag constraints are unsatisfied:
> > ##  exactly-one-of ( python_single_target_python3_6
> > python_single_target_python3_7 python_single_target_python3_8 )
> 
> is fixed now and should work out of the box again
> 
> -- 
> Andreas K. Hüttel
> dilfri...@gentoo.org
> Gentoo Linux developer 
> (council, qa, toolchain, base-system, perl, libreoffice)


I had similiar problems afterwards with

dev-python/pyopengl
dev-python/certifi
dev-python/setuptools






Re: [gentoo-user] Re: Troubles setting USE flag for inkscape

2020-04-25 Thread tuxic
On 04/25 07:28, Remy Blank wrote:
> tu...@posteo.de wrote on 25/04/2020 17:55:
> > Beside other permutations I add this to package.use
> > 
> > media-gfx/inkscape python_single_target_python3_8
> 
> Try this instead:
> 
> media-gfx/inkscape PYTHON_SINGLE_TARGET: -* python3_8
> 
> -- Remy
> 
> 

Hi Remy,

that helped !

To be honest ... I never had deduced this from the error message.
Is this pure experience...somehing one had to learn after uears
of trying to cope with The Portage Oracle...or is it one has
and the other one has not...? ;)

...or what manual do I need to read to up with this line?

(NO critism towards you implied!!!)

Cheers!
Meino







[gentoo-user] Troubles setting USE flag for inkscape

2020-04-25 Thread tuxic
Hi,

while updateing/emergeing I got this message:

##  !!! Problem resolving dependencies for media-gfx/inkscape from @selected 
##  
##  !!! The ebuild selected to satisfy "media-gfx/inkscape" has unmet 
requirements.
##  - media-gfx/inkscape-1.0_rc1::gentoo USE="jpeg nls openmp -cdr -dbus -dia 
-exif -graphicsmagick -imagemagick -inkjar -jemalloc -lcms -postscript -spell 
-static-libs -svg2 -visio -wpg" PYTHON_SINGLE_TARGET="python3_6 python3_8 
-python3_7"
##  
##The following REQUIRED_USE flag constraints are unsatisfied:
##  exactly-one-of ( python_single_target_python3_6 
python_single_target_python3_7 python_single_target_python3_8 )


Beside other permutations I add this to package.use

media-gfx/inkscape python_single_target_python3_8

but the message remains.
As far as I know the above is compatible what is written here:
https://wiki.gentoo.org/wiki//etc/portage/package.use


How do I have to specify the python target correctly?

Cheers!
Meino








[gentoo-user] new hd: Security / hdparm / differences

2020-04-22 Thread tuxic
Hi,

In my system there is a 3T Winchester digital blue 

Model Number:   WDC WD30EZRZ-00GXCB0
Firmware Revision:  80.00A80


I bougth a second one for backyp purposes

Model Number:   WDC WD30EZRZ-00Z5HB0
Firmware Revision:  80.00A80

Looks pretty simiiar to me...

The first one is in use for a month or so, I received
the second one just two hours ago.

I want to disable the security feature and the spindown-if-idle
feature of the second drive as I did with the first.

First step was to compare the output of 'hdparm -I ' of the
first with that of the second one.

Differences ( I will skip identical parts ):

First:
Standards:
Used: unknown (minor revision code 0x006d) 
Supported: 10 9 8 7 6 5 
Likely used: 10

Second:
Standards:
Supported: 9 8 7 6 5 
Likely used: 9



First:
Formfactor 3.5inch

Second:
Not mentioned

First
Commands/features:
Enabled Supported:
   *DMA Setup Auto-Activate optimization
Device-initiated interface power management
   *Software settings preservation
unknown 206[12] (vendor specific)
unknown 206[13] (vendor specific)
   *DOWNLOAD MICROCODE DMA command
   *WRITE BUFFER DMA command
   *READ BUFFER DMA command

Second:
Commands/features:
Enabled Supported:
DMA Setup Auto-Activate optimization
   *SCT Write Same (AC2)
   *SCT Features Control (AC4)
   *SCT Data Tables (AC5)
unknown 206[12] (vendor specific)
unknown 206[13] (vendor specific)
unknown 206[14] (vendor specific)



"DMA Setup Ayto-Activate optimization" is enable for the first drive,
for second one it is not. The section about this feature in the
manpage says "use with extreme caytion" and I cannot decide, whether
that what is written there is still valid or some sort of cry
from the past.

I am unsure about to think about these differences...?

The second thing are the security settings. I want drives with no
security settings and no way to manipulate them without user
interaction. I want these settings stored in the drive instead
of setting them at each boot since the second drive will be
temporarily used in a docking station "past boot".

The current security settings for both drives are:
not enabled
not locked
frozen
not expired: security count
supported: enhanced erase

(I have frozen the settings for the second drive just a minute ago and
it will forget the settings (going "not frozen" then) as soon I switch
the docking station off and on again.)

If I remember correctly I did this for the frsit drive with:
freeze security setting
lock security settings

and I did this without using any password.

On the second drive "freeze" works as exspected, but "lock"
wants a password.

After startpageing for a while I found a site with "Master passwords
for some drives"...and I am unsure of what I have found there
(reliability-wise ... it was not via the TOR network, though... ;)

Currently there are no data on the second drive. So accidentally
wiping it off doesn't matter as long the drive remains intact.

I would prefer to have both drives in the same state.
I didn't changed any DMA-related settings for the first drive by the
way.

How should I handle the DMA differences between the frist and the
second drive?

How can I handle the security issue with the second drive?

Cheers!
Meino











Re: [gentoo-user] Installation loop...

2020-04-18 Thread tuxic
Hi Dave,

that works! :)
Thanks a lot!

Cheers!
Meino



On 04/18 10:14, David Fellows wrote:
> >Hi,
> >
> >on my system are installed (beside other things, of course... :)
> >
> >[I] virtual/w3m
> > Available versions:  0
> > Installed versions:  0(03:51:00 AM 04/18/2020)
> > Description: Virtual for the w3m web browser
> >
> >[I] www-client/w3m
> > Available versions:  0.5.3_p20180125 (~)0.5.3_p20190105 {X fbcon 
> > gdk-pixbuf gpm imlib libressl lynxkeymap nls nntp ssl unicode xface 
> > L10N="de ja"}
> > Installed versions:  0.5.3_p20190105(08:50:56 AM 04/10/2020)(X nls ssl 
> > unicode -fbcon -gdk-pixbuf -gpm -imlib -libressl -lynxkeymap -nntp -xface 
> > L10N="-de -ja")
> > Homepage:https://github.com/tats/w3m
> > Description: Text based WWW browser, supports tables and frames
> >
> >
> >Normally I do a cleanup after each upgrade/compilation/install like
> >so:
> >
> >
> >emerge --selective=n  @preserved-rebuild && emerge --depclean -va && 
> > eclean-dist -C -d -v && eix-test-obsolete
> >
> >which removes 
> >
> >virtual/w3m
> >
> >then. Next upgrade, which looks liek:
> >
> >eix-sync ; emerge --update --newuse --deep --with-bdeps=y --tree 
> > --keep-going --backtrack=30 -v --verbose-conflicts -1 @world
> >
> >it installs 
> >
> >virtual/w3m
> >
> >again.
> >
> >And so on.
> >
> >How can I stop this?
> 
> After this annoyed me for a month I did the following with by system in a
> state with both installed:
> emerge --deselect www-client/w3m
> emerge --select virtual/w3m
> Which stopped the foolishness.
> 
> >Are the commands I use fishy?
> >What is the reason of this loop -- other parts of the system will not
> >be reinstalled over and over again ?
> 
> In my case, I had installed www-client/w3m explicitly to satisfy a program
> that was installed outside portage possibly before there was a virtual/w3m.
> 
> DaveF
> 
> >
> >Cheers!
> >Meino
> >
> >
> >
> >
> 



[gentoo-user] dir or file? >> /etc/portage/package.mask

2020-04-18 Thread tuxic
Hi,

I /thought/ that /etc/portage/package.mask is a file and using it
in this manner works as exspected.
Also the docs are of that opinion, too:
https://wiki.gentoo.org/wiki//etc/portage/package.mask

BUT!

host:/root>crossdev -t arm-none-eabi   
-   

  
 * crossdev version:  20200131
 * Host Portage ARCH: amd64
 * Host Portage System:   x86_64-pc-linux-gnu (x86_64-pc-linux-gnu)
 * Target Portage ARCH:   arm
 * Target System: arm-none-eabi
 * Stage: 3 (C compiler & libc)
 * USE=multilib:  yes
 * Target ABIs:   default

 * binutils:  binutils-[latest]
 * gcc:   gcc-[latest]
 * libc:  newlib-[latest]

 * CROSSDEV_OVERLAY:  /var/db/repos/localrepo
 * PORT_LOGDIR:   /var/log/portage
 * PORTAGE_CONFIGROOT:/
 * Portage flags: 


  

 * error: please convert //etc/portage/package.mask to a directory
 * 


urges me to make a directory out of it.
After doing so, the command starts.

I am confusedslightly...

;)

?

Cheers,
Meino





Re: [gentoo-user] Audio Equalizer for a DAC ?

2020-04-18 Thread tuxic
On 04/18 08:21, Mark Knecht wrote:
> On Sat, Apr 18, 2020 at 8:03 AM  wrote:
> 
> > Hi Mark,
> >
> > thanks for the links!
> >
> > for the first I want to avoid propietary / closed software if
> > possible.
> >
> > The problem, which I tried to mention in my initial post was, that
> > alsamixer displays a control for pcm volume only. I also reffered
> > to the suggestion to run alsamixer -D equal, which fails on my
> > side - which was the reason for my initial posting.
> >
> > I need a equaliser, which -- as said -- processes the audio data
> > and implements the equaliser functionality by itsself.
> >
> > Cheers!
> > Meino
> 
> Meino,
>Sorry. It's Saturday morning and I'm probably not reading as deeply as I
> should.
> 
>If the Ubuntu alsa equalizer doesn't work for you then Jack is probably
> your best (only?) solution. That said I never do system wide equalization
> and Jack audio generally isn't easy for beginners so be prepared to do some
> heavy lifting to get your system running the way you want.
> 
>I wish you the best of luck!
> 
> Cheers,
> Mark

Hi Mark,

no problem! :::)))

Here it is Saturday 5:00 PM...sorry I forgot about timezones...

I will check, whether jack is the way to go!

Have a nice weekend!
Cheers!
Meino




Re: [gentoo-user] Audio Equalizer for a DAC ?

2020-04-18 Thread tuxic
On 04/18 07:51, Mark Knecht wrote:
> On Sat, Apr 18, 2020 at 7:34 AM  wrote:
> >
> > On 04/18 07:24, Mark Knecht wrote:
> > > On Sat, Apr 18, 2020 at 5:56 AM  wrote:
> > > >
> > > > Hi,
> > > >
> > Hi Mark,
> >
> > could suggest an equaliser for jack...whatever it may be?
> >
> > Cheers!
> > Meino
> >
> >
> 
> Not recommending, just identifying a Pro Audio products I do use once in
> awhile
> 
> https://x42-plugins.com/x42/x42-eq
> 
> https://www.kvraudio.com/product/xt-eq-equalizer-by-harrison
> 
> 
> I wonder if you've seen this page which suggests a way to add an equalizer
> to alsmixer?
> 
> https://askubuntu.com/questions/772543/audio-equalizer-software-in-ubuntu-16-04
> 
> Mark

Hi Mark,

thanks for the links!

for the first I want to avoid propietary / closed software if
possible.

The problem, which I tried to mention in my initial post was, that
alsamixer displays a control for pcm volume only. I also reffered
to the suggestion to run alsamixer -D equal, which fails on my
side - which was the reason for my initial posting.

I need a equaliser, which -- as said -- processes the audio data
and implements the equaliser functionality by itsself.

Cheers!
Meino




Re: [gentoo-user] Audio Equalizer for a DAC ?

2020-04-18 Thread tuxic
On 04/18 07:24, Mark Knecht wrote:
> On Sat, Apr 18, 2020 at 5:56 AM  wrote:
> >
> > Hi,
> >
> > Finally I got a FIIO E10K DAC running with my Gentoo Linux and ALSA.
> 
> 
> 
> > Is there any equaliser software available, which processes the audio
> > data instead?
> >
> > Is my configuration still incomplete?
> >
> 
> If you're looking for system wide equalization using Alsa then I don't know
> of an answer.
> 
> If you're looking to play a CD or mp3 then look for an app with an
> equalizer built in.
> 
> If you want system wide equalization then you'll want to investigate Jack.
> Start with QJackCtl and build your audio path using whatever plugins
> (equalizers, compressors, sprectrum analyzers, etc.) you are interested in.
> 
> I run Jack full time on my laptop using a Scarlett 2i2 3rd gen which is
> somewhat like your USB device. I do not require any system wide
> equalization on my system though.
> 
> HTH,
> Mark

Hi Mark,

could suggest an equaliser for jack...whatever it may be?

Cheers!
Meino





[gentoo-user] Audio Equalizer for a DAC ?

2020-04-18 Thread tuxic
Hi,

Finally I got a FIIO E10K DAC running with my Gentoo Linux and ALSA.

Alsamixer displays a volume slider for PCM only. I can play several
audio sources - so far so nice.

Then I installed media-plugins/alsaequal, which installs fine.

I changed my .asoundrc to:

ctl.equal {
type equal;
}

pcm.plugequal {
type equal;
slave.pcm "plughw:0,0";
}

pcm.equal {
type plug;
slave.pcm plugequal;
}

(alsamixer displays the DAC as soundcard 0 - I have deactivated the
audio of the motherboard via BIOS settings) 


Starting for example 'alsamixer -D equal' results in an error:

ALSA lib 
/var/tmp/portage/media-libs/alsa-lib-1.2.2/work/alsa-lib-1.2.2/src/control/control.c:1379:(snd_ctl_open_noupdate)
 Invalid CTL equal
cannot open mixer: No such file or directory
[1]5304 exit 1 alsamixer -D equal

...seems logical to me, since I have only a volume slider in
alsamixer.

The FIIO establishes this USB device:

Bus 005 Device 002: ID 1852:7022 GYROCOM C&C Co., LTD DigiHug USB Audio


Does anyone on this list uses a FIIO E10K / E10 with Linux and got
more than a simple PCM/volume slider with alsamixer ?

Is there any equaliser software available, which processes the audio
data instead?

Is my configuration still incomplete?

Cheers!
Meino





[gentoo-user] Installation loop...

2020-04-17 Thread tuxic
Hi,

on my system are installed (beside other things, of course... :)

[I] virtual/w3m
 Available versions:  0
 Installed versions:  0(03:51:00 AM 04/18/2020)
 Description: Virtual for the w3m web browser

[I] www-client/w3m
 Available versions:  0.5.3_p20180125 (~)0.5.3_p20190105 {X fbcon 
gdk-pixbuf gpm imlib libressl lynxkeymap nls nntp ssl unicode xface L10N="de 
ja"}
 Installed versions:  0.5.3_p20190105(08:50:56 AM 04/10/2020)(X nls ssl 
unicode -fbcon -gdk-pixbuf -gpm -imlib -libressl -lynxkeymap -nntp -xface 
L10N="-de -ja")
 Homepage:https://github.com/tats/w3m
 Description: Text based WWW browser, supports tables and frames


Normally I do a cleanup after each upgrade/compilation/install like
so:


emerge --selective=n  @preserved-rebuild && emerge --depclean -va && 
eclean-dist -C -d -v && eix-test-obsolete

which removes 

virtual/w3m

then. Next upgrade, which looks liek:

eix-sync ; emerge --update --newuse --deep --with-bdeps=y --tree 
--keep-going --backtrack=30 -v --verbose-conflicts -1 @world

it installs 

virtual/w3m

again.

And so on.

How can I stop this?
Are the commands I use fishy?
What is the reason of this loop -- other parts of the system will not
be reinstalled over and over again ?

Cheers!
Meino






Re: [gentoo-user] can't paste password from clipboard into ssh login in urxvt

2020-04-16 Thread tuxic
On 04/16 03:58, Caveman Al Toraboran wrote:
> so i get my password loaded into the clipboard by
> keepassxc.  then i can paste it into various
> terminals, like urxvt.
> 
> but, the strange thing is that, i cannot paste it
> into urxvt when it shows ssh's login prompt.
> 
> i can paste the password loaded into the clipboard
> from keepassxc if there is no ssh login.  but just
> can't when there is an ssh login prompt.
> 
> any idea what's going on?
> 
> rgrds,
> cm.
> 
> 

Hi,

I didn't tru that muself, but as far as I could remember,
ssh catches the tty so no password will be shown (but processed).

What happens if you paste the password, ignore, that "nothing" happens
and then press  ?

Cheers!
Meino





Re: [gentoo-user] Question about handling filenames with "illegal" characters...

2020-04-16 Thread tuxic
On 04/16 05:21, Francesco Turco wrote:
> On Thu, Apr 16, 2020, at 17:15, tu...@posteo.de wrote:
> > Normally I would replace the asd* with the according
> > 
> > find . -name 'asd*' -print0 | 
> > 
> > but I got in trpuble, because "do_something" 
> > now misunderstood the whole thing.
> 
> What about the following command?
> 
> find . -name 'asd*' -print0 | xargs -0 
> 
> -- 
> https://fturco.net/
> 

I would do that normally, but the  to much "more"





Re: [gentoo-user] Question about handling filenames with "illegal" characters...

2020-04-16 Thread tuxic
On 04/16 11:29, Rich Freeman wrote:
> On Thu, Apr 16, 2020 at 11:19 AM Neil Bothwick  wrote:
> >
> > On Thu, 16 Apr 2020 17:15:45 +0200, tu...@posteo.de wrote:
> >
> > > a loop like this
> > >
> > > for fn in asd* ; do
> > > do_something $fn
> > > done
> > >
> > > fails, when a file is named like this:
> > >
> > > List of OSses allowing spaces in filenames.txt
> > >
> >
> > do_something "$fn"
> >
> 
> That, or use ${fn} - that might be more resistant to quotes in
> filenames though I haven't looked closely into that.
> 
> If you look at most ebuilds they're full of quoted or braced variables
> for exactly this reason.  If you want to stick spaces in your
> directory paths that is your mess to deal with, but Gentoo won't
> break.
> 
> On a side note, if you have a directory full of crufty filenames the
> detox program is very useful for cleaning them up.  Of course, that is
> invasive and you probably don't want to rely on that in your script.
> 
> -- 
> Rich
> 

Hi Rich,

these [CENSORED] filenames are mainly copies from the contents of
usbstick, which were previoysly filled using machines, which were
neither UNICES nor Linuxxes nor MacOSxxes ... you know what I mean.
I myself stick to sane filenames. 

Detox is known to me. But for certain reasons I cannot change the
filenames now...I have to process them first.

Cheers!
Meino





Re: [gentoo-user] Question about handling filenames with "illegal" characters...

2020-04-16 Thread tuxic
On 04/16 04:19, Neil Bothwick wrote:
> On Thu, 16 Apr 2020 17:15:45 +0200, tu...@posteo.de wrote:
> 
> > a loop like this
> > 
> > for fn in asd* ; do
> > do_something $fn
> > done
> > 
> > fails, when a file is named like this:
> > 
> > List of OSses allowing spaces in filenames.txt
> > 
> 
> do_something "$fn"
> 
> Would this work?
> 
> 
> -- 
> Neil Bothwick
> 
> C:\BELFRY is where I keep my .BAT files ^^^oo^^^


Hi Neil,

is this the "Bothwick effect" ?

This was the first I tried after my script failed...and it failed
again after adding the "".
I tried it again...and now it works. 
Only difference: I did it from the commandline (using zsh).

I am baffled.

But it is better, I don't completely understand, whu it is working
now than vice versa ;)

Cheers!
Meino






[gentoo-user] Question about handling filenames with "illegal" characters...

2020-04-16 Thread tuxic
Hi,

a loop like this

for fn in asd* ; do
do_something $fn
done

fails, when a file is named like this:

List of OSses allowing spaces in filenames.txt

.

Normally I would replace the asd* with the according

find . -name 'asd*' -print0 | 

but I got in trpuble, because "do_something" 
now misunderstood the whole thing.

Is there a way to express $fn in a way, so that
do_something get one filename at a time and
whole thing does not is torn apart by some
not so nice filenames?

Cheers!
Meino






Re: [gentoo-user] Re: Sudden case fan problems by switching to new kernel...

2020-04-15 Thread tuxic
On 04/15 05:13, Ian Zimmerman wrote:
> On 2020-04-15 07:29, tu...@posteo.de wrote:
> 
> > The configuration for kernel 5.6.3. (vanilla) works fine.for me.  Then
> > I changed to kernel 5.6.4 using the same configuration.
> > 
> > Suddenlu the fan at the back of my PC case never stops from rotating
> > at its highest speed.  Changing back to kernel 5.6.3. and the problem
> > is gone.
> 
> Something similar happened to me too with a recent kernel upgrade but in
> the 5.4's.
> 
> The reason was that my kernel config changed to build the default CPU
> powersave driver as a module, and apparently that is a poor idea, it
> needs to be built in.  When I rebuilt the kernel with the driver built
> in, the fan went back to normal.
> 
> In your case: are both scenarios on the same hardware, since as we all
> know you're just switching?
> 
> -- 
> Ian
> 
Hi Ian,

I only switched the kernel. Anything else remains the same. I will
check for the "modules effect" you described and I am prettu sure,
that this will in my case, also!

I will report later, if a will have some results...

Cheers!
Meino





[gentoo-user] Sudden case fan problems by switching to new kernel...

2020-04-14 Thread tuxic
Hi,

The configuration for kernel 5.6.3. (vanilla) works fine.for me.
Then I changed to kernel 5.6.4 using the same configuration.

Suddenlu the fan at the back of my PC case never stops from
rotating at its highest speed.
Changing back to kernel 5.6.3. and the problem is gone.

On the internet I found one report of a fan problem after
an upgrade of Ubuntu...but that was 5 years ago...

I compared the entries in /sys/devices/platform/nct6775.2592/hwmon/hwmon1/*
between the two kernels but found nothing obvious.

The CPU temperature was around 45° C in both cases.

Waiting does not help also...
(in case kinda 'settling time' has changed...or so...)

Is there any other place to investigate?
What could be the root of this?

Cheers!
Meino








Re: [gentoo-user] Understanding fstrim...

2020-04-13 Thread tuxic
On 04/13 04:58, Rich Freeman wrote:
> On Mon, Apr 13, 2020 at 4:34 PM antlists  wrote:
> >
> > aiui, the spec says you can send a command "trim 1GB starting at block
> > X". Snag is, the linux block size of 4KB means that it gets split into
> > loads of trim commands, which then clogs up all the buffers ...
> >
> 
> Hmm, found the ATA spec at:
> http://nevar.pl/pliki/ATA8-ACS-3.pdf
> 
> In particular page 76 which outlines the LBA addressing for TRIM.  It
> looks like up to 64k ranges can be sent per trim, and each range can
> cover up to 64k blocks.  So that is 2^32 blocks per trim command, or
> 2TiB of data per TRIM if the blocks are 512 bytes (which I'm guessing
> is the case for ATA but I didn't check).  The command itself would be
> half a megabyte since each range is 64 bits.
> 
> But if the kernel chops them up as you say that will certainly add
> overhead.  The drive controller itself is probably the bigger
> bottleneck unless it is designed to do fast TRIMs.
> 
> -- 
> Rich
> 

Hi all,

thanks **a lot** for all this great information! :)

Since I have a NVMe drive on a M.2 socket I would
be interested at what level/stage (?word? ...sorry...) 
the data go a different path as with the classical sata
SSDs.

Is this just "protocol" or there is something different?
On the internet I read, that the io-scheduler is choosen 
differentlu by the kernel, if there is a NVMe driven detected,
for example.
(I think, the io-scheduler has nothing to do with the fstrim
operation itsself (I think...) -- it is there only as an example...)

I think, due to the corona lockdown I have to fstrim my hair
myself  :) 8)

Cheers!
Meino





Re: [gentoo-user] Understanding fstrim...

2020-04-13 Thread tuxic
On 04/13 08:18, Rich Freeman wrote:
> On Mon, Apr 13, 2020 at 7:55 AM Michael  wrote:
> >
> > I have noticed when prolonged fstrim takes place on an old SSD drive of mine
> > it becomes unresponsive.  As Rich said this is not because data is being
> > physically deleted, only a flag is switched from 1 to 0 to indicate its
> > availability for further writes.
> 
> That, and it is going about it in a brain-dead manner.
> 
> A modern drive is basically a filesystem of sorts.  It just uses block
> numbers instead of filenames, but it can be just as complex
> underneath.
> 
> And just as with filesystems there are designs that are really lousy
> and designs that are really good.  And since nobody sees the source
> code or pays much attention to the hidden implementation details, it
> is often not designed with your requirements in mind.
> 
> I suspect a lot of SSDs are using the SSD-equivalent of FAT32 to
> manage their block remapping.  Some simple algorithm that gets the job
> done but which doesn't perform well/etc.
> 
> This makes me wonder if there would be a benefit from coming up with a
> flash block layer of some sort that re-implements this stuff properly.
> We have stuff like f2fs which does this at the filesystem level.
> However, this might be going too far as this inevitably competes with
> the filesystem layer on features/etc.
> 
> Maybe what we need is something more like lvm for flash.  It doesn't
> try to be a filesystem.  It just implements block-level storage
> mapping one block device to a new block device.  It might very well
> implement a log-based storage layer.  It would accept TRIM commands
> and any other related features.  It would then have a physical device
> translation layer.  Maybe it would be aware of different drive models
> and their idiosyncrasies, so on some drives it might just be a NOOP
> passthrough and on other drives it implements its own log-based
> storage with batched trims on large contiguous regions, and so on.
> Since it isn't a full POSIX filesystem it could be much simpler and
> just focus on the problem it needs to solve - dealing with brain-dead
> SSD controllers.
> 
> -- 
> Rich
> 
Hi Rich, hi Michael,

THAT is information I like...now I start(!) to understand the "inner
mechanics" of fstrim...thank you very much!!! :::)))

One quesion -- not to express any doubt of what you wrote Rich, but onlu
to check, whether I understand that detail or not:

Fstrim "allows" the drive to trim ittself. The actual "trimming" is
done by the drive ittself without any interaction from the outside
of the SSD.

You wrote:

> > Now, the drive controller needs to keep track of which blocks are in
> > use (which it does whether you use fstrim or not), and that data is
> > probably stored in some kind of flash so that it is persistent, but
> > presumably that is managed in such a manner that it is unlikely to
> > fail before the rest of the drive fails.

and:
> > Fundamentally trimming is just giving the drive more information about
> > the importance of the data it is storing.  Just about any filesystem

For me (due my beginners level of knowing the "behind the scene"
things) this is kinda contradictionous.

On the one hand, the SSD drive keeps track of the information, what
blocks are used and unused. And trimming is done by the drive in
itsself. On the other hand trimming is "just giving the drive more
information about"

What kind of information does the commandline tool fstrim transfers to
the SSD beside the command "fstrim yourself" (an ioctl, I think?),
which is needed to fstrim the blocks and what kind of information is
the SDD collecting itsself for this purpose?

Cheers!
Meino






>



Re: [gentoo-user] Understanding fstrim...

2020-04-13 Thread tuxic


Hi Michael,

thank you for replying to my questions! :)

On 04/13 11:06, Michael wrote:
> On Monday, 13 April 2020 06:32:37 BST tu...@posteo.de wrote:
> > Hi,
> > 
> > From the list I already have learned, that most of my concerns regarding
> > the lifetime and maintainance to prolong it are without a
> > reason.
> 
> Probably your concerns about SSD longevity are without a reason, but keep up 
> to date backups just in case.  ;-)

...of course! :)
My question are more driven by curiousty than by anxiety...

> > Nonetheless I am interested in the technique as such.
> > 
> > My SSD (NVme/M2) is ext4 formatted and I found articles on the
> > internet, that it is neither a good idea to activate the "discard"
> > option at mount time nor to do a fstrim either at each file deletion
> > no triggered by a cron job.
> 
> Beside what the interwebs say about fstrim, the man page provides good 
> advice.  
> They recommend running a cron job once a week, for most desktop and server 
> implementations.

...but it neither explains why to do so nor does it explain the technical
background.

For example it saus:
"For most desktop and server systems a sufficient trimming frequency  is
once  a week."

...but why is this ok to do so? Are all PCs made equal? Are all
use cases are equal? It even does not distinguish between SSD/Sata 
and SSD/NVMe(M2 in my case).

These are the points, where my curiousty kicks in and I am starting
to ask questions.

:)

> > Since there seems to be a "not so good point in time", when to do a
> > fstrim, I think there must also be a point in time, when it is quite
> > right to fstrim the mu SSD.
> > 
> > fstrim clears blocks, which currently are not in use and which
> > contents is != 0.
> > 
> > The more unused blocks there are, which has a contents != 0, the
> > lesser the count of blocks is, which the wear leveling algorithm can
> > use for its purpose.
> 
> The wear levelling mechanism is using the HPA as far as I know, although you 
> can always overprovision it.[1]

For example: Take an SSD with 300 GB user-useable space. To
over-overprovisioning the device the user decides to partitioning
only the half of the disk and format it. The rest is left untouched in
"nowhere land".
Now the controller has a lot of space to shuffle data around.
Fstrim only works on the mounted part of the SSD. So the used blocks
in "nowhere land" remain...unfstrimmed?

To not to use all available space for the partitions is a hint I found
online...and then I asked me the question above...

If what I read online is wrong my assumptions are wrong...which
isn't reassuring either.

> 
> > That leads to the conclusion: to fstrim as often as possible, to keep the
> > count of empty blocks as high as possible.
> 
> Not really.  Why would you need the count of empty blocks as high as 
> possible, 

Unused blocks with data cannot be used for wearleveling. Suppose you
have a total amount of 100 block, 50 blocks are used, 25 are unused
and empty, 25 are unused and filled with former data.

In this case only 25 blocks are available to spread the next write
operation.

After fstrim 50 blocks would be available again and the same amount of
writes could now be spread over 50 sectors.

At least that is what I read online...

> unless you are about to right some mammoth file and *need* to use up every 
> available space possible on this disk/partition?
> 
> 
> > BUT: Clearing blocks is an action, which includes writes to the cells of
> > the SSD.
> > 
> > Which is not that nice.
> 
> It's OK, as long as you are not over-writing cells which do not need to be 
> overwritten.  Cells with deleted data will be overwritten as some point.
> 
> 
> > Then, do a fstrim just in the moment, when there is no useable block
> > left.
> 
> Why leave it at the last moment and incur a performance penalty while waiting 
> for fstrim to complete?
 
Performance is not my concern (at least in the moment ;) ). I try to
fully understand the mechanisms here, since what I read online is not
without contradictions...

 
> > Then the wear-leveling algorithm is already at its limits.
> > 
> > Which is not that nice either.
> > 
> > The truth - as so often - is somewhere in between.
> > 
> > Is it possible to get an information from the SSD, how many blocks are
> > in the state of "has contents" and "is unused" and how many blocks are
> > in the state of "has *no* contents" and "is unused"?
> > 
> > Assuming this information is available: Is it possible to find the
> > sweat spot, when to fstrim SSD?
> 
> I humbly suggest you may be over-thinking something a cron job running fstrim 
> once a week, or once a month, or twice a month would take care of without you 
> knowing or worrying about.

To technically overthink problems is a vital part of my profession and exactly 
what
I am asked for. I cannot put this behaviour down so easily. :)
>From my experience there aren't too manu questions, Michael, there is
often only a lack of related answers.


> Nevertheles

  1   2   3   4   5   6   >