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

Powered by : @r_channels
Download Telegram
Bumblebee guys, try PRIME render offload. Performance on a par with Windows.

❯ inxi -CGMz
Machine: Type: Laptop System: Dell product: XPS 15 9560 v: N/A serial: <filter>
Mobo: Dell model: 0YH90J v: A04 serial: <filter> UEFI: Dell v: 1.18.0 date: 11/17/2019
CPU: Topology: Quad Core model: Intel Core i7-7700HQ bits: 64 type: MT MCP L2 cache: 6144 KiB
Speed: 1000 MHz min/max: 800/2800 MHz Core speeds (MHz): 1: 1000 2: 1000 3: 1000 4: 1000 5: 1000 6: 1000 7: 1000
8: 1001
Graphics: Device-1: Intel HD Graphics 630 driver: i915 v: kernel
Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] driver: nvidia v: 440.64
Display: x11 server: X.Org 1.20.7 driver: modesetting,nvidia unloaded: vesa resolution: 3840x2160~60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 630 (Kaby Lake GT2) v: 4.6 Mesa 19.3.4

~
❯ prime-run inxi -CGMz
Machine: Type: Laptop System: Dell product: XPS 15 9560 v: N/A serial: <filter>
Mobo: Dell model: 0YH90J v: A04 serial: <filter> UEFI: Dell v: 1.18.0 date: 11/17/2019
CPU: Topology: Quad Core model: Intel Core i7-7700HQ bits: 64 type: MT MCP L2 cache: 6144 KiB
Speed: 2579 MHz min/max: 800/2800 MHz Core speeds (MHz): 1: 2393 2: 1921 3: 2333 4: 2225 5: 2185 6: 2240 7: 2310
8: 2194
Graphics: Device-1: Intel HD Graphics 630 driver: i915 v: kernel
Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] driver: nvidia v: 440.64
Display: x11 server: X.Org 1.20.7 driver: modesetting,nvidia unloaded: vesa resolution: 3840x2160~60Hz
OpenGL: renderer: GeForce GTX 1050/PCIe/SSE2 v: 4.6.0 NVIDIA 440.64

I do not play much game. But sometimes.

My setup was bumblebee. `optirun(primusrun` + `primus_vk(when playing via wine)` is working well mostly. But it's performance is not good as native run on Windows.

Once, I tried `nvidia-xrun` with steam. It's performance was good. Same with Windows. But it is clunky and inconvenient.

So today I tried new one.

https://wiki.archlinux.org/index.php/PRIME#PRIME_render_offload

bumblebee blacklist nvidia module in `/usr/lib/...` not `/etc/modprobe.d/...` . I removed it and installed `nvidia-prime`.

❯ yay -Ql nvidia-prime
nvidia-prime /usr/
nvidia-prime /usr/bin/
nvidia-prime /usr/bin/prime-run
nvidia-prime /usr/share/
nvidia-prime /usr/share/X11/
nvidia-prime /usr/share/X11/xorg.conf.d/
nvidia-prime /usr/share/X11/xorg.conf.d/20-nvidia-prime.conf

Reboot. Check it works.

❯ prime-run glxinfo | grep "OpenGL renderer"
OpenGL renderer string: GeForce GTX 1050/PCIe/SSE2

~
❯ prime-run glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
GLX FB config ID of window: 0x14e (8/8/8/0)
Visual ID of window: 0x2f9
Context is Direct
OpenGL Renderer: GeForce GTX 1050/PCIe/SSE2
61.184080 frames/sec - 469.486862 Mpixels/sec
59.934468 frames/sec - 459.898153 Mpixels/sec

❯ nvidia-smi
Mon Mar 30 15:38:07 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64 Driver Version: 440.64 CUDA Version: 10.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 1050 Off | 00000000:01:00.0 Off | N/A |
| N/A 47C P8 N/A / N/A | 103MiB / 4042MiB | 0% Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:
GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1092 G /usr/lib/Xorg 102MiB |
+-----------------------------------------------------------------------------+
Now time to do real thing.

$ prime-run steam

I've tried 3 games. Steam, Proton-5.0.5

- Factorio : It has native linux support. Pretty fun and very well made stable game. 1800+ hour played. this game is fine with Intel Kabylake G630 if not super megabase. so dont really need nvidia gpu. but it was some trouble with `primusrun`. lower fps than Intel. But now it's working pretty good. All grphics options turned on, loaded my most big saved game. Yes, constant 60fps. Good
- Factory Town : It worked with `primus-vk` previously but lower fps than native Windows run. Now same with Windows. Smooth. Good.
- Banished : was same situation with factory town. Now very good.

- ioquake3 : It's not steam game. Pretty constant max fps on 4k(3840x2160). Good

https://redd.it/frlv1v
@r_linux
An update on the Wii Linux system
https://redd.it/frn6tj
@r_linux
Finally installed linux on my chromebook
https://redd.it/frp9h8
@r_linux
Why I switched back to windows from Linux

This is just a post on why I switched back from Linux (Pop! OS) to windows, as you normally hear of people switching from windows to Linux. Now I decided to switch completely from windows to Linux (yes I know that was dumb but I already knew how to use Linux from virtual machines). Now I really liked Linux, but the problem was with gaming. Before I switched to Linux I made sure that my favorite games were compatible. I was able to play the games I wanted but most weren’t designed well for Linux and were very buggy and crashed a lot. My computer is very fast and I felt like I wasn’t able to get the same performance results in Linux instead of windows. My graphics, frame rate, and lag wouldn’t be very noticeably worse. (Yes I had the right drivers installed). I feel like Linux is the best option for a work or school computer, but for gaming, I would stick to windows.

https://redd.it/frwzwj
@r_linux
How do I allow a program installer to write?

