From owner-freebsd-questions@freebsd.org Wed Aug 1 02:43:31 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B399D106D657 for ; Wed, 1 Aug 2018 02:43:31 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id EA32A8F3D2 for ; Wed, 1 Aug 2018 02:43:30 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) X-Virus-Scanned: by clamd daemon 0.100.1 for FreeBSD at relay.sibptus.ru Received: from [212.73.125.240] (HELO admin.sibptus.transneft.ru) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 40067756; Wed, 01 Aug 2018 09:43:28 +0700 Received: from admin.sibptus.transneft.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.transneft.ru (8.15.2/8.15.2) with ESMTP id w712hRY1026352; Wed, 1 Aug 2018 09:43:28 +0700 (+07) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.transneft.ru (8.15.2/8.15.2/Submit) id w712hOKg026350; Wed, 1 Aug 2018 09:43:24 +0700 (+07) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.transneft.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Wed, 1 Aug 2018 09:43:24 +0700 From: Victor Sudakov To: Polytropon Cc: sergio lenzi , freebsd-questions@freebsd.org Subject: Re: Alternative to x11/gnome3 ? Message-ID: <20180801024324.GA20419@admin.sibptus.transneft.ru> References: <20180511090813.GA21919@admin.sibptus.transneft.ru> <1526039986.18202.5.camel@k1.com.br> <20180731014358.GA925@admin.sibptus.transneft.ru> <20180731195608.40cee639.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180731195608.40cee639.freebsd@edvax.de> Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.9.5 (2018-04-13) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2018 02:43:31 -0000 Polytropon wrote: [dd] > > > > The idea is that a second (third etc) user should be able to login > > without the first user logging out (and closing all her programs > > thereby), as available on Linux and Windows ("logoff" vs "switch > > user"). > > This kind of session management was first prominently > introduced on Mac OS X (early v10). I think "fast user switching" was first prominently introduced in Windows XP in 2001. When was Mac OS X v10 released? > > > the switching you are looking for was available on mate 1.12 I > > > think... > > > > > > the distribution uses GDM 2.18.9 with the full gdmsetup & friends... > > > On NetBSD we use gdm 2.20.11 that is quite the same one... and yes, > > > we have mate 2.19 on NetBSD-8.0 for raspberry pi. > > > > Am I right that gdm is the absolute requirement for user switching to > > work, no other display manager can do that? > > It is a combination both of the desktop environment being > able to store program states (which programs opened, with > which files, in which state) and restore them again, maybe > like a form of "memory to file and back". No, this is not the way it works, at least on Linux. I've researched how it works on my son's Ubuntu. All programs of logged-in users remain running, it's not done via storing program state, killing and restoring them. In fact, every logged-in user has her own Xserver. Only one Xserver at a time is "the current graphical console" and has access to the video card, but they all are in the ps output. I don't know however how these multiple Xservers are managed and selected, perhaps gdm does all the job, or systemd... Never figured out. > Gnome 2 could do > this in combination with gdm. While the gnome session was > responsible for the storing / restoring part, gdm would > do the login of a different user, and also keep track of > users still logged in (in "stored state"). > > As Mate and Cinnamon claim to be Gnome 2 forks, it's at > least left to imagination that they should also include > this kind of functionality. So, what is my chance of getting a working "fast user switching" solution with Mate? Is there a way for me as an average X user to enable this functionality, without much hacking? > > And while we are at it, I have a couple of questions on Mate > > (now I have mate-1.18.0 from the vanilla FreeBSD packages): > > > > 1. How do I totally disable all volume automounting in Mate/Caja? I'm quite > > happy with the system automonter and don't need no gvfs and other > > userland mounts (even more because they don't support Cyrillic > > filenames correctly). > > There is a gvfs configuration entry (via gconf2, if I remember > correctly) that lets you select which devices or filesystem > types to mount or _not_ to mount. I want to mount none. In fact, I want that even gvfsd is not started. Possible? > > In the past, I had the exact opposite problem: I _wanted_ to > use the automounter from Gnome, but it didn't always work. > Gnome's automounter relies on HAL, so maybe changing the HAL > configuration is also a way to deal with it. So fiddling with > HAL, fighting system permissions from devfs.conf and devd.conf, > creating a "umount wrapper" which also calls media eject for > optical devices, and even adding a desktop icon "USB unmount" > were required to make it _partially_ work... > > From https://www.freebsd.org/gnome/docs/halfaq.html you can > check questions 2, 3, and 6. Thanks, maybe I'll try all that "/desktop/gnome/volume_manager/automount_drives false" stuff. How do I set this globally for all my users, not just for the current user? I did not find such an option for gconftool-2. > > 2. The sound control app in Mate is completely unrelated to the real > > sound system of FreeBSD (as of 11.2 and mate-1.18.0). The volume and > > input/output controls do nothing. I have to use the good old > > /usr/sbin/mixer and "sysctl hw.snd.default_unit" to manipulate with > > sound. Is this my misconfiguration or Mate's fault? > > Is it using the wrong mixer? Can you select a different mixer > device for the Gnome / Mate mixer control? What's "Mate mixer control" ? The Mate sound app lists all my soundcards correctly (maybe it just takes them from /dev/sndstat) but selecting any of the devices and trying to set parameters (set volume or test speakers) does exactly nothing. > > I fully understand that most GUI software is ported from Linux, > it's not a native BSD development result, so maybe it expects > some ALSA instead of the standard OSS... A question to you as you said you are a Mate user. Does this sound app work personally for you? Can you at least set the volume and run the speaker test from it? -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN AS43859