Re: Polkit permissions on org.freedesktop.udisks.filesystem-mount

2010-07-07 Thread Dmitry Dzhus
David Zeuthen wrote: > Maybe you are not in an active session on the local console. PolicyKit > relies on a working ConsoleKit installation - check that > ck-list-sessions output is correct. That was it, I wasn't running consolekit session after logging into X. Now I'm allowed to mount my drives

Re: Polkit permissions on org.freedesktop.udisks.filesystem-mount

2010-07-07 Thread David Zeuthen
Hi, On Wed, Jul 7, 2010 at 2:02 PM, Dmitry Dzhus wrote: > What is the supposed policy for mounting permissions? Should it be > possible for local users to just mount flash drives (looks like > `yes` in udisks actions file implies that > it is)? The expected behavior for mounting USB drives is de

Polkit permissions on org.freedesktop.udisks.filesystem-mount

2010-07-07 Thread Dmitry Dzhus
What is the supposed policy for mounting permissions? Should it be possible for local users to just mount flash drives (looks like `yes` in udisks actions file implies that it is)? I can't do this with `udisks --mount /dev/sdX` because I'm not authorized, is it the expected behaviour? -- Happy Hac

Re: [upower] waterline for "enough swap for hibernate"

2010-07-07 Thread Martin Pitt
Hello Richard, Richard Hughes [2010-07-07 9:45 +0100]: > Right, please make that change in git master. I agree with your logic. Thanks. http://cgit.freedesktop.org/upower/commit/?id=fc7c6e003a626367558300ce8566e346758ad8e7 A more robust solution might be to move that calculation into pm-is-supp

Re: [upower] waterline for "enough swap for hibernate"

2010-07-07 Thread Richard Hughes
On 7 July 2010 08:27, Martin Pitt wrote: > This reportedly fails sometimes. I was wondering if 0.8 has any > particular meaning or intention? Nope, just a hacky metric. > Colin King explained some details about how much swap will be required > for hibernation [1]. In short, it seems that for eac

[upower] waterline for "enough swap for hibernate"

2010-07-07 Thread Martin Pitt
Hello Richard, hello all, We were wondering about improving upower's check whether hibernate has sufficient swap space. Right now it considers hibernate possible if there is at least (active memory) * 0.8 free swap. (The 0.8 is defined as UP_DAEMON_SWAP_WATERLINE). This reportedly fails sometimes