Re: [gentoo-user] cryptsetup close and device in use when it is not

2021-06-27 Thread Dale
Dale wrote:
> Dale wrote:
>> Dale wrote:
>>> Dale wrote:
 Dale wrote:
> Jack wrote:
>> Is it possible it was still syncing cache out to the physical drive? 
>> I wonder if iotop would show any activity for that drive if that's the
>> case?
>>
>> Jack
>>
>>
>>
> I may try that next time but the light had stopped blinking for several
> minutes.  Since it is a SMR drive, I always leave it running until I
> can't feel the heads bumping around.  I don't think it would be that
> but, it's worth a try. It may lead to something. 
>
> Will update when it does it again. 
>
> Thanks.
>
> Dale
>
> :-)  :-) 
>
 I had to wait until I was doing backups again to try anything.  The 6TB
 drive did fine.  The 8TB drive is giving the in use error.  The drive is
 unmounted but iotop didn't show anything and the light isn't blinking
 either.  I'd think if it was flushing cache the light would flash and it
 would not umount. 

 I tried the udev-trigger trick but it didn't work.  I don't know how
 long it will stay 'in use' so if anyone has ideas, think and type fast. 
 If not, may have to wait until next time to try again.

 Dale

 :-)  :-) 

>>> Some more info:
>>>
>>>
>>> root@fireball / # lvs
>>>   LV VG Attr   LSize   Pool Origin Data%  Meta%  Move Log
>>> Cpy%Sync Convert
>>>   Home2  Home2  -wi-ao
>>> <12.74t   
>>>   swap   OS -wi-ao 
>>> 12.00g   
>>>   usr    OS -wi-ao 
>>> 35.00g   
>>>   var    OS -wi-ao 
>>> 52.00g   
>>>   backup backup -wi-ao
>>> 698.63g   
>>> root@fireball / # vgs
>>>   VG #PV #LV #SN Attr   VSize    VFree 
>>>   Home2    2   1   0 wz--n-  <12.74t  0
>>>   OS   1   3   0 wz--n- <124.46g <25.46g
>>>   backup   1   1   0 wz--n-  698.63g  0
>>> root@fireball / # pvs
>>>   PV VG Fmt  Attr PSize    PFree 
>>>   /dev/sda7  OS lvm2 a--  <124.46g <25.46g
>>>   /dev/sdb1  Home2  lvm2 a--    <5.46t  0
>>>   /dev/sdc1  Home2  lvm2 a--    <7.28t  0
>>>   /dev/sdd1  backup lvm2 a--   698.63g  0
>>> root@fireball / # cryptsetup close 8tb
>>> Device 8tb is still in use.
>>> root@fireball / #
>>>
>>>
>>> As you can see, lvm doesn't even show the device but it is still under
>>> /dev as tho it is available.  Weird. 
>>>
>>> I found this but at the end, the command doesn't help me.  I'm not sure
>>> why.  It does talk about using LUKS on top of LVM causing this problem. 
>>> Since the fix doesn't work, is this a different problem??
>>>
>>>
>>> https://linux-blog.anracom.com/tag/device-still-in-use/
>>>
>>>
>>> I've tried every command I can find and it still shows busy.  I even
>>> restarted udev and lvm.  Still busy. 
>>>
>>> Ideas?
>>>
>>> Dale
>>>
>>> :-)  :-) 
>>>
>> Found another tidbit of info that may shed some light on this problem. 
>> I'm not sure what it means tho.
>>
>>
>>
>> root@fireball / # lsblk
>> NAME  MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
>> <<>>
>> sdj 8:144  1   7.3T  0 disk 
>> └─sdj1  8:145  1   7.3T  0 part 
>>   └─8tb   254:5    0   7.3T  0 crypt /mnt/8tb
>> sr0    11:0    1  1024M  0 rom  
>> root@fireball / #
>>
>>
>> So, something called crypt seems to have it open.  Now how do I tell it
>> to go away?  H.  Then I came up with this idea:
>>
>>
>> root@fireball / # ps aux | grep crypt
>> root   493  0.0  0.0  0 0 ?    I<   Jun13   0:00 [cryptd]
>> root 11509  0.0  0.0   7728  2448 pts/2    S+   00:30   0:00 grep
>> --colour=auto crypt
>> root 23667  0.0  0.0  0 0 ?    I<   Jun20   0:00
>> [kcryptd_io/254:]
>> root 23668  0.0  0.0  0 0 ?    I<   Jun20   0:00
>> [kcryptd/254:5]
>> root 23669  0.0  0.0  0 0 ?    S    Jun20   0:00
>> [dmcrypt_write/2]
>> root@fireball / #
>>
>>
>> So kcryptd is the offender it seems since it matches MAJ:MIN info.  I
>> assume that is kernel related not KDE.  Can I just kill that process? 
>> Will it do damage if I kill it or is there a better way? 
>>
>> Dale
>>
>> :-)  :-) 
>>
>
> After staring at it a while, it hit me that lsblk is showing it as still
> mounted, even tho I umounted already without error.  So, I just ran the
> umount command again.  After that, it closed just fine.  So, it seems to
> be mounted twice, not once.  I mount using this command 'mount /mnt/8tb'
> which uses fstab to mount the correct UUID device to that mount point. 
> Surely it only mounts once.  Always has in the past.  So why is it being
> mounted twice now?  None of my scripts used for backups includes any
> mounting commands.  There's also only one entry in fstab as well. 
>
> 

