bug#35408: External monitor not working with GDM

2020-06-10 Thread Royce Strange
Hello.

Ben Sturmfels mentioned that this can be closed,
as it seems he settled on a setup that works for him.

Going to go ahead and close out.





bug#35408: External monitor not working with GDM

2019-05-07 Thread Ben Sturmfels
On 03/05/19 01:20, Ludovic Courtès wrote:
> Ben Sturmfels  skribis:
> 
>>> On Fri, 26 Apr 2019, Ludovic Courtès wrote:
 Ben Sturmfels  skribis:
>>
> [   448.627] (II) RADEON: Driver for ATI/AMD Radeon chipsets:
>>
 It looks like you have an AMD Radeon graphics card, is that right?  Did
 you pass “modprobe.blacklist=radeon” on the kernel command line, or
 something similar?

 Apparently some of these AMD graphics cards are not quite supported by
 free software, so that might be the issue here.
>>>
>>> Whoops, sorry I'm being unintentionally misleading - I shuttle my hard
>>> drive across from my X200 into an F2A85-M motherboard at work, which has
>>> Radeon HD 8470D. It's always just worked with Slim on Guix and Trisquel
>>> 7/8.
>>>
>>> I'll try the modprobe.blacklist though.
>>
>> I tried the modprobe.blacklist=radeon in the kernel line, but GDM still
>> did it's looping thing.
> 
> What .desktop files to you have under /run/current-system/profile?
> 
> There was a bug whereby GDM would enter an infinite loop when no
> .desktop files were provided: .

The outcome if this is that I now have GDM working on my X200 + external
monitor, but not on the F2A85-M motherboard + external. For now I'm just
using Slim on the radeon-based system, so I suppose this can be closed.

I think this was two separate issues:

1. I think GDM stopped working on the X200 due to renumbered uid/gids
that caused permission problems on /var/lib/gdm. Not 100% sure - was a
day or two between when I removed /var/lib/gdm and reconfired and when I
tried the external monitor on X200 again.

2. Starting GDM on the F2A85-M gives the following in
/var/log/debug:

May  2 12:19:12 localhost vmunix: [   24.301185] [drm] radeon: 768M of
VRAM memory ready
May  2 12:19:12 localhost vmunix: [   24.301237] [drm] radeon: 1024M of
GTT memory ready.
May  2 12:19:12 localhost vmunix: [   24.301287] [drm] Loading ARUBA
Microcode
May  2 12:19:12 localhost vmunix: [   24.301325] :00:01.0: Missing
Free firmware (non-Free firmware loading is disabled)
May  2 12:19:12 localhost vmunix: [   24.304342] ni_cp: Failed to load
firmware "/*(DEBLOBBED)*/"
May  2 12:19:12 localhost vmunix: [   24.304420] [drm:cayman_init
[radeon]] *ERROR* Failed to load firmware!
May  2 12:19:12 localhost vmunix: [   24.304467] radeon :00:01.0:
Fatal error during GPU init
May  2 12:19:12 localhost vmunix: [   24.304499] [drm] radeon: finishing
device.

And the following in Xorg.0.log:

[   642.963] (II) Module fbdevhw: vendor="X.Org Foundation"
[   642.963]compiled for 1.20.4, module version = 0.0.2
[   642.963]ABI class: X.Org Video Driver, version 24.0
[   642.963] (EE) open /dev/fb0: No such file or directory
[   642.963] (EE) Screen 0 deleted because of no matching config section.
[   642.963] (II) UnloadModule: "radeon"
[   642.963] (EE) Screen 0 deleted because of no matching config section.
[   642.963] (II) UnloadModule: "modesetting"
[   642.963] (EE) Screen 0 deleted because of no matching config section.
[   642.963] (II) UnloadModule: "fbdev"
[   642.963] (II) UnloadSubModule: "fbdevhw"

Regarding the .desktop issue - I wasn't quite clear on where these files
are supposed to be. I don't seem to have a /run/current-system/profile.
I suppose it doesn't matter now since I've since done a `pull` and
`system reconfigure`.

Thanks!
Ben






signature.asc
Description: OpenPGP digital signature


bug#35408: External monitor not working with GDM

2019-05-02 Thread Ludovic Courtès
Ben Sturmfels  skribis:

>> On Fri, 26 Apr 2019, Ludovic Courtès wrote:
>>> Ben Sturmfels  skribis:
>
 [   448.627] (II) RADEON: Driver for ATI/AMD Radeon chipsets:
>
>>> It looks like you have an AMD Radeon graphics card, is that right?  Did
>>> you pass “modprobe.blacklist=radeon” on the kernel command line, or
>>> something similar?
>>>
>>> Apparently some of these AMD graphics cards are not quite supported by
>>> free software, so that might be the issue here.
>>
>> Whoops, sorry I'm being unintentionally misleading - I shuttle my hard
>> drive across from my X200 into an F2A85-M motherboard at work, which has
>> Radeon HD 8470D. It's always just worked with Slim on Guix and Trisquel
>> 7/8.
>>
>> I'll try the modprobe.blacklist though.
>
> I tried the modprobe.blacklist=radeon in the kernel line, but GDM still
> did it's looping thing.

