[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set screen resolution in X.

From: Camel
Subject: Re: Set screen resolution in X.
Date: Thu, 13 Aug 2015 10:12:39 +0300

On 12 August 2015 at 10:08, Camel <address@hidden> wrote:
On 10 August 2015 at 23:16, Thompson, David <address@hidden> 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

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:

  (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)))

    ;; ...
    (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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]