unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Start Xorg server using xinit manually
@ 2021-03-21 22:05 Bone Baboon
  2021-03-21 23:05 ` jbranso
  2021-03-22  3:29 ` Vladimir Sedach
  0 siblings, 2 replies; 20+ messages in thread
From: Bone Baboon @ 2021-03-21 22:05 UTC (permalink / raw)
  To: help-guix

I am trying to start `xorg` from the Linux console virtual terminal 1
(vt1) using `xinit`.  I have not got `xorg` working yet and would
appreciate any assistance.

Thank you

---

CPU: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
GPU: AMD ATI 05:00.0 Picasso 

I have just completed a `guix update` and a
`guix system reconfigure config.scm`.

`guix describe` outputs:

```
Generation 4    Mar 20 2021 13:40:26    (current)
  guix b09967b
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: b09967bc587dd61c638da3d6fb5bbda7e87ed85c
```

I have installed `xorg-server`, `xinit`, `xf86-video-ati`,
`xf86-video-fbdev`, `xf86-video-vesa` and `emacs`.

The contents of ~/.xinitrc is "exec emacs".

I am trying to start the xorg server with `xinit`. The xinit command I
am using is:

```
/run/current-system/profile/bin/xinit -- \
	/run/current-system/profile/bin/Xorg :0 vt1 \
	-keeptty \
	-configdir /run/current-system/profile/share/X11/xorg.conf.d \
	-modulepath /run/current-system/profile/lib/xorg/modules
```

This xinit command is based on this mailing list post.
https://lists.gnu.org/archive/html/help-guix/2018-07/msg00080.html

When I run the above `xinit` command it fail with the log below.

The command also fails with a similar log when prefixed with sudo.

