Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-20 Thread Dr Rainer Woitok
Mick,

On Friday, 2019-12-20 13:38:27 +, you wrote:

> ...
> Whichever command the xface desktop is running when you select Suspend/
> Hibernate using the GUI.

Problem is  I can't select  Suspend/Hibernate  in the GUI.   It's greyed
out.  And selecting Hibernate via the power button only locks the screen
but does not otherwise leave any traces on the terminal,  in syslog, nor
in Xorg.0.log :-(

And I have now idea how to find out what Xfce WOULD send, if the buttons
weren't greyed out.

Sincerely,
  Rainer



Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-20 Thread Mick
On Friday, 20 December 2019 13:25:44 GMT Dr Rainer Woitok wrote:
> Mick,
> 
> On Friday, 2019-12-20 11:46:43 +, you wrote:
> > ...
> > 
> >
I
> > 
> > don't use this desktop to be able to advise further, but generally I would
> > try to run the command as a plain user while keeping an eye on the
> > terminal, syslog, and xorg.0.log, for any messages pointing to the
> > underlying problem.
> Erm, which command precisely are you suggesting to run as a plain user?
> 
> Sincerely,
>   Rainer

Whichever command the xface desktop is running when you select Suspend/
Hibernate using the GUI.  I expect it is using dbus-send with 
org.freedesktop.UPower to Suspend/Hibernate.  I can't try it on my desktop at 
the moment, because I'm in the middle of something I can't pause.

-- 
Regards,

Mick

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


Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-20 Thread Dr Rainer Woitok
Mick,

On Friday, 2019-12-20 11:46:43 +, you wrote:

> ...
>I 
> don't use this desktop to be able to advise further, but generally I would 
> try 
> to run the command as a plain user while keeping an eye on the terminal, 
> syslog, and xorg.0.log, for any messages pointing to the underlying problem.

Erm, which command precisely are you suggesting to run as a plain user?

Sincerely,
  Rainer



Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-20 Thread Mick
On Friday, 20 December 2019 11:35:45 GMT Dr Rainer Woitok wrote:
> Mick,
> 
> On Thursday, 2019-12-19 18:30:47 +, you wrote:
> > ...
> > consolekit will work for this purpose - is it running?  It should be in
> > your default runlevel.
> 
>$ rc-update show|grep consolekit
>$
> 
> Gosh!  It's missing!   Maybe I just started it  to see whether or not it
> works and then forgot to add it to default.  So add and start it now:
> 
>$ sudo rc-update add consolekit default
>Password:
> * service consolekit added to runlevel default
>$ sudo rc-service consolekit start
> * Caching service dependencies ...  
> [ ok ] * Starting consolekit ...
> * start-stop-daemon: /usr/sbin/console-kit-daemon is already running
> * Failed to start consolekit
> [ !! ] * ERROR: consolekit failed to start
>$ ps -ef|grep console
>rainer3928 12250  0 19:53 pts/000:00:00 grep console
>root 11675 1  0 Dec18 ?00:00:00
> /usr/sbin/console-kit-daemon --no-daemon $
> 
> So it's not in the default run-level, but it's running anyway?  Whazzat?

It was not started as a default service on your current runlevel, but was 
started as a dependency anyway - when e.g. you logged into your desktop.


> So I decided  to reboot  and see what happens.   But this helped neither
> with automounting nor with hibernating.  The only thing that changed was
> the command line of the console-kit command:
> 
>$  ps -ef|grep console
>root  7320 1  0 Dec19 ?00:00:00
> /usr/sbin/console-kit-daemon rainer   32639 10242  0 12:21 pts/0   
> 00:00:00 grep console
>$
> 
> By the way, these are its USE flags for consolekit, in case it matters:
> 
>$ eix -l consolekit|grep Installed
> Installed versions:  1.2.1(15:11:46 22/10/19)(acl pam pm-utils
> policykit udev -cgroups -debug -doc -evdev -selinux -test KERNEL="linux") $
> 
> Sincerely,
>   Rainer

If consolekit does not fix your ability to suspend/hibernate as a plain user, 
then it could well be a bug (or setting) related to your desktop (xface).  I 
don't use this desktop to be able to advise further, but generally I would try 
to run the command as a plain user while keeping an eye on the terminal, 
syslog, and xorg.0.log, for any messages pointing to the underlying problem.

-- 
Regards,

Mick

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


Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-20 Thread Dr Rainer Woitok
Mick,

On Thursday, 2019-12-19 18:30:47 +, you wrote:

> ...
> consolekit will work for this purpose - is it running?  It should be in your 
> default runlevel.

   $ rc-update show|grep consolekit
   $

Gosh!  It's missing!   Maybe I just started it  to see whether or not it
works and then forgot to add it to default.  So add and start it now:

   $ sudo rc-update add consolekit default
   Password: 
* service consolekit added to runlevel default
   $ sudo rc-service consolekit start
* Caching service dependencies ...   [ 
ok ]
* Starting consolekit ...
* start-stop-daemon: /usr/sbin/console-kit-daemon is already running
* Failed to start consolekit [ 
!! ]
* ERROR: consolekit failed to start
   $ ps -ef|grep console
   rainer3928 12250  0 19:53 pts/000:00:00 grep console
   root 11675 1  0 Dec18 ?00:00:00 /usr/sbin/console-kit-daemon 
--no-daemon
   $

So it's not in the default run-level, but it's running anyway?  Whazzat?
So I decided  to reboot  and see what happens.   But this helped neither
with automounting nor with hibernating.  The only thing that changed was
the command line of the console-kit command:

   $  ps -ef|grep console
   root  7320 1  0 Dec19 ?00:00:00 /usr/sbin/console-kit-daemon
   rainer   32639 10242  0 12:21 pts/000:00:00 grep console
   $

By the way, these are its USE flags for consolekit, in case it matters:

   $ eix -l consolekit|grep Installed
Installed versions:  1.2.1(15:11:46 22/10/19)(acl pam pm-utils 
policykit udev -cgroups -debug -doc -evdev -selinux -test KERNEL="linux")
   $

Sincerely,
  Rainer



Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-19 Thread Mick
On Thursday, 19 December 2019 11:08:30 GMT Dr Rainer Woitok wrote:
> Mick,
> 
> On Wednesday, 2019-12-18 18:10:07 +, you wrote:
> > ...
> > OK, are you running consolekit, or elogind?
> 
>$ equery --no-color list -F '$mask2,$location $fullversion:$slot $cp'
> consolekit elogind * Searching for consolekit ...
>amd64,IP- 1.2.1:0 sys-auth/consolekit
> 
>!!! No installed packages matching 'elogind'
> * Searching for elogind ...
>$
> 
> Sincerely,
>   Rainer

consolekit will work for this purpose - is it running?  It should be in your 
default runlevel.

-- 
Regards,
Mick

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


Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-19 Thread Dr Rainer Woitok
Mick,

On Wednesday, 2019-12-18 18:10:07 +, you wrote:

> ...
> OK, are you running consolekit, or elogind?

   $ equery --no-color list -F '$mask2,$location $fullversion:$slot $cp' 
consolekit elogind
* Searching for consolekit ...
   amd64,IP- 1.2.1:0 sys-auth/consolekit

   !!! No installed packages matching 'elogind'
* Searching for elogind ...
   $

Sincerely,
  Rainer



Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-18 Thread Mick
On Wednesday, 18 December 2019 16:46:49 GMT Dr Rainer Woitok wrote:
> Mick,
> 
> On Tuesday, 2019-12-17 23:44:19 +, you wrote:
> > ...
> > And ... usually by the sys-fs/udisks package, which performs the
> > automounting. If for some reason you have uninstalled udisks,
> 
>$ equery --no-color list -F '$mask2,$location $fullversion:$slot $cp'
> sys-fs/udisks * Searching for udisks in sys-fs ...
>amd64,IP- 2.8.4:2 sys-fs/udisks
>$
> 
> And before I forget:  hibernate, suspend, shutdown,  and restart also do
> no longer work for an unprivileged user.   I only noticed that yesterday
> evening when I pressed  the power button  which I have  configured to do
> hibernation.  It only locked the screen.  However,
> 
># echo disk > /sys/power/state
> 
> did work.
> 
> Sincerely,
>   Rainer

OK, are you running consolekit, or elogind?
-- 
Regards,

Mick

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


Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-18 Thread Dr Rainer Woitok
Mick,

On Tuesday, 2019-12-17 23:44:19 +, you wrote:

> ...
> And ... usually by the sys-fs/udisks package, which performs the 
> automounting.  
> If for some reason you have uninstalled udisks,

   $ equery --no-color list -F '$mask2,$location $fullversion:$slot $cp' 
sys-fs/udisks
* Searching for udisks in sys-fs ...
   amd64,IP- 2.8.4:2 sys-fs/udisks
   $ 

And before I forget:  hibernate, suspend, shutdown,  and restart also do
no longer work for an unprivileged user.   I only noticed that yesterday
evening when I pressed  the power button  which I have  configured to do
hibernation.  It only locked the screen.  However,

   # echo disk > /sys/power/state

did work.

Sincerely,
  Rainer



Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-18 Thread Dr Rainer Woitok
Neil,

On Tuesday, 2019-12-17 21:35:11 +, you wrote:

> ...
> This is normally handled by the desktop environment, which desktop are
> you using?

Xfce.

Sincerely,
  Rainer



Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-17 Thread Mick
On Tuesday, 17 December 2019 21:35:11 GMT Neil Bothwick wrote:
> On Tue, 17 Dec 2019 21:29:01 +0100, Dr Rainer Woitok wrote:
> > though I currently do not  find any relevant descriptions regarding this
> > topic on the web  I must formerly have found something there,  because I
> > had set my laptop up this way, and it worked until the last reboot.
> > 
> > Either I somehow  spoiled some configuration,  upgraded some package, or
> > inadvertently changed a package's USE flag :-(
> > 
> > Can someone please guide me to rig up my box  so it again mounts plugged
> > in USB sticks automatically to "/run/media/.../"?
> 
> This is normally handled by the desktop environment, which desktop are
> you using?

And ... usually by the sys-fs/udisks package, which performs the automounting.  
If for some reason you have uninstalled udisks, then the desktop environment 
will have trouble automounting removable block devices.

-- 
Regards,

Mick

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


Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-17 Thread Neil Bothwick
On Tue, 17 Dec 2019 21:29:01 +0100, Dr Rainer Woitok wrote:

> though I currently do not  find any relevant descriptions regarding this
> topic on the web  I must formerly have found something there,  because I
> had set my laptop up this way, and it worked until the last reboot.
> 
> Either I somehow  spoiled some configuration,  upgraded some package, or
> inadvertently changed a package's USE flag :-(
> 
> Can someone please guide me to rig up my box  so it again mounts plugged
> in USB sticks automatically to "/run/media/.../"?

This is normally handled by the desktop environment, which desktop are
you using?


-- 
Neil Bothwick

Deja Foobar: A feeling of having made the same mistake before.


pgpeUvkDq9buE.pgp
Description: OpenPGP digital signature