From owner-freebsd-xfce@FreeBSD.ORG Tue Oct 16 07:53:05 2012 Return-Path: Delivered-To: freebsd-xfce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5B01B466 for ; Tue, 16 Oct 2012 07:53:05 +0000 (UTC) (envelope-from gofdx-freebsd-xfce@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 0FD0D8FC08 for ; Tue, 16 Oct 2012 07:53:04 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TO1xX-0005BN-RD for freebsd-xfce@freebsd.org; Tue, 16 Oct 2012 09:53:04 +0200 Received: from 79-139-19-75.prenet.pl ([79.139.19.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Oct 2012 09:53:03 +0200 Received: from jb.1234abcd by 79-139-19-75.prenet.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Oct 2012 09:53:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-xfce@freebsd.org From: jb Subject: Re: restart and shutdown permissions Date: Tue, 16 Oct 2012 07:52:44 +0000 (UTC) Lines: 73 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 79.139.19.75 (Mozilla/5.0 (X11; FreeBSD i386; rv:16.0) Gecko/20100101 Firefox/16.0) X-BeenThere: freebsd-xfce@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: XFCE for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Oct 2012 07:53:05 -0000 Olivier Duchateau gmail.com> writes: > > 2012/10/16 Warren Block wonkity.com>: > > On Mon, 15 Oct 2012, Olivier Duchateau wrote: > > > >> How do you launch your session ? With xinitrc file provides by > >> x11-wm/xfce4-session or with your own xinitrc. > > > > > > My own .xinitrc, which is just > > > > /usr/local/bin/startxfce4 > > > > > >> What's your login manager ? You must use login manager which supports > >> sysutils/consolekit. Like x11/slim, x11/gdm (there's an issue with > >> x11/xdm). > > > > > > None, just startx. Aha, that is why people are using ck-launch-session. > > Using that to run startxfce4, it works, and without sudo. > > Ok, you must add in your xinitrc file `ck-launch-session' before > xfce4-session (don't use startxfce4). > You can look at /usr/local/etc/xdg/xfce4/xinitrc file. It provides > this case (line 84 to 107). > > You can test with xinitrc file provided by x11-wm/xfce4-session, and > then adjust your own. > > > > > Thank you! > I think the right way to 'startx' is with: $ cat .xinitrc exec startxfce4 --with-ck-launch $ cat `which startxfce4` ... XFCE4_SESSION_WITH_CK="1" ... $ cat /usr/local/etc/xdg/xfce4/xinitrc ... # check if we start xfce4-session with ck-launch-session. this is only # required for starting from a console, not a login manager if test "x$XFCE4_SESSION_WITH_CK" = "x1"; then if which ck-launch-session >/dev/null 2>&1; then ck-launch-session xfce4-session ... $ startx With the above, and a *working* moused configuration: $ cat /etc/rc.conf moused_enable="YES" $ cat /usr/local/etc/X11/xorg.conf Section "ServerLayout" ... Option "AutoAddDevices" "false" EndSection I tried to make suspend work with: adding: # cp /usr/ports/x11-wm/xfce4-session/files/pkg-message.in /usr/local/etc/polkit- 1/localauthority/50-local.d/40-system-config-jb.pkla and removing comment lines, and editing it to Identity=unix-group:jb The suspend worked; pressing power button restored the X desktop, with working external USB mouse, but blocked built-in PS/2 mouse. So, how to fix the resume from suspend so that mouses work again ? jb