Closed gulafaran closed 2 months ago
hm however changing that makes it crash a bit further.
Core was generated by `/usr/bin/legiond'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007ffff7f16207 in ?? () from /usr/lib64/libc.so.6
[Current thread is 1 (Thread 0x7ffff7c006c0 (LWP 9559))]
(gdb) bt
#0 0x00007ffff7f16207 in ?? () from /usr/lib64/libc.so.6
#1 0x0000555555555d75 in set_gpu (config=0x555555559040 <config>, power_state=4294967295) at modules/setapply.c:108
#2 set_all (config=0x555555559040 <config>, power_state=4294967295) at modules/setapply.c:168
#3 timer_handler ()
at /var/tmp/portage/sys-firmware/lenovolegionlinux-9999/work/lenovolegionlinux-9999/python/legion_linux/legion_linux/extra/service/legiond/legiond.c:29
#4 0x00007ffff7e5a718 in ?? () from /usr/lib64/libc.so.6
#5 0x00007ffff7e4f9c2 in ?? () from /usr/lib64/libc.so.6
#6 0x00007ffff7ec9918 in ?? () from /usr/lib64/libc.so.6
is my legion reporting a different kind of pm_profile?
Thanks, but platform profile is not pm_profile We need kernel_module support to make legiond works for your machine
Same problem
```
Thread 3 (Thread 0x7ffff7c006c0 (LWP 213858) "legiond"):
#0 0x00007ffff7f0686b in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#1 0x0000555555555dc3 in set_gpu (power_state=P_AC_P, config=0x555555559060
Can you give the output of the powerprofilesctl command?
powerprofilesctl
┌┤tom-legion->tom ~
└➤ powerprofilesctl
performance:
CpuDriver: intel_pstate
PlatformDriver: platform_profile
Degraded: no
* balanced:
CpuDriver: intel_pstate
PlatformDriver: platform_profile
power-saver:
CpuDriver: intel_pstate
PlatformDriver: platform_profile
Can fn+q change the mode of powerprofilesctl? if so I would consider using powerprofilesctl to get the power mode when that path is not available
Also I would like to know if fn+q can trigger acpi events on your machine. You can test this with acpi_listen
this is with the led turning red,
┌┤tom-legion->tom ~
└➤ powerprofilesctl
* performance:
CpuDriver: intel_pstate
PlatformDriver: platform_profile
Degraded: no
balanced:
CpuDriver: intel_pstate
PlatformDriver: platform_profile
power-saver:
CpuDriver: intel_pstate
PlatformDriver: platform_profile
so yeah looks so here atleast
as for acpi_listen it seems so
┌┤tom-legion->tom:130 ~
└➤ acpi_listen
D320289E-8FEA- 000000e7 00000000
D320289E-8FEA- 000000e3 00000000
95D1DF76-D6C0- 000000d0 00000000
D320289E-8FEA- 000000e7 00000000
D320289E-8FEA- 000000e3 00000000
95D1DF76-D6C0- 000000d0 00000000
D320289E-8FEA- 000000e7 00000000
D320289E-8FEA- 000000e3 00000000
this is me cycling between the three modes
https://github.com/johnfanv2/LenovoLegionLinux/commit/a0c9495b6acf161c5f6f93343671dc5d5811d1e9
@gulafaran Does this fix it? I tested it with my laptop and it works
@gulafaran Does this fix it? I tested it with my laptop and it works
yeah, i havent setup the config since it crashed before but,
┌┤tom-legion->tom ~
└➤ systemctl status legiond
● legiond.service - legiond daemon
Loaded: loaded (/usr/lib/systemd/system/legiond.service; disabled; preset: disabled)
Active: active (running) since Fri 2024-04-26 13:25:51 CEST; 3s ago
Main PID: 36464 (legiond)
Tasks: 2 (limit: 115398)
Memory: 240.0K (peak: 720.0K)
CPU: 2ms
CGroup: /system.slice/legiond.service
└─36464 /usr/bin/legiond
the service is up and running now :)
I think it should be fine.
Problem Description legiond service crashes after powerstate module got commited https://github.com/johnfanv2/LenovoLegionLinux/commit/3cb3c69e67e354331e85aed46ff0db9d0ae7a67c
https://github.com/johnfanv2/LenovoLegionLinux/blob/3b7a69cff110dde545560019966fa9a0a92abc08/extra/service/legiond/modules/powerstate.c#L18 https://github.com/johnfanv2/LenovoLegionLinux/blob/3b7a69cff110dde545560019966fa9a0a92abc08/extra/service/legiond/modules/powerstate.c#L20
defined here https://github.com/johnfanv2/LenovoLegionLinux/blob/3b7a69cff110dde545560019966fa9a0a92abc08/extra/service/legiond/modules/powerstate.h#L18
however on this legion 7i 2023 running linux 6.8.4 that path should be
/sys/firmware/acpi/pm_profile