Language Selection

English French German Italian Portuguese Spanish

Linuxinsight

Syndicate content
LinuxInsight - aggregated feeds
Updated: 1 hour 25 min ago

Reddit: Desktop Reddit Clients Walkthrough

Tuesday 24th of October 2017 09:04:46 PM

LinuxToday: Beavering away at the brilliantly bionic 18.04 LTS

Tuesday 24th of October 2017 09:00:00 PM

Mark Shuttleworth: As always, 18.04 LTS will represent the sum of all our interests.

Reddit: Complete disable of discrete GPU

Tuesday 24th of October 2017 08:57:35 PM

Some time ago I bought a laptop with a decent graphics card but wanted a way to disable the graphics card when I was not playing. I have an Intel CPU and a nvidia GPU and I didn't like what you could get with bumblebee and nvidia-prime. I didn't find a "guide" on how to do this or solve the problems I had so I think this could be useful to someone.

This guide (or better, compilation of instructions) is aimed to those who want to disable their discrete graphics card completely. Using this method, the temperatures reported by sensors are noticeable lower (I can always notice whether the GPU is turned off with this method or not). It is likely that the battery usage is also lowered but I don't have numbers to back this up. This is more a kind of "permanent" change since although the GPU can alway be turned on, it is probably better to have a distro for work (with the GPU off) and another one for gaming. That's my setup, at least. I have the GPU turned off in Arch although I've tried this successfully in Ubuntu 16.04 (not the whole process but that the GPU can be turned off).

Prerequisites

I'm not completely sure but the nvidia propietary drivers should not be installed. Install nouveau instead.

How to turn off the GPU

We're going to need the acpi_call kernel module. In Arch Linux it is very easy to install it:

sudo pacman -S acpi_call

while if you are using another distribution you will have to clone this repo: https://github.com/mkottman/acpi_call and compile it (you also have to recompile it each time the kernel updates). You should read the instructions and caveats in that page and use at your own risk. Now, we follow the instructions in https://wiki.archlinux.org/index.php/Hybrid_graphics#Fully_Power_Down_Discrete_GPU or in the github page.

First, we need to load the module, which we can do by a

sudo modprobe acpi_call

We will have to give the full path to the acpi_call.ko file after compilation if we compiled it. Now we find the file turn_off_gpu.sh in the folder examples. If installed through pacman it will be in /usr/share/acpi_call/examples

We execute that file and a typical output can be the following (extra useless output is not shown):

... Trying \_SB.PCI0.PEG0.GFX0.DOFF: failed Trying \_SB.PCI0.PEG1.GFX0.DOFF: failed Trying \_SB.PCI0.PEG0.PEGP._OFF: works! Trying \_SB.PCI0.XVR0.Z01I.DGOF: failed Trying \_SB.PCI0.PEGR.GFX0._OFF: failed ...

At this moment, the GPU is turned off and you should notice lower temperatures. The GPU will be back on when you reboot although it is possible that your pc hangs when you try to shut it down or when it wakes up after sleeping.

We can take note of the line that said "works!" because we will need it later. The script is doing the following:

echo '\_SB.PCI0.PEG0.PEGP._OFF' > /proc/acpi/call

to turn off the GPU.

If your pc hangs

It is possible that your pc hangs when you do a lspci, when you try to shut it down or when it wakes up after sleeping. All of this can be solved.

