[SOLVED] Volume function keys (from laptop, external keyboard works) get stuck in X11/Wayland (but seem to work with kernel)
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[Solved] Volume function keys (from laptop, external keyboard works) get stuck in X11/Wayland (but seem to work with kernel)
A friend has a new notebook, Medion Akoya P6685 with Ubuntu 18.10 (also tried Fedora, Manjaro and others). The bug appears independent of using X or Wayland. We also tried using a newer kernel (4.20.11).
When I click on the Mute or Increase/Decrease volume (Fn+F10..12) button, it appears to be stuck and triggered very often (i.e. mute flickers or volume goes to 0/100). After that, these buttons appear to be broken and the keyboard sometimes does no longer work (until reboot).
This only happens when I use the Fn Keys from the laptop. When I use an external USB keyboard (with dedicated volume buttons), the bug does not appear.
I think the keys seem to get recognized correctly by the kernel (see evtest) but not by X (see xev).
Does anyone have an idea how to fix this issue or at least to disable these function keys?
xev doesn't report anything except the FocusOut event
sorry, i don't understand what that means.
can you show some representative output (probably not all of it)?
Quote:
c.f. top right terminal in the video.
i don't understand "c.f." and i do not see any video. sorry.
some general advice:
take your time to produce a meaningful problem description. this also helps you to understand the problem better and get 50% closer to a solution. videos don't usually help. you diligently posted some command output, but unless someone goes "aha, keyboards with that vendor/model ID always have this problem!" i don't see how it's going to help.
medion laptops are often rebranded form some other brand. try to find out which, that will help you to search better. maybe this helps.
why ubuntu 18.10??? it's a sort of beta version. the laptop isn't so new anymore, i believe 18.04 is totally sufficient
on a wild guess i'd say undo all the stuff you did and try to fix it as an ACPI issue.
tricky to give definite advice, but it usually boils down to adding a particular option to the kernel boot command (grub), sth like "acpi=vendor" maybe...
sorry, i don't understand what that means.
can you show some representative output (probably not all of it)?
Ok, I start xev and move the cursor on the icon and then click the mute button (Fn+F10) on the keyboard. The only (new) output from xev is
Code:
FocusOut event, serial 37, synthetic NO, window 0x3000001,
mode NotifyGrab, detail NotifyAncestor
and nothing else. I assume the FocusOut event comes from the sound icon that gets displayed because of the mute/unmute.
Quote:
Originally Posted by ondoho
i don't understand "c.f." and i do not see any video. sorry.
Sorry, I made a video and linked it in the first post but I will try to describe it better: In the video, I open terminals with journalctl, dmesg, xev and evtest and then click the mute button. Then, the mute icon appears and flickers (sound also makes some noise). It appears to be pressed many times per second for multiple seconds (while I pressed only once of course). I often cannot use any other key after this happens (appear to be blocked), mouse works fine however.
The other relevant log I think is `evtest /dev/input/event3`. There, the reaction to be pressing the button is a single
Code:
-----SYN_REPORT----
type 4 (EV_MSC), code 4 (MSC_SCAN), value a0
type 1 ((EV_KEY), code 113 (KEY_MUTE), value 1
dmesg -w, journalctl -f and the xorg log do not output anything when I press the button.
Edit: Basically the same happens for F11 and F12 (audio increase/decrease). I can only do this with each button once, then they don't do anything anymore (until reboot).
What I concluded was that the kernel apparently correctly gets just one mute key signal but somehow the system receives hundreds of key presses at the end and I have no idea where to continue.
I will try some acpi kernel commandline options when I have access to the notebook on Monday again.
(all in separate terminal windows) and there were no additional outputs in the other events (only the single key message in event3).
Edit: If you have further ideas or can think of helpful logs, I would be happy of course. If you have no idea however, it's no problem - these functions keys are not the most important feature
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.