Linux - Reddit – Telegram
Linux - Reddit
771 subscribers
4.19K photos
207 videos
39.9K links
Stay up-to-date with everything Linux!
Content directly fetched from the subreddit just for you.

Powered by : @r_channels
Download Telegram
Weekend Fluff / Linux in the Wild Thread - July 05, 2019

Welcome to the weekend! This stickied thread is for you to post pictures of your ubuntu 2006 install disk, slackware floppies, on-topic memes or more.

When it's not the weekend, be sure to check out r/WildLinuxAppears or r/linuxmemes!

https://redd.it/c9ih0r
@r_linux
Getting SVP to work with mpv in Linux (Manjaro, Arch-based)

I'm making this post in hopes that some people find it via SEO. I had some trouble getting SVP to work, so I want to list the exact steps I took.

They more or less mirror a mix of the instructions on

the Arch wiki: https://wiki.archlinux.org/index.php/Mpv#SVP_4_Linux_(SmoothVideoProject)

and the SVP wiki: https://www.svp-team.com/wiki/SVP:Linux

This is on:

- Manjaro 18.0.4, an Arch-based distro

- Linux kernel 5.1

- KDE 5.59.0/Plasma 5.16.2

- Nvidia GPU with proprietary driver `linux51-nvidia` (the driver for the 5.1 kernel, called simply `video-nvidia` by `mhwd` and designated 430.26 in output of `pamac info linux51-nvidia`)

Package names are exact and not from AUR unless specified.

1. Uninstall `mpv` if present

2. Install `vapoursynth`

3. Install `mediainfo`

4. Install `lsof` if absent

5. Install the OpenCL, "ICD" drivers: `ocl-icd`, `opencl-headers`, and `opencl-nvidia` (Note: oddly, `opencl-nvidia` did not show up in Pamac's GUI for me; I installed it via CLI with `pamac install opencl-nvidia`)

6. Install `mpv-git` **from AUR** (Note: may need to install `vulkan-headers` dependency, which is *not* from the AUR)

7. Install `svp` **from AUR**

8. Close everything and run SVP to profile performance; when it's done, it'll just tersely close

9. Make mpv use SVP! Add an SVP profile and a preset for to `~/.config/mpv/mpv.conf` (see 📄 below)

10. Verify it works by opening a file with mpv and add SVP to autostart programs! 🥳

📄 `~/.config/mpv/mpv.conf`

profile=svp # Enable svp by default, here in the "top-level" of mpv.conf

# Keep within screen bounds; if window larger than W%xH% of screen, resize to W%xH%
autofit-larger=100%x100%

[svp] # SVP profile
# Everything below here only applies to this profile until another profile is declared!

input-ipc-server=/tmp/mpvsocket # Receives input from SVP
hr-seek-framedrop=no # Fixes audio desync
resume-playback=no # Not compatible with SVP

# These are are for hardware (GPU?) decoding.
# According to the Arch wiki,
# "hardware decoding is discouraged by mpv developers and is not likely to make
# a significant difference in performance."
# Still: slightly better performance for 4K videos if enabled, apparently.
hwdec=auto-copy
hwdec-codecs=all

# Can fix stuttering in some cases, in other cases probably causes it. Try it if you experience stuttering.
#opengl-early-flush=yes

Notes:

- It seems to work for both 60 Hz and 144 Hz monitors. Note that the extra frames aren't reported by mpv itself (e.g., if you ask it to show framerate, the OSD will still say "23.998" or whatever the native video framerate is).

- Video artifacts are expected.

- Slower seek response is expected (e.g., clicking the seekbar to go halfway into a video takes a full second with SVP on rather than instant with it off).

- The SVP Control Panel might come up as a blank window; moving it to a different monitor makes it render.

- I've found some significant, *unexpected* problems so far (*both of which are fixed by running at a FIXED FRAMERATE via a created profile; see* 🔷 *below*):

🔴 Normally, in Windows 10, moving a video window from a 60 Hz to a 144 Hz monitor causes a brief "hickup" of video followed by a switch in SVP's framerate to the new monitor's refresh rate. Here in Linux, it results in CPU 100% spiking and a breakdown of the framerate. Opening the video in a console gives some error output when this happens:

Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).

