Issue:
Keys on built-in laptop keyboard are not working
Logs:
inxi
journalctl
cat /var/log/Xorg.0.log | grep fail | eos-sendlog - the EOS tutorial post for sharing logs made me nervous about doing this manually, so I added the grep fail
. If this is not enough information, please let me know, or if I need to share any other logs.
Cause:
While trying to get my brightness controls working on my laptop, I found this tutorial and did the following:
After finding the name of my backlight by running ls /sys/class/backlight/
, I then edited /usr/share/X11/xorg.conf.d/10-amdgpu.conf/
:
Here is that file prior to me editing it:
Section "OutputClass"
Identifier "AMDgpu"
MatchDriver "amdgpu"
Driver "amdgpu"
EndSection
And what I added:
Section "Device"
Identifier "card0"
Driver "amdgpu"
Option "Backlight" "amdgpu_bl1"
BusID "PCI:0:2:0"
Just like that. And then I logged out, as the article says. I was immediatly greeted with a black screen and a blinking cursor. As you may have noticed… I failed to include the EndSection
I eventually found my mistake and fixed it via console. I added that last element, and rebooted again, but no cigar. I booted back to console and totally removed the code I added and it booted up fine. But…my keyboard is no longer working. Like, no keys at all. The power button seems to be the only thing functioning. I also noticed that my trackpad is enabled again, which I wrote a script to disable and added to i3wm config to trigger on startup. This was working fine prior to this event.
All usb devices are working. I am currently typing this on the laptop with a usb keyboard.
My thoughts
I have no clue how PCI id’s are allocated, but I was wondering whether or not PCI:0:2:0
belongs to a specific device, and maybe that device was my keyboard, and I took it’s id “slot” with the backlight.
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
That is the closest thing I could find to the id I was told to use. Again, not sure how PCI device alocation works.
Please let me know if there is any more information needed. Thanks ahead of time to anyone that can offer some help.
Edit
Forgot to mention that the keyboard works on the login screen as well as inside of Xfce.