From mboxrd@z Thu Jan 1 00:00:00 1970 From: Camel Subject: Re: Set screen resolution in X. Date: Thu, 13 Aug 2015 10:12:39 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3fd128a2728051d2c0f3c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPmgu-00048V-2j for guix-devel@gnu.org; Thu, 13 Aug 2015 03:12:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPmgr-0001Xv-UE for guix-devel@gnu.org; Thu, 13 Aug 2015 03:12:44 -0400 Received: from mail-lb0-x229.google.com ([2a00:1450:4010:c04::229]:35320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPmgr-0001XR-H6 for guix-devel@gnu.org; Thu, 13 Aug 2015 03:12:41 -0400 Received: by lbcbn3 with SMTP id bn3so21918596lbc.2 for ; Thu, 13 Aug 2015 00:12:40 -0700 (PDT) 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: guix-devel --001a11c3fd128a2728051d2c0f3c Content-Type: text/plain; charset=UTF-8 On 12 August 2015 at 10:08, Camel wrote: > On 10 August 2015 at 23: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 found another possible solution: > > https://lists.gnu.org/archive/html/guix-devel/2015-05/msg00395.html > > (define input-class > "Section \"InputClass" ...") > > (define (my-slim-service) > (mlet %store-monad ((config (xorg-configuration-file > #:extra-config (list input-class))) > (startx (xorg-start-command > #:configuration-file config))) > (slim-service #:startx startx))) > > (operating-system > ;; ... > (services (cons (my-slim-service) ...))) > > I'll try it later. > > Nope. Didn't help. Same error: ERROR: In procedure primitive-load: ERROR: In procedure scm_lreadr: /gnu/store/6bhrflbps4mav5yv5mas6fazcb59734f-slim.cfg-builder:1:159: Unknown # object: #\< Does anyone could give me an example of configured slim-service with xorg-configuration-file? Dmitry --001a11c3fd128a2728051d2c0f3c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 1= 2 August 2015 at 10:08, Camel <cameltheman@gmail.com> wr= ote:
On 10 August 2015 at 23= :16, Thompson, David <dthompson2@worcester.edu> wrote= :
I believe this is because 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&= quot; "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)))
=C2=A0
I've found another possible solution:

https://lists.gnu.org/archive/html/guix-devel/2015-05/msg00= 395.html

  (define input-class
    "Section \"InputClass" ...")

  (define (my-slim-service)
    (mlet %store-monad ((config (xorg-configuration-file
                                 #:extra-config (list input-class)))
                        (startx (xorg-start-command
                                 #:configuration-file config)))
      (slim-service #:startx startx)))

  (operating-system
    ;; ...
    (services (cons (my-slim-service) ...)))

I'll try=
 it later.

Nope. Didn't help. Same error:

ERROR: In= procedure primitive-load:
ERROR: In procedure scm_lreadr: /gnu/s= tore/6bhrflbps4mav5yv5mas6fazcb59734f-slim.cfg-builder:1:159: Unknown # obj= ect: #\<

Does anyone could give me an example of confi= gured slim-service with xorg-configuration-file?

Dmitry

--001a11c3fd128a2728051d2c0f3c--