~/.local/share/xorg/Xorg.0.log
```
[    95.135] _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
[    95.135]
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[    95.135] Build Operating System: GNU GuixSD
[    95.136] Current Operating System: Linux user 5.11.6-gnu #1 SMP 1 x86_64
[    95.136] Kernel command line: BOOT_IMAGE=/gnu/store/dqcq8sph0754dknlj1swlqr9n04pzmiy-linux-libre-5.11.6/bzImage --root=/dev/mapper/cryptroot --system=/gnu/store/vc4h71xk15ynx4bhrqz3x04ixnzlklhc-system --load=/gnu/store/vc4h71xk15ynx4bhrqz3x04ixnzlklhc-system/boot nomodeset
[    95.136] Build Date: 01 January 1970  12:00:01AM
[    95.136]
[    95.136] Current version of pixman: 0.38.4
[    95.136]    Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    95.136] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    95.137] (==) Log file: "/home/user/.local/share/xorg/Xorg.0.log", Time: Sat Mar 20 12:59:47 2021
[    95.171] (++) Using config directory: "/run/current-system/profile/share/X11/xorg.conf.d"
[    95.171] (==) Using system config directory "/gnu/store/h7as77gz35p8la1llja3g05f15pgv31l-xorg-server-1.20.10/share/X11/xorg.conf.d"
[    95.173] (==) No Layout section.  Using the first Screen section.
[    95.173] (==) No screen section available. Using defaults.
[    95.173] (**) |-->Screen "Default Screen Section" (0)
[    95.173] (**) |   |-->Monitor "<default monitor>"
[    95.176] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    95.176] (==) Automatically adding devices
[    95.176] (==) Automatically enabling devices
[    95.176] (==) Automatically adding GPU devices
[    95.181] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    95.181] (==) FontPath set to:

[    95.181] (++) ModulePath set to "/run/current-system/profile/lib/xorg/modules"
[    95.181] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    95.181] (II) Loader magic: 0x617cc0
[    95.181] (II) Module ABI versions:
[    95.181]    X.Org ANSI C Emulation: 0.4
[    95.181]    X.Org Video Driver: 24.1
[    95.181]    X.Org XInput driver : 24.1
[    95.181]    X.Org Server Extension : 10.0
[    95.183] (EE) dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory)
[    95.183] (++) using VT number 1

[    95.185] (--) PCI:*(5@0:0:0) 1002:15d8:1025:134d rev 194, Mem @ 0xb0000000/268435456, 0xc0000000/2097152, 0xc0800000/524288, I/O @ 0x00001000/256
[    95.185] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    95.185] (II) LoadModule: "glx"
[    95.215] (II) Loading /run/current-system/profile/lib/xorg/modules/extensions/libglx.so
[    95.319] (II) Module glx: vendor="X.Org Foundation"
[    95.319]    compiled for 1.20.10, module version = 1.0.0
[    95.319]    ABI class: X.Org Server Extension, version 10.0
[    95.319] (==) Matched ati as autoconfigured driver 0
[    95.319] (==) Matched modesetting as autoconfigured driver 1
[    95.319] (==) Matched fbdev as autoconfigured driver 2
[    95.319] (==) Matched vesa as autoconfigured driver 3
[    95.319] (==) Assigned the driver to the xf86ConfigLayout
[    95.319] (II) LoadModule: "ati"
[    95.371] (II) Loading /run/current-system/profile/lib/xorg/modules/drivers/ati_drv.so
[    95.372] (II) Module ati: vendor="X.Org Foundation"
[    95.372]    compiled for 1.20.10, module version = 19.1.0
[    95.372]    Module class: X.Org Video Driver
[    95.372]    ABI class: X.Org Video Driver, version 24.1
[    95.372] (II) LoadModule: "radeon"
[    95.372] (II) Loading /run/current-system/profile/lib/xorg/modules/drivers/radeon_drv.so
[    95.408] (II) Module radeon: vendor="X.Org Foundation"
[    95.408]    compiled for 1.20.10, module version = 19.1.0
[    95.408]    Module class: X.Org Video Driver
[    95.408]    ABI class: X.Org Video Driver, version 24.1
[    95.408] (II) LoadModule: "modesetting"
[    95.408] (II) Loading /run/current-system/profile/lib/xorg/modules/drivers/modesetting_drv.so
[    95.416] (II) Module modesetting: vendor="X.Org Foundation"
[    95.416]    compiled for 1.20.10, module version = 1.20.10
[    95.416]    Module class: X.Org Video Driver
[    95.416]    ABI class: X.Org Video Driver, version 24.1
[    95.416] (II) LoadModule: "fbdev"
[    95.416] (II) Loading /run/current-system/profile/lib/xorg/modules/drivers/fbdev_drv.so
[    95.419] (II) Module fbdev: vendor="X.Org Foundation"
[    95.419]    compiled for 1.20.10, module version = 0.5.0
[    95.419]    Module class: X.Org Video Driver
[    95.419]    ABI class: X.Org Video Driver, version 24.1
[    95.419] (II) LoadModule: "vesa"
[    95.420] (II) Loading /run/current-system/profile/lib/xorg/modules/drivers/vesa_drv.so
[    95.425] (II) Module vesa: vendor="X.Org Foundation"
[    95.425]    compiled for 1.20.10, module version = 2.4.0
[    95.425]    Module class: X.Org Video Driver
[    95.425]    ABI class: X.Org Video Driver, version 24.1
[    95.425] (II) RADEON: Driver for ATI/AMD Radeon chipsets:
	ATI Radeon Mobility X600 (M24), ATI FireMV 2400,
	ATI Radeon Mobility X300 (M24), ATI FireGL M24 GL,
	ATI Radeon X600 (RV380), ATI FireGL V3200 (RV380),
	ATI Radeon IGP320 (A3), ATI Radeon IGP330/340/350 (A4),
	ATI Radeon 9500, ATI Radeon 9600TX, ATI FireGL Z1, ATI Radeon 9800SE,
	ATI Radeon 9800, ATI FireGL X2, ATI Radeon 9600, ATI Radeon 9600SE,
	ATI Radeon 9600XT, ATI FireGL T2, ATI Radeon 9650, ATI FireGL RV360,
	ATI Radeon 7000 IGP (A4+), ATI Radeon 8500 AIW,
	ATI Radeon IGP320M (U1), ATI Radeon IGP330M/340M/350M (U2),
	ATI Radeon Mobility 7000 IGP, ATI Radeon 9000/PRO, ATI Radeon 9000,
	ATI Radeon X800 (R420), ATI Radeon X800PRO (R420),
	ATI Radeon X800SE (R420), ATI FireGL X3 (R420),
	ATI Radeon Mobility 9800 (M18), ATI Radeon X800 SE (R420),
	ATI Radeon X800XT (R420), ATI Radeon X800 VE (R420),
	ATI Radeon X850 (R480), ATI Radeon X850 XT (R480),
	ATI Radeon X850 SE (R480), ATI Radeon X850 PRO (R480),
	ATI Radeon X850 XT PE (R480), ATI Radeon Mobility M7,
	ATI Mobility FireGL 7800 M7, ATI Radeon Mobility M6,
	ATI FireGL Mobility 9000 (M9), ATI Radeon Mobility 9000 (M9),
	ATI Radeon 9700 Pro, ATI Radeon 9700/9500Pro, ATI FireGL X1,
	ATI Radeon 9800PRO, ATI Radeon 9800XT,
	ATI Radeon Mobility 9600/9700 (M10/M11),
	ATI Radeon Mobility 9600 (M10), ATI Radeon Mobility 9600 (M11),
	ATI FireGL Mobility T2 (M10), ATI FireGL Mobility T2e (M11),
	ATI Radeon, ATI FireGL 8700/8800, ATI Radeon 8500, ATI Radeon 9100,
	ATI Radeon 7500, ATI Radeon VE/7000, ATI ES1000,
	ATI Radeon Mobility X300 (M22), ATI Radeon Mobility X600 SE (M24C),
	ATI FireGL M22 GL, ATI Radeon X800 (R423), ATI Radeon X800PRO (R423),
	ATI Radeon X800LE (R423), ATI Radeon X800SE (R423),
	ATI Radeon X800 XTP (R430), ATI Radeon X800 XL (R430),
	ATI Radeon X800 SE (R430), ATI Radeon X800 (R430),
	ATI FireGL V7100 (R423), ATI FireGL V5100 (R423),
	ATI FireGL unknown (R423), ATI Mobility FireGL V5000 (M26),
	ATI Mobility Radeon X700 XL (M26), ATI Mobility Radeon X700 (M26),
	ATI Radeon X550XTX, ATI Radeon 9100 IGP (A5),
	ATI Radeon Mobility 9100 IGP (U3), ATI Radeon XPRESS 200,
	ATI Radeon XPRESS 200M, ATI Radeon 9250, ATI Radeon 9200,
	ATI Radeon 9200SE, ATI FireMV 2200, ATI Radeon X300 (RV370),
	ATI Radeon X600 (RV370), ATI Radeon X550 (RV370),
	ATI FireGL V3100 (RV370), ATI FireMV 2200 PCIE (RV370),
	ATI Radeon Mobility 9200 (M9+), ATI Mobility Radeon X800 XT (M28),
	ATI Mobility FireGL V5100 (M28), ATI Mobility Radeon X800 (M28),
	ATI Radeon X850, ATI unknown Radeon / FireGL (R480),
	ATI Radeon X800XT (R423), ATI FireGL V5000 (RV410),
	ATI Radeon X700 XT (RV410), ATI Radeon X700 PRO (RV410),
	ATI Radeon X700 SE (RV410), ATI Radeon X700 (RV410),
	ATI Radeon X1800, ATI Mobility Radeon X1800 XT,
	ATI Mobility Radeon X1800, ATI Mobility FireGL V7200,
	ATI FireGL V7200, ATI FireGL V5300, ATI Mobility FireGL V7100,
	ATI FireGL V7300, ATI FireGL V7350, ATI Radeon X1600, ATI RV505,
	ATI Radeon X1300/X1550, ATI Radeon X1550, ATI M54-GL,
	ATI Mobility Radeon X1400, ATI Radeon X1550 64-bit,
	ATI Mobility Radeon X1300, ATI Radeon X1300, ATI FireGL V3300,
	ATI FireGL V3350, ATI Mobility Radeon X1450,
	ATI Mobility Radeon X2300, ATI Mobility Radeon X1350,
	ATI FireMV 2250, ATI Radeon X1650, ATI Mobility FireGL V5200,
	ATI Mobility Radeon X1600, ATI Radeon X1300 XT/X1600 Pro,
	ATI FireGL V3400, ATI Mobility FireGL V5250,
	ATI Mobility Radeon X1700, ATI Mobility Radeon X1700 XT,
	ATI FireGL V5200, ATI Radeon X2300HD, ATI Mobility Radeon HD 2300,
	ATI Radeon X1950, ATI Radeon X1900, ATI AMD Stream Processor,
	ATI RV560, ATI Mobility Radeon X1900, ATI Radeon X1950 GT, ATI RV570,
	ATI FireGL V7400, ATI Radeon 9100 PRO IGP,
	ATI Radeon Mobility 9200 IGP, ATI Radeon X1200, ATI RS740,
	ATI RS740M, ATI Radeon HD 2900 XT, ATI Radeon HD 2900 Pro,
	ATI Radeon HD 2900 GT, ATI FireGL V8650, ATI FireGL V8600,
	ATI FireGL V7600, ATI Radeon 4800 Series, ATI Radeon HD 4870 x2,
	ATI Radeon HD 4850 x2, ATI FirePro V8750 (FireGL),
	ATI FirePro V7760 (FireGL), ATI Mobility RADEON HD 4850,
	ATI Mobility RADEON HD 4850 X2, ATI FirePro RV770,
	AMD FireStream 9270, AMD FireStream 9250, ATI FirePro V8700 (FireGL),
	ATI Mobility RADEON HD 4870, ATI Mobility RADEON M98,
	ATI FirePro M7750, ATI M98, ATI Mobility Radeon HD 4650,
	ATI Radeon RV730 (AGP), ATI Mobility Radeon HD 4670,
	ATI FirePro M5750, ATI RV730XT [Radeon HD 4670], ATI RADEON E4600,
	ATI Radeon HD 4600 Series, ATI RV730 PRO [Radeon HD 4650],
	ATI FirePro V7750 (FireGL), ATI FirePro V5700 (FireGL),
	ATI FirePro V3750 (FireGL), ATI Mobility Radeon HD 4830,
	ATI Mobility Radeon HD 4850, ATI FirePro M7740, ATI RV740,
	ATI Radeon HD 4770, ATI Radeon HD 4700 Series, ATI RV610,
	ATI Radeon HD 2400 XT, ATI Radeon HD 2400 Pro,
	ATI Radeon HD 2400 PRO AGP, ATI FireGL V4000, ATI Radeon HD 2350,
	ATI Mobility Radeon HD 2400 XT, ATI Mobility Radeon HD 2400,
	ATI RADEON E2400, ATI FireMV 2260, ATI RV670, ATI Radeon HD3870,
	ATI Mobility Radeon HD 3850, ATI Radeon HD3850,
	ATI Mobility Radeon HD 3850 X2, ATI Mobility Radeon HD 3870,
	ATI Mobility Radeon HD 3870 X2, ATI Radeon HD3870 X2,
	ATI FireGL V7700, ATI Radeon HD3690, AMD Firestream 9170,
	ATI Radeon HD 4550, ATI Radeon RV710, ATI Radeon HD 4350,
	ATI Mobility Radeon 4300 Series, ATI Mobility Radeon 4500 Series,
	ATI FirePro RG220, ATI Mobility Radeon 4330, ATI RV630,
	ATI Mobility Radeon HD 2600, ATI Mobility Radeon HD 2600 XT,
	ATI Radeon HD 2600 XT AGP, ATI Radeon HD 2600 Pro AGP,
	ATI Radeon HD 2600 XT, ATI Radeon HD 2600 Pro, ATI Gemini RV630,
	ATI Gemini Mobility Radeon HD 2600 XT, ATI FireGL V5600,
	ATI FireGL V3600, ATI Radeon HD 2600 LE,
	ATI Mobility FireGL Graphics Processor, ATI Radeon HD 3470,
	ATI Mobility Radeon HD 3430, ATI Mobility Radeon HD 3400 Series,
	ATI Radeon HD 3450, ATI Radeon HD 3430, ATI FirePro V3700,
	ATI FireMV 2450, ATI Radeon HD 3600 Series, ATI Radeon HD 3650 AGP,
	ATI Radeon HD 3600 PRO, ATI Radeon HD 3600 XT,
	ATI Mobility Radeon HD 3650, ATI Mobility Radeon HD 3670,
	ATI Mobility FireGL V5700, ATI Mobility FireGL V5725,
	ATI Radeon HD 3200 Graphics, ATI Radeon 3100 Graphics,
	ATI Radeon HD 3300 Graphics, ATI Radeon 3000 Graphics, SUMO, SUMO2,
	ATI Radeon HD 4200, ATI Radeon 4100, ATI Mobility Radeon HD 4200,
	ATI Mobility Radeon 4100, ATI Radeon HD 4290, ATI Radeon HD 4250,
	AMD Radeon HD 6310 Graphics, AMD Radeon HD 6250 Graphics,
	AMD Radeon HD 6300 Series Graphics,
	AMD Radeon HD 6200 Series Graphics, PALM, CYPRESS,
	ATI FirePro (FireGL) Graphics Adapter, AMD Firestream 9370,
	AMD Firestream 9350, ATI Radeon HD 5800 Series,
	ATI Radeon HD 5900 Series, ATI Mobility Radeon HD 5800 Series,
	ATI Radeon HD 5700 Series, ATI Radeon HD 6700 Series,
	ATI Mobility Radeon HD 5000 Series, ATI Mobility Radeon HD 5570,
	ATI Radeon HD 5670, ATI Radeon HD 5570, ATI Radeon HD 5500 Series,
	REDWOOD, ATI Mobility Radeon Graphics, CEDAR, ATI FirePro 2270,
	ATI Radeon HD 5450, CAYMAN, AMD Radeon HD 6900 Series,
	AMD Radeon HD 6900M Series, Mobility Radeon HD 6000 Series, BARTS,
	AMD Radeon HD 6800 Series, AMD Radeon HD 6700 Series, TURKS, CAICOS,
	ARUBA, TAHITI, PITCAIRN, VERDE, OLAND, HAINAN, BONAIRE, KABINI,
	MULLINS, KAVERI, HAWAII
[    95.427] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    95.427] (II) FBDEV: driver for framebuffer: fbdev
[    95.427] (II) VESA: driver for VESA chipsets: vesa
[    95.427] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[    95.427] (EE) open /dev/dri/card0: No such file or directory
[    95.427] (WW) Falling back to old probe method for modesetting
[    95.427] (EE) open /dev/dri/card0: No such file or directory
[    95.427] (II) Loading sub module "fbdevhw"
[    95.427] (II) LoadModule: "fbdevhw"
[    95.427] (II) Loading /run/current-system/profile/lib/xorg/modules/libfbdevhw.so
[    95.430] (II) Module fbdevhw: vendor="X.Org Foundation"
[    95.430]    compiled for 1.20.10, module version = 0.0.2
[    95.430]    ABI class: X.Org Video Driver, version 24.1
[    95.430] (EE) Unable to find a valid framebuffer device
[    95.430] (WW) Falling back to old probe method for fbdev
[    95.430] (II) Loading sub module "fbdevhw"
[    95.430] (II) LoadModule: "fbdevhw"
[    95.431] (II) Loading /run/current-system/profile/lib/xorg/modules/libfbdevhw.so
[    95.431] (II) Module fbdevhw: vendor="X.Org Foundation"
[    95.431]    compiled for 1.20.10, module version = 0.0.2
[    95.431]    ABI class: X.Org Video Driver, version 24.1
[    95.431] (II) FBDEV(2): using default device
[    95.431] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    95.431] (EE) Screen 0 deleted because of no matching config section.
[    95.431] (II) UnloadModule: "modesetting"
[    95.431] (EE) Screen 0 deleted because of no matching config section.
[    95.431] (II) UnloadModule: "fbdev"
[    95.431] (II) UnloadSubModule: "fbdevhw"
[    95.431] (EE)
Fatal server error:
[    95.431] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
[    95.431] (EE)
[    95.431] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[    95.431] (EE) Please also check the log file at "/home/user/.local/share/xorg/Xorg.0.log" for additional information.
[    95.431] (EE)
[    95.435] (EE) Server terminated with error (1). Closing log file.
```


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-21 22:05 Start Xorg server using xinit manually Bone Baboon
@ 2021-03-21 23:05 ` jbranso
  2021-03-21 23:21   ` nylxs
  2021-03-21 23:58   ` Bone Baboon
  2021-03-22  3:29 ` Vladimir Sedach
  1 sibling, 2 replies; 20+ messages in thread
