config/guix/system/laptop-mimimi: Properly blacklist nouveau.

master
Pierre Neidhardt 2020-06-12 08:52:13 +02:00
parent d96878b33b
commit d2b8b25d97
1 changed files with 9 additions and 0 deletions

View File

@ -90,6 +90,7 @@ EndSection")
(xorg-configuration
(modules (list xf86-video-vesa
xf86-video-intel
;; xf86-video-nouveau ; Make sure this is on if the 'nouveau' kernel module is loaded.
xf86-input-libinput))
(extra-config (list %mimimi/xorg-touchpad)))))))))
@ -153,6 +154,14 @@ EndSection")
(host-name "mimimi")
(kernel linux)
;; (kernel linux-xiaomi-air-13)
;; To disable the Nvidia, first make sure nouveau is not loaded then call
;; sudo tee /proc/acpi/bbswitch <<<OFF
;; Check the result with
;; sudo dmesg | grep bbswitch
;; It saves about 1h of battery.
;; TODO: Automate the bbswitch command when the Guix package is merged.
(kernel-arguments '("modprobe.blacklist=nouveau"))
(mapped-devices drive-mapping)