What .desktop files to you have under /run/current-system/profile?

There was a bug whereby GDM would enter an infinite loop when no
.desktop files were provided: .

Ludo’.





bug#35408: External monitor not working with GDM

2019-05-02 Thread Ben Sturmfels
> On Fri, 26 Apr 2019, Ludovic Courtès wrote:
>> Ben Sturmfels  skribis:

>>> [   448.627] (II) RADEON: Driver for ATI/AMD Radeon chipsets:

>> It looks like you have an AMD Radeon graphics card, is that right?  Did
>> you pass “modprobe.blacklist=radeon” on the kernel command line, or
>> something similar?
>>
>> Apparently some of these AMD graphics cards are not quite supported by
>> free software, so that might be the issue here.
>
> Whoops, sorry I'm being unintentionally misleading - I shuttle my hard
> drive across from my X200 into an F2A85-M motherboard at work, which has
> Radeon HD 8470D. It's always just worked with Slim on Guix and Trisquel
> 7/8.
>
> I'll try the modprobe.blacklist though.

I tried the modprobe.blacklist=radeon in the kernel line, but GDM still
did it's looping thing.

> This is a bit of a stab in the dark, but I have been having issues with
> PostgreSQL and OpenSMTPD changing swapping UID/GIDs after reconfiguring
> or booting back into an old Guix System profile. This has required me to
> manually correct the permissions in /var/lib with `chown`. I'm
> suspicious that the same might be happening to GDM. I'll do some testing
> on this.

I also tried removing /var/lib/gdm and reconfiguring, but that didn't
seem to help, so I guess it's not a permissions issue.

Regards,
Ben


signature.asc
Description: PGP signature


bug#35408: External monitor not working with GDM

2019-05-01 Thread Ben Sturmfels
Hi Ludovic,



Ben Sturmfels

Sturm Software Engineering
www.sturm.com.au
+61 3 9024 2467

On Fri, 26 Apr 2019, Ludovic Courtès wrote:

> Hi Ben,
>
> Ben Sturmfels  skribis:
>
>> [   448.627] (II) RADEON: Driver for ATI/AMD Radeon chipsets:
>
> [...]
>
>> [   448.630] (II) [KMS] drm report modesetting isn't supported.
>> [   448.630] (EE) open /dev/dri/card0: No such file or directory
>> [   448.630] (WW) Falling back to old probe method for modesetting
>> [   448.630] (EE) open /dev/dri/card0: No such file or directory
>> [   448.630] (II) Loading sub module "fbdevhw"
>> [   448.630] (II) LoadModule: "fbdevhw"
>> [   448.631] (II) Loading 
>> /gnu/store/xxpf6xz7prlwrvvl7sviaxmahsyavx1c-xorg-server-1.20.4/lib/xorg/modules/libfbdevhw.so
>> [   448.631] (II) Module fbdevhw: vendor="X.Org Foundation"
>> [   448.631] compiled for 1.20.4, module version = 0.0.2
>> [   448.631] ABI class: X.Org Video Driver, version 24.0
>> [   448.631] (EE) Unable to find a valid framebuffer device
>> [   448.631] (WW) Falling back to old probe method for fbdev
>> [   448.631] (II) Loading sub module "fbdevhw"
>> [   448.631] (II) LoadModule: "fbdevhw"
>> [   448.631] (II) Loading 
>> /gnu/store/xxpf6xz7prlwrvvl7sviaxmahsyavx1c-xorg-server-1.20.4/lib/xorg/modules/libfbdevhw.so
>> [   448.631] (II) Module fbdevhw: vendor="X.Org Foundation"
>> [   448.631] compiled for 1.20.4, module version = 0.0.2
>> [   448.631] ABI class: X.Org Video Driver, version 24.0
>> [   448.631] (EE) open /dev/fb0: No such file or directory
>> [   448.631] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card 
>> support
>> [   448.631] (EE) Screen 0 deleted because of no matching config section.
>> [   448.631] (II) UnloadModule: "radeon"
>> [   448.631] (EE) Screen 0 deleted because of no matching config section.
>> [   448.631] (II) UnloadModule: "modesetting"
>> [   448.631] (EE) Screen 0 deleted because of no matching config section.
>> [   448.631] (II) UnloadModule: "fbdev"
>> [   448.631] (II) UnloadSubModule: "fbdevhw"
>> [   448.631] (II) Loading sub module "vbe"
>> [   448.631] (II) LoadModule: "vbe"
>> [   448.632] (II) Loading 
>> /gnu/store/xxpf6xz7prlwrvvl7sviaxmahsyavx1c-xorg-server-1.20.4/lib/xorg/modules/libvbe.so
>> [   448.632] (II) Module vbe: vendor="X.Org Foundation"
>> [   448.632] compiled for 1.20.4, module version = 1.1.0
>> [   448.632] ABI class: X.Org Video Driver, version 24.0
>> [   448.632] (II) Loading sub module "int10"
>> [   448.632] (II) LoadModule: "int10"
>> [   448.632] (II) Loading 
>> /gnu/store/xxpf6xz7prlwrvvl7sviaxmahsyavx1c-xorg-server-1.20.4/lib/xorg/modules/libint10.so
>> [   448.632] (II) Module int10: vendor="X.Org Foundation"
>> [   448.632] compiled for 1.20.4, module version = 1.0.0
>> [   448.632] ABI class: X.Org Video Driver, version 24.0
>> [   448.632] (II) VESA(0): initializing int10
>> [   448.633] (EE) VESA(0): Cannot read int vect
>> [   448.633] (II) UnloadModule: "vesa"
>> [   448.633] (II) UnloadSubModule: "int10"
>> [   448.633] (II) Unloading int10
>> [   448.633] (II) UnloadSubModule: "vbe"
>> [   448.633] (II) Unloading vbe
>> [   448.633] (EE) Screen(s) found, but none have a usable configuration.
>> [   448.633] (EE)
>> Fatal server error:
>> [   448.633] (EE) no screens found(EE)
>> [   448.633] (EE)
>> Please consult the The X.Org Foundation support
>>   at http://wiki.x.org
>>  for help.
>> [   448.633] (EE) Please also check the log file at 
>> "/var/lib/gdm/.local/share/xorg/Xorg.0.log" for additional information.
>
> It looks like you have an AMD Radeon graphics card, is that right?  Did
> you pass “modprobe.blacklist=radeon” on the kernel command line, or
> something similar?
>
> Apparently some of these AMD graphics cards are not quite supported by
> free software, so that might be the issue here.