From: jbranso @ 2021-03-21 23:05 UTC (permalink / raw)
  To: bone.baboon, help-guix

March 21, 2021 6:31 PM, "Bone Baboon" <bone.baboon@disroot.org> wrote:

> I am trying to start `xorg` from the Linux console virtual terminal 1
> (vt1) using `xinit`. I have not got `xorg` working yet and would
> appreciate any assistance.

May I ask why you are trying to manually run xinit?  Is your favorite wm
or desktop environment not packaged as a service in Guix?  Ahh, I see you
are just trying to start Emacs.  Very awesome!

If all you are wanting is to use Emacs, you could always just launch Emace
from the virtual console, and not have mouse support.

> 
> CPU: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
> GPU: AMD ATI 05:00.0 Picasso 
> 

Maybe you're running into linux-libre GPU isses.  I think the AMD graphics
cards prefer to use some binary blobs to operate properly...

> I have installed `xorg-server`, `xinit`, `xf86-video-ati`,
> `xf86-video-fbdev`, `xf86-video-vesa` and `emacs`.
> 

Though I thought xf86-video-vesa was supposed to run on almost anything.


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-21 23:05 ` jbranso
@ 2021-03-21 23:21   ` nylxs
  2021-03-22 17:14     ` Leo Famulari
  2021-03-21 23:58   ` Bone Baboon
  1 sibling, 1 reply; 20+ messages in thread
