From owner-freebsd-questions@freebsd.org Fri Dec 30 14:48:54 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DA1DEC97DB8 for ; Fri, 30 Dec 2016 14:48:54 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay12.qsc.de (mailrelay12.qsc.de [212.99.163.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4194017A8 for ; Fri, 30 Dec 2016 14:48:53 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay12.qsc.de; Fri, 30 Dec 2016 15:51:23 +0100 Received: from r56.edvax.de (port-92-195-28-64.dynamic.qsc.de [92.195.28.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id C41003CC56; Fri, 30 Dec 2016 15:48:42 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id uBUEmfP0002026; Fri, 30 Dec 2016 15:48:41 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 30 Dec 2016 15:48:41 +0100 From: Polytropon To: Bernt Hansson Cc: David Christensen , freebsd-questions@freebsd.org Subject: Re: FreeBSD 11.0 i386, XDM 1.1.11_6, XFCE 4.12_1 -- How to enable GUI shutdown and restart? Message-Id: <20161230154841.7d2561e2.freebsd@edvax.de> In-Reply-To: References: <2c0d9213-1adc-48b7-bdf6-a6b4a577d726@bananmonarki.se> <622bd615-48b9-031a-65d8-3c7daf663cb9@holgerdanske.com> <09d1385a-6356-b732-ddd4-ebd678c25419@bananmonarki.se> <507828f7-6621-15f8-f55d-0ad172857fc1@holgerdanske.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay12.qsc.de with 7A2096A5469 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2029 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2016 14:48:55 -0000 On Fri, 30 Dec 2016 12:38:55 +0100, Bernt Hansson wrote: > On 2016-12-30 05:32, David Christensen wrote: > > On 12/27/16 23:01, Bernt Hansson wrote: > >> You do have dbus_enable="YES" in /etc/rc.conf? Not sure if you need > >> hald_enable="YES" too. > > > > Thanks for the reply. > > > > > > 2016-12-29 19:28:58 toor@t7400 ~ > > # cat /etc/rc.conf > > hostname="t7400" > > ifconfig_bfe0="DHCP" > > sshd_enable="YES" > > ntpd_enable="YES" > > powerd_enable="YES" > > # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable > > dumpdev="AUTO" > > zfs_enable="YES" > > > > 2016-12-29 19:29:04 toor@t7400 ~ > > # ll /etc/rc.conf.d > > total 9 > > drwxr-xr-x 2 root wheel 2 2016/09/28 20:41:10 ./ > > drwxr-xr-x 25 root wheel 113 2016/12/27 19:20:28 ../ > > > > > > Apparently, dbus is not enabled. Add a file: > > > > 2016-12-29 19:29:17 toor@t7400 ~ > > # echo 'dbus_enable="YES"' > /etc/rc.conf.d/dbus.conf > > > > > > shutdown -p, boot, login, Xfce mouse -> Log Out -> Shut Down and -> > > Restart are still greyed out. > Dbus is installed? Think it comes with xfce but not sure. > > If it does not work you have to work some magic with devd i think. Or with system provided commands: add yourself to the required groups (wheel, operator), then add a menu entry for "System Shutdown" (shutdown -p now) and "System Reboot" (shutdown -r now); now you can select them from the menu, add a key combination, or even make a desktop shortcut which you can give an inviting name, like "My files". :-) You can also add it as an icon to one of the bars, like for example in Gnome. You need DBus, PolicyKit and ConsoleKit installed, if I remember correctly, and _maybe_ even HAL (but check that again with the current documentation). Those services must be running. Check if "startxfce4" requires some of the "--with-ck-something" options. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...