AV: 00:00:58 / 00:22:05 (4%) A-V: 2.986 Dropped: 1014
[vapoursynth] Script evaluation failed:
[vapoursynth] Python exception: SVSmoothFps: unable to init GPU-based renderer - code 262138
[vapoursynth]
[vapoursynth] Traceback (most recent call last):
[vapoursynth] File "src/cython/vapoursynth.pyx", line 1942, in vapoursynth.vpy_evaluateScript
[vapoursynth] File "src/cython/vapoursynth.pyx", line 1943, in vapoursynth.vpy_evaluateScript
...

The video remains severely choppy and CPU load max-locked until SVP is toggled off *and* back on (seeking around a little helps too).

This is annoying but not a *huge* issue; SVP has an easy toggle key (I use `Shift+F11`), so toggling it off before you drag a video across to another monitor and then back on works. If you trigger the choppiness, again, just toggle it and seek around.

The biggest problem is when you have 4K videos that exceed your monitor bounds; opening them normally causes the mpv window to bleed over onto other monitors. To prevent this, I added the `autofit-larger=100%x100%` line to `mpv.conf` above.

🔴 4K video at 144 Hz seems to be too much for my system (which *is* pretty powerful) or the programs to handle, with framerates choppy and CPU maxed out.

4K at 60 Hz seems fine though. Both seem slightly smoother and CPU load seems lower with hardware decoding enabled, however, which is why I left the `hwdec` lines enabled.

🔷 EASY FIX FOR BOTH ABOVE PROBLEMS:

Take SVP off of automatic and lock it to a fixed and manageable framerate, like 60 Hz.

In the SVP Control Panel, create a new profile. This makes the target framerate buttons appear below the `Do frame rate conversion` button. Select the `?` button at the right and a fixed framerate like `Fixed 60.0 fps`.

Not only does this seem not to overwhelm my system by trying 144 Hz 4K but it also precludes the "adaptive refresh" that fails across monitors! I also find 60 is enough as I normally watch videos on my 60 Hz side monitors anyway.

I hoped this helps anyone!

Any input for Ubuntu and other distros and AMD welcomed!

https://redd.it/c9jrzn
@r_linux
r/linux hits 400,000 subscribers!

We’ve just hit 400,000 subscribers!

