• 0 Posts
  • 7 Comments
Joined 2 years ago
cake
Cake day: June 16th, 2023

help-circle
  • KDE config files can be changed on the command line using:

    kwriteconfig

    And viewed using

    kreadconfig

    Power management is in:

    ~/.config/powermanagementprofilesrc

    And

    ~/.config/powerdevilrc

    You can feed changes to the file via kwriteconfig via the command line OR create a duplicate file with different settings and use rename commands in a script file to switch back and forth.

    E.g. rename the file to “powermanagementprofilesrc.backup” and create and rename a custom file with the settings you want like “powermanagmentprofilesrc.one” to “powermanagementprofilesrc”. Rename them back and forth via a bash script to switch “profiles”

    To apply changes you’d need to then run qdbus:

    qdbus org.freedesktop.powermanagement /org/kde/Solid/PowerManagement org.kde.Solid.PowerManagement.reparseConfiguration

    And then to load the new config in your current session:

    qdbus org.freedesktop.powermanagement /org/kde/Solid/PowerManagement org.kde.Solid.PowerManagement.refreshStatus

    So either use kwriteconfig and qdbus in a script OR make duplicate config files and a bash script to copy or rename the configs as needed plus qdbus to apply the changes to the current session.

    There may be a much simpler way of switching profiles already actually defined within the exisiting config files (e.g. battery saver vs performance) using qdbus but I’m not sure how to do that myself. Possibly using:

    org/kde/Solid/PowerManagement/Actions/PowerProfile

    EDIT2: Sorry this is a very long post! Just to say if you’re new to linux and want to understand a bit: qdbus is a tool for QT based applications (including almost all of KDE which is build in QT) to interact with DBUS which is basically the messaging system in linux between processes.

    So when you run qdbus on it’s own you’ll see a tree of processes that are interacting with QT processes. Then if you run qdbus & the name of a process like “org.freedesktop.powermanagement” you’ll see what QT processes are running with/under it. Then if you run dqbus and add that connected process like “/org/kde/Solid/PowerManagement” you can see what strings and options are available. Then you can run qdbus to see more detail or change a setting/string.

    Hope that make sense!



  • I have a linux desktop with dual 4K screens and I don’t have problems with high DPI? The only problems I’ve come across is with Wine which is easly fixed within the winecfg.

    I’m on OpenSuSE, using KDE in X11. I DID have scaling problems with Wayland which I avoid until it is fit for daily use.

    Of course 4k is 4 times 1080p (or twice in X and Y dimensions) so maybe it’s much easier to scale to? 2K on the Framework is an odd resolution so maybe scaling would be more troublesome? 1080p to 1440p would be 1.3x scaling.


  • You can read NTFS drives; I still have shared drives from my Windows install despite barely using Windows at all.

    You can generally import steam libraries, and then steam can do the proton work.

    And you can sometimes run other programmes in Linux from the windows install - i.e. it can have it’s own Wine prefix in Linux and use the installed files on the NTFS. But this doesn’t always work - if the programme’s or game’s installer makes significant system changes or installs other software then they won’t exist in the Wine prefix and the game may not work. It’s better to install windows games fresh so everything is installed into the wine prefix.

    And Lutris is well set up with scripts for installing a wide range of games from their installers; it will avoid problems reinstalling games fresh.



  • My advice having made the move (but with a fair bit of linux tinkering before hand):

    • Don’t rush to delete Windows; you’re doing the right thing keeping it about while you adjust to a new OS and in case there are some things you just can’t do in Linux
    • If you want to understand your OS and enjoy tinkering / learning, think about using a virtual machine to play with a linux system to get used to it. As you’re on Fedora, you can install KVM and Virt-Manager, make a virtual machine and inside it install another Linux OS which you can practice with. It can even be Fedora - and this can let you make changes in a disposable environment before you do them for real in your whole OS or just to see “what happens if”. I’ve even built an Arch system within a VM just so I can understand more of how linux works
    • Back up your home folder before making really big changes - this is where everything that belongs to you is kept, and even contains all your personal config files. Back up and restoring the Home folder can make things much faster to fix if you accidentally mess things up

  • Sorry I originally posted around permissions as I misunderstood; deleted that. The solution is below:

    If it’s a user installed flatpak you should find the config files in:

    ~/.local/share/flatpak/overrides

    Edit the document for the flatseal app. Thats where flatseal or the flatpak override tool makes it’s config changes for user installed flatpaks (including env overrides). You can also delete the flatseal file (which will be the name of the flatpak - com.github.tchx84.Flatseal) "to set back to default.

    There will only be a few files - files are only created when there are overrides set. Anything running default permissions/config won’t have an override file.

    EDIT: For completeness, for System wide flatpaks all the files are in:

    /var/lib/flatpak

    Just to explain why they’re stored there: you’re trying to change the config of the sandbox itself not the app. Flatpak manages the sandbox and it is flatpak that needs to know what permission an app should have. Any files in “~/.var/app/…” pertain to the app itself inside it’s sandbox.