LG Gram 上手

由于pixelbook的半残不废加上出差在外,想换个续航叼且Linux友好的无独显笔记本。同事之前推荐过2018款的LG Gram就一直关注着这个系列,之后出了2019款便想着入手了。

淘宝上有加装内存且有保修的店家,但价格还是不太理想,所以终于等到618京东稍微降了点价就入了(白条分期+信用卡,留下了没钱的眼泪),上手用了一段时间后自己加装了8G内存(编译 Gentoo 终于不用怕经常爆内存了,还能丢tmpfs编译)

因为有了雷电接口,部分 Linux 发行版会开机时刷 acpi error 错误造成很大概率不能正常启动,对于 5.x.x 的内核可以直接通过加入 pci=nommconf 内核参数解决。

LG gram目前未解决的问题有:

以下列出下它目前Gentoo的主要配置:
/etc/portage/make.conf:

COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j6"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

#GENTOO_MIRRORS="https://mirrors.ustc.edu.cn/gentoo/"
GENTOO_MIRRORS="https://mirrors.tuna.tsinghua.edu.cn/gentoo/"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y"
#EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y --load-average --jobs=5"
FEATURES="ccache userfetch"
CCACHE_SIZE="15G"
ACCEPT_KEYWORDS="~amd64"
ACCEPT_LICENSE="*"
L10N="en-US zh-CN en zh"
LINGUAS="en_US zh_CN en zh"
VIDEO_CARDS="intel i965"
CPU_FLAGS="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
CPU_FLAGS_X86="${CPU_FLAGS}"

# USE
BASE_SYSTEM="-plymouth btrfs device-mapper libkms -grub systemd pulseaudio networkmanager bluetooth touchpad mtp cryptsetup iptables initramfs gnuefi lvm"
APP="konsole dolphin cups fcitx chromium telegram -nautilus 7zip rar vim samba cups"
DESKTOP="kvantum user-session infinality emoji cjk gtk gtk3 legacy-systray -gnome gnome-keyring -gnome-shell browser-integration crypt display-manager sddm"
ELSE="-bindist vim-syntax git bash-completion client icu python brightness-control vaapi"
USE="${BASE_SYSTEM} ${APP} ${DESKTOP} ${ELSE}"

FUCK_FONTS="/usr/share/fonts/arphicfonts"
INSTALL_MASK="${FUCK_FONTS}"

RUBY_TARGETS="ruby26 ruby25"
LLVM_TARGETS="X86"

/etc/portage/package.use/default:

dev-lang/python sqlite
sys-apps/dbus user-session
sys-kernel/gentoo-sources experimental symlink
app-portage/layman sync-plugin-portage
net-wireless/wpa_supplicant -qt5
app-i18n/fcitx gtk3 opencc
app-admin/keepassxc yubikey autotype network browser
net-misc/remmina ssh rdp vnc
app-editors/vim lua luajit perl ruby terminal
app-office/libreoffice java

app-crypt/pinentry gnome-keyring

# pulseaudio-modules-bt
media-sound/pulseaudio -bluetooth

# Qtox
media-video/ffmpeg webp v4l

# Neofetch
www-client/w3m imlib

# Fish
dev-libs/libpcre2 pcre32

# Chromium
www-client/chromium widevine jumbo-build
net-libs/nodejs inspector

kernel cmdline:

dolvm crypt_root=UUID=1758cbec-afa7-434f-84a7-5afb7270bccf resume=/dev/mapper/system-swap root=/dev/mapper/system-root root_trim=yes quite loglevel=0 pci=nommconf

kernel-config

又又又水了一篇文章,嘿嘿嘿

添加新评论