mirror of
https://github.com/outbackdingo/hyprcosmic.git
synced 2026-08-25 14:53:21 +00:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b34a971b5 | ||
|
|
11e25b3b85 | ||
|
|
dd6f8864ee | ||
|
|
23ce305735 | ||
|
|
22e5cf3801 |
+1
-1
Submodule cosmic-applets updated: f154c16df9...0720bdbae3
+1
-1
Submodule cosmic-applibrary updated: 08edc89ef0...1416b80bf4
+1
-1
Submodule cosmic-bg updated: ae45d5e1b3...e5637fcc83
+1
-1
Submodule cosmic-comp updated: 19ba568f02...4748916ff9
+1
-1
Submodule cosmic-edit updated: 8d16f08816...df5d10936c
+1
-1
Submodule cosmic-files updated: 5ecd697e5d...190029aa27
+1
-1
Submodule cosmic-greeter updated: 9933926d44...cc744b0b9a
+1
-1
Submodule cosmic-icons updated: f48101c38d...f93dcdfa10
+1
-1
Submodule cosmic-launcher updated: 7752b9b09e...d84fda0bcc
+1
-1
Submodule cosmic-notifications updated: 4a79052f46...e9abef567a
+1
-1
Submodule cosmic-osd updated: dc4df2c006...27fc5e5ba4
+1
-1
Submodule cosmic-panel updated: 683a204ef8...47c672066a
+1
-1
Submodule cosmic-randr updated: 88c570cf8b...71fabbb382
+1
-1
Submodule cosmic-screenshot updated: f853446dbe...031eb66861
+1
-1
Submodule cosmic-session updated: 5613bc6606...c3de3d24dd
+1
-1
Submodule cosmic-settings updated: a8bf840ace...648c4e24ab
+1
-1
Submodule cosmic-settings-daemon updated: bf2e505e45...362c77f9fa
+1
-1
Submodule cosmic-store updated: 1e1b322567...639a17c1bc
+1
-1
Submodule cosmic-term updated: e6aecbe840...be808b56cf
+1
-1
Submodule cosmic-workspaces-epoch updated: 30b0cfe17b...c1acf0c1aa
@@ -0,0 +1,41 @@
|
||||
Debugging COSMIC
|
||||
================
|
||||
|
||||
An assortment of useful tools and settings for debugging COSMIC.
|
||||
|
||||
## Logs
|
||||
Cosmic-comp, cosmic-panel, and other components log to `stderr`, as well as journald (if present).
|
||||
|
||||
## Wayland and X11 Protocols
|
||||
|
||||
Run clients with `WAYLAND_DEBUG=1` to see what wayland calls are made. `xtrace -n <command>` can be used to see what X calls an X11 client is making.
|
||||
|
||||
## XWayland
|
||||
|
||||
A tool like `xprop` can be used to determine if an application is running in XWayland. If `xprop` is unable to select a window, it is a native Wayland window.
|
||||
|
||||
## Performance
|
||||
|
||||
`sudo perf top` can be used to see what functions, across all processes, are using the most CPU time. The `-p` argument can be used to restrict this to a single process. The output is more useful for executables with debug symbols.
|
||||
|
||||
`cosmic-comp` integrates Tracy for profiling. It can be built with `cargo build --features profile-with-tracy --profile fastdebug`, then the Tracy client can connect from the same system or a different one
|
||||
|
||||
## Graphics drivers
|
||||
`eglinfo` and `vulkaninfo` indicate what graphics cards and drivers are in use for hardware-accelerated rendering.
|
||||
|
||||
On systems with NVIDIA graphics, `nvidia-smi` has information about the GPU and driver.
|
||||
|
||||
## DRM
|
||||
The Linux DRM subsystem handles graphics cards and display controllers.
|
||||
|
||||
`drm_info` prints information about the outputs, planes, etc. associated with each GPU and their properties. The output of this command can be useful for understanding display related issues.
|
||||
|
||||
https://gitlab.freedesktop.org/wlroots/wlroots/-/wikis/DRM-Debugging documents how to configure DRM to enable additional logging, which can be useful for understanding some DRM driver issues.
|
||||
|
||||
## Frozen desktop
|
||||
|
||||
If the desktop is frozen and `ctrl+alt+f*` don't work to change to a TTY, [the magic SysRq key](https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html) with `r` can be used to swich input in raw mode, so the kernel will handle the tty switch key binding. /etc/sysctl.conf` or `/etc/sysctl.d` may need to be edited first to set `kernel.sysrq=1` or another value that allows this command.
|
||||
|
||||
It is also possible to connect over `ssh` from another computer.
|
||||
|
||||
Then `pidof cosmic-comp` can be used to get the PID of the compositor. Then it is possible to investigate further with tools like `gdb`, using `sudo gdb` then `attach <pid>`.
|
||||
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
TAG="$1"
|
||||
|
||||
if [ -z "$TAG" ]
|
||||
then
|
||||
echo "$0 [tag]" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Do you want to tag the current state of cosmic-epoch with the tag $TAG? (y/N)"
|
||||
read answer
|
||||
if [ "$answer" != "y" ]
|
||||
then
|
||||
echo "Did not answer y, exiting" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -x
|
||||
|
||||
git fetch --recurse-submodules
|
||||
|
||||
git tag --force "$TAG"
|
||||
git submodule foreach git tag --force "$TAG"
|
||||
|
||||
git push --force origin tag "$TAG"
|
||||
git submodule foreach git push --force origin tag "$TAG"
|
||||
Submodule xdg-desktop-portal-cosmic updated: 566b866096...41c1e7cfd0
Reference in New Issue
Block a user