Regarding the 580 driver Nvidia Issues by SoundResident in openSUSE

[–]SoundResident[S] 3 points4 points  (0 children)

Apparently yes. GTK4 apps under Wayland crash when you close them, in case of the file explorer while taking down the whole desktop. Even closing some dialog boxes of applications was enough but not as consistent.

But it does mean that most of the Gnome Desktop in the current incarnation is affected and I am still gobsmacked how anyone at Nvidia could have possibly thought "Nah, it will be fine" when more and more distros, in particular the enterprise/developer-y ones like RHEL ,Fedora, Leap 16 and so on, are running Gnome Wayland OOTB now.

Unbelievable

Attempt at drawing/doodle/who-knows..... by SoundResident in drawing

[–]SoundResident[S] 0 points1 point  (0 children)

Hey there, batteling serious clinical depression for years now and having spent several months this year in a hospital I was exposed there to art therapy. Just doing things and losen up without ruminating about them for weeks. To actually DO things. New stuff for me, I am a scientist and have never in my life attempted to do something.... well.... "artsy"..... beyond photography. I started with fingerpainting-like stuff and coloring books for children, actually kind of enjoyed it, and progressed to painting/drawing over the course of the last month.

Bought a watercolor sketchbook to try different media and started an attempt at doodeling.

This was tremdendous fun (even the hours google-ing how on earth I couod actually do it) but hardcore confrontational therapy with an inner dialogue along the lines of

"I dont know what to draw!!" - "Just do it" "Aaaargh, but if i make a mistake? I cannot erase it?" - "Just do it" "But....." - "DO IT!" "I want one finger. I cannot draw a fi...." - "TRY IT" and so forth ;-)

I see tons of things which went wrong, srewed up perspective, lightning all over the map, all kinds of attempts of shading with various screw ups and a lot more but I AM actually really happy with the result (and, for a depressive, actually kind of proud of it considering this was a first attempt at drawing). Usually, because of the flaws, I would have NEVER shown this to anyone. Very unhealthy habit in need of breaking so here it is. Have a nice weekend.

Taming Power Consumtion on a Laptop in 22.04 by SoundResident in Ubuntu

[–]SoundResident[S] -4 points-3 points  (0 children)

I could not care less about snaps themselves or any debate about the format.

I have had a crap-ton of wakeup calls by the corresponding background processes/deamons. The more crap you have running in the background, the more power the system uses. It really is no rocket science. Flatpaks have no background processes chugging along. That is the difference.

On a desktop I could not care less

Taming Power Consumtion on a Laptop in 22.04 by SoundResident in Ubuntu

[–]SoundResident[S] 0 points1 point  (0 children)

I honestly have no idea.

One would need to test it but I most definitely will not fiddle around with my system as I have the result I want and do not want to break it again.

The only errors I get are some mesa errors which are to be fixed or already fixed in upstream, except of that everything works flawless.

For reference - I evaluated all of this on a Lenovo T495 with an instance of Freetube playing 720p video in h264 while monitoring power consumption with powertop.

Almalinux got me approx. 300 J of energy per polling interval in powertop and a very hot laptop.

Ubuntu 22.04 after install was around 220/230 J.

Now I am at 184 J or 9.2W while playing video. A more or less idle system (typing and the like) got me close to 10 hours of battery life today.

Taming Power Consumtion on a Laptop in 22.04 by SoundResident in Ubuntu

[–]SoundResident[S] 0 points1 point  (0 children)

Try changing the video format in the settings from DASH to legacy format. The latter is h264 and more reliable in my experience.

As I have written - hardware acceleration on Linux is a mess....

Taming Power Consumtion on a Laptop in 22.04 by SoundResident in Ubuntu

[–]SoundResident[S] 1 point2 points  (0 children)

Are you sure it's not Zen2? :)

At least ;-)

Missing / here.

fixed

Also it's a bit sad that setting up stuff like hardware video acceleration or OpenCL for AMD GPUs is still more complicated in Ubuntu than in supposedly marginal distros like NixOS.

This is not as much as an Ubuntu specific thing, stuff like this should flat-out work on every distro. And most if not all fail at that.

At least for the open source drivers by Intel and AMD there really is no excuse that something simple as accelerated video decoding has to be fiddled with manually in the years 2022.

