From mboxrd@z Thu Jan 1 00:00:00 1970 From: Camel Subject: Re: Set screen resolution in X. Date: Tue, 11 Aug 2015 20:06:43 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1132f6821d45e9051d0ea429 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPFot-0007Ea-BX for guix-devel@gnu.org; Tue, 11 Aug 2015 16:06:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPFor-0006oW-UI for guix-devel@gnu.org; Tue, 11 Aug 2015 16:06:47 -0400 Received: from mail-lb0-x22a.google.com ([2a00:1450:4010:c04::22a]:33045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPFor-0006np-GH for guix-devel@gnu.org; Tue, 11 Aug 2015 16:06:45 -0400 Received: by lbbsx3 with SMTP id sx3so36296344lbb.0 for ; Tue, 11 Aug 2015 13:06:43 -0700 (PDT) In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: "Thompson, David" Cc: guix-devel --001a1132f6821d45e9051d0ea429 Content-Type: text/plain; charset=UTF-8 On 10 August 2015 at 20:16, Thompson, David wrote: > > I believe this is because the return value of > 'xorg-configuration-file' is a monadic value, and thus it needs to > "unwrapped" in order to pass the configuration file to > 'xorg-start-command'. > > Try this: > > (mlet %store-monad ((config > (xorg-configuration-file #:drivers '("radeon" > "vesa") > #:resolutions '((1366 > 768) > (1024 > 768))))) > (slim-service #:startx (xorg-start-command #:configuration-file > config))) > I've tried this (services (cons* (mlet %store-monad ((config (xorg-configuration-file #:drivers '("radeon" "vesa") #:resolutions '((1366 768) (1024 768))))) (slim-service #:startx (xorg-start-command #:configuration-file config))) ;;%desktop-services %base-services)) But still failed substitute: updating list of substitutes from 'http://hydra.gnu.org'... 100.0% The following derivations will be built: /gnu/store/w95zdcd070xgpgbldfmij9b7m0v3px9g-system.drv /gnu/store/11vwx7pidb683ip9p9r0xg24h2d96pxf-grub.cfg.drv /gnu/store/4fmkwv683rhfc2397255s54nwggxfkmw-slim.cfg.drv /gnu/store/sxp6xg8wa71klwafyxdj8iwymphla81s-dmd.conf.drv /gnu/store/1d7bw0ga0f23rbb40zi45ql9w96nx2b8-boot.drv /gnu/store/vc4vyxqh92yfz32hsvc713kxgy89h2sj-system.drv /gnu/store/l7a4v3izzcwa681sg7pcq4bhllg4l3j4-slim.cfg.drv /gnu/store/3ibsmapzd65rj30a0mxkd74qv36rprmc-dmd.conf.drv /gnu/store/1nawmbn0qnafr5inq14xil9cw1x16sns-boot.drv ERROR: In procedure primitive-load: ERROR: In procedure scm_lreadr: /gnu/store/1d4h26j8w7vbmybv09b9839drf1i96x4-slim.cfg-builder:1:159: Unknown # object: #\< builder for `/gnu/store/l7a4v3izzcwa681sg7pcq4bhllg4l3j4-slim.cfg.drv' failed with exit code 1 cannot build derivation `/gnu/store/3ibsmapzd65rj30a0mxkd74qv36rprmc-dmd.conf.drv': 1 dependencies couldn't be built cannot build derivation `/gnu/store/1nawmbn0qnafr5inq14xil9cw1x16sns-boot.drv': 1 dependencies couldn't be built cannot build derivation `/gnu/store/w95zdcd070xgpgbldfmij9b7m0v3px9g-system.drv': 1 dependencies couldn't be built guix system: error: build failed: build of `/gnu/store/w95zdcd070xgpgbldfmij9b7m0v3px9g-system.drv' failed Maybe I need to add some (use modules ...) statements? Where should I put (mlet ...) statement? Dmitry --001a1132f6821d45e9051d0ea429 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 1= 0 August 2015 at 20:16, Thompson, David <dthompson2@worcester.edu> wrote:
I believe this is becaus= e the return value of
'xorg-configuration-file' is a monadic value, and thus it needs to<= br> "unwrapped" in order to pass the configuration file to
'xorg-start-command'.

Try this:

=C2=A0 =C2=A0 (mlet %store-monad ((config
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(xorg-configuration-file #:drivers '(= "radeon" "vesa")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 #:resolutions '((1366 768)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 (1024 768)))))
=C2=A0 =C2=A0 =C2=A0 (slim-service #:startx (xorg-start-command #:co= nfiguration-file config)))

I= 've tried this

=C2= =A0 (services (cons*=C2=A0
(mlet %store-monad ((config
= =C2=A0 (xorg-configuration-file #:drivers '("radeon" "ve= sa")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0#:resolutions '((1366 768) (1= 024 768)))))
(slim-service #:startx (xorg-start-command=C2=A0
#:configuration-file config)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;;%desktop-services
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0%base-ser= vices))

But still failed

The following derivations will be built:
= =C2=A0 =C2=A0/gnu/store/w95zdcd070xgpgbldfmij9b7m0v3px9g-system.drv
=C2=A0 =C2=A0/gnu/store/11vwx7pidb683ip9p9r0xg24h2d96pxf-grub.cfg.drv
=C2=A0 =C2=A0/gnu/store/4fmkwv683rhfc2397255s54nwggxfkmw-slim.cfg.d= rv
=C2=A0 =C2=A0/gnu/store/sxp6xg8wa71klwafyxdj8iwymphla81s-dmd.c= onf.drv
=C2=A0 =C2=A0/gnu/store/1d7bw0ga0f23rbb40zi45ql9w96nx2b8-= boot.drv
=C2=A0 =C2=A0/gnu/store/vc4vyxqh92yfz32hsvc713kxgy89h2sj= -system.drv
=C2=A0 =C2=A0/gnu/store/l7a4v3izzcwa681sg7pcq4bhllg4l= 3j4-slim.cfg.drv
=C2=A0 =C2=A0/gnu/store/3ibsmapzd65rj30a0mxkd74q= v36rprmc-dmd.conf.drv
=C2=A0 =C2=A0/gnu/store/1nawmbn0qnafr5inq14= xil9cw1x16sns-boot.drv
ERROR: In procedure primitive-load:
<= div>ERROR: In procedure scm_lreadr: /gnu/store/1d4h26j8w7vbmybv09b9839drf1i= 96x4-slim.cfg-builder:1:159: Unknown # object: #\<
builder for= `/gnu/store/l7a4v3izzcwa681sg7pcq4bhllg4l3j4-slim.cfg.drv' failed with= exit code 1
cannot build derivation `/gnu/store/3ibsmapzd65rj30a= 0mxkd74qv36rprmc-dmd.conf.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/1nawmbn0qnafr5inq14xil9cw1x16sn= s-boot.drv': 1 dependencies couldn't be built
cannot buil= d derivation `/gnu/store/w95zdcd070xgpgbldfmij9b7m0v3px9g-system.drv': = 1 dependencies couldn't be built
guix system: error: build fa= iled: build of `/gnu/store/w95zdcd070xgpgbldfmij9b7m0v3px9g-system.drv'= failed

Maybe I need to add some (use m= odules ...) statements? Where should I put (mlet ...) statement?

Dmitry
--001a1132f6821d45e9051d0ea429--