From: nylxs @ 2021-03-21 23:21 UTC (permalink / raw)
  To: help-guix

On 3/21/21 7:05 PM, jbranso@dismail.de wrote:
> May I ask why you are trying to manually run xinit?


Becuse he wants to.
  This is always a loaded question making an excuse to avoid answering
it.  It should just work from the command line, no excuses, because the
user wants it that way.



^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-21 23:05 ` jbranso
  2021-03-21 23:21   ` nylxs
@ 2021-03-21 23:58   ` Bone Baboon
  2021-03-22  2:55     ` Joshua Branson
  1 sibling, 1 reply; 20+ messages in thread
From: Bone Baboon @ 2021-03-21 23:58 UTC (permalink / raw)
  To: jbranso; +Cc: help-guix


Thanks for your reply.

jbranso@dismail.de writes:

> March 21, 2021 6:31 PM, "Bone Baboon" <bone.baboon@disroot.org> wrote:
>
> May I ask why you are trying to manually run xinit?  Is your favorite wm
> or desktop environment not packaged as a service in Guix?  Ahh, I see you
> are just trying to start Emacs.  Very awesome!

I am trying to manually run `xinit` so that I can use Emacs X Window
Manager (EXWM).  I have EXWM configured in my Emacs configuration file.
I have a small number of important graphical applications I want to run
in EXWM (web browser, Jami, qTox, ...).

> If all you are wanting is to use Emacs, you could always just launch Emace
> from the virtual console, and not have mouse support.

If I run `emacs` from a virtual terminal in the *Messages* buffer it
says "[EXWM] Not running under X environment".

I am currently working without `xorg` in virtual terminals or in Emacs
with `emacsclient --tty`.  I am really appreciating `eww` as a browser
that is in Emacs.


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-21 23:58   ` Bone Baboon
@ 2021-03-22  2:55     ` Joshua Branson
  2021-03-22 16:49       ` Gary Johnson
  2021-03-24 21:48       ` Bone Baboon
  0 siblings, 2 replies; 20+ messages in thread
From: Joshua Branson @ 2021-03-22  2:55 UTC (permalink / raw)
  To: Bone Baboon; +Cc: help-guix

Bone Baboon <bone.baboon@disroot.org> writes:

> Thanks for your reply.
>
> jbranso@dismail.de writes:
>
>> March 21, 2021 6:31 PM, "Bone Baboon" <bone.baboon@disroot.org> wrote:
>>
> I am trying to manually run `xinit` so that I can use Emacs X Window
> Manager (EXWM).  I have EXWM configured in my Emacs configuration file.
> I have a small number of important graphical applications I want to run
> in EXWM (web browser, Jami, qTox, ...).

Ok.  Very cool!

>
>> If all you are wanting is to use Emacs, you could always just launch Emace
>> from the virtual console, and not have mouse support.
>
> If I run `emacs` from a virtual terminal in the *Messages* buffer it
> says "[EXWM] Not running under X environment".

Do any of the officially supported guix wm's or desktop environments
work for you?

>
> I am currently working without `xorg` in virtual terminals or in Emacs
> with `emacsclient --tty`.  I am really appreciating `eww` as a browser
> that is in Emacs.

eww is certainly interesting.

