all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
To: Bengt Richter <bokr@bokr.com>
Cc: guix-devel@gnu.org, jbranso@dismail.de
Subject: Re: kmscon not working on MacBook
Date: Thu, 26 Mar 2020 17:53:11 +0100	[thread overview]
Message-ID: <20200326165311.t6mvztyk2y4t5lo4@pelzflorian.localdomain> (raw)
In-Reply-To: <20200326022605.GA21552@LionPure>

[-- Attachment #1: Type: text/plain, Size: 1158 bytes --]

On Thu, Mar 26, 2020 at 03:26:05AM +0100, Bengt Richter wrote:
> On +2020-03-26 00:00:18 +0100, pelzflorian (Florian Pelz) wrote:
> > on one of my computers uvesafb can only be used after „chmmod o+rw
> > /dev/fb0“ which is a security issue, I suppose.
> >
> 
> Are you a member of the video group?

Indeed the issue was that the gdm user was not a member of the video
group.  Thank you!

I have verified the attached patch makes it sufficient to run
`modprobe uvesafb v86d=$(guix build v86d | head -n1)/sbin/v86d
mode_option=1280x800-32` before `herd restart xorg-server` without any
additional chmod.  I will push if nobody objects.

I do however need to remove xf86-video-vesa via
set-xorg-configuration.  Perhaps xf86-video-vesa should not be among
the defaults if uvesafb is to be made a default.  Note that when not
running X as root, xf86-video-vesa does not work anyway.  That’s what
uvesafb is for.

If uvesafb should be made a default, v86d:testvbe could be used to
find a suitable resolution as a mode_option parameter.

However I still do not know how best to modprobe uvesafb
automatically.

Regards,
Florian

[-- Attachment #2: 0001-services-gdm-Add-gdm-user-to-video-supplementary-gro.patch --]
[-- Type: text/plain, Size: 888 bytes --]

From 419ec6f3866d223b88f195466d3e731090240a2a Mon Sep 17 00:00:00 2001
From: Florian Pelz <pelzflorian@pelzflorian.de>
Date: Thu, 26 Mar 2020 15:19:21 +0100
Subject: [PATCH] services: gdm: Add gdm user to 'video' supplementary group.

See <https://lists.gnu.org/archive/html/guix-devel/2020-03/msg00351.html>.

* gnu/services/xorg.scm (%gdm-accounts): Set supplementary groups.
---
 gnu/services/xorg.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
index 09379d40c3..d0196a299e 100644
--- a/gnu/services/xorg.scm
+++ b/gnu/services/xorg.scm
@@ -798,6 +798,7 @@ the GNOME desktop environment.")
         (user-account
          (name "gdm")
          (group "gdm")
+         (supplementary-groups '("video"))
          (system? #t)
          (comment "GNOME Display Manager user")
          (home-directory "/var/lib/gdm")
-- 
2.25.1


  reply	other threads:[~2020-03-26 16:53 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-24 21:38 Plan for a release! Ludovic Courtès
2020-02-24 22:55 ` Vincent Legoll
2020-02-25 14:00   ` Jonathan Brielmaier
2020-02-25 15:15     ` Vincent Legoll
2020-02-24 23:35 ` zimoun
2020-02-25 15:47 ` Joshua Branson
2020-03-05  4:54 ` jbranso
2020-03-08 12:04   ` pelzflorian (Florian Pelz)
2020-03-08 21:03     ` kmscon not working on MacBook Ludovic Courtès
2020-03-09  7:43       ` pelzflorian (Florian Pelz)
2020-03-09  9:48         ` Vincent Legoll
2020-03-09 16:45         ` Ludovic Courtès
2020-03-11  7:14           ` pelzflorian (Florian Pelz)
2020-03-11  7:25             ` pelzflorian (Florian Pelz)
2020-03-20  8:48             ` pelzflorian (Florian Pelz)
2020-03-20  8:51               ` pelzflorian (Florian Pelz)
2020-03-25 23:00               ` pelzflorian (Florian Pelz)
2020-03-26  2:26                 ` Bengt Richter
2020-03-26 16:53                   ` pelzflorian (Florian Pelz) [this message]
2020-03-29 10:26                     ` pelzflorian (Florian Pelz)
2020-03-08 12:35   ` Gnome takes more than 5 minutes to start Ricardo Wurmus
2020-03-08 21:04   ` Btrfs/udev issue Ludovic Courtès
2020-03-05 13:42 ` Plan for a release! jbranso
2020-03-05 16:45   ` sirgazil
2020-03-06 16:32     ` Joshua Branson
2020-03-05 21:09   ` Jan
2020-03-06 16:33     ` Joshua Branson
2020-03-06 16:51     ` Thunar cannot launch gio-launch-desktop Ricardo Wurmus
2020-03-06 17:57       ` Jan
2020-03-06 21:51         ` Ricardo Wurmus
2020-03-06 23:59           ` Jan
2020-03-07 23:41           ` Jan
2020-03-08  9:08             ` Ricardo Wurmus
2020-03-08 22:05               ` Jan
2020-03-08 23:41               ` Jan
2020-03-09 22:41               ` Jan
2020-03-06  6:44   ` Plan for a release! pelzflorian (Florian Pelz)
2020-03-06  9:58     ` John Soo
2020-03-08 12:33   ` Ricardo Wurmus
2020-03-08 21:10   ` Ludovic Courtès
2020-03-12 13:54 ` Ludovic Courtès
2020-03-18 16:53   ` Ludovic Courtès
2020-03-18 17:31     ` Ricardo Wurmus
2020-03-18 17:49     ` Mathieu Othacehe
2020-03-20 10:52       ` Mathieu Othacehe
2020-03-20 13:13         ` Gábor Boskovits
2020-03-20 13:58           ` Mathieu Othacehe
2020-03-21 15:46         ` Ludovic Courtès
2020-03-23 14:05           ` Mathieu Othacehe
2020-03-26 11:55             ` Ludovic Courtès
2020-03-26 12:37               ` Vincent Legoll
2020-03-26 14:24                 ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200326165311.t6mvztyk2y4t5lo4@pelzflorian.localdomain \
    --to=pelzflorian@pelzflorian.de \
    --cc=bokr@bokr.com \
    --cc=guix-devel@gnu.org \
    --cc=jbranso@dismail.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.