* Passing acpi_osi="Linux" to bootloader current-system entry
@ 2020-01-25 11:56 Wiktor Żelazny
2020-01-25 15:28 ` Tobias Geerinckx-Rice
0 siblings, 1 reply; 8+ messages in thread
From: Wiktor Żelazny @ 2020-01-25 11:56 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 431 bytes --]
Hi list,
According to 8.13 Bootloader Configuration [1] of the Guix Manual, it is
possible to set linux-arguments for non-default bootloader entries
(those defined via menu-entry). Is there a way to do the same for the
current-system entry — specifically to pass acpi_osi="Linux" [2]?
WŻ
[1]: https://guix.gnu.org/manual/en/html_node/Bootloader-Configuration.html
[2]: https://www.thinkwiki.org/wiki/Mute_button
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Passing acpi_osi="Linux" to bootloader current-system entry
2020-01-25 11:56 Passing acpi_osi="Linux" to bootloader current-system entry Wiktor Żelazny
@ 2020-01-25 15:28 ` Tobias Geerinckx-Rice
2020-01-25 15:35 ` Tobias Geerinckx-Rice
0 siblings, 1 reply; 8+ messages in thread
From: Tobias Geerinckx-Rice @ 2020-01-25 15:28 UTC (permalink / raw)
To: help-guix; +Cc: Wiktor Żelazny
[-- Attachment #1: Type: text/plain, Size: 603 bytes --]
Wiktor,
Wiktor Żelazny 写道:
> According to 8.13 Bootloader Configuration [1] of the Guix
> Manual, it is
> possible to set linux-arguments for non-default bootloader
> entries
> (those defined via menu-entry). Is there a way to do the same
> for the
> current-system entry — specifically to pass acpi_osi="Linux"
> [2]?
(operating-system
…
(kernel-arguments (list acpi_osi=Linux" …))
…)
So note that KERNEL-ARGUMENTS are part of your operating-system
record, like the KERNEL field, not of your bootloader
configuration.
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Passing acpi_osi="Linux" to bootloader current-system entry
2020-01-25 15:28 ` Tobias Geerinckx-Rice
@ 2020-01-25 15:35 ` Tobias Geerinckx-Rice
2020-01-27 15:44 ` Wiktor Żelazny
0 siblings, 1 reply; 8+ messages in thread
From: Tobias Geerinckx-Rice @ 2020-01-25 15:35 UTC (permalink / raw)
To: help-guix; +Cc: Wiktor Żelazny
[-- Attachment #1: Type: text/plain, Size: 345 bytes --]
Tobias Geerinckx-Rice 写道:
> (operating-system
> …
> (kernel-arguments (list acpi_osi=Linux" …))
> …)
I can't find any reliable confirmation that the "s are required
for strings without spaces, but if you want to be on the safe
side:
(kernel-arguments (list "acpi_osi=\"Linux\""))
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Passing acpi_osi="Linux" to bootloader current-system entry
2020-01-25 15:35 ` Tobias Geerinckx-Rice
@ 2020-01-27 15:44 ` Wiktor Żelazny
2020-01-29 10:05 ` Wiktor Żelazny
2020-02-08 8:52 ` Wiktor Żelazny
0 siblings, 2 replies; 8+ messages in thread
From: Wiktor Żelazny @ 2020-01-27 15:44 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 2807 bytes --]
On Sat, Jan 25, 2020 at 04:35:28PM +0100, Tobias Geerinckx-Rice wrote:
> > (operating-system
> > …
> > (kernel-arguments (list acpi_osi=Linux" …))
> > …)
>
> I can't find any reliable confirmation that the "s are required for strings
> without spaces, but if you want to be on the safe side:
>
> (kernel-arguments (list "acpi_osi=\"Linux\""))
Thanks for the tip, Tobias. Unfortunately, although I’ve got now
(operating-system
;; stuff
(kernel-arguments (list "acpi_osi=\"Linux\""))
;; more stuff
)
, my mute button is still not working (nothing gets captured by xev).
The "quiet" behaviour dissapeared, so the configuration is affected. I
need to investigate this more; I guess I can find somewhere in /sys info
regarding ACPI runtime configuration.
What is more worrying, I started getting warnings during reconfigure:
building /gnu/store/j6wn04qi2hm0d97g1psv0n3lnjgbbhy0-switch-to-system.scm.drv...
;;; WARNING: loading compiled file /gnu/store/5bd6ywmfcxxa4gvpzg0pdbjwmf24cxkl-module-import-compiled/gnu/build/activation.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode kind
;;; compiling /gnu/store/p8miza2mpnjdlpmh8504dm9xz2q9nvfr-module-import/gnu/build/activation.scm
;;; WARNING: loading compiled file /gnu/store/5bd6ywmfcxxa4gvpzg0pdbjwmf24cxkl-module-import-compiled/gnu/build/accounts.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode kind
;;; compiling /gnu/store/p8miza2mpnjdlpmh8504dm9xz2q9nvfr-module-import/gnu/build/accounts.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.2/gnu/store/p8miza2mpnjdlpmh8504dm9xz2q9nvfr-module-import/gnu/build/accounts.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.2/gnu/store/p8miza2mpnjdlpmh8504dm9xz2q9nvfr-module-import/gnu/build/activation.scm.go
and
building /gnu/store/7f0m08629jfc76sm3fy6az6klgfg4vxn-install-bootloader.scm.drv...
WARNING: (guile-user): imported module (guix build utils) overrides core binding `delete'
;;; WARNING: loading compiled file /gnu/store/yq2vk6c3z3pjrcf74crq01z701rffc3r-module-import-compiled/gnu/build/bootloader.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode kind
;;; compiling /gnu/store/367vqy7ih4vqa8y1bf4503wb2k8s3f3k-module-import/gnu/build/bootloader.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.2/gnu/store/367vqy7ih4vqa8y1bf4503wb2k8s3f3k-module-import/gnu/build/bootloader.scm.go
guix system: bootloader successfully installed on '/dev/sda'
WARNING: (guile-user): imported module (guix build utils) overrides core binding `delete'
I don’t import utils anywhere in my config.scm. Could it be related to
the migration to Guile 3?
Got to go,
WŻ
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Passing acpi_osi="Linux" to bootloader current-system entry
2020-01-27 15:44 ` Wiktor Żelazny
@ 2020-01-29 10:05 ` Wiktor Żelazny
2020-02-08 8:52 ` Wiktor Żelazny
1 sibling, 0 replies; 8+ messages in thread
From: Wiktor Żelazny @ 2020-01-29 10:05 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 622 bytes --]
On Mon, Jan 27, 2020 at 04:44:18PM +0100, Wiktor Żelazny wrote:
> I guess I can find somewhere in /sys info regarding ACPI runtime
> configuration.
In /run/booted-system/parameters:
(boot-parameters (version 0) (label "GNU with Linux-Libre 5.4.15") (root-device "/dev/mapper/container") (kernel "/gnu/store/1mjxmv63v5g0lf7492ma63da1jn9j9in-linux-libre-5.4.15/bzImage") (kernel-arguments ("acpi_osi=\"Linux\"")) (initrd "/gnu/store/p6x1gqbic59jm8ss4hkc58vjbb98fj9q-raw-initrd/initrd.cpio.gz") (bootloader-name grub) (bootloader-menu-entries ()) (store (device #f) (mount-point "/")))
So it’s there.
WŻ
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Passing acpi_osi="Linux" to bootloader current-system entry
2020-01-27 15:44 ` Wiktor Żelazny
2020-01-29 10:05 ` Wiktor Żelazny
@ 2020-02-08 8:52 ` Wiktor Żelazny
2020-02-08 13:02 ` sirgazil
1 sibling, 1 reply; 8+ messages in thread
From: Wiktor Żelazny @ 2020-02-08 8:52 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 554 bytes --]
On Mon, Jan 27, 2020 at 04:44:18PM +0100, Wiktor Żelazny wrote:
> although I’ve got now
>
> (operating-system
> ;; stuff
>
> (kernel-arguments (list "acpi_osi=\"Linux\""))
>
> ;; more stuff
> )
>
> , my mute button is still not working (nothing gets captured by xev).
> The "quiet" behaviour dissapeared, so the configuration is affected.
For the record, not only doesn’t it make the mute button work, but it
also breaks suspend-to-RAM (the laptop freezes after waking up). I’m
giving up on this.
WŻ
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Passing acpi_osi="Linux" to bootloader current-system entry
2020-02-08 8:52 ` Wiktor Żelazny
@ 2020-02-08 13:02 ` sirgazil
2020-02-10 14:25 ` Wiktor Żelazny
0 siblings, 1 reply; 8+ messages in thread
From: sirgazil @ 2020-02-08 13:02 UTC (permalink / raw)
To: "Wiktor Żelazny"; +Cc: help-guix
---- On Sat, 08 Feb 2020 03:52:06 -0500 Wiktor Żelazny <wz@freeshell.de> wrote ----
> On Mon, Jan 27, 2020 at 04:44:18PM +0100, Wiktor Żelazny wrote:
>
> > although I’ve got now
> >
> > (operating-system
> > ;; stuff
> >
> > (kernel-arguments (list "acpi_osi=\"Linux\""))
> >
> > ;; more stuff
> > )
> >
> > , my mute button is still not working (nothing gets captured by xev).
> > The "quiet" behaviour dissapeared, so the configuration is affected.
The value of the kernel-arguments field defaults to (list "quiet") if no value is provided. When you provide a value, the default is not used. So you should add "quiet" to your list:
(list "quiet" "acpi_osi=Linux")
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Passing acpi_osi="Linux" to bootloader current-system entry
2020-02-08 13:02 ` sirgazil
@ 2020-02-10 14:25 ` Wiktor Żelazny
0 siblings, 0 replies; 8+ messages in thread
From: Wiktor Żelazny @ 2020-02-10 14:25 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 266 bytes --]
On Sat, Feb 08, 2020 at 08:02:31AM -0500, sirgazil wrote:
> The value of the kernel-arguments field defaults to (list "quiet")
Thanks for your input. Unfortunately, “quiet” or lack thereof is not an
issue here. It served as an indicator, only. :)
WŻ
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2020-02-10 14:26 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-25 11:56 Passing acpi_osi="Linux" to bootloader current-system entry Wiktor Żelazny
2020-01-25 15:28 ` Tobias Geerinckx-Rice
2020-01-25 15:35 ` Tobias Geerinckx-Rice
2020-01-27 15:44 ` Wiktor Żelazny
2020-01-29 10:05 ` Wiktor Żelazny
2020-02-08 8:52 ` Wiktor Żelazny
2020-02-08 13:02 ` sirgazil
2020-02-10 14:25 ` Wiktor Żelazny
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).