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

Athila Mattos <athila.m.mat...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |athila.m.mat...@gmail.com

--- Comment #4 from Athila Mattos <athila.m.mat...@gmail.com> ---
I believe I was able to reproduce this issue consistently, as in my system
these errors were only appearing from time to time rather than every time I
locked the screen, and I was able to find out the culprit.

This error -- Could not create AF_NETLINK socket (Operation not permitted) --
seem to be triggered by the media controls present in the KDE Screen Locking
component when Chromium is playing media, for instance, Spotify or Youtube.


How to reproduce
================

1. Install Chromium web browser;
2. Play a random video on Youtube or a random song on Spotify;
3. Open up a terminal while the media is playing and type:
     /usr/lib/kscreenlocker_greet --testing
4. Look into the terminal output and you will see the error:
     Could not create AF_NETLINK socket (Operation not permitted)

Keep in mind that, because in this example I am using the '--testing'
parameter, the error will not be registered on journald, however, if you lock
the screen normally while Chromium is playing media (with Meta + L), the errors
on #4 will be logged in journald.


Test environment
================

- Laptop: ThinkPad T470s
- Distribution: Arch Linux
- Kernel version: 5.7.6-arch1-1
- KDE Plasma version: 5.19.2
- KDE Frameworks version: 5.71.0


Temporary workaround
====================

1. Disable Lock screen media controls by:
   - Open Plasma System Settings;
   - Navigate to Workspace Behavior > Screen Locking;
   - On the right side, click on 'Appearance' tab;
   - Deselect the 'media controls' box;

2. Use Firefox on Youtube or Spotify;


Additional notes
================

- According to my tests, Firefox don't seem to be affected by this problem, as
these errors don't appear when Firefox is playing media.

- The reason I would like to get rid of these errors is that, over time, it
gets tedious having to filter out journald every time I want to debug something
else, as there are thousands of entries related to the problem above.

- I haven't tested this on other distributions, but it seems like Manjaro also
has the same problem:
https://forum.manjaro.org/t/kscreenlocker-greet-7020-could-not-create-af-netlink-socket-operation-not-permitted/130582

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

Reply via email to