Whoops, sorry I'm being unintentionally misleading - I shuttle my hard
drive across from my X200 into an F2A85-M motherboard at work, which has
Radeon HD 8470D. It's always just worked with Slim on Guix and Trisquel
7/8.

I'll try the modprobe.blacklist though.

This is a bit of a stab in the dark, but I have been having issues with
PostgreSQL and OpenSMTPD changing swapping UID/GIDs after reconfiguring
or booting back into an old Guix System profile. This has required me to
manually correct the permissions in /var/lib with `chown`. I'm
suspicious that the same might be happening to GDM. I'll do some testing
on this.

Regards,
Ben


signature.asc
Description: PGP signature


bug#35408: External monitor not working with GDM

2019-04-26 Thread Ludovic Courtès
Hi Ben,

Ben Sturmfels  skribis:

> [   448.627] (II) RADEON: Driver for ATI/AMD Radeon chipsets:

[...]

> [   448.630] (II) [KMS] drm report modesetting isn't supported.
> [   448.630] (EE) open /dev/dri/card0: No such file or directory
> [   448.630] (WW) Falling back to old probe method for modesetting
> [   448.630] (EE) open /dev/dri/card0: No such file or directory
> [   448.630] (II) Loading sub module "fbdevhw"
> [   448.630] (II) LoadModule: "fbdevhw"
> [   448.631] (II) Loading 
> /gnu/store/xxpf6xz7prlwrvvl7sviaxmahsyavx1c-xorg-server-1.20.4/lib/xorg/modules/libfbdevhw.so
> [   448.631] (II) Module fbdevhw: vendor="X.Org Foundation"
> [   448.631]  compiled for 1.20.4, module version = 0.0.2
> [   448.631]  ABI class: X.Org Video Driver, version 24.0
> [   448.631] (EE) Unable to find a valid framebuffer device
> [   448.631] (WW) Falling back to old probe method for fbdev
> [   448.631] (II) Loading sub module "fbdevhw"
> [   448.631] (II) LoadModule: "fbdevhw"
> [   448.631] (II) Loading 
> /gnu/store/xxpf6xz7prlwrvvl7sviaxmahsyavx1c-xorg-server-1.20.4/lib/xorg/modules/libfbdevhw.so
> [   448.631] (II) Module fbdevhw: vendor="X.Org Foundation"
> [   448.631]  compiled for 1.20.4, module version = 0.0.2
> [   448.631]  ABI class: X.Org Video Driver, version 24.0
> [   448.631] (EE) open /dev/fb0: No such file or directory
> [   448.631] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card 
> support
> [   448.631] (EE) Screen 0 deleted because of no matching config section.
> [   448.631] (II) UnloadModule: "radeon"
> [   448.631] (EE) Screen 0 deleted because of no matching config section.
> [   448.631] (II) UnloadModule: "modesetting"
> [   448.631] (EE) Screen 0 deleted because of no matching config section.
> [   448.631] (II) UnloadModule: "fbdev"
> [   448.631] (II) UnloadSubModule: "fbdevhw"
> [   448.631] (II) Loading sub module "vbe"
> [   448.631] (II) LoadModule: "vbe"
> [   448.632] (II) Loading 
> /gnu/store/xxpf6xz7prlwrvvl7sviaxmahsyavx1c-xorg-server-1.20.4/lib/xorg/modules/libvbe.so
> [   448.632] (II) Module vbe: vendor="X.Org Foundation"
> [   448.632]  compiled for 1.20.4, module version = 1.1.0
> [   448.632]  ABI class: X.Org Video Driver, version 24.0
> [   448.632] (II) Loading sub module "int10"
> [   448.632] (II) LoadModule: "int10"
> [   448.632] (II) Loading 
> /gnu/store/xxpf6xz7prlwrvvl7sviaxmahsyavx1c-xorg-server-1.20.4/lib/xorg/modules/libint10.so
> [   448.632] (II) Module int10: vendor="X.Org Foundation"
> [   448.632]  compiled for 1.20.4, module version = 1.0.0
> [   448.632]  ABI class: X.Org Video Driver, version 24.0
> [   448.632] (II) VESA(0): initializing int10
> [   448.633] (EE) VESA(0): Cannot read int vect
> [   448.633] (II) UnloadModule: "vesa"
> [   448.633] (II) UnloadSubModule: "int10"
> [   448.633] (II) Unloading int10
> [   448.633] (II) UnloadSubModule: "vbe"
> [   448.633] (II) Unloading vbe
> [   448.633] (EE) Screen(s) found, but none have a usable configuration.
> [   448.633] (EE) 
> Fatal server error:
> [   448.633] (EE) no screens found(EE) 
> [   448.633] (EE) 
> Please consult the The X.Org Foundation support 
>at http://wiki.x.org
>  for help. 
> [   448.633] (EE) Please also check the log file at 
> "/var/lib/gdm/.local/share/xorg/Xorg.0.log" for additional information.

