Comments (10)
试试最新的suse分支98d14f1
from modern_laptop.
变成了新的错误:
DKMS make.log for redmibook_kbd_backlight-1.0.2 for kernel 5.19.2-1-default (x86_64)
2022年 08月 23日 星期二 14:22:19 CST
make -C /lib/modules/5.19.2-1-default/build M=`pwd` modules
make[1]: 警告: jobserver 不可用: 正使用 -j1。添加 “+” 到父 make 的规则。
make[1]: 进入目录“/usr/src/linux-5.19.2-1-obj/x86_64/default”
CC [M] /var/lib/dkms/redmibook_kbd_backlight/1.0.2/build/redmibook_kbd_backlight.o
/var/lib/dkms/redmibook_kbd_backlight/1.0.2/build/redmibook_kbd_backlight.c: 在函数‘ec_init’中:
/var/lib/dkms/redmibook_kbd_backlight/1.0.2/build/redmibook_kbd_backlight.c:188:5: 错误:implicit declaration of function ‘acpi_bus_get_device’; did you mean ‘acpi_is_pnp_device’? [-Werror=implicit-function-declaration]
188 | acpi_bus_get_device(handle_EC0, &device);
| ^~~~~~~~~~~~~~~~~~~
| acpi_is_pnp_device
cc1:有些警告被当作是错误
make[2]: *** [/usr/src/linux-5.19.2-1/scripts/Makefile.build:250:/var/lib/dkms/redmibook_kbd_backlight/1.0.2/build/redmibook_kbd_backlight.o] 错误 1
make[1]: *** [../../../linux-5.19.2-1/Makefile:1863:/var/lib/dkms/redmibook_kbd_backlight/1.0.2/build] 错误 2
make[1]: 离开目录“/usr/src/linux-5.19.2-1-obj/x86_64/default”
make: *** [Makefile:5:all] 错误 2
from modern_laptop.
忘记提升版本号了 试这个1051a9f
from modern_laptop.
忘记提升版本号了 试这个1051a9f
悲,又出现了错误:
DKMS make.log for redmibook_kbd_backlight-1.0.3 for kernel 5.19.2-1-default (x86_64)
2022年 08月 23日 星期二 14:50:54 CST
make -C /lib/modules/5.19.2-1-default/build M=`pwd` modules
make[1]: 警告: jobserver 不可用: 正使用 -j1。添加 “+” 到父 make 的规则。
make[1]: 进入目录“/usr/src/linux-5.19.2-1-obj/x86_64/default”
CC [M] /var/lib/dkms/redmibook_kbd_backlight/1.0.3/build/redmibook_kbd_backlight.o
/var/lib/dkms/redmibook_kbd_backlight/1.0.3/build/redmibook_kbd_backlight.c: 在函数‘ec_init’中:
/var/lib/dkms/redmibook_kbd_backlight/1.0.3/build/redmibook_kbd_backlight.c:188:6: 警告:"LINUX_VERSION_CODE" is not defined, evaluates to 0 [-Wundef]
188 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0))
| ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/redmibook_kbd_backlight/1.0.3/build/redmibook_kbd_backlight.c:188:28: 警告:"KERNEL_VERSION" is not defined, evaluates to 0 [-Wundef]
188 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0))
| ^~~~~~~~~~~~~~
/var/lib/dkms/redmibook_kbd_backlight/1.0.3/build/redmibook_kbd_backlight.c:188:42: 错误:missing binary operator before token "("
188 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0))
| ^
/var/lib/dkms/redmibook_kbd_backlight/1.0.3/build/redmibook_kbd_backlight.c:191:5: 错误:implicit declaration of function ‘acpi_bus_get_device’; did you mean ‘acpi_is_pnp_device’? [-Werror=implicit-function-declaration]
191 | acpi_bus_get_device(handle_EC0, &device);
| ^~~~~~~~~~~~~~~~~~~
| acpi_is_pnp_device
cc1:有些警告被当作是错误
make[2]: *** [/usr/src/linux-5.19.2-1/scripts/Makefile.build:250:/var/lib/dkms/redmibook_kbd_backlight/1.0.3/build/redmibook_kbd_backlight.o] 错误 1
make[1]: *** [../../../linux-5.19.2-1/Makefile:1863:/var/lib/dkms/redmibook_kbd_backlight/1.0.3/build] 错误 2
make[1]: 离开目录“/usr/src/linux-5.19.2-1-obj/x86_64/default”
make: *** [Makefile:5:all] 错误 2
from modern_laptop.
应该是那个if判断的函数有问题,我这边把那一段判断去除,直接改用device = acpi_fetch_acpi_dev(handle_EC0);
,然后手动删掉src那个目录缓存的源代码,重新编译安装成功了,不过为了通用性,估计那个判断还是要想办法修复一下
from modern_laptop.
我现在手动改代码之后编译安装成功,然后按F10可以调节背光了,应该就是成功了吧
辛苦老哥,剩下就是那个判断逻辑了
from modern_laptop.
我的锅,没测试过就扔上来。改天得空再弄个CI。e220d2d 这个commit后应该没问题了。
from modern_laptop.
我的锅,没测试过就扔上来。改天得空再弄个CI。e220d2d 这个commit后应该没问题了。
那个LINUX_VERSION_CODE
和KERNEL_VERSION
可能要看下怎么解决没有定义的问题,我当时是直接把整个if块都给换了,直接device = acpi_fetch_acpi_dev(handle_EC0);
的
from modern_laptop.
LINUX_VERSION_CODE这个宏的问题在这个commit后已经解决了。76e2b35
from modern_laptop.
好的,谢谢老哥
from modern_laptop.
Related Issues (20)
- Kernel 6.1 is not really support rtl8852be HOT 3
- Wi-Fi not working on the latest kernel, Fedora 37 HOT 2
- Kernel 6.1 supports snd-soc-acp6x-mach HOT 1
- Fingerprint work incorrect HOT 19
- Maybe you should update the Wi-FI/Bluetooth driver? HOT 5
- ACPI patching RMARB4B0P0E0E on Redmibook 14 HOT 1
- [Bug] ArchLinux and fingerprint HOT 4
- Redmibook 15 pro 2022 在替换网卡为 AX210 后 acpi 补丁生成的 acpi_override 将使引导失败 HOT 3
- Redmi book pro 14S (TM2109) support & hybernate fix HOT 1
- . HOT 7
- . HOT 7
- 机械革命蛟龙16K键盘无效问题如何解决 HOT 4
- Do you have the previous official original bios, such as 0B0B,0C0C HOT 3
- Fingerprint build is not updated HOT 5
- ACPI Patch Error HOT 21
- Usb C DP hotplugging broken on wayland HOT 6
- Error when installing fingerprint driver on Manjaro HOT 14
- Manjaro unsupported libraries opencv 4.7 HOT 3
- fan configuration via corectrl HOT 1
- 内核升级到6.3.0-060300-generic 一切硬件工作正常 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modern_laptop.