Re: [gentoo-user] Re: Smplayer adjusting PCM level in Kmix.

2021-06-27 Thread Dale
Michael wrote:
> On Sunday, 27 June 2021 19:33:46 BST Dale wrote:
>
>> I thought mplayer was supposed to be the big dog in video players. I
>> recall slightly there being a debate about it but I thought mplayer won
>> the day.  Am I wrong or has things changed since then??
> Random linky says mpv is better:
>
> https://www.slant.co/versus/13972/13973/~mplayer_vs_mpv
>
> From what I recall mplayer doesn’t support VAAPI for hardware acceleration, 
> but I moved from mplayer to mpv quite a few years now and have not kept up 
> with mplayer's development.  As a matter of fact I had to check mplayer was 
> still in portage!  :-)
>
> Anyway, better informed chattering users express their views here:
>
> https://www.reddit.com/r/archlinux/comments/43ky44/
> mplayer_mplayer2_mpv_which_one_is_your_choice_and/

When gnome-player finally stops working, I'll switch.  I'm afraid to
switch right now because it may break gnome-player.  It may not even
compile anymore basically.  I'm testing other players but all of them
have their cons, which annoys me.  I'm a creature of habit.

Thanks for the info.  At least now I know. 

Dale

:-)  :-) 



Re: [gentoo-user] Re: Smplayer adjusting PCM level in Kmix.

2021-06-27 Thread Michael
On Sunday, 27 June 2021 19:33:46 BST Dale wrote:
> Grant Edwards wrote:
> > On 2021-06-27, Dale  wrote:
> >> one thing that Smplayer does that annoys me is each time it starts a
> >> new video, from either a fresh start or next video in the playlist,
> >> it adjusts the PCM sound level in Kmix.
> > 
> > I still use mplayer a lot, and it doesn't do that. Whenver I start
> > mplayer the volume is always whereever I left it last.
> > 
> > --
> > Grant
> 
> I think it is a Smplayer bug.  The idea Michael had worked.  I don't
> understand why but it worked. 

From what you described, 'something' was reverting audio to a preset volume 
level.  If it wasn't kmix's desktop setting, I assumed it would be application 
specific.


> I thought mplayer was supposed to be the big dog in video players. I
> recall slightly there being a debate about it but I thought mplayer won
> the day.  Am I wrong or has things changed since then??

Random linky says mpv is better:

https://www.slant.co/versus/13972/13973/~mplayer_vs_mpv

From what I recall mplayer doesn’t support VAAPI for hardware acceleration, 
but I moved from mplayer to mpv quite a few years now and have not kept up 
with mplayer's development.  As a matter of fact I had to check mplayer was 
still in portage!  :-)

Anyway, better informed chattering users express their views here:

https://www.reddit.com/r/archlinux/comments/43ky44/
mplayer_mplayer2_mpv_which_one_is_your_choice_and/


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


