Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这个patch不能用于其他发行版吗 #12

Closed
xmu714 opened this issue Aug 23, 2022 · 8 comments
Closed

这个patch不能用于其他发行版吗 #12

xmu714 opened this issue Aug 23, 2022 · 8 comments

Comments

@xmu714
Copy link

xmu714 commented Aug 23, 2022

我的redmibook pro 15 2022锐龙,BIOS为0B0B版本,安装的是openSUSE风滚草,内核5.19带有PSR,但是没有键盘驱动。
我手动安装依赖包以后,注释掉系统判断,到了patch acpi的时候,报hunk错误,显示rejected,这个有办法手动修复吗?
还是只能改用Arch?

@vrolife
Copy link
Owner

vrolife commented Aug 23, 2022

理论上能用于任何发行版,但是有两个情况要注意。

ACPI补丁有两个版本一个是patch.archlinux.diff另一个是patch.diff. 这两个版本内容是一样的,只是有些发行版的ACPI反编译器会莫名多/少一个空格导致补丁失败。比如ubuntu就有空格,arch系的就少一个空格。

所以你修改下这个脚本,在两个版本间切换试试看。

if test $ID = "manjaro" -o $ID_LIKE = "arch"; then

@xmu714
Copy link
Author

xmu714 commented Aug 23, 2022 via email

@xmu714
Copy link
Author

xmu714 commented Aug 23, 2022

理论上能用于任何发行版,但是有两个情况要注意。

ACPI补丁有两个版本一个是patch.archlinux.diff另一个是patch.diff. 这两个版本内容是一样的,只是有些发行版的ACPI反编译器会莫名多/少一个空格导致补丁失败。比如ubuntu就有空格,arch系的就少一个空格。

所以你修改下这个脚本,在两个版本间切换试试看。

if test $ID = "manjaro" -o $ID_LIKE = "arch"; then

刚刚重新拉了一遍代码,把系统环境检测的代码注释掉以后,patch.sh里面最后改成用arch的那个版本,就可以通过了,不过opensuse没有update-grub命令,改成update-bootloader就可以了,现在重启已经可以用键盘了。

@vrolife
Copy link
Owner

vrolife commented Aug 23, 2022

我的系统上,执行脚本会报test: 参数太多 这个是咋回事啊

---原始邮件--- 发件人: @.> 发送时间: 2022年8月23日(周二) 中午12:44 收件人: @.>; 抄送: @.@.>; 主题: Re: [vrolife/modern_laptop] 这个patch不能用于其他发行版吗 (Issue #12) 理论上能用于任何发行版,但是有两个情况要注意。 ACPI补丁有两个版本一个是patch.archlinux.diff另一个是patch.diff. 这两个版本内容是一样的,只是有些发行版的ACPI反编译器会莫名多/少一个空格导致补丁失败。比如ubuntu就有空格,arch系的就少一个空格。 所以你修改下这个脚本,在两个版本间切换试试看。

if test $ID = "manjaro" -o $ID_LIKE = "arch"; then
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

这个可能是因为你的发行版/etc/os-release里的相关值含空格。方便提供这个文件的内容吗?

@xmu714
Copy link
Author

xmu714 commented Aug 23, 2022

以下为/etc/os-release文件内容:

NAME="openSUSE Tumbleweed"
# VERSION="20220821"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20220821"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20220821"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"

@Vliro @vrolife

@vrolife
Copy link
Owner

vrolife commented Aug 23, 2022

搞了个suse的分支https://github.com/vrolife/modern_laptop/tree/suse 你看能不能用,能用我再合并到主分支

@xmu714
Copy link
Author

xmu714 commented Aug 23, 2022

搞了个suse的分支https://github.com/vrolife/modern_laptop/tree/suse 你看能不能用,能用我再合并到主分支

试了下suse分支的test没有报错了,acpi跟wmi都成功了,就是背光和wifi,指纹报错,我另外开issue把log贴上来。

@xmu714
Copy link
Author

xmu714 commented Aug 23, 2022

ACPI的问题应该差不多了,辛苦啦

@xmu714 xmu714 closed this as completed Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants