[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Set screen resolution in X.
From: |
宋文武 |
Subject: |
Re: Set screen resolution in X. |
Date: |
Thu, 20 Aug 2015 21:06:55 +0800 |
User-agent: |
Notmuch/0.19 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) |
Camel <address@hidden> writes:
> 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
>>> '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:
config.scm
Description: Binary data