Re: [gentoo-user] Re: Smplayer adjusting PCM level in Kmix.

2021-06-27 Thread Dale
Grant Edwards wrote:
> On 2021-06-27, Dale  wrote:
>
>> one thing that Smplayer does that annoys me is each time it starts a
>> new video, from either a fresh start or next video in the playlist,
>> it adjusts the PCM sound level in Kmix.
> I still use mplayer a lot, and it doesn't do that. Whenver I start
> mplayer the volume is always whereever I left it last.
>
> --
> Grant

I think it is a Smplayer bug.  The idea Michael had worked.  I don't
understand why but it worked. 

I thought mplayer was supposed to be the big dog in video players. I
recall slightly there being a debate about it but I thought mplayer won
the day.  Am I wrong or has things changed since then??

Dale

:-)  :-)



Re: [gentoo-user] Smplayer adjusting PCM level in Kmix.

2021-06-27 Thread Dale
Michael wrote:
> On Sunday, 27 June 2021 10:54:46 BST John Covici wrote:
>> On Sat, 26 Jun 2021 23:52:51 -0400,
>>
>> Dale wrote:
>>> Howdy,
>>>
>>> I've had this problem for a really long time.  I've tried adjusting
>>> settings in Smplayer to stop it but so far, I have not found the magic
>>> combination or option to change.  I don't have pulseaudio here.  Just
>>> Alsa and friends. 
>>>
>>> As some know, I use Smplayer to watch TV with.  I use the old dying
>>> Gnome-player to watch other videos on my computer screen and sound
>>> through computer speakers.  I tend to watch fix it videos etc with
>>> Gnome-player.  Anyway, one thing that Smplayer does that annoys me is
>>> each time it starts a new video, from either a fresh start or next video
>>> in the playlist, it adjusts the PCM sound level in Kmix. Usually it
>>> adjusts it down to almost mute.  I've seen it adjust down to 6 and even
>>> 2.  Either way, no sound.  I've tried every setting in Smplayer and the
>>> audio section I can find and no matter what, it adjusts the PCM sound
>>> level in Kmix every single time.  It's annoying as heck.  I think I've
>>> looked in every config file that deals with sound.  I've removed or
>>> commented out a lot of volume settings with no change.
>>>
>>> Does anyone know if there is a way to tell it to knock it off?  It's
>>> getting so annoying, I'm thinking about abandoning Smplayer.  So far, I
>>> haven't seen any other player do this.  That's why I think it is a
>>> Smplayer setting somewhere.  By the way, Smplayer is set to not change
>>> volume with Kmix or anything else.  I adjust the volume on the TV
>>> itself, with a remote.  One woould think that it bypassing sound control
>>> devices that it would also leave Kmix alone, since it shouldn't even be
>>> going through it anyway. 
>>>
>>> Ideas? 
>> Does the same happen with mpv?   I never use mplayer anymore.
> Also, does setting the volume with SMplayer itself at a certain level, rather 
> than Kmix, make it stick?


This is weird.  The way Smplayer is set, the volume thingy doesn't do
anything.  Basically, it goes from video directly to the TV.  That said,
I went and set it to like half way and I've been playing videos all
night and some today, other than when I was on a roof painting.  So far,
the volume has stuck to what it is set to in Smplayer, even tho the
volume thingy is disabled.  I'm confused.  Why is something that is
disabled in Smplayer changing Kmix???  It works so I'm not complaining. :-D

I took pics of my freshly painted roof, shop not house. Now my phone
won't pop up in the notifier 'do dad' when I plug it up.  I can't mount
it or even get it to see it even tho I allow it to connect on the phone
screen.  It worked a few weeks ago.  May have to get my hammer.  ROFL

Thanks for the idea.  I would never have thought to try that.  It has
been annoying me for months maybe even a year. 

Dale

:-)  :-)



[gentoo-user] Re: Smplayer adjusting PCM level in Kmix.

2021-06-27 Thread Grant Edwards
On 2021-06-27, Dale  wrote:

> one thing that Smplayer does that annoys me is each time it starts a
> new video, from either a fresh start or next video in the playlist,
> it adjusts the PCM sound level in Kmix.

