all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

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

On Mon, Aug 10, 2015 at 2:16 PM, Camel <cameltheman@gmail.com> 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

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

* Re: Set screen resolution in X.
  2015-08-10 20:16 ` Thompson, David
@ 2015-08-11 20:06   ` Camel
  0 siblings, 0 replies; 14+ messages in thread
From: Camel @ 2015-08-11 20:06 UTC (permalink / raw)
  To: Thompson, David; +Cc: guix-devel

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

On 10 August 2015 at 20: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 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

[-- Attachment #2: Type: text/html, Size: 3600 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

* 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-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 ` 宋文武
  1 sibling, 1 reply; 14+ messages in thread
From: Andy Wingo @ 2015-08-13  9:23 UTC (permalink / raw)
  To: Camel; +Cc: guix-devel

On Thu 13 Aug 2015 09:12, Camel <cameltheman@gmail.com> writes:

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

I was getting similar errors when I had stale .go files lying around
from before packages were moved.  The .go files would be picked up
because my os-config.scm included their modules explicitly.  Since this
is in slim and thus guixsd you might be experiencing something similar,
dunno.  Try "find ~/src/guix -name '*.go' | xargs rm" and then rebuild
guix, perhaps.

Andy

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

* Re: Set screen resolution in X.
  2015-08-13  9:23 ` Andy Wingo
@ 2015-08-13 12:32   ` Thompson, David
  0 siblings, 0 replies; 14+ messages in thread
From: Thompson, David @ 2015-08-13 12:32 UTC (permalink / raw)
  To: Andy Wingo; +Cc: guix-devel, Camel

> 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. :)

- Dave

^ 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-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-18  8:26 Dmitry Nikolaev
@ 2015-08-19 19:20 ` Alex Kost
  2015-08-31 11:46   ` Dmitry Nikolaev
  2015-08-23 21:45 ` Ludovic Courtès
  1 sibling, 1 reply; 14+ messages in thread
From: Alex Kost @ 2015-08-19 19:20 UTC (permalink / raw)
  To: Dmitry Nikolaev; +Cc: guix-devel

Dmitry Nikolaev (2015-08-18 11:26 +0300) wrote:

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

Hello,

Are you sure the resolution you want is supported in your X session?
Please post the output of "xrandr".

-- 
Alex

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

* Re: Set screen resolution in X.
  2015-08-13  7:12 Set screen resolution in X Camel
  2015-08-13  9:23 ` Andy Wingo
@ 2015-08-20 13:06 ` 宋文武
  1 sibling, 0 replies; 14+ messages in thread
From: 宋文武 @ 2015-08-20 13:06 UTC (permalink / raw)
  To: Camel, guix-devel

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

Camel <cameltheman@gmail.com> writes:

> 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
it should be 'mlet*'.
>>                                  #: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?
here is mine:


[-- Attachment #2: config.scm --]
[-- Type: application/octet-stream, Size: 3076 bytes --]

(use-modules (guix gexp)
             (guix monads)
             (guix store)
             (gnu))

(use-service-modules base networking xorg desktop)

(use-package-modules linux certs emacs file
		     freedesktop fonts ratpoison xfce
		     zsh)

(define %console-font
  #~(string-append #$font-terminus "/share/consolefonts/ter-u16n.psf.gz"))

(define libinput.conf "
# Use the libinput driver for all event devices
Section \"InputClass\"
        Identifier \"libinput\"
        Driver \"libinput\"
        MatchDevicePath \"/dev/input/event*\"
EndSection
")

(define (my-slim-service)
  (mlet* %store-monad ((config (xorg-configuration-file
                                #:extra-config (list libinput.conf)))
                       (startx (xorg-start-command
                                #:configuration-file config)))
         (slim-service #:startx  startx)))

(operating-system
  (bootloader (grub-configuration (device "/dev/sda")))

  (initrd (lambda (fs . args)
            (apply base-initrd fs
                   #:extra-modules '("i915")
                   args)))

  (file-systems (cons* (file-system
                         (device "root")
                         (title 'label)
                         (mount-point "/")
                         (type "ext4"))

                       (file-system
                         (device "none")
                         (mount-point "/tmp")
                         (type "tmpfs")
                         (check? #f))

                       (file-system
                         (device "none")
                         (mount-point "/run")
                         (type "tmpfs")
                         (check? #f)
                         (needed-for-boot? #t))

                       (file-system
                         (device "none")
                         (mount-point "/var/run")
                         (type "tmpfs")
                         (check? #f)
                         (needed-for-boot? #t))

                       %base-file-systems))

  (host-name "akarin")
  (locale "en_US.utf8")
  (timezone "Asia/Shanghai")

  (packages (cons* glibc file iproute nss-certs
                   %base-packages))

  (services (list (console-font-service "tty1" %console-font)
                  (mingetty-service "tty1")
                  (mingetty-service "tty2")
                  (mingetty-service "tty3")
                  (console-keymap-service "dvorak")
		  (dbus-service '())
                  (static-networking-service "lo" "127.0.0.1"
                                             #:provision '(loopback))
                  (guix-service)
                  (udev-service)
                  (my-slim-service)))

  (users (list (user-account
                 (name "iyzsong")
                 (group "users")
                 (supplementary-groups '("wheel" "audio" "video" "cdrom" "netdev"))
                 (home-directory "/home/iyzsong"))
	       (user-account
		(name "raldant")
		(group "users")
		(shell #~(string-append #$zsh "/bin/zsh"))
		(home-directory "/home/raldant")))))

^ 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
  1 sibling, 0 replies; 14+ messages in thread
From: Ludovic Courtès @ 2015-08-23 21:45 UTC (permalink / raw)
  To: Dmitry Nikolaev; +Cc: guix-devel

Sorry for the late reply.

Dmitry Nikolaev <cameltheman@gmail.com> skribis:

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

The problem is in the line above: ‘xorg-start-command’ is a “monadic
procedure” so its result must be bound in an ‘mlet’:

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

HTH!

Ludo’.

PS: Somebody reported the same thing on IRC last week, maybe it was you
    or Camel?

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

* Re: Set screen resolution in X.
  2015-08-19 19:20 ` Alex Kost
@ 2015-08-31 11:46   ` Dmitry Nikolaev
  2015-09-01 21:18     ` Ludovic Courtès
  0 siblings, 1 reply; 14+ messages in thread
From: Dmitry Nikolaev @ 2015-08-31 11:46 UTC (permalink / raw)
  To: guix-devel

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

> Are you sure the resolution you want is supported in your X session?
> Please post the output of "xrandr".

$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1024 x 768
default connected 1024x768+0+0 0mm x 0mm
   1024x768       0.00*

Here is some of my lspci. As you can see I have Radeon card:

$ lspci | grep -i radeon
01:05.0 VGA compatible controller: AMD/ATI [Advanced Micro Devices,
Inc.] RS880M [Mobility Radeon HD 4225/4250]
01:05.1 Audio device: AMD/ATI [Advanced Micro Devices, Inc.] RS880
HDMI Audio [Radeon HD 4200 Series]

And here is the answer to the topic question. How to set screen
resolutions? Like this:

(define (my-slim-service)
        (mlet* %store-monad ((config (xorg-configuration-file
;;              #:drivers '("radeon" "vesa")
                #:resolutions '((1366 768) (1024 768))
))
                             (startx (xorg-start-command
                #:configuration-file config)))
        (slim-service #:startx startx)))

But it won't work for me, because of non-free radeon microcode. If I
uncomment #:drivers line I'll get error like this on X startup:

Missing Free firmware
Failed to load firmware "/*(DEBLOBBED)*/"

Dmitry

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

* Re: Set screen resolution in X.
  2015-08-31 11:46   ` Dmitry Nikolaev
@ 2015-09-01 21:18     ` Ludovic Courtès
  0 siblings, 0 replies; 14+ messages in thread
From: Ludovic Courtès @ 2015-09-01 21:18 UTC (permalink / raw)
  To: Dmitry Nikolaev; +Cc: guix-devel

Dmitry Nikolaev <cameltheman@gmail.com> skribis:

>>> 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:
>
>> Are you sure the resolution you want is supported in your X session?
>> Please post the output of "xrandr".
>
> $ xrandr
> xrandr: Failed to get size of gamma for output default
> Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1024 x 768
> default connected 1024x768+0+0 0mm x 0mm
>    1024x768       0.00*
>
> Here is some of my lspci. As you can see I have Radeon card:
>
> $ lspci | grep -i radeon
> 01:05.0 VGA compatible controller: AMD/ATI [Advanced Micro Devices,
> Inc.] RS880M [Mobility Radeon HD 4225/4250]
> 01:05.1 Audio device: AMD/ATI [Advanced Micro Devices, Inc.] RS880
> HDMI Audio [Radeon HD 4200 Series]
>
> And here is the answer to the topic question. How to set screen
> resolutions? Like this:
>
> (define (my-slim-service)
>         (mlet* %store-monad ((config (xorg-configuration-file
> ;;              #:drivers '("radeon" "vesa")
>                 #:resolutions '((1366 768) (1024 768))
> ))
>                              (startx (xorg-start-command
>                 #:configuration-file config)))
>         (slim-service #:startx startx)))
>
> But it won't work for me, because of non-free radeon microcode. If I
> uncomment #:drivers line I'll get error like this on X startup:
>
> Missing Free firmware
> Failed to load firmware "/*(DEBLOBBED)*/"

It looks like Xorg falls back to VESA, which may be why ‘xrandr’ gives
you no choice.  So it’s probably not a GuixSD-specific problem.

I don’t know the status of free drivers for these Radeon cards.  Maybe
http://h-node.org or similar sites have more info?

Thanks,
Ludo’.

^ 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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.