It looks like you have an AMD Radeon graphics card, is that right?  Did
you pass “modprobe.blacklist=radeon” on the kernel command line, or
something similar?

Apparently some of these AMD graphics cards are not quite supported by
free software, so that might be the issue here.

Thanks,
Ludo’.





bug#35408: External monitor not working with GDM

2019-04-26 Thread Ludovic Courtès
Ben Sturmfels  skribis:

> And in a separate terminal:
>
> $ sudo su
> $ ./pre-inst-env guix system reconfigure ~ben/guix-config/test.scm

You should rather do:

  sudo -E ./pre-inst-env guix …

HTH!

Ludo’.





bug#35408: External monitor not working with GDM

2019-04-25 Thread Ben Sturmfels
Hi Danny,

On Thu, 25 Apr 2019, Danny Milosavljevic wrote:

>> Apr 25 20:30:54 localhost gdm: gdm_session_set_environment_variable:
>> assertion 'value != NULL' failed
>
> Yeah, that one again.  It might make sense to patch that so the assertion
> actually prints name and value passed.
>
> You can also set "debug"'s "Enable=true" in gnu/services/xorg.scm , in
> gdm-configuration-file , but it will only help in a limited way here.

I might need your help with applying the modified xorg.scm - here's what
I tried and the error I got when reconfiguring:

$ cd ws/guix
$ git pull
$ git checkout 33023baac8ec548fe64ce8e4eb48840b5411ee4c

[modify gnu/services/xorg.scm]

$ guix environment guix
$ make clean-go
$ ./bootstrap
$ ./configure --localstatedir=/var
$ make
$ sudo herd stop guix-daemon
$ sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild

And in a separate terminal:

$ sudo su
$ ./pre-inst-env guix system reconfigure ~ben/guix-config/test.scm
Backtrace:
In ice-9/threads.scm:
390:8 19 (_ _)
In ice-9/boot-9.scm:
  2994:20 18 (_)
   2312:4 17 (save-module-excursion _)
  3014:26 16 (_)