I still use mplayer a lot, and it doesn't do that. Whenver I start
mplayer the volume is always whereever I left it last.

--
Grant




Re: [gentoo-user] New install - Wayland and graphical login

2021-06-27 Thread antlists

On 27/06/2021 16:14, Jack wrote:
I noticed that one post mentioned /dev/card1 and the other talked about 
/dev/dri/card0.  If the former was not a typo omitting /dri/ then that 
might be something to check out.




The former was a what I remembered ... quite possibly wrong ... :-)

Cheers,
Wol



Re: [gentoo-user] New install - Wayland and graphical login

2021-06-27 Thread Jack
I noticed that one post mentioned /dev/card1 and the other talked about 
/dev/dri/card0.  If the former was not a typo omitting /dri/ then that 
might be something to check out.





Re: [gentoo-user] New install - Wayland and graphical login

2021-06-27 Thread Michael
On Sunday, 27 June 2021 12:52:39 BST antlists wrote:
> On 27/06/2021 11:36, Michael wrote:

> > You're meant to be running X11 as a non-root user.
> 
> And if the only user on the system is root, which I'm logged in as :-)

Then create a plain non-root user account and login as such.


> >> As I said earlier, X currently won't run. I've got a Asus EAH4350, and
> >> am loading the Radeon driver.
> > 
> > I am not familiar with the model and any APU/graphics options it may be
> > furnished with.  You have not shared what the video card might be.
> 
> Well, "Asus EAH4350" is what it says on the box.
> 
> >  A quick
> > search on the interwebs mention an AMD R700 family, HD4350 card. 
> > According
> 
> > to:
> So I guess Asus have rebadged the 4350 chipset, and those drivers should
> work.

I don't know if this is so and what might be in the box.  Only you can 
determine this, definitively, if you follow the guide in the wiki URL below:

> > https://wiki.gentoo.org/wiki/Radeon
> > 
> > such a card requires in your make.conf:
> > 
> > VIDEO_CARDS="radeon r600"
> > 
> > emerge 'sys-kernel/linux-firmware' and in your kernel specify the
> > following
> > firmware:
> > 
> > radeon/R600_rlc.bin radeon/RS780_uvd.bin radeon/RS780_pfp.bin radeon/
> > RS780_me.bin
> 
> Thanks. I'll add all that stuff ...

Best you establish first what video hardware is available in this PC, as per 
the wiki page I posted above, then add the correct corresponding firmware and 
drivers, before you rebuild your kernel, update @world and reboot.

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


Re: [gentoo-user] New install - Wayland and graphical login

2021-06-27 Thread antlists

On 27/06/2021 11:36, Michael wrote:

On Sunday, 27 June 2021 10:05:59 BST Wols Lists wrote:

On 21/06/21 16:17, Michael wrote:

Have you tried using a Display Manager?  Some of my systems won't work
with
Wayland, but I haven't spent time to find out why all I get with them is a
black screen.

Anyway, from a VT you'd run something like:

XDG_SESSION_TYPE=wayland dbus-run-session startplasma-wayland


Okay, we're slowly moving forward ...

My first attempt got the error "kwin-plasma won't run as root" or
somesuch. Created a new user for me, and promptly got a black screen!


You're meant to be running X11 as a non-root user.


And if the only user on the system is root, which I'm logged in as :-)



As I said earlier, X currently won't run. I've got a Asus EAH4350, and
am loading the Radeon driver.


I am not familiar with the model and any APU/graphics options it may be
furnished with.  You have not shared what the video card might be.


Well, "Asus EAH4350" is what it says on the box.


 A quick
search on the interwebs mention an AMD R700 family, HD4350 card.  According
to:


So I guess Asus have rebadged the 4350 chipset, and those drivers should 
work.


https://wiki.gentoo.org/wiki/Radeon

such a card requires in your make.conf:

VIDEO_CARDS="radeon r600"

emerge 'sys-kernel/linux-firmware' and in your kernel specify the following
firmware:

radeon/R600_rlc.bin radeon/RS780_uvd.bin radeon/RS780_pfp.bin radeon/
RS780_me.bin


Thanks. I'll add all that stuff ...