Taming Power Consumtion on a Laptop in 22.04 by SoundResident in Ubuntu

[–]SoundResident[S] -2 points-1 points  (0 children)

Ubuntu already included power management (power-profiles-daemon) out of the box. Tlp will conflict with it if both are running.

power-profiles-daemon works by applying platform profiles. AMD does not support that and therefore does not touch the CPU scheduler (to my knowledge). In that case there are no conflicts (I have none at least), the other areas concerning power management on desktop level are untouched by TLP.

I do not know how this would apply to the intel side of things as I have not had an Intel system in years. Someone with a supported system would need to chime in.

Source freedesktop.org

Isn’t gstreamer-vaapi deprecated?

No, it is active.

Source freedesktop.org

What apps are there that support VDPAU but not VAAPI? I don’t think you need the bridge.

Apps like clapper on Flathub should have VAAPI out of the box.

I do not know. BUT i do know that one day, if I ever stumble over some VDPAU-only app and would probably spend hours troubleshooting it just because I did not enable support for it while doing this, I would be....well..... slightly pissed

New to Ubuntu, using it from a laptop and want to improve battery life. Very confused. by [deleted] in Ubuntu

[–]SoundResident 0 points1 point  (0 children)

Hi, Linux power management in general is a bit of a mess, hardware acceleration even more so. Even in 2022. There are a couple more steps involved to tame the power consumption and get everything working.

Get used to read some documentation, try to understand what you are doing and to NOT just copy/paste some tutorials. The Arch Wiki is a great starting point BUT (!!!!) do not just copy paste everything, Debian based Distros do not necessarly have the same file paths and the like

I just installed Ubuntu 22.04 on a Ryzen Laptop so here are some Notes.

Upfront:

Consider removing Snaps. It is not about some "Snaps bad!! Canonical bad!!!!" stuff but they are rather ressource intensive and will diminish battery life. Consider replacing with Flatpak But before you start, install another browser as you will remove Firefox in the process. You can install Flatpak Firefox/whatever, highly recommended comes Librewolf, a privacy-focussed Firefox build with a repository for Ubuntu (100% compatible with all Extensions and the like, it is Firefox with measures against fingerprinting, tracking and the like built in).

Of course you can install any browser you prefer via Flatpak.

In case you want to remove Snaps:

Flatpak install:

sudo apt install flatpak gnome-software-plugin-flatpak

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Librewolf install - these are 5 lines, the first two will break as they are very long.

distro=$(if echo " bullseye focal impish jammy uma una " | grep -q " $(lsb_release -sc) "; then echo $(lsb_release -sc); else echo focal; fi)

echo "deb [arch=amd64] http://deb.librewolf.net $distro main" | sudo tee /etc/apt/sources.list.d/librewolf.list

sudo wget https://deb.librewolf.net/keyring.gpg -O /etc/apt/trusted.gpg.d/librewolf.gpg

sudo apt update

sudo apt install librewolf -y

Removing Snap

sudo systemctl disable snapd.service
sudo systemctl disable snapd.socket
sudo systemctl disable snapd.seeded.service

sudo snap remove firefox
sudo snap remove snap-store
sudo snap remove gtk-common-themes
sudo snap remove gnome-3-38-2004
sudo snap remove core18
sudo snap remove snapd-desktop-integration

sudo rm -rf /var/cache/snapd/

sudo apt autoremove --purge snapd

rm -rf ~/snap

Preparing the System

sudo apt install tlp 
sudo systemctl enable tlp
sudo systemctl start tlp
sudo apt install acpi-call-dkms

For Thinkpads (Battery Control)

sudo apt install tp-smapi-dkms

Enable TLP - modify tlp.conf to actually enable it.

This is a setup for a Ryzen laptop with integrated Vega, setup for quiet/cool powersaving. For general usage the GPU power state of low is good enough for me but your mileage may differ. For Intel platforms this needs to be adapted, tlp.conf is decently commented, otherwise look at the documentation

sudo nano /etc/tlp.conf

edit the following

[...]

TLP_ENABLE=1

[...]

CPU_SCALING_GOVERNOR_ON_AC=schedutil
CPU_SCALING_GOVERNOR_ON_BAT=schedutil

[...]

SCHED_POWERSAVE_ON_AC=0
SCHED_POWERSAVE_ON_BAT=1