A while ago someone asked why I would want to have Windows over Linux and this is why. If I was using Windows Fallout 4 would be installed by now.

I'm trying to give Linux a second chance but I'm trying to install it from my disk and I'm having trouble. I have wine but the Fallout 4 installer doesn't have permission to write to my file system. How do I change this? Or should I switch back to Windows?

https://redd.it/frz6rt
@r_linux
Thank you Gutenprint

I still have an HP LaserJet 5p. It's a great printer (even as old as it is), but Windows 10 no longer supports it. Thanks to gutenprint, I can still print to in from linux (and FreeBSD.. I have a machine running that, too). Thank you.

https://redd.it/fs2gg9
@r_linux
I'm running Debian Bullseye Plasma on a chromebook

TL,DR: Debian Bullseye is working on my Chromebook Asus C300 Bay Trail QUAWKS - soundcard almost working out of the box.

Background: there's a fair number of chromebooks and chromeboxes that reached end of ChromeOS support and a fair number of chromeb\* owners unhappy with ChromeOS.

Here below I share my experience in re purposing an Asus C300 Bay Trail QUAWKS Intel Celeron N2840 (2 cores) @ 2.582GHz 4GB RAM 32GB soldered internal storage. In my opinion installing a Linux distro on them is a good way to promote Linux and to reduce e-wastes.

Suggestions for improvements to what I did and questions are very welcome.

I totally removed ChromeOS and eventually I'm running Debian Bullseye Plasma desktop, after a bunch of experiments.

First of all, I needed to flash a new firmware on my rig: I removed the write protection screw, I enabled the Developer mode and I ran the [MrChromebox firmware utility noscript](https://mrchromebox.tech/#fwnoscript) \- it is possible to run it on Linux too, USB live systems included, if there're restrictions passing iomem=relaxed as kernel parameter at boot should work.

After that step my rig was ready for a full operating system installation.

The obvious choice has been [GalliumOS](https://galliumos.org/), a Linux distro fine tuned for chromeb\*: currently they are offering the version 3.1, based on Ubuntu 18.04 LTS and sporting Xfce 4.12 - you can install 9 different ISOs, each one of them dedicated to a different architecture, including Bay Trail. The kernel is 4.19 patched.

The installation process has been smooth (it's Ubiquity). After reboot around 0.5% cpu workload, 400MB RAM used and I had about 5GB out of 32GB of internal storage used.

I experienced internal sound card issues: speaker / headset volume levels too low and internal mic / headset mic not working, plus some crackling/muting when using the sound mixer utility (pastray).

By the way, the HDMI was working fine.

I removed pastray (I used the standard Xfce volume applet instead) and I modified the HiFi.conf in /usr/share/alsa/ucm/chtmax98090/ (the sound card is an Intel chtmax98090) to fix the issues.

I successfully removed Xfce and installed a minimal Plasma from Ubuntu Bionic official repos, requiring around 70MB more of RAM after boot and remaining snappy.

Big shut out for the GalliumOS team!

I tried and install Ubuntu Mate 18.04.4, however I wasn't able to make the internal sound work by adding the appropriate ucm folder/config files in place.

Next tentative has been Debian, which I was happily running for quite sometime (at that time stable was Jessie IIRC) .

No way to make a netinst: by providing the nonfree firmware needed I was able to connect, but the installation was failing during package fetching phase; I guess this is due to the latency of my connection (I live in a rural area, I'm connected by LTE).

I was able to install Buster (10.3) from the DVD1, no internal sound card detection after reboot.

I added the ucm folder and files, of course with my modifications - the original config files are available [here on GitHub](https://github.com/plbossart/UCM). The sound card was detected but not working (Ubuntu Mate was the same).

I added to my sources.list buster-backports and I installed the newest kernel available (5.4) from there: after reboot my sound card was working well.

In order to use sandboxed AppImages (I use Joplin for note taking) , I needed to enable user namespaces in kernel as follows:

su
echo 'kernel.unprivileged_userns_clone=1' > /etc/sysctl.d/00-local-userns.conf
exit

I'm a desktop user: while I'm appreciating the rock solid stability of Debian stable, I'm suffering the age of the packages releases.

I updated LibreOffice from backports, I backported myself Olive Video Editor from unstable following [this Debian wiki article](https://wiki.debian.org/SimpleBackportCreation) \- important: I wasn't able to download the sources as described in the section of the article *Download the .dsc file from the sid release*, I got the
.dsc link from [packages.debian.org](https://packages.debian.org) and issued `dget -x <url-of-dsc-file>` without adding unstable sources.

Because the backporting experience has been time consuming, I decided to upgrade from stable to testing - no issues but few packages held back that required manual upgrade.

In Bullseye the alsa system is now using the UCM2 standard, which is detecting and working with my sound card out of the box with some issues: without my "old style" UCM files in place, therefore using UCM2 Debianoriginal config files, I'm experiencing sound crackling when changing output stream (e.g. plugging in headset jack), and the mics are apparently working, but the recorded sound isn't intelligible.

Fixes I found at present:

* with my old style UCM files in place the soundcard is working well, mics included - however this is a fallback workaround in my opinion;
* the stream switch on output is fixed by installing `pulseaudio-module-gsettings` and in the advanced audio settings tab checking the automatic output stream switch

Regarding the mics issue, I'm still searching around in the audio settings and I'm still trying to understand which config files are used by alsa for driving my card - I found this [alsa ucm2 project](https://github.com/alsa-project/alsa-ucm-conf/tree/master/ucm2) and I'm reading the READMEs but til now nothing has enlightened me.

I'll update the post if I find a fix for the mics.

Debian proofed to me to be THE universal operating system once more!

Thank you for your long reading.

Cheers,

gabriel

&#x200B;

https://redd.it/fs8syl
@r_linux