On 05/06/14 12:03, Mick wrote:
> On Thursday 05 Jun 2014 08:25:30 Samuli Suominen wrote:
>> On 05/06/14 08:23, Mick wrote:
>>> Are you saying that as things stand it is a matter of time before a
>>> gentoo user will have to switch from openrc to systemd, if they
>>> want/need to continue using sleep and hibernate?
>> For those tasks you mentioned...
>>
>> ...if other desktops don't migrate like Xfce, then something like:
>>
>> Switching to a) systemd, OR b) switching to Xfce (direct pm-utils
>> support in session and power managers),
>> OR c) switching to command line pm-* utilities directly from pm-utils
>>
>> ...might be inevitable
>>
>> And if Linux kernel does changes that break pm-utils, which haven't had
>> a single commit since 2010
>> in upstream repository:
>>
>> Switching to a) systemd, OR, b) wait, no other possibilities
>>
>> Yes, that's really how poor the situation is, and don't shoot me, I'm
>> only the messenger :-)
> Thanks Samuli, I don't shoot people, especially when they try to help me!  :-)
>
> I use enlightenment on most machines and KDE on a couple of desktops, so I 
> guess these would be the only two desktops that may be an issue for me.  
> However, I had forgotten about the pm-* commands.  I just tried:
>
> pm-is-supported --suspend-hybrid
>
> and didn't get anything ... what am I missing?
>

null ssuominen # pm-is-supported --suspend
null ssuominen # echo $?
0
null ssuominen # pm-is-supported --hibernate
null ssuominen # echo $?
0
null ssuominen # pm-is-supported --suspend-hybrid
null ssuominen # echo $?
0

see `man pm-is-supported`, this particular command is silent, and only
returns
return codes, and 0 means it succeeded

- Samuli

Reply via email to