--
Joshua Branson (joshuaBPMan in #guix)
Sent from Emacs and Gnus
  https://gnucode.me
  https://video.hardlimit.com/accounts/joshua_branson/video-channels
  https://propernaming.org
  "You can have whatever you want, as long as you help
enough other people get what they want." - Zig Ziglar


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-21 22:05 Start Xorg server using xinit manually Bone Baboon
  2021-03-21 23:05 ` jbranso
@ 2021-03-22  3:29 ` Vladimir Sedach
  2021-03-24 22:18   ` Bone Baboon
  1 sibling, 1 reply; 20+ messages in thread
From: Vladimir Sedach @ 2021-03-22  3:29 UTC (permalink / raw)
  To: bone.baboon; +Cc: help-guix


Bone Baboon <bone.baboon@disroot.org> writes:

> The command also fails with a similar log when prefixed with sudo.

Well, that rules out the setuid issue. Do you get graphics with a
login manager service? I tried getting xinit running as you have, but
gave up at the same step: no /dev/dri/card0 device node.

Looking at my configuration now, I think the problem might be dbus.
Do you have dbus-service enabled? I suspect there might be an
implicit dependence between X and udev (which is probably what is
responsible for creating /dev/dri/card0) on dbus, that might not be
producing any log messages.

The minimal X configuration I have is:
(dbus-service) (service slim-service-type)

> [    95.135] _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
> [    95.427] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)

This part indicates that you might need to figure out the setuid
issue anyway (or run as root) if you make further progress. Debian
has a setuid wrapper executable (at /usr/lib/xorg/Xorg.wrap) that
could be a starting point. I think something like that might need to
go to xinit upstream. See https://issues.guix.gnu.org/25865

If dbus-service does indeed get you farther along, can you please
report that back to the list? In that case, it would seem that
dbus-service is a necessary dependency for running X and should
become part of the provided login manager services.

--
Vladimir Sedach
Software engineering services in Los Angeles https://oneofus.la


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-22  2:55     ` Joshua Branson
@ 2021-03-22 16:49       ` Gary Johnson
  2021-03-22 18:34         ` Vincent Legoll
  2021-03-23  3:22         ` Bone Baboon
  2021-03-24 21:48       ` Bone Baboon
  1 sibling, 2 replies; 20+ messages in thread
From: Gary Johnson @ 2021-03-22 16:49 UTC (permalink / raw)
  To: Bone Baboon; +Cc: help-guix

> March 21, 2021 6:31 PM, "Bone Baboon" <bone.baboon@disroot.org> wrote:
>
> I am trying to manually run `xinit` so that I can use Emacs X Window
> Manager (EXWM). I have EXWM configured in my Emacs configuration file.
> I have a small number of important graphical applications I want to
> run in EXWM (web browser, Jami, qTox, ...).

Hi Bone,

  I run EXWM under Guix System. You don't need to manually start Xorg
with xinit, startx, or any other command. First, make sure that you are
installing emacs and emacs-exwm into your packages list. Also make sure
that your services list includes %desktop-services. Here's a skeleton
operating-system definition to build off of:

(operating-system
 ...
 (packages (cons* nss-certs   ; HTTPS access
                  emacs
                  emacs-exwm
                  %base-packages))

 (services (cons* whatever-else
                  you-want
                  %desktop-services)))

Start by installing this operating-system definition with the usual
`sudo guix system reconfigure my-config.scm`.

Then update your $HOME/.xsession file to include this at the end:

# Start Emacs with the script here: /run/current-system/profile/bin/exwm
exwm

Finally, update $HOME/.exwm to include all your EXWM-specific Emacs Lisp
code.

When you reboot your machine, you'll be presented with a simple
graphical login screen. Just type in your username and password for the
user account with the updated $HOME/.xsession and $HOME/exwm files and
log in. X will start up, your $HOME/.xsession file will be read, which
will launch exwm. This will start up a full screen emacs instance that
evaluates your $HOME/.exwm file and then your $HOME/.emacs.d/init.el
file.

That's all there is to it. Now you've got a fully graphically enabled
Emacs instance running as a tiling window manager over X.

Have fun and happy hacking!
 ~Gary

-- 
GPG Key ID: 7BC158ED
Use `gpg --search-keys lambdatronic' to find me
Protect yourself from surveillance: https://emailselfdefense.fsf.org
=======================================================================
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Why is HTML email a security nightmare? See https://useplaintext.email/

Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-21 23:21   ` nylxs
@ 2021-03-22 17:14     ` Leo Famulari
       [not found]       ` <a03873e7-122d-fa50-21df-295112a5ede5@optonline.net>
  0 siblings, 1 reply; 20+ messages in thread
From: Leo Famulari @ 2021-03-22 17:14 UTC (permalink / raw)
  To: nylxs; +Cc: help-guix

On Sun, Mar 21, 2021 at 07:21:06PM -0400, nylxs wrote:
> Becuse he wants to.
>   This is always a loaded question making an excuse to avoid answering
> it.  It should just work from the command line, no excuses, because the
> user wants it that way.

It has never been simple on Guix System to use xinit / startx, and we
have always recommended that users instead use the relevant Guix
services in order to launch a graphical system.

If it's very important that plain `xinit` should work on Guix System, we
invite helpers :)


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-22 16:49       ` Gary Johnson
@ 2021-03-22 18:34         ` Vincent Legoll
  2021-03-22 18:42           ` Leo Famulari
  2021-03-23  3:22         ` Bone Baboon
  1 sibling, 1 reply; 20+ messages in thread
From: Vincent Legoll @ 2021-03-22 18:34 UTC (permalink / raw)
  To: Gary Johnson; +Cc: help-guix

Hello Gary,

On Mon, Mar 22, 2021 at 5:49 PM Gary Johnson <lambdatronic@disroot.org> wrote:
> [...] Nicely described stuff

I think this would make a nice additional recipe for the cookbook.

WOGT ? (What Other Guixers Think)

-- 
Vincent Legoll


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-22 18:34         ` Vincent Legoll
@ 2021-03-22 18:42           ` Leo Famulari
  0 siblings, 0 replies; 20+ messages in thread
From: Leo Famulari @ 2021-03-22 18:42 UTC (permalink / raw)
  To: Vincent Legoll; +Cc: help-guix

On Mon, Mar 22, 2021 at 07:34:25PM +0100, Vincent Legoll wrote:
> Hello Gary,
> 
> On Mon, Mar 22, 2021 at 5:49 PM Gary Johnson <lambdatronic@disroot.org> wrote:
> > [...] Nicely described stuff
> 
> I think this would make a nice additional recipe for the cookbook.
> 
> WOGT ? (What Other Guixers Think)

Absolutely! People ask about this subject at least a few times each
year.


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
       [not found]       ` <a03873e7-122d-fa50-21df-295112a5ede5@optonline.net>
@ 2021-03-23  2:39         ` Leo Famulari
  0 siblings, 0 replies; 20+ messages in thread
From: Leo Famulari @ 2021-03-23  2:39 UTC (permalink / raw)
  To: nylxs; +Cc: help-guix

On Mon, Mar 22, 2021 at 10:11:57PM -0400, nylxs wrote:
> or it could be not broken,

Thanks for the hint!


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-22 16:49       ` Gary Johnson
  2021-03-22 18:34         ` Vincent Legoll
