From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: Set screen resolution in X. Date: Mon, 10 Aug 2015 16:16:35 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOtUt-0002dx-OV for guix-devel@gnu.org; Mon, 10 Aug 2015 16:16:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOtUq-0004LN-HQ for guix-devel@gnu.org; Mon, 10 Aug 2015 16:16:39 -0400 Received: from mail-yk0-f181.google.com ([209.85.160.181]:33388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOtUq-0004LJ-DJ for guix-devel@gnu.org; Mon, 10 Aug 2015 16:16:36 -0400 Received: by ykaz130 with SMTP id z130so42106846yka.0 for ; Mon, 10 Aug 2015 13:16:35 -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: Camel Cc: guix-devel On Mon, Aug 10, 2015 at 2:16 PM, Camel wrote: > Not sure if this is a bug or misconfiguration. > Here is relevant part of my config.scm > > (use-modules (gnu) > (gnu system nss) > (gnu services xorg)) > (use-service-modules desktop) > (use-package-modules xfce ratpoison wicd avahi xorg certs) > ;;;System definition cut away. > (services (cons* (slim-service #:startx (xorg-start-command > #:configuration-file (xorg-configuration-file #:drivers '("radeon" "vesa") > #:resolutions '((1366 768) (1024 768))))) > ;;%desktop-services > %base-services)) > > But when I run gux system reconfigure /etc/config.scm I get error: > > substitute: updating list of substitutes from 'http://hydra.gnu.org'... > 100.0% > The following derivations will be built: > /gnu/store/hap769hzynkhcqin9ynvjnsf4rdgphyv-system.drv > /gnu/store/g285cghja69w8lamlir2w1w1w0axa35a-grub.cfg.drv > /gnu/store/3x9qz66gpqisa18hzjbjj6rbm6cxfsq7-slim.cfg.drv > /gnu/store/f9adqf84wq70lakxfmh4f4cn6xwhszdb-dmd.conf.drv > /gnu/store/45fhs53hdy98j10h2bnm4ilqy70sg96i-boot.drv > ERROR: In procedure primitive-load: > ERROR: In procedure scm_lreadr: > /gnu/store/6bhrflbps4mav5yv5mas6fazcb59734f-slim.cfg-builder:1:159: Unknown > # object: #\< > builder for `/gnu/store/3x9qz66gpqisa18hzjbjj6rbm6cxfsq7-slim.cfg.drv' > failed with exit code 1 > cannot build derivation > `/gnu/store/f9adqf84wq70lakxfmh4f4cn6xwhszdb-dmd.conf.drv': 1 dependencies > couldn't be built > cannot build derivation > `/gnu/store/45fhs53hdy98j10h2bnm4ilqy70sg96i-boot.drv': 1 dependencies > couldn't be built > cannot build derivation > `/gnu/store/hap769hzynkhcqin9ynvjnsf4rdgphyv-system.drv': 1 dependencies > couldn't be built > guix system: error: build failed: build of > `/gnu/store/hap769hzynkhcqin9ynvjnsf4rdgphyv-system.drv' failed > > Please, help me set screen resolution on my laptop.Thanks in advance. 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))) - Dave