Spis treści

Huawei MateBook Pro X 2021

Ustawienia dla (X)Ubuntu 21.10

Ogólne

Skróty klawiszowe:

UEFI: F2
BOOT: F11

GRUB

Wejście do boot menu Grub-a przy starcie poprzez przytrzymanie PRAWEGO Shift-a (FIXME: dlaczego lewy nie działa?)

Graphics Fix

Do GRUB_CMDLINE_LINUX_DEFAULT dodajemy i915.enable_psr=0:

/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_psr=0"

Wyłącza to dynamiczne odświeżanie (MateBook może do 90Hz) i wymusza 60Hz, dzięki czemu obraz działa.

Pozostałe..

Zmiana DPI dla niestandardowych WM (innych niż. XFCE, GNOME, KDE itp.)

.Xresources
Xft.dpi: 192
.xinitrc
#!/bin/sh
# chmod +x .xinitrc
xrdb -merge ~/.Xresources

lightdm fix

Nowy lightdm odpala sesję poprzez własny lightdm-session zamiast przez Xsession. Powoduje to nieprawidłowe przetwarzanie części plików X11. Poniżej fix dla prawidłowego ładowania .Xresources użytkownika:

/etc/X11/Xsession.d/31x11-common_xresources_fix
# This file is sourced by Xsession(5), not executed.
 
USRRESOURCES="$HOME/.Xresources"
 
if [ -f "$USRRESOURCES" ]; then
  if type xrdb >/dev/null 2>&1; then
    xrdb -merge $USRRESOURCES
  else
    # Comment out this command if you desire a legacy-free X environment, and find
    # the warning spurious.
    message "warning: xrdb command not found; X resources not merged."
  fi
fi
 
# vim:set ai et sts=2 sw=2 tw=80:

dpi

Podbijanie DPI dla LightDM:

/etc/lightdm/lightdm-gtk-greeter.conf
[greeter]
xft-dpi=260

inputrc

Wyłączenie podświetlenia wklejanego tekstu:

/etc/inputrc
set enable-bracketed-paste off

Ubuntu Software Center

Wywalanie monitu o hasło przy instalacji:

/usr/share/polkit-1/actions/org.debian.apt.policy
  <action id="org.debian.apt.install-or-remove-packages">
    <description gettext-domain="aptdaemon">Install or remove packages</description>
    <message gettext-domain="aptdaemon">To install or remove software, you need to authenticate.</message>
    <defaults>
      <allow_any>yes</allow_any>
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

Bluetooth

Z jakiegoś powodu mysz nie chciała się pojawić przy parowaniu w GUI. Parowanie przez CLI:

# bluetoothctl
 
[Bluetooth] power off
[Bluetooth] power on
[Bluetooth] scan on
[Bluetooth] pair XX:XX:XX:XX:XX:XX