@ 2021-03-23  3:22         ` Bone Baboon
  2021-03-23  8:02           ` Sergiu Ivanov
  2021-03-23 18:37           ` Gary Johnson
  1 sibling, 2 replies; 20+ messages in thread
From: Bone Baboon @ 2021-03-23  3:22 UTC (permalink / raw)
  To: Gary Johnson; +Cc: help-guix

Gary Johnson writes:

>   I run EXWM under Guix System.

It is good to hear that someone else is able to successfully use EXWM
with Guix.

> You don't need to manually start Xorg
> with xinit, startx, or any other command. First, make sure that you are
> installing emacs and emacs-exwm into your packages list. Also make sure
> that your services list includes %desktop-services. Here's a skeleton
> operating-system definition to build off of:
>
> (operating-system
>  ...
>  (packages (cons* nss-certs   ; HTTPS access
>                   emacs
>                   emacs-exwm
>                   %base-packages))
>
>  (services (cons* whatever-else
>                   you-want
>                   %desktop-services)))
>
> Start by installing this operating-system definition with the usual
> `sudo guix system reconfigure my-config.scm`.
>
> Then update your $HOME/.xsession file to include this at the end:
>
> # Start Emacs with the script here: /run/current-system/profile/bin/exwm
> exwm
>
> Finally, update $HOME/.exwm to include all your EXWM-specific Emacs Lisp
> code.
>
> When you reboot your machine, you'll be presented with a simple
> graphical login screen. Just type in your username and password for the
> user account with the updated $HOME/.xsession and $HOME/exwm files and
> log in. X will start up, your $HOME/.xsession file will be read, which
> will launch exwm. This will start up a full screen emacs instance that
> evaluates your $HOME/.exwm file and then your $HOME/.emacs.d/init.el
> file.
>
> That's all there is to it. Now you've got a fully graphically enabled
> Emacs instance running as a tiling window manager over X.

Thank you for the detailed instructions.

When I follow the instruction and boot I am taken to vt7 which has only
a blinking cursor. I never get a graphical login for X. The system is
responsive and I can switch to other virtual terminals.

On vt1 there is output like this:

New session c1 of user gdm.
Removed session c1.
New session c2 of user gdm.
Removed session c2.
New session c3 of user gdm.
Removed session c3.
...


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-23  3:22         ` Bone Baboon
@ 2021-03-23  8:02           ` Sergiu Ivanov
  2021-03-24 21:42             ` Bone Baboon
  2021-03-23 18:37           ` Gary Johnson
  1 sibling, 1 reply; 20+ messages in thread
From: Sergiu Ivanov @ 2021-03-23  8:02 UTC (permalink / raw)
  To: Bone Baboon; +Cc: help-guix

Thus quoth  Bone Baboon  on Tue Mar 23 2021 at 04:22 (+0100):
> Gary Johnson writes:
>
>>   I run EXWM under Guix System.
>
> It is good to hear that someone else is able to successfully use EXWM
> with Guix.

I also started using EXWM recently and it works without any issues
for me (actually it works better than I expected).

However, I use the default login manager (elogind) from
%desktop-services, which picks up EXWM automatically for me.  I don't
manually start the X server, which is why I didn't previously chime in.

FWIW, here's the relevant snippet from my /etc/config.scm:

(packages (append
	   (map specification->package
		'("emacs"
		  "emacs-exwm"
		  "emacs-desktop-environment"
		  "nss-certs"))
	   %base-packages))
(services (append
	   (list (service xfce-desktop-service-type)
		 (set-xorg-configuration
		  (xorg-configuration (keyboard-layout keyboard-layout))))
	   %desktop-services))

You'll notice that I also install XFCE alongside EXWM, just in case (and
because I used it before I started configuring EXWM).

-
Sergiu


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-23  3:22         ` Bone Baboon
  2021-03-23  8:02           ` Sergiu Ivanov
@ 2021-03-23 18:37           ` Gary Johnson
  2021-03-26 20:41             ` Bone Baboon
  1 sibling, 1 reply; 20+ messages in thread
From: Gary Johnson @ 2021-03-23 18:37 UTC (permalink / raw)
  To: Bone Baboon; +Cc: help-guix

Bone Baboon <bone.baboon@disroot.org> writes:
>
> Thank you for the detailed instructions.
>
> When I follow the instruction and boot I am taken to vt7 which has only
> a blinking cursor. I never get a graphical login for X. The system is
> responsive and I can switch to other virtual terminals.
>
> On vt1 there is output like this:
>
> New session c1 of user gdm.
> Removed session c1.
> New session c2 of user gdm.
> Removed session c2.
> New session c3 of user gdm.
> Removed session c3.
> ...

Hmm...that's odd. %desktop-services contains both the gdm-service and
the elogind-service, which should bring X along for the ride. It sounds
like something in your configuration is preventing these services from
presenting you with a graphical login screen.

Could you share your operating-system declaration? Have you set up any
custom X configuration files somewhere that might be interfering with
the X launching process? Is your graphics card supported with Guix and
the X server?

Perhaps someone else on the list might have some other ideas?

Perplexed,
  Gary

-- 
GPG Key ID: 7BC158ED
Use `gpg --search-keys lambdatronic' to find me
Protect yourself from surveillance: https://emailselfdefense.fsf.org
=======================================================================
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Why is HTML email a security nightmare? See https://useplaintext.email/

Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-23  8:02           ` Sergiu Ivanov
@ 2021-03-24 21:42             ` Bone Baboon
  0 siblings, 0 replies; 20+ messages in thread
From: Bone Baboon @ 2021-03-24 21:42 UTC (permalink / raw)
  To: Sergiu Ivanov; +Cc: help-guix


Sergiu Ivanov writes:

> I also started using EXWM recently and it works without any issues
> for me (actually it works better than I expected).
>
> However, I use the default login manager (elogind) from
> %desktop-services, which picks up EXWM automatically for me.  I don't
> manually start the X server, which is why I didn't previously chime in.
>
> FWIW, here's the relevant snippet from my /etc/config.scm:
>
> (packages (append
> 	   (map specification->package
> 		'("emacs"
> 		  "emacs-exwm"
> 		  "emacs-desktop-environment"
> 		  "nss-certs"))
> 	   %base-packages))
> (services (append
> 	   (list (service xfce-desktop-service-type)
> 		 (set-xorg-configuration
> 		  (xorg-configuration (keyboard-layout keyboard-layout))))
> 	   %desktop-services))
>
> You'll notice that I also install XFCE alongside EXWM, just in case (and
> because I used it before I started configuring EXWM).

