-
Notifications
You must be signed in to change notification settings - Fork 14
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
Comments
理论上能用于任何发行版,但是有两个情况要注意。 ACPI补丁有两个版本一个是patch.archlinux.diff另一个是patch.diff. 这两个版本内容是一样的,只是有些发行版的ACPI反编译器会莫名多/少一个空格导致补丁失败。比如ubuntu就有空格,arch系的就少一个空格。 所以你修改下这个脚本,在两个版本间切换试试看。 modern_laptop/fixes/acpi/patch.sh Line 23 in c964352
|
我的系统上,执行脚本会报test: 参数太多
这个是咋回事啊
…---原始邮件---
发件人: ***@***.***>
发送时间: 2022年8月23日(周二) 中午12:44
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [vrolife/modern_laptop] 这个patch不能用于其他发行版吗 (Issue #12)
理论上能用于任何发行版,但是有两个情况要注意。
ACPI补丁有两个版本一个是patch.archlinux.diff另一个是patch.diff. 这两个版本内容是一样的,只是有些发行版的ACPI反编译器会莫名多/少一个空格导致补丁失败。比如ubuntu就有空格,arch系的就少一个空格。
所以你修改下这个脚本,在两个版本间切换试试看。https://github.com/vrolife/modern_laptop/blob/c964352e356be18abc883b1484a5258c59075769/fixes/acpi/patch.sh#L23
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
刚刚重新拉了一遍代码,把系统环境检测的代码注释掉以后,patch.sh里面最后改成用arch的那个版本,就可以通过了,不过opensuse没有 |
这个可能是因为你的发行版/etc/os-release里的相关值含空格。方便提供这个文件的内容吗? |
以下为
|
搞了个suse的分支https://github.com/vrolife/modern_laptop/tree/suse 你看能不能用,能用我再合并到主分支 |
试了下suse分支的test没有报错了,acpi跟wmi都成功了,就是背光和wifi,指纹报错,我另外开issue把log贴上来。 |
ACPI的问题应该差不多了,辛苦啦 |
我的redmibook pro 15 2022锐龙,BIOS为0B0B版本,安装的是openSUSE风滚草,内核5.19带有PSR,但是没有键盘驱动。
我手动安装依赖包以后,注释掉系统判断,到了patch acpi的时候,报hunk错误,显示rejected,这个有办法手动修复吗?
还是只能改用Arch?
The text was updated successfully, but these errors were encountered: