Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)IG
Posts
3
Comments
16
Joined
2 yr. ago
Linux @lemmy.ml
iggames @lemmy.world

KDE often not sleeping when idle

I have KDE set to Turn Off Screen after 5 minutes and to Sleep after 10 minutes of inactivity. This works when I first turn on the machine, but eventually stops working after a few hours of general use (mostly Firefox, VS Code, and some Steam games). Sometimes the screen isn't turning off at all, other times the screen turns off but the machine never goes to sleep. (Explicitly telling it to go to sleep from the main menu always works.)

EDIT: Seems like browser tabs or Steam are the likely culprits. I would often leave Steam running in the background, and KDE is suspending more reliably for me now after I close it. Possibly this steam-for-linux GitHub issue.

I figure there's either some sort of issue with KDE power management, or one (or more) applications are preventing it from sleeping. How do I troubleshoot this further?

systemd-inhibit just lists PowerDevil, which seems to be KDE's power management service:

 undefined
    
$ sy
  
  • The article already has one example: “Juneau, Alaska, voted to remove fluoride from its drinking water in 2007. A study published in the journal BMC Oral Health in 2018 compared the dental records of children and adolescents who received dental care for decaying teeth four years before and five years after the city stopped adding fluoride to the water. Cavity-related procedures and treatment costs were significantly higher in the latter group, the study found.”

  • My city has a tool library program that sounds exactly like this (I haven’t tried it yet, not sure how well it works in practice). Would be especially nice for one-off sorts of tools you don’t expect to use often.

    The downside is you’d need to line up your project with their hours, and hope no one else is using it when you need it. But if you have the flexibility to plan ahead, could be a nifty resource.

  • Looks like evremap will do what I want, plus a nifty bonus! The following config lets me use CapsLock + N/P/etc to navigate. And if I just tap CapsLock without pressing anything else, it will act as escape.

     undefined
        
    device_name = "Telink Wireless Receiver"
    
    [[dual_role]]
    input = "KEY_CAPSLOCK"
    hold = ["KEY_F19"]
    tap = ["KEY_ESC"]
    
    [[remap]]
    input = ["KEY_F19", "KEY_N"]
    output = ["KEY_DOWN"]
    
    [[remap]]
    input = ["KEY_F19", "KEY_P"]
    output = ["KEY_UP"]
    
    [[remap]]
    input = ["KEY_F19", "KEY_B"]
    output = ["KEY_LEFT"]
    
    [[remap]]
    input = ["KEY_F19", "KEY_F"]
    output = ["KEY_RIGHT"]
    
    [[remap]]
    input = ["KEY_F19", "KEY_A"]
    output = ["KEY_HOME"]
    
    [[remap]]
    input = ["KEY_F19", "KEY_E"]
    output = ["KEY_END"]
    
      

    Note: I used F19 because it doesn't seem to be bound to anything by default. Apparently, a bunch of the other function keys already did things, as described in /usr/share/X11/xkb/symbols/inet

     undefined
        
    $ cat /usr/share/X11/xkb/symbols/inet | grep FK13
        key    {      [ XF86Tools         ]       };
        key   {       [ XF86MailForward       ]       };
        key   {       [ XF86Word              ]       };      // F2
        key   {       [ XF86MailForward       ]       };      // F3
    
    $ cat /usr/share/X11/xkb/symbols/inet | grep FK20
        key    {      [ XF86AudioMicMute      ]       };
    
      
  • Linux @lemmy.ml
    iggames @lemmy.world

    Creating alternate shortcut keys for up/down/home/end

    I like using emacs-style navigation in the terminal (e.g. Ctrl + N for down, Ctrl +P for up, Ctrl + A for home, Ctrl + E for end), and I want to do something similar for navigation elsewhere. I would like to use CapsLock + N/P/A/E/etc for down/up/home/end in all apps (I previously used the AutoHotkey script at https://github.com/usuyama/emacs-like-key-bindings-windows to accomplish this in Windows).

    I'm currently using KDE Plasma on Wayland, and I haven't seen anything obvious to do this while poking around settings. Any suggestions? Thank you in advance!

    EDIT: I was able to do what I want with evremap. The crux of the config is:

     undefined
        
    [[dual_role]]
    input = "KEY_CAPSLOCK"
    hold = ["KEY_F19"]
    tap = ["KEY_ESC"]
    
    [[remap]]
    input = ["KEY_F19", "KEY_N"]
    output = ["KEY_DOWN"]
    
    [[remap]]
    input = ["KEY_F19", "KEY_P"]
    output = ["KEY_UP"]
    
      

    See my reply below for more info.

  • Added some info to the post. Firewall is blocking 3289 UDP from my printer, so I added 3289 UDP to open ports for "home", "public", and "internal" zones. However, I'm still seeing filter_IN_public_REJECT entries in dmesg, so it seems the firewall is still blocking these. Is there a different way I should be telling it to allow requests on this port?

    Firewall also allows mdns service (again, in "home", "public", and "internal" zones), but I also see entries like this:

    [41951.119486] filter_IN_public_REJECT: IN=wlp0s20f0u3 OUT= MAC= SRC=192.168.1.1 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0x00 TTL=1 ID=10725 DF PROTO=2 MARK=0x3214

    It sounds like 224.0.0.1 is related to mdns broadcasts, so it seems firewall is also still blocking these (despite mdns being allowed service).

    Am I specifying these in the wrong place? (Per Connections - System Settings, my wifi is in Firewall zone "home").

  • Linux @lemmy.ml
    iggames @lemmy.world

    Firewall preventing Printing/Scanning on OpenSUSE Tumbleweed

    Hello, I'm trying to use my Epson XP-200 printer/scanner with OpenSUSE Tumblweed.

    • /etc/sane.d/dll.conf has the "epson2" line uncommented.
    • /etc/sane.d/epson2.conf has "net autodiscovery" as its last line
    • My user is part of the "lp" group, which seems to be required for finding printers/scanners

    If I disable the firewall completely (using YaST2 firewall program), it works -- the Skanlite software detects my scanner and connects to it. With the firewall enabled, however, Skanlite says SANE cannot find any scanners. I have tried allowing TCP and UDP ports 8610, 8612 (based on suggestions from https://wiki.debian.org/SaneOverNetwork), and 631 (for CUPS) in the "public" zone, and added the "sane" service to "Allowed" services (didn't see a "cups" service option), but Skanlite still says SANE cannot find the scanner.

    Is there a way for "net autodiscovery" to work without completely disabling my firewall? What ports/services should I allow? It seems the alternative is to manually sp