# Lenovo Flex 14 Linux Tweaks
## Setup
This utilizes Endeavour OS w/ Cinnamon desktop. XFCE desktop can work but has some compositing issues noted below. You should be able to translate below into Arch and other distros.
### Install AMD Microcode
$ sudo pacman -S amd-ucode
$ sudo grub-mkconfig -o /boot/grub/grub.cfg
### Power Mgmt
- Set Power Mgmt to Lock Screen as Hibernate doesn't currently work well.
### Install AMD GPU Vulkan / 32bit Driver Support
```
$ sudo pacman -S lib32-mesa
$ sudo pacman -S xf86-video-amdgpu
$ sudo pacman -S vulkan-radeon
$ sudo pacman -S lib32-libva-mesa-driver
$ sudo pacman -S libva-mesa-driver
$ sudo pacman -S mesa-vdpau lib32-mesa-vdpau
```
### Install Power Mgmt Improve Battery
```
$ sudo pacman -S tlp
$ sudo systemctl enable tlp
$ sudo sytemctl start tlp
```
### XFCE DE
- Turn off compositor install compton instead
- *Cinnamon Desktop works fine out of the box.
### Screen Rotation
- Install iio-sensor-proxy-git
- Install screenrotator-git
### Onscreen Keyboard
- Under Accessibility turn on (On-Screen Keyboard)
### Doesn't work yet
- Hibernate is buggy
- Fingerprint reader does not currently work
### What does work
- Bluetooth
- Function key function control (volume, brightness, etc.)
- Screen rotating
- Touch screen
- All ports
- Touchpad
- Keyboard
- Stylus