When I looked at the X log it was clearly
loading the driver, which failed with something like "cannot find
/dev/card1". If that gives anyone any clues where to point me that's
great, or I'll transfer the logs to this machine and post them.

Cheers,
Wol


dmesg will show if there is any problem with the kernel missing modules, or
having problems loading firmware;

/var/log/Xorg.0.log will show what problems X11 comes up with when it tries to
launch.

Normally /dev/dri/card0 is the first card being loaded:

$ grep -i card /var/log/Xorg.0.log
[37.111] (II) xfree86: Adding drm device (/dev/dri/card0)
[37.148] (II) xfree86: Adding drm device (/dev/dri/card1)
[38.366] (II) Applying OutputClass "Radeon" to /dev/dri/card0
[38.367] (II) Applying OutputClass "Radeon" to /dev/dri/card1

Thank you very much. Let's see whether that fixes the problem with 
Wayland, too. I found an interesting blog by ?Michael Graesslin on 
fixing the "black screen in Wayland" problem, but a lot of it dates from 
2016. If Wayland doesn't fix itself, I'll work my way through that, but 
it looks like there's a LOT of things that can go wrong and cause 
problems...


Cheers,
Wol



Re: [gentoo-user] Smplayer adjusting PCM level in Kmix.

2021-06-27 Thread Michael
On Sunday, 27 June 2021 10:54:46 BST John Covici wrote:
> On Sat, 26 Jun 2021 23:52:51 -0400,
> 
> Dale wrote:
> > Howdy,
> > 
> > I've had this problem for a really long time.  I've tried adjusting
> > settings in Smplayer to stop it but so far, I have not found the magic
> > combination or option to change.  I don't have pulseaudio here.  Just
> > Alsa and friends. 
> > 
> > As some know, I use Smplayer to watch TV with.  I use the old dying
> > Gnome-player to watch other videos on my computer screen and sound
> > through computer speakers.  I tend to watch fix it videos etc with
> > Gnome-player.  Anyway, one thing that Smplayer does that annoys me is
> > each time it starts a new video, from either a fresh start or next video
> > in the playlist, it adjusts the PCM sound level in Kmix. Usually it
> > adjusts it down to almost mute.  I've seen it adjust down to 6 and even
> > 2.  Either way, no sound.  I've tried every setting in Smplayer and the
> > audio section I can find and no matter what, it adjusts the PCM sound
> > level in Kmix every single time.  It's annoying as heck.  I think I've
> > looked in every config file that deals with sound.  I've removed or
> > commented out a lot of volume settings with no change.
> > 
> > Does anyone know if there is a way to tell it to knock it off?  It's
> > getting so annoying, I'm thinking about abandoning Smplayer.  So far, I
> > haven't seen any other player do this.  That's why I think it is a
> > Smplayer setting somewhere.  By the way, Smplayer is set to not change
> > volume with Kmix or anything else.  I adjust the volume on the TV
> > itself, with a remote.  One woould think that it bypassing sound control
> > devices that it would also leave Kmix alone, since it shouldn't even be
> > going through it anyway. 
> > 
> > Ideas? 
> 
> Does the same happen with mpv?   I never use mplayer anymore.

Also, does setting the volume with SMplayer itself at a certain level, rather 
than Kmix, make it stick?


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


Re: [gentoo-user] New install - Wayland and graphical login

2021-06-27 Thread Michael
On Sunday, 27 June 2021 10:05:59 BST Wols Lists wrote:
> On 21/06/21 16:17, Michael wrote:
> > Have you tried using a Display Manager?  Some of my systems won't work
> > with
> > Wayland, but I haven't spent time to find out why all I get with them is a
> > black screen.
> > 
> > Anyway, from a VT you'd run something like:
> > 
> > XDG_SESSION_TYPE=wayland dbus-run-session startplasma-wayland
> 
> Okay, we're slowly moving forward ...
> 
> My first attempt got the error "kwin-plasma won't run as root" or
> somesuch. Created a new user for me, and promptly got a black screen!

You're meant to be running X11 as a non-root user.


> As I said earlier, X currently won't run. I've got a Asus EAH4350, and
> am loading the Radeon driver.