In unknown file:
  15 (primitive-load-path "guix/store" #)
In guix/store.scm:
 20:0 14 (_)
In ice-9/boot-9.scm:
   2874:4 13 (define-module* _ #:filename _ #:pure _ #:version _ # _ …)
  2887:24 12 (_)
   222:29 11 (map1 (((guix utils)) ((guix config)) ((guix #)) ((…)) …))
   222:29 10 (map1 (((guix config)) ((guix deprecation)) ((guix …)) …))
   222:29  9 (map1 (((guix deprecation)) ((guix memoization)) ((…)) …))
   222:29  8 (map1 (((guix memoization)) ((guix serialization)) (#) …))
   222:29  7 (map1 (((guix serialization)) ((guix monads)) ((# #)) …))
   222:29  6 (map1 (((guix monads)) ((guix records)) ((guix #)) (#) …))
   222:29  5 (map1 (((guix records)) ((guix base16)) ((guix #)) (#) …))
   222:29  4 (map1 (((guix base16)) ((guix base32)) ((gcrypt #)) # …))
   222:29  3 (map1 (((guix base32)) ((gcrypt hash)) ((guix #)) (#) …))
   222:17  2 (map1 (((gcrypt hash)) ((guix profiling)) ((rnrs #)) # …))
   2803:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ …)
In unknown file:
   0 (scm-error misc-error #f "~A ~S" ("no code for modu…" …) …)

ERROR: In procedure scm-error:
no code for module (gcrypt hash)


signature.asc
Description: PGP signature


bug#35408: External monitor not working with GDM

2019-04-25 Thread Ben Sturmfels
On Fri, 2019-04-26 at 00:13 +0200, Diego Nicola Barbato wrote:
> Hi Ben,
> 
> Ben Sturmfels  writes:
> 
> > Hi Ludovic,
> > 
> > On Thu, 2019-04-25 at 11:08 +0200, Ludovic Courtès wrote:
> > > 
> > > Ben Sturmfels  skribis:
> > > 
> > > > I was previously using a 24" Samsung external monitor with my
> > > > X200 Guix System via VGA. Since the switch to GDM, I no longer
> > > > seem to be able connect this monitor. When I do, the laptop
> > > > screen just keeps flashing.
> > > 
> > > So the GDM login screen never shows up, right?
> > 
> > I'm thoroughly confused now. GDM definitely *was* working with the
> > laptop screen only, but now when I reconfigure it or choose an old
> > Grub entry, I can't get to the login screen with either external
> > monitor or the laptop. In both cases the console loops showing a
> > message
> > something
> > like:
> > 
> > New session c1 of user gdm.
> > Removed session c1.
> > .
> > .
> > .
> > New session c506 of user gdm.
> > Removed session c506.
> 
> This sounds familiar.  Can you check if /var/lib/gdm is owned by gdm.
> If it isn't, chowning it back to gdm:gdm should fix it.

Thanks Diego. After booting up the system and waiting for the GDM to
stop restarting:

$ sudo ls -la /var/lib/gdm/
total 32
drwx--  5  gdm  gdm 4096 Apr 24 20:12 ./
drwxr-xr-x 13 root root 4096 Apr 10 12:13 ../
drwxr-xr-x  5  983  gdm 4096 Apr 14 22:02 .cache/
drwxr-xr-x  5  983  gdm 4096 Apr 14 22:02 .config/
-rw---  1  983  gdm   16 Apr 14 22:02 .esd_auth
-rw---  1  983  gdm 5216 Apr 24 20:12 .ICEauthority
drwxr-xr-x  3  983  gdm 4096 Apr 10 14:49 .local/

For good measure I ran the following anyway, but it didn't seem to fix
it:

$ sudo chmod -R gdm:gdm /var/lib/gdm
$ sudo herd restart xorg-server


Ludovic, the Xorg.0.log file does seem to be fresh now and showing an
error so I've attached that.


Danny, I'm struggling with reconfiguring using the
gnu/services/xorg.scm with "debug"'s "Enable=true" - haven't run from
source for a while. Will take another look at that when I get some
clear time this weekend.[   448.617] _XSERVTransmkdir: Mode of /tmp/.X11-unix should be set to 1777
[   448.617] (--) Log file renamed from "/var/lib/gdm/.local/share/xorg/Xorg.pid-11277.log" to "/var/lib/gdm/.local/share/xorg/Xorg.0.log"
[   448.617] 
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[   448.618] Build Operating System: GNU GuixSD
[   448.618] Current Operating System: Linux Marseille 5.0.8-gnu #1 SMP 1 x86_64
[   448.618] Kernel command line: BOOT_IMAGE=/gnu/store/1hqypbgabjiqdgw1xlva6gxw0npgqq27-linux-libre-5.0.8/bzImage --root=marseille-root --system=/gnu/store/1sf8j34xfvcy83r0c4lpcnnzc740q79i-system --load=/gnu/store/1sf8j34xfvcy83r0c4lpcnnzc740q79i-system/boot
[   448.618] Build Date: 01 January 1970  12:00:01AM
[   448.618]  
[   448.618] Current version of pixman: 0.36.0
[   448.618] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   448.618] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   448.618] (==) Log file: "/var/lib/gdm/.local/share/xorg/Xorg.0.log", Time: Fri Apr 26 10:16:22 2019
[   448.618] (++) Using config file: "/gnu/store/bh1np26ziamspfh4c2x8r2gigk973fvj-xserver.conf"
[   448.618] (++) Using config directory: "/gnu/store/ri804h9v5wphhy067znhagdslp999yln-xorg.conf.d"
[   448.618] (==) Using system config directory "/gnu/store/xxpf6xz7prlwrvvl7sviaxmahsyavx1c-xorg-server-1.20.4/share/X11/xorg.conf.d"
[   448.618] (==) No Layout section.  Using the first Screen section.
[   448.618] (==) No screen section available. Using defaults.
[   448.618] (**) |-->Screen "Default Screen Section" (0)
[   448.618] (**) |   |-->Monitor ""
[   448.618] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   448.618] (**) Option "AllowMouseOpenFail" "on"
[   448.618] (==) Automatically adding devices
[   448.618] (==) Automatically enabling devices
[   448.618] (==) Automatically adding GPU devices
[   448.618] (==) Max clients allowed: 256, resource mask: 0x1f
[   448.618] (**) FontPath set to:
	/gnu/store/cn966w06mgzsbprs5cdzmv3ll8if3gr5-font-alias-1.0.3/share/fonts/X11/75dpi,
	/gnu/store/cn966w06mgzsbprs5cdzmv3ll8if3gr5-font-alias-1.0.3/share/fonts/X11/100dpi,
	/gnu/store/cn966w06mgzsbprs5cdzmv3ll8if3gr5-font-alias-1.0.3/share/fonts/X11/misc,
	/gnu/store/cn966w06mgzsbprs5cdzmv3ll8if3gr5-font-alias-1.0.3/share/fonts/X11/cyrillic,
	/gnu/store/c6xanp3280ivgb8s0hn8hcv09hazh6zg-font-misc-misc-1.1.2/share/fonts/X11/misc,
	/gnu/store/10ck7vgnj15kg1ik7lyaicabc48c20yb-font-adobe75dpi-1.0.3/share/fonts/X11/75dpi
[   448.618] (**) ModulePath set to "/gnu/store/f7njbzwahmpkwx8cwcxb1m0iqmxc2rr5-xf86-video-vesa-2.4.0/lib/xorg/modules/drivers,/gnu/store/8bykkjc315n8zdgmip83lr68p8hbdgc1-xf86-video-fbdev-0.5.0/lib/xorg/modules/drivers,/gnu/store/

bug#35408: External monitor not working with GDM

2019-04-25 Thread Diego Nicola Barbato
Hi Ben,

Ben Sturmfels  writes:

> Hi Ludovic,
>
> On Thu, 2019-04-25 at 11:08 +0200, Ludovic Courtès wrote:
>> 
>> Ben Sturmfels  skribis:
>> 
>> > I was previously using a 24" Samsung external monitor with my X200
>> > Guix
>> > System via VGA. Since the switch to GDM, I no longer seem to be
>> > able
>> > connect this monitor. When I do, the laptop screen just keeps
>> > flashing.
>> 
>> So the GDM login screen never shows up, right?
>
> I'm thoroughly confused now. GDM definitely *was* working with the
> laptop screen only, but now when I reconfigure it or choose an old Grub
> entry, I can't get to the login screen with either external monitor or
> the laptop. In both cases the console loops showing a message something
> like:
>
> New session c1 of user gdm.
> Removed session c1.
> .
> .
> .
> New session c506 of user gdm.
> Removed session c506.

This sounds familiar.  Can you check if /var/lib/gdm is owned by gdm.
If it isn't, chowning it back to gdm:gdm should fix it.

Regards

Diego





bug#35408: External monitor not working with GDM

2019-04-25 Thread Ludovic Courtès
Danny Milosavljevic  skribis:

>> Apr 25 20:30:55 localhost gdm: Child process -15096 was already dead. 
>> Apr 25 20:30:55 localhost gdm: Child process 15093 was already dead. 
>> Apr 25 20:30:55 localhost gdm: Unable to kill session worker process 
>
> WTF.  I hope they don't kill the same pid twice and thus risk killing
> innocent bystanders that happen to reuse the pid of the dead process.
>
> common/gdm-common.c gdm_signal_pid ... yes, they do.

:-)





bug#35408: External monitor not working with GDM

2019-04-25 Thread Ben Sturmfels
On Thu, 2019-04-25 at 14:16 +0200, Danny Milosavljevic wrote:
> On Thu, 25 Apr 2019 21:41:27 +1000
> Ben Sturmfels  wrote:
> 
> > Apr 25 20:30:54 localhost gdm:
> > gdm_session_set_environment_variable:
> > assertion 'value != NULL' failed 
> 
> Yeah, that one again.  It might make sense to patch that so the
> assertion actually prints name and value passed.
> 
> You can also set "debug"'s "Enable=true" in gnu/services/xorg.scm ,
> in gdm-configuration-file , but it will only help in a limited way
> here.

Thanks Danny, I'll try enabling debugging in a second and see if I can
get some more info.

For what it's worth, I've attached my minimal system config that won't
start GDM on either internal or external monitor. It's very close to
what's in the manual. This is on an X200 with Libreboot running Guix
System 33023baac8ec548fe64ce8e4eb48840b5411ee4c.

Regards,
Ben(use-modules (gnu) (gnu system nss))
(use-service-modules desktop xorg)
(use-package-modules certs gnome)

(operating-system
 (host-name "Mars")
 (timezone "Australia/Melbourne")
 (locale "en_AU.utf8")

 ;; Choose US English keyboard layout.  The "altgr-intl"
 ;; variant provides dead keys for accented characters.
 (keyboard-layout (keyboard-layout "us" "altgr-intl"))

 ;; Assuming /dev/sdX is the target hard disk, and "my-root" is
 ;; the label of the target root file system.
 ;;
 ;; Using "target" here, rather than "device" suppresses a deprecation warning
 ;; from `guix reconfigure`.
 (bootloader (bootloader-configuration
  (bootloader grub-bootloader)
  (target "/dev/sda")))

 ;; Specify a mapped device for the encrypted root partition.
 ;; The UUID is that returned by 'cryptsetup luksUUID'.
 (mapped-devices
  (list (mapped-device
 (source (uuid "7c901f8e-c9fe-4e4d-989b-25a966e27df0"))
 (target "myroot")
 (type luks-device-mapping))
(mapped-device
 (source (uuid "a63a607b-4fd8-4093-be93-c6265744e8b8"))
 (target "myhome")
 (type luks-device-mapping

 (file-systems (append
(list (file-system
   (device (file-system-label "mars-root"))
   (mount-point "/")
   (type "ext4")
   (dependencies mapped-devices))
  (file-system
   (device (file-system-label "mars-home"))
   (mount-point "/home")
   (type "ext4")
   (dependencies mapped-devices)))
%base-file-systems))

 ;; This is where user accounts are specified.  The "root"
 ;; account is implicit, and is initially created with the
 ;; empty password.
 (users (cons (user-account
   (name "ben")
   (comment "Ben Sturmfels")
   (group "users")
   ;; Adding the account to the "wheel" group
   ;; makes it a sudoer.  Adding it to "audio"
   ;; and "video" allows the user to play sound
   ;; and access the webcam.
   (supplementary-groups '("wheel" "netdev"
   "audio" "video"
   "kvm" ; Needed for guix system vm
   ;; "docker"
   ))
   (home-directory "/home/ben"))
  %base-user-accounts))

 ;; Globally-installed packages.
 (packages (append
(list gvfs ; for user mounts
  nss-certs ; for HTTPS access
  )
%base-packages))

 ;; Add GNOME and/or Xfce---we can choose at the log-in
 ;; screen with F1.  Use the "desktop" services, which
 ;; include the X11 log-in service, networking with Wicd,
 ;; and more.
 (services (append
(list (service gnome-desktop-service-type)
  (service xfce-desktop-service-type)
  (set-xorg-configuration
   (xorg-configuration
(keyboard-layout keyboard-layout
%desktop-services))

 ;; Allow resolution of '.local' host names with mDNS.
 (name-service-switch %mdns-host-lookup-nss))


bug#35408: External monitor not working with GDM

2019-04-25 Thread Danny Milosavljevic
Hi,

On Thu, 25 Apr 2019 21:41:27 +1000
Ben Sturmfels  wrote:

> Apr 25 20:30:54 localhost gdm: gdm_session_set_environment_variable:
> assertion 'value != NULL' failed 

Yeah, that one again.  It might make sense to patch that so the assertion
actually prints name and value passed.

You can also set "debug"'s "Enable=true" in gnu/services/xorg.scm , in
gdm-configuration-file , but it will only help in a limited way here.

> Apr 25 20:30:55 localhost gdm: Could not start command
> '/gnu/store/072cd7r7zx2fgp1v16bv2si5s435lwkj-gdm-3.26.2.1/libexec/gdm-
> session-worker': Too many open files 

WTF.  Parts of gdm have full root privileges and for it to contain
simple mistakes like that is worrying.

> Apr 25 20:30:55 localhost gdm: GLib: g_child_watch_add_full: assertion
> 'pid > 0' failed 

gdm should have checked for errors before calling g_child_watch_add_full.

> Apr 25 20:30:55 localhost gdm: Child process -15096 was already dead. 
> Apr 25 20:30:55 localhost gdm: Child process 15093 was already dead. 
> Apr 25 20:30:55 localhost gdm: Unable to kill session worker process 

WTF.  I hope they don't kill the same pid twice and thus risk killing
innocent bystanders that happen to reuse the pid of the dead process.

common/gdm-common.c gdm_signal_pid ... yes, they do.


pgp1GHIV7OMO4.pgp
Description: OpenPGP digital signature


bug#35408: External monitor not working with GDM

2019-04-25 Thread Ben Sturmfels
Hi Ludovic,

On Thu, 2019-04-25 at 11:08 +0200, Ludovic Courtès wrote:
> 
> Ben Sturmfels  skribis:
> 
> > I was previously using a 24" Samsung external monitor with my X200
> > Guix
> > System via VGA. Since the switch to GDM, I no longer seem to be
> > able
> > connect this monitor. When I do, the laptop screen just keeps
> > flashing.
> 
> So the GDM login screen never shows up, right?

I'm thoroughly confused now. GDM definitely *was* working with the
laptop screen only, but now when I reconfigure it or choose an old Grub
entry, I can't get to the login screen with either external monitor or
the laptop. In both cases the console loops showing a message something
like:

New session c1 of user gdm.
Removed session c1.
.
.
.
New session c506 of user gdm.
Removed session c506.

I was able to choose an older system from the Grub menu with Slim
though.

> > Any suggestions on how to troubleshoot this?

> Could you share /var/lib/gdm/.local/share/xorg/Xorg.0.log?

I had a look at this file, but was suspicious that it wasn't fresh, so
I tried deleting it and it didn't come back. I found the following in
/var/log/messages:

Apr 25 20:30:54 localhost gdm: GLib: g_variant_new_string: assertion
'string != NULL' failed 
Apr 25 20:30:54 localhost gdm: Child process -15047 was already dead. 
Apr 25 20:30:54 localhost gdm: Child process 15044 was already dead. 
Apr 25 20:30:54 localhost gdm: Unable to kill session worker process 
Apr 25 20:30:54 localhost gdm: gdm_session_set_environment_variable:
assertion 'value != NULL' failed 
Apr 25 20:30:54 localhost gdm: Child process -15054 was already dead. 
Apr 25 20:30:54 localhost gdm: Child process 15051 was already dead. 
Apr 25 20:30:54 localhost gdm: Unable to kill session worker process 
Apr 25 20:30:54 localhost gdm: gdm_session_set_environment_variable:
assertion 'value != NULL' failed 
Apr 25 20:30:54 localhost gdm: Child process -15061 was already dead. 
Apr 25 20:30:54 localhost gdm: Child process -15061 was already dead. 
Apr 25 20:30:54 localhost gdm: gdm_session_set_environment_variable:
assertion 'value != NULL' failed 
Apr 25 20:30:54 localhost gdm: Child process -15068 was already dead. 
Apr 25 20:30:54 localhost gdm: Child process -15068 was already dead. 
Apr 25 20:30:54 localhost gdm: gdm_session_set_environment_variable:
assertion 'value != NULL' failed 
Apr 25 20:30:54 localhost gdm: Child process -15075 was already dead. 
Apr 25 20:30:54 localhost gdm: Child process -15075 was already dead. 
Apr 25 20:30:54 localhost gdm: gdm_session_set_environment_variable:
assertion 'value != NULL' failed 
Apr 25 20:30:54 localhost gdm: GLib: g_variant_new_string: assertion
'string != NULL' failed 
Apr 25 20:30:54 localhost gdm: Child process -15082 was already dead. 
Apr 25 20:30:54 localhost gdm: Child process 15079 was already dead. 
Apr 25 20:30:54 localhost gdm: Unable to kill session worker process 
Apr 25 20:30:55 localhost gdm: gdm_session_set_environment_variable:
assertion 'value != NULL' failed 
Apr 25 20:30:55 localhost gdm: Child process -15089 was already dead. 
Apr 25 20:30:55 localhost gdm: Child process -15089 was already dead. 
Apr 25 20:30:55 localhost gdm: gdm_session_set_environment_variable:
assertion 'value != NULL' failed 
Apr 25 20:30:55 localhost gdm: GLib: g_variant_new_string: assertion
'string != NULL' failed 
Apr 25 20:30:55 localhost gdm: Could not start command
'/gnu/store/072cd7r7zx2fgp1v16bv2si5s435lwkj-gdm-3.26.2.1/libexec/gdm-
session-worker': Too many open files 
Apr 25 20:30:55 localhost gdm: GLib: g_child_watch_add_full: assertion
'pid > 0' failed 
Apr 25 20:30:55 localhost gdm: Child process -15096 was already dead. 
Apr 25 20:30:55 localhost gdm: Child process 15093 was already dead. 
Apr 25 20:30:55 localhost gdm: Unable to kill session worker process 

> FWIW I have been using GDM with an external monitor just fine: the
GDM user selection box appears on the laptop screen and the other
screen just displays the background image.

That's good, sounds like it can't be anything major then. I'll keep
testing.

Regards,
Ben





bug#35408: External monitor not working with GDM

2019-04-25 Thread Ludovic Courtès
Hi Ben,

Ben Sturmfels  skribis:

> I was previously using a 24" Samsung external monitor with my X200 Guix
> System via VGA. Since the switch to GDM, I no longer seem to be able
> connect this monitor. When I do, the laptop screen just keeps flashing.

So the GDM login screen never shows up, right?

> Any suggestions on how to troubleshoot this?

Could you share /var/lib/gdm/.local/share/xorg/Xorg.0.log?

FWIW I have been using GDM with an external monitor just fine: the GDM
user selection box appears on the laptop screen and the other screen
just displays the background image.

Thanks,
Ludo’.





bug#35408: External monitor not working with GDM

2019-04-23 Thread Ben Sturmfels
Hi Folks,

I was previously using a 24" Samsung external monitor with my X200 Guix
System via VGA. Since the switch to GDM, I no longer seem to be able
connect this monitor. When I do, the laptop screen just keeps flashing.

Any suggestions on how to troubleshoot this?

Regards,
Ben


signature.asc
Description: PGP signature