Skip to content

u/Haeloth

In this archive from Aug 2019 to Aug 2025

2
posts
31
comments
0
media
77
score

Qtile's entire config is a python script. Widgets, workspaces, etc are all defined in python. The sh script is an autostart script which calls everything you want to start on boot. So you add picom to this script, and configure qtile so that it starts this sh script on boot.

Look for other people's dotfiles for examples.

1 points

DEs usually have their own compositor that is not picom. I know that Plasma/Kwin uses its own compositor and probably GNOME has one as well. So picom is generally used alongside vanilla window managers, because DEs have their own compositor already and don't/shouldn't really need something like picom.

I already use qtile with picom atm, so I can confirm it works on qtile, and probably will on others.

Sway is a window manager for wayland. You don't need any compositors to handle tearing as tearing is not a thing ever on wayland. But, NVIDIA does not work well with wayland so consider that before switching to wayland/sway.

Also, glad you figured this out, and I am also glad to be able to help!

2 points

put this in ~/.config/picom/picom.conf:

backend = "glx";
vsync = true
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
use-damage = true;
xrender-sync-fence = true;
inactive-opacity = 0.85;
fading=true;
fade-delta=3;

This is my exact picom config that I use. Please note that this on vanilla i3, you mention you also use XFCE. I have no idea if this will work with XFCE or not. But for me, picom works with this config. This is my exact setup:

  • Intel UHD 620 + MX150
  • I use mesa for Intel GPU (I do not use xf86-video-intel)
  • I use official NVIDIA drivers for NVIDIA GPU.
  • I use Prime Render Offload to handle switchable graphics (hybrid in optimus-manager)
  • I do not have a single xorg configuration file besides the one used by optimus-manager.
  • I use picom with the above configuration file on vanilla i3. I do not use a desktop environment like XFCE.

And the command I use to run picom on boot was correct. It is

picom -b &

You can just execute this in terminal to see if it works. If it works, my configuration file adds transparency effects to any unfocused window. You can easily notice if it works or not by checking if that works.

You can autostart this via i3 config file. Put this in your i3 config with something like

exec picom -b &

to autostart this on boot with i3.

I use this video to test screen tearing: https://www.youtube.com/watch?v=MfL_JkcEFbE

2 points

You can not really use open source drivers for NVIDIA. Well, you can, but performance will be horrible so I do not recommend it.

Prime Render Offload is the official solution provided by the official NVIDIA driver, so this is not available in open source drivers.

When you use Prime Render Offload, entire desktop is rendered with Intel GPU, and if you want to use NVIDIA for specific applications, you need to launch them with a specific command (the command is "prime-run" if you have the relevant packages installed). Since your desktop is rendered with Intel GPU, whatever you do with NVIDIA shouldn't matter with the tearing issues. Again, this is only the case if you are using Prime Render Offload (called hybrid in optimus-manager).

picom doesn't have a systemd service, You run it at startup with

picom -b &

command (if I remember correctly. Check the man page if necessary). If you have used i3 before, you probably know how to autostart apps at boot with i3, so you can do just that. Preventing tearing with picom requires you to add/edit a config file for it. I personally grabbed some config file from the internet and added my own specifications on it, but I am currently on mobile so I can't really post my exact config at the moment. If you still struggle with this, I will try to post it tomorrow. Regardless though, you should be able to figure it out if you do some searches and check the relevant pages on the wiki.

Good luck!

1 points

I have used i3, currently using qtile, and with both, I used picom to fix the tearing. I also have an Optimus laptop, with UHD 620, and MX150, with Prime Render Offload. I don't know what xfce does with compositing but for vanilla i3, I can recommend picom. At least it worked for me anyway.

2 points

This is kind of late, but I was using Plasma with i3 like 3 days ago and I recently made the switch. This is the first time in my life that I used a wm only setup, so it took me like a whole day to set it up completely in a way that I think is now functional. Some applications that I think you might need if you decide to go that way:

  • feh : for wallpaper
  • dex : to autostart apps that use XDG (https://wiki.archlinux.org/index.php/XDG_Autostart)
  • numlockx : to activate numlock on boot.
  • polybar : this is kinda obvious
  • blueman : for bluetooth
  • dunst : notification daemon
  • udiskie : to manage mounting of disks
  • rofi and j4-dmenu-desktop : for application launch
  • picom : compositor and also prevents screen tearing
  • nm-applet : Network manager. I believe this is also what xfce uses so you shouldn't really need this.
  • pavucontrol : Audio manager.
  • Some kind of polkit manager. I use lxpolkit-git for this.
  • lxappearance and qt5ct : for theming gtk and qt5 applications.

Since I am currently using a laptop, I also needed additional apps to manage backlight, audio etc. Buttons with FN (function) keys do not work with just a wm, so you need additional tools to control these. I will also list those applications in case you need them

  • pamixer : audio control
  • light : screen backlight
  • playerctl : playback control for media apps, like spotify
  • notify-send : I use this to send notifications when I change audio or brightness. With this notify-send https://github.com/vlevit/notify-send.sh/blob/master/notify-send.sh , you can actually overwrite your existing notification, so that it doesn't spam you with lots of different notifications every time the values change. Original notify-send from repos do not have this ability.

You might experience some other problems that comes out of nowhere. DEs handle a lot of stuff in the background. For example, when I was using Plasma, my bluetooth headset worked absolutely fine with PulseAudio. However, when I made the switch to full i3, it didn't really work. I tried all the stuff listed in the wiki to fix this and it still didn't work. After that, I installed PipeWire thinking maybe that would fix it, and it actually did fix it to my surprise. I have no idea what it actually did, but it works now. So all in all, some surprises might still appear from time to time, be prepared for those.

Good luck, and sorry for bad English, it is not my native language :)

