https://bugs.kde.org/show_bug.cgi?id=481142

            Bug ID: 481142
           Summary: Handle the XF86_RFKILL key
    Classification: Plasma
           Product: plasma-nm
           Version: 5.27.8
          Platform: NixOS
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: applet
          Assignee: plasma-b...@kde.org
          Reporter: ib...@ibbem.net
  Target Milestone: ---

SUMMARY

The rfkill driver of the Linux kernel provides the rfkill-input module, which
handles the XF86XK_RFKill key. However, according to
https://www.kernel.org/doc/html/latest/driver-api/rfkill.html, the Kconfig
option RFKILL_INPUT can be used to disable the "deprecated rfkill-input module
(an input layer handler, being replaced by userspace policy code)". Currently,
KDE doesn't implement such a userspace policy as far as I know.

I just wanted to notify you because NixOS stumbled upon this issue
accidentally. See https://github.com/NixOS/nixpkgs/issues/261880. I am not
quite sure if plasma-nm is the component responsible for this. However, I found
the related bug https://bugs.kde.org/show_bug.cgi?id=349744 which is
categorized the same way. I also did some quick experiments on Gnome. I think
Gnome always handles XF86XK_RFKill and disables the rfkill-input module using
the ioctl.


STEPS TO REPRODUCE
Ensure to use a computer which has an "airplane" key and which is using a
rfkill driver (e.g., a typical laptop).
1. Install a kernel with `RFKILL_INPUT` disabled. (The same effect should be
achievable using the ioctl mentioned in
https://www.kernel.org/doc/html/latest/driver-api/rfkill.html but I didn't test
that.)
2. Boot into KDE Plasma.
3. Press the "airplane" key.

OBSERVED RESULT
Nothing happens. It can be verified using xev that a XF86XK_RFKill key press is
sent.

EXPECTED RESULT
Airplane mode is toggled.

SOFTWARE/OS VERSIONS
nixpkgs commit: ca012a02bf8327be9e488546faecae5e05d7d749
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.27.8
Qt Version: 5.15.10

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to