unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: <znavko@tutanota.com>
To: Znavko <znavko@tutanota.com>
Cc: Tobias Geerinckx-Rice
	<somebody@not-sent-or-endorsed-by.tobias.gr>,
	Help Guix <help-guix@gnu.org>
Subject: Re: Disable ugly pc-speaker sound in Slim auth failure
Date: Sun, 17 Mar 2019 08:31:30 +0100 (CET)	[thread overview]
Message-ID: <La9Z-is--3-1@tutanota.com> (raw)
In-Reply-To: <La6OLkW--3-1@tutanota.com-La6OQsv--3-1>

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

Successfully solved with this code in /etc/config.scm:

(operating-system
...
  (kernel-arguments '("modprobe.blacklist=pcspkr,snd_pcsp"))
)

# guix system reconfigure /etc/config.scm
# reboot

PC speaker no longer beeps. Thank you!
I think it's a luck, cause from here 
https://github.com/alezost/guix-config/blob/469db8060235cc6bb7501cfb798f29ede3cc21e6/system-config/os-main.scm#L29 <https://github.com/alezost/guix-config/blob/469db8060235cc6bb7501cfb798f29ede3cc21e6/system-config/os-main.scm#L29>
I've got names of kernel modules, so that not only pcspkr, but also snd_pcsp needs to disable
and from here
https://gitlab.com/pkill-9/guix-config/blob/master/system-config.scm#L123 <https://gitlab.com/pkill-9/guix-config/blob/master/system-config.scm#L123>
I've got that simple line that not breaks my config.scm syntax.
Still do not know why guix does not find `(use modules  (al utils))` module and how to get guile modules work.


Mar 16, 2019, 4:46 PM by znavko@tutanota.com:

> You know, Tobias! Just for experiment I've add (al utils) and guix cuss out:
>
> (use-modules (gnu) (gnu system nss)
>              (gnu system locale) ;;for locale-definition
>              (gnu services desktop)
>              ;;(gnu services dns) ;;for dnsmasq
>              (srfi srfi-1) ;;for remove function
>              (gnu services networking) ;;for remove ntp
>              (gnu services avahi) ;;for remove avahi
>              (gnu services xorg)
>              ;;(gnu services databases);;for postgres
>              (gnu packages admin) ;;for wpa_supplicant
>              (al utils)
> )
>
> # guix system reconfigure /etc/config.scm
> guix system: error: failed to load '/etc/config.scm':
> ice-9/boot-9.scm:2803:6: In procedure resolve-interface:
> no code for module (al utils)
>
> What is wrong here? How to use guile modules?
>
>
> Mar 16, 2019, 4:00 PM by > somebody@not-sent-or-endorsed-by.tobias.gr <mailto:somebody@not-sent-or-endorsed-by.tobias.gr>> :
>
>> Zvavko,
>>
>> znavko wrote:
>>
>>> # guix system reconfigure /etc/config.scm
>>> /etc/config.scm:97:26: error: comma-separated: unbound variable
>>> hint: Did you forget a `use-modules' form?
>>>
>>
>> […]
>>
>>> Mentioned github page has no any use-modules string that can help.
>>>
>>
>> Look again.  From system-config/os-main.scm:
>>
>> (al utils)
>>
>> And indeed, guile/modules/al/utils.scm has:
>>
>> (define (comma-separated . strings)
>> "Return string by concatenating STRINGS with commas."
>> (mapconcat identity strings ","))
>>
>> You can copy the definition to your own configuration, or just replace it with the (trivial) MAPCONCAT call directly, or just use a comma-separated string to begin with.
>>
>> Kind regards,
>>
>> T G-R
>>
>
>


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

  parent reply	other threads:[~2019-03-17  7:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-14  4:00 Disable ugly pc-speaker sound in Slim auth failure znavko
2019-03-16 10:52 ` znavko
     [not found] ` <La57Jrg--3-1@tutanota.com-La586Hw----1>
2019-03-16 13:17   ` znavko
2019-03-16 16:00     ` Tobias Geerinckx-Rice
2019-03-16 16:42       ` znavko
2019-03-16 16:46       ` znavko
     [not found]       ` <La6OLkW--3-1@tutanota.com-La6OQsv--3-1>
2019-03-17  7:31         ` znavko [this message]
2019-03-17  8:10           ` swedebugia
2019-03-17 12:02           ` Tobias Geerinckx-Rice
2019-03-17 12:07             ` Tobias Geerinckx-Rice

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=La9Z-is--3-1@tutanota.com \
    --to=znavko@tutanota.com \
    --cc=help-guix@gnu.org \
    --cc=somebody@not-sent-or-endorsed-by.tobias.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).