GNU/Linux is growing more and more every day and [in late April of last year](https://www.reddit.com/r/linux/comments/8g3n1e/congrats_to_rlinux_weve_hit_the_300k_subscriber/) r/linux hit the 300k mark. In about 14 months we grew by 100,000 people!

GNU/Linux is an operating system that gives you control. r/linux users prefer our Operating System not just for its reliability and openness but also for respecting our privacy. This is all thanks to countless hours of efforts by many GNU/Linux contributors!

Please consider donating to the [Free Software Foundation](https://my.fsf.org/donate/), [GNOME](https://www.gnome.org/support-gnome/donate/), [KDE](https://kde.org/community/donations/), or the many other GNU/Linux projects to help continue the growth of Linux. You can find more projects over on [Liberapay](https://en.liberapay.com/explore/organizations), [open collective](https://opencollective.com/), or let us know your favorite projects in the comments below!

r/linux is far from the only GNU/Linux community on reddit. /r/linux_gaming is the biggest specific use case Linux subreddit, /r/linuxquestions and /r/linux4noobs are always helping people sort out their problems, and more than likely your distro of choice has it's own subreddit which you can find an ever-expanding list over at the [wiki](https://www.reddit.com/r/linux/wiki/sidebar/supplemental).

Many projects over the years have helped Linux users make the switch. Wine is a well known project that helps users run Windows programs without having to use Windows at all. Many years of hard work have went into Wine and you can help by donating [here.](https://www.winehq.org/donate) Without Wine, recent developments that have helped GNU/Linux adoption such as [Valve's Steam Play changes](https://steamcommunity.com/games/221410/announcements/detail/1696055855739350561) which have allowed many Windows games to function on GNU/Linux at the click of a button on Steam. Not alone in this endeavor there are other options such as [Lutris](https://lutris.net/) and to get more help users can checkout the community at /r/linux_gaming which recently hit 100,000 subscribers.

Windows has shipped a full Linux Kernel available for installation to all Windows users. We recommend users of this feature to check out the subreddit r/bashonubuntuonwindows!

Some of my favorite personal moments of the last year are the AMAs. Check out some recent ones but you can find the full list on the [ama wiki](https://www.reddit.com/r/linux/wiki/calendar)

* [OilShell](https://www.reddit.com/r/linux/comments/c1pigw/ama_i_spent_3_years_creating_a_new_bashcompatible/)

* [Matthew Miller (Fedora Project Lead)](https://www.reddit.com/r/linux/comments/brp7q7/im_matthew_miller_fedora_project_leader_ask_me/)

* [Arch Linux](https://reddit.com/r/linux/comments/9emwtu/arch_linux_ama/)

* [elementaryOS](https://reddit.com/r/linux/comments/9h5h1w/we_are_elementary_ama/)

* [Bedrock Linux](https://reddit.com/r/linux/comments/a724qe/im_the_founder_and_lead_developer_of_bedrock/)

* [Plasma Mobile (KDE)](https://reddit.com/r/linux/comments/anspo5/we_are_plasma_mobile_developers_ama/)

* [sway wlroots](https://www.reddit.com/r/linux/comments/as1dd0/we_are_the_sway_wlroots_developers_ask_us_anything/)

* [Greg Kroah-Hartman](https://www.reddit.com/r/linux/comments/2ny1lz/im_greg_kroahhartman_linux_kernel_developer_ama/)

To the devs out there: Keep in mind that we have custom flair for you as well as we would like to host your AMAs. [Modmail us](https://www.reddit.com/message/compose?to=%2Fr%2Flinux) to get flair if you have an established project (should be in a few distro repo’s and a popular following) and to get started on doing an AMA.

https://redd.it/c9l00k
@r_linux
Best software to manage patching including Oracle

My organization has some applications that need a Pre and Post action applied when a server is patched. What software do you use to manage this at at your organization? For example: Oracle needs to have the database shut down prior to any patching occurring.

https://redd.it/c9mi59
@r_linux
To day is the day Debian Buster is released

Are you planing to upgrade or install it? I did already install it via RC3 and it looks like a steller release

https://redd.it/c9pn3i
@r_linux
btrfs performance on a development machine

Is anyone using btrfs on a development machine? It seems that it had (has?) some performance issues for database workloads, so I'm wondering how that compares for the typical development workload.

https://blog.pgaddict.com/posts/friends-dont-let-friends-use-btrfs-for-oltp

https://redd.it/c9qtrz
@r_linux
One thing about us linuxists, we don't like being told what do. My hardware, my rules.
https://redd.it/c9qn8w
@r_linux
wipe 2 hdd simultaneously via ssh

Hallo

How can i wipe 2 hdd simultaneously over ssh ?

I always used dd

`dd if=/dev/zero of=/dev/sda bs=1M status=progress`

`dd if=/dev/zero of=/dev/sdb bs=1M status=progress`

or

`dd if=/dev/urandom of=/dev/sda bs=1M status=progress`

`dd if=/dev/urandom of=/dev/sdb bs=1M status=progress`

​

however, both commands takes too long to complete

​

is there a possibility to wipe both hard disks quickly and simultaneously?

https://redd.it/c9rshs
@r_linux
linux running on a phone. how to access the phone files or visa versa

so for reasons i dont need to get in to i am running linux from my phone (S7 edge) using [this sort of method](https://droidfeats.com/how-to-install-twrp-recovery-on-any-android-device/)
but i cant seem to save files to the phones storage or the SD card in the phone
i tried to [do this](https://www.techwalla.com/articles/how-to-mount-an-external-usb-drive-in-debian-linux) and it seemed to work.. but the directory seems to be empty and i cant find anything i save there from the phones side


this is also my first experience with linux


any one have any experience with this or know a better place to ask?

https://redd.it/c9sx49
@r_linux
Service stops working as soon as I close SSH connection

I have a Raspberry Pi with Raspbian Buster Lite. There's a service running to relay messages. Called NKN. Shouldn't really matter though. I run it headless and connect to it with putty. When I close putty and reconnect it asks me for my login and password like always and then there's nothing running. How can I keep it running?

https://redd.it/c9typ6
@r_linux
Gnome has awful window placement.

It tries to mix tiling and floating window managers and creates the worst of both worlds. More often than not it's opening new windows in the top left corner, very distracting and annoying on my ultrawide.


I know you can change it to open new windows in the centre but that's only slightly better. Remembering the position the previous windows were closed in is the best way for a floating wm to work.

https://redd.it/c9tlwu
@r_linux