I am not familiar with the model and any APU/graphics options it may be 
furnished with.  You have not shared what the video card might be.  A quick 
search on the interwebs mention an AMD R700 family, HD4350 card.  According 
to:

https://wiki.gentoo.org/wiki/Radeon

such a card requires in your make.conf:

VIDEO_CARDS="radeon r600"

emerge 'sys-kernel/linux-firmware' and in your kernel specify the following 
firmware:

radeon/R600_rlc.bin radeon/RS780_uvd.bin radeon/RS780_pfp.bin radeon/
RS780_me.bin


> When I looked at the X log it was clearly
> loading the driver, which failed with something like "cannot find
> /dev/card1". If that gives anyone any clues where to point me that's
> great, or I'll transfer the logs to this machine and post them.
> 
> Cheers,
> Wol

dmesg will show if there is any problem with the kernel missing modules, or 
having problems loading firmware;

/var/log/Xorg.0.log will show what problems X11 comes up with when it tries to 
launch.

Normally /dev/dri/card0 is the first card being loaded:

$ grep -i card /var/log/Xorg.0.log
[37.111] (II) xfree86: Adding drm device (/dev/dri/card0)
[37.148] (II) xfree86: Adding drm device (/dev/dri/card1)
[38.366] (II) Applying OutputClass "Radeon" to /dev/dri/card0
[38.367] (II) Applying OutputClass "Radeon" to /dev/dri/card1



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


Re: [gentoo-user] Smplayer adjusting PCM level in Kmix.

2021-06-27 Thread John Covici
On Sat, 26 Jun 2021 23:52:51 -0400,
Dale wrote:
> 
> Howdy,
> 
> I've had this problem for a really long time.  I've tried adjusting
> settings in Smplayer to stop it but so far, I have not found the magic
> combination or option to change.  I don't have pulseaudio here.  Just
> Alsa and friends. 
> 
> As some know, I use Smplayer to watch TV with.  I use the old dying
> Gnome-player to watch other videos on my computer screen and sound
> through computer speakers.  I tend to watch fix it videos etc with
> Gnome-player.  Anyway, one thing that Smplayer does that annoys me is
> each time it starts a new video, from either a fresh start or next video
> in the playlist, it adjusts the PCM sound level in Kmix. Usually it
> adjusts it down to almost mute.  I've seen it adjust down to 6 and even
> 2.  Either way, no sound.  I've tried every setting in Smplayer and the
> audio section I can find and no matter what, it adjusts the PCM sound
> level in Kmix every single time.  It's annoying as heck.  I think I've
> looked in every config file that deals with sound.  I've removed or
> commented out a lot of volume settings with no change.
> 
> Does anyone know if there is a way to tell it to knock it off?  It's
> getting so annoying, I'm thinking about abandoning Smplayer.  So far, I
> haven't seen any other player do this.  That's why I think it is a
> Smplayer setting somewhere.  By the way, Smplayer is set to not change
> volume with Kmix or anything else.  I adjust the volume on the TV
> itself, with a remote.  One woould think that it bypassing sound control
> devices that it would also leave Kmix alone, since it shouldn't even be
> going through it anyway. 
> 
> Ideas? 
Does the same happen with mpv?   I never use mplayer anymore.

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

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



Re: [gentoo-user] New install - Wayland and graphical login

2021-06-27 Thread Wols Lists
On 21/06/21 16:17, Michael wrote:
> Have you tried using a Display Manager?  Some of my systems won't work with 
> Wayland, but I haven't spent time to find out why all I get with them is a 
> black screen.
> 
> Anyway, from a VT you'd run something like:
> 
> XDG_SESSION_TYPE=wayland dbus-run-session startplasma-wayland

Okay, we're slowly moving forward ...

My first attempt got the error "kwin-plasma won't run as root" or
somesuch. Created a new user for me, and promptly got a black screen!

As I said earlier, X currently won't run. I've got a Asus EAH4350, and
am loading the Radeon driver. When I looked at the X log it was clearly
loading the driver, which failed with something like "cannot find
/dev/card1". If that gives anyone any clues where to point me that's
great, or I'll transfer the logs to this machine and post them.

Cheers,
Wol