Edit: Also forgot to mention, all these apps are independent from any DE, except lxappearance. If you were to use kde settings or something like that for theming for example, it would pull like 100 other packages with it as well. So you should avoid using apps within a DE. This is still a choice though so do whatever you prefer.

2 points

Not related to battery, but you said your PC temps were high. For that I would recommend you to install and enable thermald.

Another thing that is probably not related to battery, bumblebee is an extremely old solution (worse performance and does not support Vulkan), I would recommend you to use built in NVIDIA Prime Render Offload option, or optimus-manager.

Also another thing, bbswitch (or other solution) is required for you to turn off NVIDIA when not in use. If you haven't installed something like that, that would probably help with your battery life.

2 points

Add

timeout 3

to the

/boot/loader/loader.conf

Note that the default path for loader.conf can change depending on what you did during installation. See more about configuration here: https://wiki.archlinux.org/index.php/systemd-boot#Configuration

You can replace 3 with whatever number you wish. It changes how many seconds the menu will stay on screen without any input before launching the default boot config.

Also you should be able to bring the menu up even without the timeout option if you press space or some other random key during boot.

9 points

I have an MX150. It is new enough to have the PRIME Render Offload stuff, but not new enough to have power management of turing cards. I use the official NVIDIA solution now but before that existed, I used probably everything on Arch with my MX150.

Bumblebee works but performance is crap. It also doesn't do vulkan.

nvidia-xrun is better. It has full performance. But every now and then it just doesn't work when you execute it from a tty and you have to reboot your machine. Or sometimes it fails to turn off the GPU when you quit your nvidia-xrun session. (Don't know if this is bbswitch or xrun related)

optimus-manager is probably the best option. It logs you out when you switch your GPU. However every now and then, I had sessions where I couldn't login back to my system after the switch happened. But at least you don't have to deal with ttys with this one.

bbswitch worked for me, and yes both nvidia-xrun and optimus-manager can use bbswitch to shut down the card. I never tried other methods. optimus-manager has config options for other methods, I don't know if nvidia-xrun has that.

The errors I had didn't always happen. They happened like lets say 5% of the time. So it is kind of rare but it still annoying when it happens.

This was my experience more than a year ago though. Things could have possibly changed since then. I used prime render offload ever since it came out so I don't really know anything that happened since then.

Good luck :)

3 points

There is a gnome 3.36 branch on Dash to Dock's git page here. It works but it still pretty broken. The dock is placed at bottom, and the animation to open the menu opens from bottom but closes from top left corner for some reason. Can't right click to Show Applications button to open Dash to Dock settings. And for some reason the dock does not shrink automatically. There is always some space on the right side of the applications that is not used. It is still usable enough but ehhh...

2 points

Those options in nvidia-settings are Ubuntu exclusive. The closest available alternative on Arch is called optimus-manager. I am on mobile so can't link it directly, there is a github page for it that should explain it.

Edit: Grabbed the link anyway:

https://github.com/Askannz/optimus-manager

Edit: You say you read Arch Wiki's NVIDIA page but the first paragraph clearly states that you should go to NVIDIA Optimus for hybrid graphics. Check out that page instead.

1 points

DRI_PRIME is intended for open source drivers. If you want render offload with proprietary Nvidia drivers, you need to use

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia

these environment variables. Though you need to do some configurations first, which optimus-manager should be capable of doing. Check out the official Nvidia Readme. And also don't use bumblebee and Optimus Manager together. Their configurations probably conflict each other which can cause so many issues.

1 points

Packages "nvidia" and "bbswitch" (I assume you have bbswitch because you are using optimus-manager) require the latest kernel so you need to downgrade them as well if you are using those packages. If you are using "nvidia-dkms" or "bbswitch-dkms" you only need to downgrade kernel packages because dkms packages are built dynamically for whatever kernel you are using at the moment of installation, so they work with whatever kernel you want. Similarly, you should also downgrade other kernel modules if you didn't install dkms versions of them, an example would be "virtualbox-host-modules-arch". Also make sure to downgrade "linux-headers" package along with "linux" if you have that installed. I would take a backup before attempting any of this though.

1 points

There has been reports that kernel 5.4 has broken prime sync. I had the same issues that you had on 5.4.1, I downgraded to kernel 5.3.13 and now it is working perfectly fine. Keep in mind that I am using zen kernel but I think it affects all 5.4 kernels right now.

4 points

I think prime sync is broken but I am not sure if it is because of the kernel. I am on Zen kernel btw.

Edit: Just downgraded to 5.3.13 and yep it works fine in 5.3. The new upgrade broke the prime sync for me

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.