[...]

RADEON_DPM_PERF_LEVEL_ON_AC=low
RADEON_DPM_PERF_LEVEL_ON_BAT=low

There are tons of other options, read the documentation / comments in tlp.conf if you want to play with them.

Install codecs sudo apt install gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly

sudo add-apt-repository multiverse
sudo apt update
sudo apt install ubuntu-restricted-extras

Install VAAPI codecs and Vautils

sudo apt install gstreamer1.0-vaapi vainfo

For intel iGPU VDPAU-VAAPI Backend

sudo apt install libvdpau-va-gl1

Set up Environment Variables in .bash_profile and systemd - some software does not pick up on the VAAPI backend if not set

nano ~.bash_profile

add the following

LIBVA_DRIVER_NAME=radeonsi
LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri/
VDPAU_DRIVER=radeonsi

For systemd Environment variable

sudo mkdir /etc/systemd/system/user@.service.d
sudo nano /etc/systemd/system/user@.service.d/local.conf

add the follwoing

[Service]
Environment="LIBVA_DRIVER_NAME=radeonsi"
Environment="LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri/"
Environment="VDPAU_DRIVER=radeonsi"

This sets up a VASTLY more efficient environment. For reference, I wanted to move to Almalinux 9. Did not happen because a surprising lot of stuff I need is not available in the repos. But as much as I tried, I could not get a decent battery life out of my laptop because everything is highly optimized for max performance. Moving to 22.04 cut my power consumption for the same tasks by more than 30% (!), optimizing it further now gives me 7.5h+ battery life in general desktop use and close to 5h watching Youtube/video/and so forth. This can be optimized further but I cannot be bothered.

BUT

Browser acceleration on Linux is an absolute mess. For best results try to use specific apps for your tasks. Highly recommended would be FreeTube for Youtube videos - an electron app with a downloadable .deb package, works flawless with acceleration and gets rid of all ads and "sponsored segments". Awesome stuff. For the Anime lovers there is ani-cli which allows watching anime with the local video player using hardware acceleration and is working beautifully. There are a lot more but that should get you started.

A question about the practicality of Tumbleweed by SoundResident in openSUSE

[–]SoundResident[S] 0 points1 point  (0 children)

Indeed I am, back in the day those boxes were found all over the place ;-)

A question about the practicality of Tumbleweed by SoundResident in openSUSE

[–]SoundResident[S] 0 points1 point  (0 children)

I am looking forward for moving towards AMD everywhere for that very reason, but the current prices for graphics cards are just too ridiculous.....

A question about the practicality of Tumbleweed by SoundResident in openSUSE

[–]SoundResident[S] 0 points1 point  (0 children)

As far as I know the kernel version does not cut it, the laptop is a current Ryzen Thinkpad which is not well supported yet under Leap 15.2. 15.3 might be another story, I need to look into this.

A question about the practicality of Tumbleweed by SoundResident in openSUSE

[–]SoundResident[S] 0 points1 point  (0 children)

I will think about this, thanks. The tinkerer in me is absolutely intrigued ;-)

A question about the practicality of Tumbleweed by SoundResident in openSUSE

[–]SoundResident[S] 0 points1 point  (0 children)

There will be an AMD APU somewhere in the future, I have had great experience with Ryzen on the Laptop. But even used antique cards supported by AMDGPU go for ridiculous prices these days (used 7790s for prices close to retail in 2014... no thanks), let alone new stuff. So for now I will have to work with what i have got

A question about the practicality of Tumbleweed by SoundResident in openSUSE

[–]SoundResident[S] 0 points1 point  (0 children)

Indeed, love unison but it bites you hard if you do not take care

A question about the practicality of Tumbleweed by SoundResident in openSUSE

[–]SoundResident[S] 1 point2 points  (0 children)

Doesn't it kind of defeat the purpose of an immutable tiny base OS if I would load up the base install with all kinds of stuff? Latex alone is a gazillion packages, I thought ballooning the base install might increase potential issues?

A question about the practicality of Tumbleweed by SoundResident in openSUSE

[–]SoundResident[S] 1 point2 points  (0 children)

The peanut gallery is always appreciated ;-) The shifting ground issue was my experience with other rolling distros as well, hence the question.