moved files from old asus repo to this repo.

This commit is contained in:
root 2023-06-17 22:49:58 +02:00
parent 497ca664da
commit 49e3d4fc25
5 changed files with 101 additions and 0 deletions

View File

@ -1,2 +1,9 @@
This repository contains some utilities and setup info for the
ASUS N7601ZM on linux.
# Keychron K8 keyboard
To allow funcfion keys to work properly, add this to /etc/modprobe.d in conf file:
```
options hid_apple fnmode=0
```

View File

@ -0,0 +1,33 @@
# Patching the audio driver on rocky linux 9 kernel 5
```
yumdownloader --source kernel-modules
rpm -ivh kernel-5.14.0-284.11.1.el9_2.src.rpm
# get topdir
rpm --showrc | grep topdir
# $HOME/rpmbuild
cd $HOME/rpmbuild/SOURCES
unxz linux-5.14.0-284.11.1.el9_2.tar.xz
tar xvf linux-5.14.0-284.11.1.el9_2.tar
cd linux-5.14.0-284.11.1.el9_2/sound/pci/hda
kdiff3 patch_realtek.c \
/usr/src/kernels/audiopatch/linux-5.14.0-162.12.1.el9_1/sound/pci/hda/patch_realtek.c \
-o patch_realtek.c.new
#create patch file
diff -Naur patch_realtek.c.orig patch_realtek.c.new > patch_realtek.c.patch
# patch the file
cp patch_realtek.c patch_realtek.c.orig
patch -p0 patch_realtek.c < patch_realtek.c.patch
# compile and install the driver
make -C /lib/modules/`uname -r`/build M=$PWD
make -C /lib/modules/`uname -r`/build M=$PWD modules_install
```

View File

@ -0,0 +1,49 @@
--- patch_realtek.c.orig 2023-06-15 21:08:20.089751927 +0200
+++ patch_realtek.c.new 2023-06-15 21:24:06.543256230 +0200
@@ -6960,6 +6960,8 @@
ALC269_FIXUP_DELL_M101Z,
ALC269_FIXUP_SKU_IGNORE,
ALC269_FIXUP_ASUS_G73JW,
+ ALC269_FIXUP_ASUS_N7601ZM_PINS,
+ ALC269_FIXUP_ASUS_N7601ZM,
ALC269_FIXUP_LENOVO_EAPD,
ALC275_FIXUP_SONY_HWEQ,
ALC275_FIXUP_SONY_DISABLE_AAMIX,
@@ -7255,6 +7257,29 @@
{ }
}
},
+ [ALC269_FIXUP_ASUS_N7601ZM_PINS] = {
+ .type = HDA_FIXUP_PINS,
+ .v.pins = (const struct hda_pintbl[]) {
+ { 0x19, 0x03A11050 }, /* FIXME: add comment */
+ { 0x1a, 0x03A11C30 }, /* FIXME: add comment */
+ { 0x21, 0x03211420 }, /* FIXME: add comment */
+ { }
+ }
+ },
+ [ALC269_FIXUP_ASUS_N7601ZM] = {
+ .type = HDA_FIXUP_VERBS,
+ .v.verbs = (const struct hda_verb[]) {
+ {0x20, AC_VERB_SET_COEF_INDEX, 0x62},
+ {0x20, AC_VERB_SET_PROC_COEF, 0xa007},
+ {0x20, AC_VERB_SET_COEF_INDEX, 0x10},
+ {0x20, AC_VERB_SET_PROC_COEF, 0x8420},
+ {0x20, AC_VERB_SET_COEF_INDEX, 0x0f},
+ {0x20, AC_VERB_SET_PROC_COEF, 0x7774},
+ { }
+ },
+ .chained = true,
+ .chain_id = ALC269_FIXUP_ASUS_N7601ZM_PINS,
+ },
[ALC269_FIXUP_LENOVO_EAPD] = {
.type = HDA_FIXUP_VERBS,
.v.verbs = (const struct hda_verb[]) {
@@ -9461,6 +9486,7 @@
SND_PCI_QUIRK(0x1043, 0x19ce, "ASUS B9450FA", ALC294_FIXUP_ASUS_HPE),
SND_PCI_QUIRK(0x1043, 0x19e1, "ASUS UX581LV", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW),
+ SND_PCI_QUIRK(0x1043, 0x12a3, "Asus N7691ZM", ALC269_FIXUP_ASUS_N7601ZM),
SND_PCI_QUIRK(0x1043, 0x1a30, "ASUS X705UD", ALC256_FIXUP_ASUS_MIC),
SND_PCI_QUIRK(0x1043, 0x1a8f, "ASUS UX582ZS", ALC245_FIXUP_CS35L41_SPI_2),
SND_PCI_QUIRK(0x1043, 0x1b11, "ASUS UX431DA", ALC294_FIXUP_ASUS_COEF_1B),

View File

@ -0,0 +1,4 @@
Add the xdg-open wrapper script to your path in a location before
/usr/bin. This is needed to work around login problems on (rocky) linux
to open the xdg-open app in the correct way.

8
asusN7601ZM/slack/xdg-open Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
if [[ "${1:-}" = slack://* ]]
then
exec /usr/lib/slack/slack --enable-crashpad "$1"
fi
exec /usr/bin/xdg-open "$@"