Thank you for sharing your configuration with EXWM.

I added the LXQt service to my config because at this point I would be
happy to have any type of desktop or window manager if I could start X.
However I do not even get to the point where there is a graphical login
prompt or selection of window manager or desktop environment.  I am
still just getting a blinking cursor on tty7.


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-22  2:55     ` Joshua Branson
  2021-03-22 16:49       ` Gary Johnson
@ 2021-03-24 21:48       ` Bone Baboon
  1 sibling, 0 replies; 20+ messages in thread
From: Bone Baboon @ 2021-03-24 21:48 UTC (permalink / raw)
  To: Joshua Branson; +Cc: help-guix


Joshua Branson writes:

> Do any of the officially supported guix wm's or desktop environments
> work for you?

I have tried the `emacs-exwm` package and the
`lxqt-desktop-service-type` service.  But I do not get a graphical login
I am only getting a blinking cursor on tty7.


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-22  3:29 ` Vladimir Sedach
@ 2021-03-24 22:18   ` Bone Baboon
  2021-03-25 15:20     ` Gary Johnson
  0 siblings, 1 reply; 20+ messages in thread
From: Bone Baboon @ 2021-03-24 22:18 UTC (permalink / raw)
  To: Vladimir Sedach; +Cc: help-guix


Vladimir Sedach writes:

> Do you get graphics with a login manager service?

I do not get graphics with GDM.  There is just a blinking cursor on
tty7.

> Looking at my configuration now, I think the problem might be dbus.
> Do you have dbus-service enabled? I suspect there might be an
> implicit dependence between X and udev (which is probably what is
> responsible for creating /dev/dri/card0) on dbus, that might not be
> producing any log messages.
>
> The minimal X configuration I have is:
> (dbus-service) (service slim-service-type)

If I use `%base-services` and add `dbus-service` this error goes away:
(EE) dbus-core: error connecting to system bus:
org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket
/var/run/dbus/system_bus_socket: No such file or directory)

However the other error messages remain.


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-24 22:18   ` Bone Baboon
@ 2021-03-25 15:20     ` Gary Johnson
  0 siblings, 0 replies; 20+ messages in thread
From: Gary Johnson @ 2021-03-25 15:20 UTC (permalink / raw)
  To: Bone Baboon; +Cc: Vladimir Sedach, help-guix

Bone Baboon <bone.baboon@disroot.org> writes:

>> Looking at my configuration now, I think the problem might be dbus.
>> Do you have dbus-service enabled? I suspect there might be an
>> implicit dependence between X and udev (which is probably what is
>> responsible for creating /dev/dri/card0) on dbus, that might not be
>> producing any log messages.
>>
>> The minimal X configuration I have is:
>> (dbus-service) (service slim-service-type)
>
> If I use `%base-services` and add `dbus-service` this error goes away:
> (EE) dbus-core: error connecting to system bus:
> org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket
> /var/run/dbus/system_bus_socket: No such file or directory)
>
> However the other error messages remain.

Are you including %desktop-services in your (operating-system (services
...)) list? I wonder if your problem is coming from something else in
your operating-system definition that those of us on the mailing list
aren't aware of.

~Gary

-- 
GPG Key ID: 7BC158ED
Use `gpg --search-keys lambdatronic' to find me
Protect yourself from surveillance: https://emailselfdefense.fsf.org
=======================================================================
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Why is HTML email a security nightmare? See https://useplaintext.email/

Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-23 18:37           ` Gary Johnson
@ 2021-03-26 20:41             ` Bone Baboon
  2021-03-28 17:30               ` Gary Johnson
  0 siblings, 1 reply; 20+ messages in thread
From: Bone Baboon @ 2021-03-26 20:41 UTC (permalink / raw)
  To: Gary Johnson; +Cc: help-guix


Gary Johnson writes:

> Hmm...that's odd. %desktop-services contains both the gdm-service and
> the elogind-service, which should bring X along for the ride. It sounds
> like something in your configuration is preventing these services from
> presenting you with a graphical login screen.
>
> Could you share your operating-system declaration?

Here is my operating-system declaration:

```
(operating-system

 (locale "en_US.utf8")
 (timezone "America/City")

 (keyboard-layout (keyboard-layout "us" "dvp"))

 (host-name "user")

 (users (cons* (user-account
                (name "user")
                (group "users")
                (home-directory "/home/user")
                (supplementary-groups
                 '("wheel" "netdev" "audio" "video")))
               %base-user-accounts))

 (packages
  (append
   (list

    ;shell
    dash
    
    ;networking
    ath9k-htc-firmware
    wpa-supplicant
    nss-certs
    openvpn
    openssh-sans-x
    netcat
    curl
    wget
    speedtest-cli

    ;compression
    unzip
    
    ;encryption
    gnupg
      
    ;version control
    git
      
    ;spelling
    hunspell
    hunspell-dict-en-us
      
    ;x11 stuff
    eudev
    xorg-server
    xf86-video-ati
    xf86-video-fbdev
    xf86-video-vesa
    xinit
    xdotool
    xbanish
    xev
    sxhkd
    setxkbmap
    xrandr

    ;emacs
    emacs
    emacs-exwm
      
    ;mail
    mu
    offlineimap
    msmtp
      
    ;graphical web browsers
    surf
    nyxt
      
    ;communictations
    toxic
    qtox
    jami
    mumble)

   %base-packages))

 (services (append (list
 		    (service lxqt-desktop-service-type))
		   %desktop-services))

 (bootloader
  (bootloader-configuration
   (bootloader grub-efi-bootloader)
   (target "/boot/efi")
   (keyboard-layout keyboard-layout)))

 (kernel-arguments '("nomodeset"))

 (mapped-devices
  (list (mapped-device
         (source
          (uuid "db155150-4229-4526-a67c-a3036e048c58"))
         (target "cryptroot")
         (type luks-device-mapping))))

 (file-systems
  (cons* (file-system
          (mount-point "/boot/efi")
          (device (uuid "318D-D6A7" 'fat32))
          (type "vfat"))
         (file-system
          (mount-point "/")
          (device "/dev/mapper/cryptroot")
          (type "ext4")
          (dependencies mapped-devices))
         %base-file-systems))

 (swap-devices (list "/swapfile")))
```

> Have you set up any custom X configuration files somewhere that might
> be interfering with the X launching process?

The only X related configuration files that I am aware of are:

.xinitrc with the contents "exec emacs".

.xsession with the contents "exwm".

.Xauthority is an empty file.

.Xdefaults has the contents:
```
XTerm*utf8: always
XTerm*metaSendsEscape: true

```

