~oriansj/System_setup

359c6486b5d0160747a59edf9ebd01bfc269c0ba — Jeremiah Orians 10 months ago 0179d47
Obtained more reasonable Graphics performance on the x200
2 files changed, 35 insertions(+), 2 deletions(-)

M files/guix-manifest.scm
M personal/x200.scm
M files/guix-manifest.scm => files/guix-manifest.scm +1 -0
@@ 93,6 93,7 @@
	"mpv"                       ; The general purpose Video program
;	"mupdf"                     ; A possible PDF reader replacement
	"nasm"                      ; Get a better assembler/disassembler
	"ncdu"                      ; Figure out how much space things take up
	"nethogs"                   ; Figure out what process is eating all the bandwidth
	"netsurf"                   ; Another web browsing option
	"nmap"                      ; Scan networks

M personal/x200.scm => personal/x200.scm +34 -2
@@ 57,12 57,44 @@
	xfce
	xorg)

;; Needed to get basic graphics performance on an X200
(define-public intel-vaapi-driver-g45-h264
  (let ((base intel-vaapi-driver))
    (package
      (inherit base)
      (name "intel-vaapi-driver-g45-h264")
      (version "2.3.0")
      (source (origin
                (method url-fetch)
                (uri
                 (string-append
                  "https://bitbucket.org/alium/g45-h264/downloads/intel-driver-g45-h264-"
                  version ".tar.gz"))
                (sha256
                 (base32
                  "0hf6h6754qf2sfhfq5i6pwn5dc06hjib6m05r8999ilbvrv4axar"))))
      (arguments
       (substitute-keyword-arguments (package-arguments base)
         ((#:phases phases '%standard-phases)
          `(modify-phases ,phases
             (add-before 'bootstrap 'skip-premature-configure
               (lambda _
                 (setenv "NOCONFIGURE" "set")
                 #t))))))
      (native-inputs
       `(("autoconf" ,autoconf)
         ("automake" ,automake)
         ("libtool" ,libtool)
         ,@(package-native-inputs base))))))

(operating-system
	(host-name "x200")
	(timezone "America/New_York")
	(keyboard-layout (keyboard-layout "us"))
	(locale "en_US.UTF-8")

	;; Set kernel on a version compatible with: intel-vaapi-driver-g45-h264
	(kernel linux-libre-4.19)
	;; according to <https://linrunner.de/tlp/installation/arch.html#thinkpads-only-external-kernel-modules> and "guix shell tlp -- sudo tlp-stat -b"
	(kernel-loadable-modules (list tp-smapi-module))



@@ 103,7 135,7 @@
		      ;;"virtio_pci" "virtio_balloon" "virtio_blk" "virtio_net" "virtio_console" "virtio-rng"
		      "usb-storage" "uas"                        ; for the installation image etc.
		      "nls_iso8859-1"                            ; for `mkfs.fat`, et.al
		      "xxhash_generic"                           ; For btrfs xxhash checksum support
;		      "xxhash_generic"                           ; For btrfs xxhash checksum support (not supported on older Linux kernels)
		      "dm-crypt" "xts" "serpent_generic" "wp512" ; for encrypted root partitions
		      "usbhid" "hid-generic" "hid-apple"))       ; keyboards during early boot



@@ 335,7 367,7 @@ root ALL=(ALL) ALL
			tree                          ; Handy file directory map generator
			usbutils                      ; For manipulating USB devices (lsusb)
			util-linux                    ; For dmesg
			intel-vaapi-driver            ; Needed for mpv playback performance on x200
			intel-vaapi-driver-g45-h264   ; Needed for mpv playback performance on x200
			wget                          ; Downloader
			which                         ; Find full path
			whois                         ; For mkpasswd