wiki-system/XPS-13-7390-2-in-1--.md
2020-06-22 09:44:04 +02:00

6.6 KiB

source

Gentoo wiki - Dell XPS 13 2-in-1 (7390)
Ubuntu wiki - Dell XPS 13 2-in-1 (7390) Arch Linux - Dell XPS 13 2-in-1 (7390)

Bios setup

  • have to disable Raid ... Enable AHCI
  • Disable secure boot in bios to permit Hibernate

in case you wanted to change zpool passwd

$ zfs change-key rpool

create swap partition to permit Hibernate

create a swap partition right sized for hibernation.

add theses 2 lines in : /usr/share/ubiquity/zsys-setup

MEMSIZE=$(cat /proc/meminfo | grep MemTotal | awk -F' ' '{print $2}')
SWAPVOLSIZE=$(( MEMSIZE / 1024 ))

like bellow :

	# Convert to MiB to align the size on the size of a block
	SWAPVOLSIZE=$(( SWAPSIZE / 1024 / 1024 ))
    
MEMSIZE=$(cat /proc/meminfo | grep MemTotal | awk -F' ' '{print $2}')
SWAPVOLSIZE=$(( MEMSIZE / 1024 ))

	prepare_target "${TARGET}"
	format_disk "${DISK}" "${PARTBASE}" "${PARTESP}" "${PARTBPOOL}" "${PARTRPOOL}" "${SWAPVOLSIZE}"
	init_zfs "${TARGET}" "${DISK}${PARTBASE}${PARTBPOOL}" "${DISK}${PARTBASE}${PARTRPOOL}"
	init_system_partitions "${TARGET}" "${DISK}${PARTBASE}1" "${DISK}${PARTBASE}${PARTESP}"

Run ubiquity to start the installer and install as normal, selecting “Use entire disk” and the option to use ZFS.

source : Linsomniac's Articles - Encrypting ZFS on Ubuntu 20.04

UHD screen

!!!
https://forum.xfce.org/viewtopic.php?id=13617
a essayer : xfconf-query -c xsettings -p /Gdk/WindowScalingFactor -s 2
xfconf-query -c xsettings -p /Gdk/WindowScalingFactor -s 2

Changer la taille de police dans les applications Qt sous Xfce

voir source : https://www.ezvan.fr/taille-police-qt.html

editer : ~/.Xresources : Ce fichier est utilisé par le serveur X pour configurer ses applications clientes.

!-------------------------------------------------------------------------------
! Xft settings
!-------------------------------------------------------------------------------

Xft.dpi:        240
Xft.antialias:  true
Xft.rgba:       rgb
Xft.hinting:    true
Xft.hintstyle:  hintslight
Xft.autohint:   false
Xft.lcdfilter:  lcddefault

Il faut ensuite utiliser la commande xrdb pour appliquer ces paramètres :

$ xrdb -merge ~/.Xresources

console grub ...

Boot menu uses a tiny font (GRUB menu).

Best way to address this would be to have GRUB automatically select the right font, but GRUB is kept small on purpose, or to install a larger GRUB font when installing Ubuntu.

Workaround: let the default GRUB terminal driver, gfxterm, switch to a supported mode such as 1600x1200 (NB to list video modes, disable secure mode in the BIOS and run the videoinfo command in the GRUB shell accessed by pressing "c" from the GRUB menu):

GRUB_GFXMODE=1280x1024
update-grub 

Splash screen uses too small logo and somewhat too small fonts (Plymouth).

Plymouth has logic to detect the proper scaling to apply, but it's still too small; workaround by forcing the scale on the kernel cmdline:

Add to GRUB_CMDLINE_LINUX in /etc/default/grub.

plymouth.force-scale=3
update-grub 

Console terminal uses too small fonts.

Note that the package shipping the Ubuntu Monospace font for the terminal, fonts-ubuntu-console, is not installed by default and only ships 8x16 fonts.

Change the font by running :

dpkg-reconfigure console-setup

select a font face that supports a larger font size, for instance the Terminus font, and select a large font size such as 16x32; you need to reboot for the new font to be set.

activate hibernation in system

Disable secure boot in bios to permit Hibernate.

souce :

apt install pm-utils
update-initramfs -u -k $(uname -r)
pm-hibernate
printf "RESUME=UUID=$(blkid | awk -F\" '/swap/ {print $2}')\n" | head -n 1| sudo tee /etc/initramfs-tools/conf.d/resume

you can check with : blkid

update-initramfs -u -k all

change /etc/default/grub : add your resume UUID into GRUB_CMDLINE_LINUX_DEFAULT

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=75034ff5-...-9e4564e16d34"

enable hibernate in system

/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

[Réactive hiberner par défaut dans upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Réactive hiberner par défaut dans logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes

configure hibernate to auto switch from sleep to hibernate

edit : /etc/systemd/sleep.conf

And add this value to it (The number represents seconds you want to pass in sleep, after which the computer will switch to hibernation, so you can put it in 60 seconds or something short just to check it's working and after that you can put whatever ammount of time you want):

[Sleep]

HibernateDelaySec=7200

kernel lockdown prevent hibernation :

Hiberner au bout de x secondes après une mise en veille

encrypt swap partition

apt-get install ecryptfs-utils
apt install cryptsetup-bin
swapoff -a
cryptsetup luksFormat --cipher aes-xts-plain64 --verify-passphrase --key-size 256 /dev/nvme0n1p2

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/mapper/cryptswap1"

enable screen rotatation

apt install iio-sensor-proxy

install : screen rotator : https://github.com/GuLinux/ScreenRotator

zpool trouble mount it from live systeme

boot on usb drive
zpool import -R /mnt rpool
zfs load-key rpool
zfs mount rpool/USERDATA/nomad_e8bdbt