.exwm that contains my EXWM configuration.

If there are other relevant configuration files I can share there
contents as well.

> Is your graphics card supported with Guix and the X server?

CPU: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
GPU: AMD ATI 05:00.0 Picasso 

The graphics card works with the X server.  When I had Void installed on
the computer I was able to start X using `startx` with no problems.
Void uses a vanilla Linux kernel that has not been deblobbed like
Linux-libre.

I do not know if the graphics card is supported by Guix?


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Start Xorg server using xinit manually
  2021-03-26 20:41             ` Bone Baboon
@ 2021-03-28 17:30               ` Gary Johnson
  0 siblings, 0 replies; 20+ messages in thread
From: Gary Johnson @ 2021-03-28 17:30 UTC (permalink / raw)
  To: Bone Baboon; +Cc: help-guix

Bone Baboon <bone.baboon@disroot.org> writes:

> Here is my operating-system declaration:
>
> <snip>

I don't see anything out of the ordinary here. I don't use the nomodeset
kernel-arguments setting though. Perhaps that's just needed with your
hardware?

> .Xauthority is an empty file.
>
> .Xdefaults has the contents:
> ```
> XTerm*utf8: always
> XTerm*metaSendsEscape: true
>
> ```
> .exwm that contains my EXWM configuration.

Those all sound right to me. My .Xauthority contains a binary magic
cookie. You could delete the file and let X generate it next time it
starts up. Check your file permissions on all those files to make sure
you have read access to them.

> I do not know if the graphics card is supported by Guix?

To me, it sounds like this is still the most likely culprit. Perhaps
your graphics card just doesn't have corresponding drivers in the
linux-libre kernel.

For reference, here's my config.scm. It boots up directly into a
graphical login prompt, and upon logging in, it runs emacs-exwm as my
window manager. My exwm settings are in ~/.exwm, and my general emacs
settings are in ~/.emacs.d/init.el. My ~/.xsession file is a symlink to
my ~/.xinitrc file and ends with a call to exwm.

```
(use-modules ((guix gexp)               #:select (plain-file file-append))
             ((gnu system)              #:select (operating-system %base-packages local-host-aliases))
             ((gnu system nss)          #:select (%mdns-host-lookup-nss))
             ((gnu system shadow)       #:select (user-account %base-user-accounts))
             ((gnu system file-systems) #:select (file-system file-system-label %base-file-systems))
             ((gnu bootloader)          #:select (bootloader-configuration))
             ((gnu bootloader grub)     #:select (grub-bootloader))
             ((gnu services)            #:select (extra-special-file service))
             ((gnu services databases)  #:select (postgresql-service-type postgresql-configuration postgresql-config-file))
             ((gnu services desktop)    #:select (%desktop-services))
             ((gnu packages base)       #:select (coreutils))
             ((gnu packages certs)      #:select (nss-certs))
             ((gnu packages databases)  #:select (postgresql))
             ((gnu packages geo)        #:select (postgis)))

(operating-system
 (host-name "euclid")
 (timezone "America/New_York")
 (locale "en_US.utf8")

 (bootloader (bootloader-configuration
              (bootloader grub-bootloader)
              (target "/dev/sda")))

 (file-systems (cons* (file-system
                       (device (file-system-label "my-root"))
                       (mount-point "/")
                       (type "ext4"))
                      %base-file-systems))

 (swap-devices '("/swapfile"))

 (users (cons* (user-account
                (name "gjohnson")
                (comment "Just Another Lisp Hacker")
                (group "users")
                (supplementary-groups '("wheel" "netdev" "audio" "video" "lp"))
                (home-directory "/home/gjohnson"))
               %base-user-accounts))

 (packages (cons* nss-certs          ; HTTPS access
                  postgresql postgis ; psql, raster2pgsql, shp2pgsql, etc.
                  %base-packages))

 ;; Use the "desktop" services, which include the X11
 ;; log-in service, networking with NetworkManager, and more.
 (services (cons* (extra-special-file "/usr/bin/env" (file-append coreutils "/bin/env"))
                  (service postgresql-service-type (postgresql-configuration
                                                    (postgresql postgresql)
                                                    (extension-packages (list postgis))
                                                    (config-file (postgresql-config-file
                                                                  (hba-file (plain-file "pg_hba.conf" "CONTENTS ELIDED"))
                                                                  (extra-config '(("max_worker_processes" "12")
                                                                                  ("max_parallel_workers" "40")
                                                                                  ("max_parallel_maintenance_workers" "8")
                                                                                  ("max_parallel_workers_per_gather" "4")
                                                                                  ("parallel_leader_participation" "on")))))))
                  %desktop-services))

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

 (hosts-file (plain-file "hosts"
                         (string-append (local-host-aliases host-name)
                                        "CONTENTS ELIDED")))

 (sudoers-file (plain-file "sudoers" "CONTENTS ELIDED")))
```

I actually have emacs and emacs-exwm in my package-manifest.scm file,
which I use for installing all my user profile packages. However, adding
these to config.scm's packages list should be perfectly fine if you want
to keep everything in one place.

Best of luck,
  Gary

-- 
GPG Key ID: 7BC158ED
Use `gpg --search-keys lambdatronic' to find me
Protect yourself from surveillance: https://emailselfdefense.fsf.org
=======================================================================
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Why is HTML email a security nightmare? See https://useplaintext.email/

Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2021-03-28 17:31 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-21 22:05 Start Xorg server using xinit manually Bone Baboon
2021-03-21 23:05 ` jbranso
2021-03-21 23:21   ` nylxs
2021-03-22 17:14     ` Leo Famulari
     [not found]       ` <a03873e7-122d-fa50-21df-295112a5ede5@optonline.net>
2021-03-23  2:39         ` Leo Famulari
2021-03-21 23:58   ` Bone Baboon
2021-03-22  2:55     ` Joshua Branson
2021-03-22 16:49       ` Gary Johnson
2021-03-22 18:34         ` Vincent Legoll
2021-03-22 18:42           ` Leo Famulari
2021-03-23  3:22         ` Bone Baboon
2021-03-23  8:02           ` Sergiu Ivanov
2021-03-24 21:42             ` Bone Baboon
2021-03-23 18:37           ` Gary Johnson
2021-03-26 20:41             ` Bone Baboon
2021-03-28 17:30               ` Gary Johnson
2021-03-24 21:48       ` Bone Baboon
2021-03-22  3:29 ` Vladimir Sedach
2021-03-24 22:18   ` Bone Baboon
2021-03-25 15:20     ` Gary Johnson

unofficial mirror of help-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git