distribution/packages/hardware/quirks/devices/Powkiddy RGB10 MAX 3/001-hardwareinit

29 lines
667 B
Text
Raw Normal View History

2023-06-30 12:38:54 +00:00
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
### Disable blue blinking led
echo none > /sys/class/leds/blue\:/trigger
### Sleep is currently broken, so we'll disable it.
cat <<EOF >/storage/.config/sleep.conf.d/sleep.conf
[Sleep]
AllowSuspend=no
SuspendState=freeze
EOF
2023-08-09 20:10:55 +00:00
### Ignore power button presses for now, until we can finish up fixing sleep.
cat <<EOF >~/.config/logind.conf.d/login.conf
[Login]
HandlePowerKey=ignore
HandleSuspendKey=ignore
EOF
2023-08-09 20:10:55 +00:00
### Set sound properties
2023-08-16 00:08:48 +00:00
amixer -c 0 -q sset 'FRDDR_A SINK 1 SEL' 'OUT 1'
amixer -c 0 -q sset 'FRDDR_A SRC 1 EN' 'on'