unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Set screen resolution in X.
@ 2015-08-13  7:12 Camel
  2015-08-13  9:23 ` Andy Wingo
  2015-08-20 13:06 ` 宋文武
  0 siblings, 2 replies; 14+ messages in thread
From: Camel @ 2015-08-13  7:12 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1652 bytes --]

On 12 August 2015 at 10:08, Camel <cameltheman@gmail.com> wrote:

> 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
>> "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

[-- Attachment #2: Type: text/html, Size: 2697 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: Set screen resolution in X.
@ 2015-08-18  8:26 Dmitry Nikolaev
  2015-08-19 19:20 ` Alex Kost
  2015-08-23 21:45 ` Ludovic Courtès
  0 siblings, 2 replies; 14+ messages in thread
From: Dmitry Nikolaev @ 2015-08-18  8:26 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 2491 bytes --]

On 14 August 2015 at 12:27, Camel <cameltheman@gmail.com> wrote:

>
> I've tried reinstalling GuixSD from zero with config.scm mentioning
> slim-service and #:resolutions. Didn't help either. Same error again. What
> should I do now? Should I post my full config.scm? Should I ask you to try
> slim-service configuration with #:resolutions ?
>

I've tried everything. Please help me. I want to help Guix, write new
packages and patches, but I can't. My eyes hurts because of wrong
resolution. Here is my full config.scm:

(use-modules (gnu)
               (gnu system nss)
               (gnu services xorg))
(use-modules (guix))
(use-service-modules desktop)
(use-package-modules xfce ratpoison wicd avahi xorg certs)

(define (my-slim-service)
        (mlet %store-monad ((config (xorg-configuration-file
                #:resolutions '((1366 768)))))
        (slim-service #:startx
                (xorg-start-command #:configuration-file config))))

(operating-system
  (host-name "camelot")
  (timezone "Europe/Moscow")
  (locale "en_US.UTF-8")

  ;; Assuming /dev/sdX is the target hard disk, and "root" is
  ;; the label of the target root file system.
  (bootloader (grub-configuration (device "/dev/sda")))
  (file-systems (cons (file-system
                        (device "/dev/sda1")
                        (title 'guix)
                        (mount-point "/")
                        (type "ext4"))
                      %base-file-systems))

  (users (list (user-account
                (name "camel")
                (comment "Camel")
                (group "users")
                (supplementary-groups '("wheel" "netdev"
                                        "audio" "video"))
                (home-directory "/home/camel"))))

  ;; Add Xfce and Ratpoison; that allows us to choose
  ;; sessions using either of these at the log-in screen.
  (packages (cons* xfce ratpoison    ;desktop environments
                   xterm wicd avahi  ;useful tools
                   nss-certs         ;for HTTPS access
                   %base-packages))

  ;; Use the "desktop" services, which include the X11
  ;; log-in service, networking with Wicd, and more.
  (services (cons* (my-slim-service)
                   ;;%desktop-services
                   %base-services))

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


Have I configured slim-service properly? Do I need to use some modules I
haven't mentioned?

Dmitry

[-- Attachment #2: Type: text/html, Size: 3809 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: Set screen resolution in X.
@ 2015-08-14  9:27 Camel
  0 siblings, 0 replies; 14+ messages in thread
From: Camel @ 2015-08-14  9:27 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 536 bytes --]

> Try "find ~/src/guix -name '*.go' | xargs rm" and then rebuild

> > guix, perhaps.
>
> You can run 'make clean-go' to delete all of the .go files. :)
>

Where should I run make clean-go?

Anyway, I've tried

# find / -name '*.go' | xargs rm

Didn't help.

And I've tried reinstalling GuixSD from zero with config.scm mentioning
slim-service and #:resolutions. Didn't help either. Same error again. What
should I do now? Should I post my full config.scm? Should I ask you to try
slim-service configuration with #:resolutions ?

Dmitry

[-- Attachment #2: Type: text/html, Size: 1047 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: Set screen resolution in X.
@ 2015-08-12  7:08 Camel
  0 siblings, 0 replies; 14+ messages in thread
From: Camel @ 2015-08-12  7:08 UTC (permalink / raw)
  To: Thompson, David; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]

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
> "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.

Dmitry

[-- Attachment #2: Type: text/html, Size: 1984 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Set screen resolution in X.
@ 2015-08-10 18:16 Camel
  2015-08-10 20:16 ` Thompson, David
  0 siblings, 1 reply; 14+ messages in thread
From: Camel @ 2015-08-10 18:16 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1841 bytes --]

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.

Dmitry

[-- Attachment #2: Type: text/html, Size: 2494 bytes --]

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

end of thread, other threads:[~2015-09-01 21:18 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-13  7:12 Set screen resolution in X Camel
2015-08-13  9:23 ` Andy Wingo
2015-08-13 12:32   ` Thompson, David
2015-08-20 13:06 ` 宋文武
  -- strict thread matches above, loose matches on Subject: below --
2015-08-18  8:26 Dmitry Nikolaev
2015-08-19 19:20 ` Alex Kost
2015-08-31 11:46   ` Dmitry Nikolaev
2015-09-01 21:18     ` Ludovic Courtès
2015-08-23 21:45 ` Ludovic Courtès
2015-08-14  9:27 Camel
2015-08-12  7:08 Camel
2015-08-10 18:16 Camel
2015-08-10 20:16 ` Thompson, David
2015-08-11 20:06   ` Camel

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).