First, we are going to blacklist nouveau (I do not know if it's mandatory but I have it blacklisted) We create the file /etc/modprobe.d/nouveau-blacklist.conf which contains:

blacklist nouveau

Now if we reboot and do lsmod | grep nouveau we should not find any output. Now we remove (https://wiki.archlinux.org/index.php/Nouveau#Flat_Panel_Table_Invalid) the card from /sys/bus/pci/devices with:

echo 1 > /sys/bus/pci/devices/[card device id]/remove

In my case, [card device id] is 0000\:01\:00.0 (careful with backslashes). You can know your card's id by doing a lspci when the GPU has not been turned off (it may hang if it's on). Now you shouldn't have any problem if you shut down.

Turn off GPU at boot time

Turning off the GPU as this is only temporary. After a reboot or even a wake-up, the state of your GPU will be on again. You can create a script with the command that turns off the GPU and the one that removes the card from /sys.../devices and execute it when you want or do it at startup. We now follow https://wiki.archlinux.org/index.php/Hybrid_graphics#Fully_Power_Down_Discrete_GPU . We create a file /etc/modules-load.d/acpi_call.conf that loads acpi_call at startup and its contents are:

# Load 'acpi_call.ko' at boot. acpi_call

If you compiled acpi_call you probably have to give the full path. Now we create a file that turns off the GPU at startup /etc/tmpfiles.d/acpi_call.conf (the names of these files are irrelevant) with content:

w /proc/acpi/call - - - - \\_SB.PCI0.PEG0.PEGP._OFF

Here we have to make sure this is the line that said "works" in the examples. To remove the card from /sys.../devices at boot we create /etc/tmpfiles.d/remove_gpu_from_lspci.conf with content:

w /sys/bus/pci/devices/0000\:01\:00.0/remove - - - - 1

Remember here to put the card device id that you got before with backslashes as it is shown.

If the GPU is turned on after waking up

We follow https://wiki.archlinux.org/index.php/Power_management#Suspend.2Fresume_service_files and create the file /etc/systemd/system/root-resume.service with the following contents:

[Unit] Description=Local system resume actions After=suspend.target [Service] Type=simple ExecStart=/usr/bin/sh -c "echo '\_SB.PCI0.PEG0.PEGP._OFF' > /proc/acpi/call" [Install] WantedBy=suspend.target

With this set-up I have disabled the GPU in my pc. It does not hang when I shut it down or when I do a lspci. It wakes up after sleeping normally with the GPU off.

submitted by /u/Iludio
[link] [comments]

LinuxToday: How to Lock User Accounts After Failed Login Attempts

Tuesday 24th of October 2017 08:00:00 PM

Tecmint: This guide will show how to lock a system user's account after a specifiable number of failed login attempts in CentOS, RHEL and Fedora distributions.

Reddit: Top 5 Linux pain points in 2017

Tuesday 24th of October 2017 07:29:22 PM

Slashdot: OpenBSD 6.2 Released

Tuesday 24th of October 2017 07:28:16 PM

Slashdot: Linux Now Has its First Open Source RISC-V Processor

Tuesday 24th of October 2017 07:28:16 PM

Reddit: Hi i was wondering do i need the LPIC-1 cert before i go for LPIC-2

Tuesday 24th of October 2017 07:24:13 PM

Or can i just go to LPIC-2 instead, i do have my Linux+ cert

submitted by /u/JonTheAndroid
[link] [comments]

LXer: How working transparently united our engineers

Tuesday 24th of October 2017 07:16:13 PM
It's incredible to think about how much has changed for technology companies in the last decade. Start ups pop up seemingly by the hour. The most financially successful company on earth freely shared an entire programming language. And the open source community is thriving in ways we didn't think possible.In short, transparency seems to be spreading in many different forms.read more

Phoronix: Oracle Could Still Make ZFS A First-Class Upstream Linux File-System

Tuesday 24th of October 2017 07:00:00 PM
For many years Linux storage enthusiasts have dreamed of having the ZFS file-system part of the mainline Linux kernel. But since Oracle acquired Sun Microsystems that outlook has looked much more bleak that they would re-license the ZFS kernel code under a license compatible with the upstream GPLv2 Linux kernel. But an Oracle engineer presented today that the ZFS Linux dream might still come true...

LXer: Wizznic! – Highly Addictive Open Source Puzzle Game

Tuesday 24th of October 2017 06:01:52 PM
This is an open source game inspired by the classic Puzznic, a tile-matching puzzle arcade game developed and produced by Taito in 1989. The game is way more than a clone of Puzznic. But like Puzznic, it’s a frighteningly addictive game. If you like puzzle games, Wizznic! is definitely a recommended download.

LinuxToday: Termux - Run Linux On Android Devices, No Rooting Required!

Tuesday 24th of October 2017 06:00:00 PM

Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required.

Phoronix: Mesa 17.3 With RADV Vulkan Running Great With Polaris, Starts To Outperform AMDGPU-PRO

Tuesday 24th of October 2017 06:00:00 PM
Yesterday I posted some fresh benchmarks of the RX Vega between the AMDGPU+RadeonSI/RADV open-source vs. AMDGPU-PRO drivers, which showed the pure open-source driver stack performing admirably well for the latest-generation AMD graphics architecture and the community-driven RADV Vulkan driver was even performing nicely. Due to how well RADV has matured during the Mesa 17.3 cycle, here are some benchmarks using a Radeon RX 580 "Polaris" graphics card showing off its more mature support for Vulkan.

Reddit: Ubuntu 17.10 | Ask Noah 31 | Jupiter Broadcasting

Tuesday 24th of October 2017 05:16:01 PM

Reddit: KDE Plasma 5.11.2 released!

Tuesday 24th of October 2017 04:55:38 PM

Reddit: This is getting out of hand now!

Tuesday 24th of October 2017 04:47:46 PM

LXer: How to install Nextcloud integrated with ONLYOFFICE using Docker

Tuesday 24th of October 2017 04:47:32 PM
Nextcloud is a free, open source file hosting solution, a fork of the ownCloud project that offers you the ability to run a cloud storage service that you administer and control yourself. If you are a Nextcloud user already, you can integrate ONLYOFFICE editors with Nextcloud following the instructions in this tutorial.

More in Tux Machines

today's howtos

6-Way Enterprise Focused Linux Distribution Comparison With An Intel Core i9, Dual Xeon Gold Systems

Here's our latest Linux distribution comparison with this time looking at the out-of-the-box performance of six Linux distributions while running a range of enterprise/workstation-focused benchmarks while using two systems. One system is a high-end Core i9 7980XE desktop system and the other a Tyan 1U Xeon Scalable server with dual Xeon Gold 6138 processors. Read more

Security: FOSS Versus Windows

Linux/Android hacker SBC with hexa-core Rockchip SoC debuts at $75

The Vamrs “RK3399 Sapphire” SBC is on sale for $75, or $349 for a full kit. Vamrs is also prepping an RK3399-based “Rock960” 96Boards SBC. Rockchip’s RK3399 is one of the most powerful ARM-based system-on-chips available on hacker boards, featuring two server-class Cortex-A72 cores clocked to up to 2.0GHz, as well as four Cortex-A53 at up to 1.42GHz and a quad-core Mali-T864 GPU. The hexa-core SoC has appeared on T-Firefly’s Firefly-RK3399 SBC and RK3399 Coreboard computer-on-module, as well as Videostrong’s VS-RD-RK3399 SBC and Theobroma’s RK3399-Q7 Qseven module. Now we have a new contender: Shenzhen based Vamrs, which built the limited edition Rockchip RK3399 Sapphire SBC as the official RK3399 dev board for Rockchip, is now re-launching the board, which features a 40-pin Raspberry Pi compatible connector, with “many in stock” for a discounted price of $75. Read more