# Framework 16 Fixes

- [Framework 16 Fixes](#framework-16-fixes)
  - [Wake from Sleep](#wake-from-sleep)
  - [Wrong keys pressed in the browser, keyboard occasionally freezes after clicking a field](#wrong-keys-pressed-in-the-browser-keyboard-occasionally-freezes-after-clicking-a-field)

## Wake from Sleep

The keyboard/mouse can be pressed through the lid while in a backpack. Disable them to
prevent wake from sleep.

`/etc/udev/rules.d/69-suspend.rules`

```conf
# Disables all devices except the power button
ACTION=="add", SUBSYSTEM=="acpi", DRIVERS=="button", ATTRS{hid}=="PNP0C0D", ATTR{power/wakeup}="disabled"
ACTION=="add", SUBSYSTEM=="serio", DRIVERS=="atkbd", ATTR{power/wakeup}="disabled"
ACTION=="add", SUBSYSTEM=="i2c", DRIVERS=="i2c_hid_acpi", ATTRS{name}=="PIXA3854:00", ATTR{power/wakeup}="disabled"
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTR{power/wakeup}="disabled"
```

Reboot

If you want to specifically disable the framework keyboard you can use this:

```conf
# https://askubuntu.com/questions/848698/wake-up-from-suspend-using-usb-device
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0012", RUN+="/bin/sh -c 'echo disabled > /sys$env{DEVPATH}/power/wakeup'"
```

## Wrong keys pressed in the browser, keyboard occasionally freezes after clicking a field

This was caused by a Keychron M3 mini mouse.
