Skip to content

Commit

Permalink
Changelog:
Browse files Browse the repository at this point in the history
- Add tablet mode quirks
  • Loading branch information
sebanc committed Jun 29, 2024
1 parent f59c54c commit 4052af5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions brunch-patches/99-tablet_mode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ ACTION=="add", SUBSYSTEMS=="hid", KERNEL=="*:0B05:183B.*" , RUN+="/bin/bash -c '
ACTION=="remove", SUBSYSTEMS=="hid", KERNEL=="*:0B05:183B.*" , RUN+="/bin/bash -c 'echo 1 > /sys/bus/platform/devices/tablet_mode_switch.0/tablet_mode'"
ACTION=="add", SUBSYSTEMS=="hid", KERNEL=="*:04F3:0C79.*" , RUN+="/bin/bash -c 'echo 0 > /sys/bus/platform/devices/tablet_mode_switch.0/tablet_mode'"
ACTION=="remove", SUBSYSTEMS=="hid", KERNEL=="*:04F3:0C79.*" , RUN+="/bin/bash -c 'echo 1 > /sys/bus/platform/devices/tablet_mode_switch.0/tablet_mode'"
ACTION=="add", SUBSYSTEMS=="hid", KERNEL=="*:044E:1218.*" , RUN+="/bin/bash -c 'echo 0 > /sys/bus/platform/devices/tablet_mode_switch.0/tablet_mode'"
ACTION=="remove", SUBSYSTEMS=="hid", KERNEL=="*:044E:1218.*" , RUN+="/bin/bash -c 'echo 1 > /sys/bus/platform/devices/tablet_mode_switch.0/tablet_mode'"
UDEVRULE
if [ ! "$?" -eq 0 ]; then ret=$((ret + (2 ** 1))); fi
fi
Expand Down Expand Up @@ -63,6 +65,8 @@ ACTION=="add", SUBSYSTEMS=="hid", KERNEL=="*:0B05:183B.*" , RUN+="/bin/bash -c '
ACTION=="remove", SUBSYSTEMS=="hid", KERNEL=="*:0B05:183B.*" , RUN+="/bin/bash -c 'echo 1 > /sys/bus/platform/devices/tablet_mode_switch.0/tablet_mode'"
ACTION=="add", SUBSYSTEMS=="hid", KERNEL=="*:04F3:0C79.*" , RUN+="/bin/bash -c 'echo 0 > /sys/bus/platform/devices/tablet_mode_switch.0/tablet_mode'"
ACTION=="remove", SUBSYSTEMS=="hid", KERNEL=="*:04F3:0C79.*" , RUN+="/bin/bash -c 'echo 1 > /sys/bus/platform/devices/tablet_mode_switch.0/tablet_mode'"
ACTION=="add", SUBSYSTEMS=="hid", KERNEL=="*:044E:1218.*" , RUN+="/bin/bash -c 'echo 0 > /sys/bus/platform/devices/tablet_mode_switch.0/tablet_mode'"
ACTION=="remove", SUBSYSTEMS=="hid", KERNEL=="*:044E:1218.*" , RUN+="/bin/bash -c 'echo 1 > /sys/bus/platform/devices/tablet_mode_switch.0/tablet_mode'"
UDEVRULE
if [ ! "$?" -eq 0 ]; then ret=$((ret + (2 ** 3))); fi
fi
Expand Down

0 comments on commit 4052af5

Please sign in to comment.