GPD Win 4 support
Adds audio device and sleep mode quirks for GPD Win 4
This commit is contained in:
parent
6f9db634ee
commit
0238203a14
2 changed files with 25 additions and 0 deletions
14
packages/hardware/quirks/devices/GPD G1618-04/001-audio
Normal file
14
packages/hardware/quirks/devices/GPD G1618-04/001-audio
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
|
||||
|
||||
. /etc/profile
|
||||
|
||||
|
||||
MYDEVICE=$(get_setting system.audiodevice)
|
||||
if [ -z "${MYDEVICE}" ]
|
||||
then
|
||||
### Set the audio device.
|
||||
set-audio set "ALC269VB (1:0)"
|
||||
set-audio esset "Master"
|
||||
fi
|
11
packages/hardware/quirks/devices/GPD G1618-04/001-hardwareinit
Executable file
11
packages/hardware/quirks/devices/GPD G1618-04/001-hardwareinit
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
|
||||
|
||||
. /etc/profile
|
||||
|
||||
MYSLEEPMODE=$(get_setting system.suspendmode)
|
||||
if [ -z "${MYSLEEPMODE}" ]
|
||||
then
|
||||
/usr/bin/setsuspendmode mem
|
||||
fi
|
Loading…
Reference in a new issue