Skip to content

Instantly share code, notes, and snippets.

Avatar

Tom Englund gulafaran

View GitHub Profile
View stacking_order.cpp
/*
SPDX-FileCopyrightText: 1999, 2000 Matthias Ettrich <ettrich@kde.org>
SPDX-FileCopyrightText: 2003 Lubos Lunak <l.lunak@kde.org>
SPDX-FileCopyrightText: 2021 Francesco Sorrentino <francesco.sorr@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "stacking_order.h"
#include "stacking.h"
#include "transient.h"
View qtbug.patch
From fc4d4838aedcae7efe78a3582adf432e60b5ca91 Mon Sep 17 00:00:00 2001
From: Tom Englund <tomenglund26@gmail.com>
Date: Thu, 30 Dec 2021 08:48:48 +0100
Subject: [PATCH] remove workaround for
https://bugreports.qt.io/browse/QTBUG-51599, fixed upstream
---
input/wayland/cursor_image.cpp | 5 -----
1 file changed, 5 deletions(-)
View crash.bt
(gdb) bt
#0 0x00007faba4028bc7 in QWeakPointer<QObject>::QWeakPointer(QWeakPointer<QObject> const&) (other=..., this=0x7ffcd969bbf0, this@entry=0x7ffcd969bb10) at /usr/include/qt/QtCore/qsharedpointer_impl.h:583
#1 QPointer<Wrapland::Server::Surface>::QPointer(QPointer<Wrapland::Server::Surface> const&) (this=0x7ffcd969bbf0, this@entry=0x7ffcd969bb10) at /usr/include/qt/QtCore/qpointer.h:53
#2 Wrapland::Server::Cursor::surface() const (this=0x7faba2d01eb0 <QListData::shared_null>) at /usr/src/debug/wrapland/server/pointer.cpp:459
#3 0x00007faba497f98f in KWin::input::wayland::cursor_image::markAsRendered() (this=0x5652b055b6f0) at /usr/src/debug/kwin/input/wayland/cursor_image.cpp:148
#4 0x00007faba464ab02 in KWin::render::gl::scene::paintCursor() (this=0x5652b0d19ce0) at /usr/src/debug/kwin/render/gl/scene.cpp:631
#5 0x00007faba464a7f5 in KWin::render::gl::scene::paint_output(KWin::base::output*, QRegion, std::deque<KWin::Toplevel*, std::allocator<KWin::Toplevel*> > const&, std::chrono::duration<long,
View crash.log
dec 29 12:15:50 tom-nitro systemd-coredump[8135]: Process 3977 (plasmashell) of user 1000 dumped core.
Module /usr/lib/libxcb-glx.so.0.0.0 with build-id 8ad115382ad874165523dc5b4488c99d73bbc3c4
Module linux-vdso.so.1 with build-id 4a2152e8598f9fd0a916222fc08387ec65615d01
Module extractfileitemaction.so with build-id 146ec043485309b66e728368df4b3dbef6214985
Module kactivitymanagerd_fileitem_linking_plugin.so with build-id 4dd6ac8c1e1fc9a55ac772db055b5a18e3dd5aee
Module libKF5FileMetaData.so.3 with build-id 84d35fcd4504da482802491d3c31d71ff06f39a2
Module tagsfileitemaction.so with build-id ec799c19a3c536b1ec33c78a393650c60555372d
View wat.log
● user-1000.slice - User Slice of UID 1000
Loaded: loaded
Drop-In: /usr/lib/systemd/system/user-.slice.d
└─10-defaults.conf
Active: active since Mon 2021-10-11 13:19:19 CEST; 1 day 2h ago
Docs: man:user@.service(5)
Tasks: 1294 (limit: 82965)
Memory: 23.4G
CPU: 1d 10h 10min 31.490s
CGroup: /user.slice/user-1000.slice
View wat
clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 3821924579961850 ns
clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484873504 ns
clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x2e0abdfedbc, max_idle_ns: 440795208922 ns
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 3822520892550000 ns
clocksource: Switched to clocksource tsc-early
clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
tsc: Refined TSC clocksource calibration: 3193.998 MHz
clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x2e0a244aeba, max_idle_ns: 440795290469 ns
clocksource: Switched to clocksource tsc
clocksource: timekeeping watchdog on CPU3: Marking clocksource 'tsc' as unstable because the skew is too large:
View gist.md

Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt.

NVIDIA driver since version 435.17 supports this method. xf86-video-modesetting, xf86-video-amdgpu (450.57), and xf86-video-intel (455.38) are officially supported as iGPU drivers.

For Turing generation cards with Intel Coffee Lake or above CPUs (as well as the Ryzen 5800H Acer Nitro 5 that im using maybe other ryzens too?), it is possible to fully power down the GPU when not in use.

nvidia gpus 1650 and up is supposedly working with this?.

Hardware

View gist:82e4ceb2b6d6c5eaa0d03ac6dbf5a757
execve("/home/tom/downloads/isdir-64", ["isdir-64", "/etc/fonts/conf.d"], ["LESS=-R", "WINEFSYNC=1", "WGETRC=/home/tom/.config/wgetrc", "GNUPGHOME=/home/tom/.local/share"..., "WINEPREFIX=/home/tom/.local/wine"..., "PGPPATH=/home/tom/.local/share/g"..., "XDG_TEMPLATES_DIR=/home/tom/docs", "LESSHISTFILE=/home/tom/.local/sh"..., "PWD=/home/tom/downloads", "BROWSER=firefox", "WINDOWID=33554435", "WINEDLLOVERRIDES=winemenubuilder"..., "LOGNAME=tom", "EDITOR=vim", "STAGING_SHARED_MEMORY=1", "VAAPI_MPEG4_ENABLED=true", "CHECKUPDATES_DB=/home/tom/.local"..., "MAIL=/var/spool/mail/tom", "ZDOTDIR=/home/tom/.config/zsh", "XDG_SESSION_TYPE=tty", "SYSTEMD_EXEC_PID=503", "PATH=/home/tom/.local/bin::/usr/"..., "CCACHE_DIR=/home/tom/.local/shar"..., "HOME=/home/tom", "MESA_GL_VERSION_OVERRIDE=4.5", "XDG_VIDEOS_DIR=/home/tom/docs/vi"..., "LESS_TERMCAP_mb=\33[1;31m", "XDG_CACHE_HOME=/home/tom/.local/"..., "USER=tom", "INVOCATION_ID=c5c6ad04eb564ba381"..., "DISPLAY=:1", "_JAVA_OPTIONS=-Dawt.useSystemAAF"..., "MOTD_SHOWN=pam", "
View gist:fb4b54e4db5b9b986fb53571163aee2d
execve("/home/tom/downloads/isdir-32", ["isdir-32", "/etc/fonts/conf.d"], ["LESS=-R", "WINEFSYNC=1", "WGETRC=/home/tom/.config/wgetrc", "GNUPGHOME=/home/tom/.local/share"..., "WINEPREFIX=/home/tom/.local/wine"..., "PGPPATH=/home/tom/.local/share/g"..., "XDG_TEMPLATES_DIR=/home/tom/docs", "LESSHISTFILE=/home/tom/.local/sh"..., "PWD=/home/tom/downloads", "BROWSER=firefox", "WINDOWID=33554435", "WINEDLLOVERRIDES=winemenubuilder"..., "LOGNAME=tom", "EDITOR=vim", "STAGING_SHARED_MEMORY=1", "VAAPI_MPEG4_ENABLED=true", "CHECKUPDATES_DB=/home/tom/.local"..., "MAIL=/var/spool/mail/tom", "ZDOTDIR=/home/tom/.config/zsh", "XDG_SESSION_TYPE=tty", "SYSTEMD_EXEC_PID=503", "PATH=/home/tom/.local/bin::/usr/"..., "CCACHE_DIR=/home/tom/.local/shar"..., "HOME=/home/tom", "MESA_GL_VERSION_OVERRIDE=4.5", "XDG_VIDEOS_DIR=/home/tom/docs/vi"..., "LESS_TERMCAP_mb=\33[1;31m", "XDG_CACHE_HOME=/home/tom/.local/"..., "USER=tom", "INVOCATION_ID=c5c6ad04eb564ba381"..., "DISPLAY=:1", "_JAVA_OPTIONS=-Dawt.useSystemAAF"..., "MOTD_SHOWN=pam", "
View gist:45dbe0e4fb152fa5d19d0faa5ad176e0
execve("/usr/bin/fc-cache-32", ["fc-cache-32"], 0x7ffce6d76e10 /* 79 vars */) = 0
[ Process PID=263541 runs in 32 bit mode. ]
strace: WARNING: Proper structure decoding for this personality is not supported, please consider building strace with mpers support enabled.
brk(NULL) = 0x56c2d000
arch_prctl(0x3001 /* ARCH_??? */, 0xffdd9188) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
statx(3, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_BASIC_STATS, {stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=145620, ...}) = 0
mmap2(NULL, 145620, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7ef2000
close(3) = 0