Skip to content

Commit

Permalink
Changelog:
Browse files Browse the repository at this point in the history
- Add tablet mode support for HP Elite X2
  • Loading branch information
sebanc committed Dec 30, 2023
1 parent 9d01b30 commit a8a8667
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion brunch-patches/99-tablet_mode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ start on starting boot-services
script
modprobe tablet_mode_switch
bash /usr/bin/tmod
end script
MODULEPROBE
if [ ! "$?" -eq 0 ]; then ret=$((ret + (2 ** 0))); fi
Expand All @@ -35,6 +34,8 @@ ACTION=="add", SUBSYSTEMS=="hid", KERNEL=="*:045E:07A9.*" , RUN+="/bin/bash -c '
ACTION=="remove", SUBSYSTEMS=="hid", KERNEL=="*:045E:07A9.*" , RUN+="/bin/bash -c 'echo 1 > /sys/bus/platform/devices/tablet_mode_switch.0/tablet_mode'"
ACTION=="add", SUBSYSTEMS=="hid", KERNEL=="*:0B05:183B.*" , RUN+="/bin/bash -c 'echo 0 > /sys/bus/platform/devices/tablet_mode_switch.0/tablet_mode'"
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'"
UDEVRULE
if [ ! "$?" -eq 0 ]; then ret=$((ret + (2 ** 1))); fi
fi
Expand All @@ -60,6 +61,8 @@ ACTION=="add", SUBSYSTEMS=="hid", KERNEL=="*:045E:07A9.*" , RUN+="/bin/bash -c '
ACTION=="remove", SUBSYSTEMS=="hid", KERNEL=="*:045E:07A9.*" , RUN+="/bin/bash -c 'echo 1 > /sys/bus/platform/devices/tablet_mode_switch.0/tablet_mode'"
ACTION=="add", SUBSYSTEMS=="hid", KERNEL=="*:0B05:183B.*" , RUN+="/bin/bash -c 'echo 0 > /sys/bus/platform/devices/tablet_mode_switch.0/tablet_mode'"
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'"
UDEVRULE
if [ ! "$?" -eq 0 ]; then ret=$((ret + (2 ** 3))); fi
fi
Expand Down
Binary file added packages/chromebook_audio/lars.tar.gz
Binary file not shown.

0 comments on commit a8a8667

Please sign in to comment.