Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Keyboard backlight not working for ASUS VivoBook M1605
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 130
Location: Lithuania

PostPosted: Sun May 26, 2024 7:37 pm    Post subject: Keyboard backlight not working for ASUS VivoBook M1605 Reply with quote

Hello,

I have an ASUS VivoBook M1605 laptop (https://www.telia.lt/prekes/kompiuterine-iranga/nesiojami-kompiuteriai/asus/asus-vivobook-m1605-16-ryz5-8gb-512gb) and this laptop has a keyboard backlight that works on the dist kernel, but not my custom one. Currently, I am working on my custom kernel config after running the dist one as I had some free time and I'm stuck on the backlight part and am unsure what to do about it. I've looked up what could it be and it feels like I've tried everything out, but yet - no luck :/

The backlight is located at `/sys/class/leds/asus::kbd_backlight/` on the dist kernel if that helps, but generally it seems weird. I've enabled WMI, ASUS laptop extras, compiled stuff as modules, etc and I can't find the combination of configurations that work. sadly, so I thought I'd ask all of you if y'all know anything about it.

My current kernel config: https://0x0.st/XZdZ.txt (Sorry, kind of a mess at this moment, it's a draft right now. I just yesterday switched back to Gentoo for the second time this year).

I hope we can figure something out :) & thanks for answers in advance!
_________________
regards,
ari
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4441
Location: Bavaria

PostPosted: Sun May 26, 2024 9:12 pm    Post subject: Reply with quote

I also need the output of dmesg (after a system start).

Perhaps you would like to read this in the meantime:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6

Code:
1.
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
2.
CONFIG_X86_INTEL_PSTATE=y
# CONFIG_X86_PCC_CPUFREQ is not set
# CONFIG_X86_AMD_PSTATE is not set
# CONFIG_X86_AMD_PSTATE_UT is not set
# CONFIG_X86_ACPI_CPUFREQ is not set
3.
# CONFIG_IOMMU_SUPPORT is not set

1. Not related to your problem, but a performance problem; please see PART3 of my tutorial
2. You really should have at least ACPI_CPUFREQ; for a newer AMD machine of course AMD_PSTATE is better (enable them all)
3. Maybe related to your problem; you really should have enabled it in any case; please see PART2 of my tutorial


--------------------------
(Own notes for later

CONFIG_NR_CPUS=12

CONFIG_AMD_SFH_HID is not set

# CONFIG_SPI is not set
-> ?? CONFIG_SPI_DESIGNWARE )
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 130
Location: Lithuania

PostPosted: Mon May 27, 2024 3:54 am    Post subject: Reply with quote

pietinger wrote:
I also need the output of dmesg (after a system start).

Perhaps you would like to read this in the meantime:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6

Code:
1.
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
2.
CONFIG_X86_INTEL_PSTATE=y
# CONFIG_X86_PCC_CPUFREQ is not set
# CONFIG_X86_AMD_PSTATE is not set
# CONFIG_X86_AMD_PSTATE_UT is not set
# CONFIG_X86_ACPI_CPUFREQ is not set
3.
# CONFIG_IOMMU_SUPPORT is not set

1. Not related to your problem, but a performance problem; please see PART3 of my tutorial
2. You really should have at least ACPI_CPUFREQ; for a newer AMD machine of course AMD_PSTATE is better (enable them all)
3. Maybe related to your problem; you really should have enabled it in any case; please see PART2 of my tutorial


--------------------------
(Own notes for later

CONFIG_NR_CPUS=12

CONFIG_AMD_SFH_HID is not set

# CONFIG_SPI is not set
-> ?? CONFIG_SPI_DESIGNWARE )


Hi!! Sorry for the late response.

Dmesg output (trimmed): https://0x0.st/XZ50.txt

I'll fix up the config when I'm back home

and uh

- CONFIG_NR_CPUS: AMD Ryzen 5 7530U (12) @ 4.366GHz - I just set it to the minimum possible
- CONFIG_SPI_DESIGNWARE is for my touchpad: https://forums.gentoo.org/viewtopic-t-1167132-highlight-.html
_________________
regards,
ari
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4441
Location: Bavaria

PostPosted: Mon May 27, 2024 11:04 am    Post subject: Reply with quote

I also asked about your dmesg because I already suspected this:
Code:
[    0.024605] smpboot: 16 Processors exceeds NR_CPUS limit of 12
[    0.024606] smpboot: Allowing 12 CPUs, 0 hotplug CPUs

I've had this happen before with AMD CPUs (and I don't know why they're so weird) and it's always caused strange problems. So, change it to 16. (See also in PART 4 of my tutorial)

No, you do NOT have SPI enabled. I made the question mark at SPI_DESIGNWARE because I saw that you have it enabled ... for the touchpad: CONFIG_I2C_DESIGNWARE_CORE=y. But you have not activated the PCI controller itself:
Code:
# CONFIG_PCIE_DW_PLAT_HOST is not set
# end of DesignWare-based PCIe controllers

So I would ask you to check if you really have it. If so, please enable the controller AND then SPI with SPI_DESIGNWARE.

The next question I have is: Have you ever booted with our GentooLiveCD (or UbuntuCD) and checked with "lsmod" which modules are loaded? This is usually very informative.

Please change your configuration as described and if it still does not work, I need the new .config and the - complete - dmesg again.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum