From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F2B77138334 for ; Fri, 20 Dec 2019 16:14:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A3283E0919; Fri, 20 Dec 2019 16:14:06 +0000 (UTC) Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 20405E0729 for ; Fri, 20 Dec 2019 16:14:05 +0000 (UTC) Received: by mail-wr1-x42f.google.com with SMTP id q10so9938300wrm.11 for ; Fri, 20 Dec 2019 08:14:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:content-transfer-encoding:message-id:date:to:cc :subject:in-reply-to:references; bh=8vj581JEIPQ1NumBx+vBBpcrex8m6CUpUKjxdj4FJ2Y=; b=hB3HOvwUUPKEvMNUeEzSsjSUyu3/3Xij3M+y/ntqiu1soeEU2oPmidIT27NxhoZDn/ WIjInK8lIs3zE415UPPTWEU5hQcNILXXs83viwXPu+4F82T3JEYIr5mi+k3SmlAFa3px QMwsm+rm/uHZgahzpkU8KcLGbL94VdIxBWDWeKLDVYmAJ7kEAlq6AUMMNmgmfS1dxwLf +GjS7tYlGIPVVw8JLUFtI+ADeXjebSkovrVUOjSiXb2jsfAaEFRzYFVmA4wRqYCoMyGD PjTsY/Ct0uEA+7IF18ClnuUvphaggCLvDvOc2qEtgiNGX0Iv1awyahLbflCLv2GAdsSI Yj7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:content-transfer-encoding :message-id:date:to:cc:subject:in-reply-to:references; bh=8vj581JEIPQ1NumBx+vBBpcrex8m6CUpUKjxdj4FJ2Y=; b=IYxm9Sq8Bv6c0v48TB2IT08G5Tv4tFbzGLz0kP43hwDrAQMxpK9DkBCiZPvGca3ONT hgsAahhhSEuN6ncJ4Bjhf1IoRHyCt7pCLhh/wrbe7DGcMTgGfElIwGUDPM6wO/eTLv5b /oYgR1iuMXaa5XNTOjDpntSnhXUgVvda255zE6Q+0vZzeXgHQsaqJavRYi5tRB51McZy T21KiJVlCTxLP74WdN3GP4cA9vRdoSWgbevdSQEA4KDE5lyWoykrlTEIVlpb24HNEFXy DgxXQu/d+jYKMB3XatFBopKVLOd8sY8ualGsG2Awi+6BvArxq8JXkvE8n8r5HiPNyJe2 BpoQ== X-Gm-Message-State: APjAAAUUGJpxM+6f4G1YeenBOH0ijj4sB0CKKyfRQnOWFl/63BZfcJuU Zn2oInrmYa3G2INTcD4+AIo= X-Google-Smtp-Source: APXvYqx0lgqRXL0Z6b03dSmJPD3vuWXfczndXNe/RpLidtei5nhvQdHnoGjz3D0Vq7tL600jgsIpaw== X-Received: by 2002:a5d:538e:: with SMTP id d14mr16525102wrv.358.1576858444731; Fri, 20 Dec 2019 08:14:04 -0800 (PST) Received: from tux (dslb-090-186-095-049.090.186.pools.vodafone-ip.de. [90.186.95.49]) by smtp.gmail.com with ESMTPSA id y6sm10098242wrl.17.2019.12.20.08.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2019 08:14:04 -0800 (PST) From: Dr Rainer Woitok X-Google-Original-From: Dr Rainer Woitok Received: by tux (sSMTP sendmail emulation); Fri, 20 Dec 2019 17:14:02 +0100 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <24060.62280.340412.46109@woitok.gmail.com> Date: Fri, 20 Dec 2019 17:14:00 +0100 To: Mick Cc: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Re: Suspend and Hibernation not working on XFace desktop In-Reply-To: Msg <1689277.6UQq2NC9Qp@localhost> of 2019-12-20 13:55:29 +0000 from michaelkintzios@gmail.com References: <1689277.6UQq2NC9Qp@localhost> X-Mailer: VM 8.0.12-devo-585 under 21.4 (patch 24) "Standard C" XEmacs Lucid (x86_64-unknown-linux) X-Archives-Salt: 1aa50438-31b7-479b-92d1-a5233e5269ea X-Archives-Hash: d240d2fe346eff372fb673faf9029ea9 Mick, On Friday, 2019-12-20 13:55:29 +0000, you wrote: > ... > If you can't run suspend/hibernate it may be polkit policies are not allowing > you to run these commands via dbus. However, polkit policies are > automatically installed/updated as required by the packages you have on your > system. For example, this is what I have on my desktop (KDE): > > $ pkaction | grep susp > org.freedesktop.login1.inhibit-handle-suspend-key > org.freedesktop.login1.suspend > org.freedesktop.login1.suspend-ignore-inhibit > org.freedesktop.login1.suspend-multiple-sessions > > $ pkaction | grep hibernate > org.freedesktop.login1.hibernate > org.freedesktop.login1.hibernate-ignore-inhibit > org.freedesktop.login1.hibernate-multiple-sessions > org.freedesktop.login1.inhibit-handle-hibernate-key Here it is: $ pkaction|\grep -E 'hiber|susp' org.freedesktop.consolekit.system.hibernate org.freedesktop.consolekit.system.hibernate-multiple-users org.freedesktop.consolekit.system.suspend org.freedesktop.consolekit.system.suspend-multiple-users $ And using "--verbose" I get: $ pkaction --action-id org.freedesktop.consolekit.system.hibernate --verbose org.freedesktop.consolekit.system.hibernate: description: Hibernate the system message: System policy prevents hibernating the system vendor: vendor_url: icon: implicit any: no implicit inactive: no implicit active: yes $ pkaction --action-id org.freedesktop.consolekit.system.suspend --verbose org.freedesktop.consolekit.system.suspend: description: Suspend the system message: System policy prevents suspending the system vendor: vendor_url: icon: implicit any: no implicit inactive: no implicit active: yes $ In "/etc/polkit-1/rules.d/" are only three rules files, the first and last one being copied by me from the internet somewhere, the second one being original: # cd /etc/polkit-1/rules.d # for f in *; do echo ---- $f; cat $f; done ---- 10-admin.rules polkit.addAdminRule(function(action, subject) { return ["unix-group:wheel"]; }); ---- 50-default.rules /* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */ // DO NOT EDIT THIS FILE, it will be overwritten on update // // Default rules for polkit // // See the polkit(8) man page for more information // about configuring polkit. polkit.addAdminRule(function(action, subject) { return ["unix-user:0"]; }); ---- 50-org.freedesktop.NetworkManager.rules polkit.addRule(function(action, subject) { if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("plugdev")) { return polkit.Result.YES; } }); # > ... > These are the USE flags for polkit on this system: These are the polkit USE flags here: $ eix -l sys-auth/polkit|grep Installed Installed versions: 0.115-r4(15:10:56 22/10/19)(consolekit gtk introspection nls pam -elogind -examples -jit -kde -selinux -systemd -test) $ The only differences I see are that you are using "elogind" rather than "consolekit", and that I'm using "gtk" while you are using "kde". If someone could point me to any missing policy rules, I would be glad to add them. Sincerely, Rainer