Least Action

Nontrivializing triviality..and vice versa.

Posts Tagged ‘Arch Linux

Intel Skylake graphics flicker on Arch Linux

leave a comment »

Recently, I had the opportunity to install Arch Linux on a brand new laptop based on the Intel Skylake architecture. Immediately after installing Google Chrome, I began to experience intense screen flicker. I came across a post on the Arch Linux forums where someone suggested the following solution to this problem:

  1. (As root), create a file named 20-intel.conf in /etc/X11/xorg.conf.d.
  2. Open the file in your favorite editor (I use vim, so steps 1 and 2 can be combined) and enter the following lines in the file
    Section "Device"
       Identifier  "Intel Graphics"
       Driver      "intel"
       #Option      "AccelMethod"  "sna"
       Option      "TearFree"    "true" 
       Option      "DRI"    "3" 
    EndSection
    

Now, restart X Windows, and the flicker should go away.

Written by Vivek

April 10, 2016 at 10:34

Posted in Linux

Tagged with ,

Getting sound to work in Arch Linux

leave a comment »

Make the following file in your home directory (~/) and save it as .asoundrc (note the leading .)

pcm.!default {
        type hw
        card 1
}

ctl.!default {
        type hw
        card 0
}

Written by Vivek

July 16, 2015 at 11:15

Posted in Linux

Tagged with ,

~/.xinitrc and /etc/X11/xorg.conf for Arch Linux Optimus configuration

leave a comment »

~/.xinitrc

xrandr –setprovideroutputsource modesetting NVIDIA-0
xrandr –auto
#xrandr –output VGA-1-0 –off
#xrandr –output VGA-1-0 –left-of VGA-I-1 –mode 1920×1080 –gamma 1.2:1.2:1.2
xrandr –output VGA-I-1 –primary –mode 1920×1080
exec startkde

/etc/X11/xorg.conf (to be used with nvidia driver, not otherwise)

Section “ServerLayout”
Identifier “layout”
Screen 0 “nvidia”
Inactive “intel”
EndSection

Section “Device”
Identifier “nvidia”
Driver “nvidia”
BusID “PCI:1:0:0”
Option “ConstrainCursor” “0”
Option “nvidiaXineramaInfoOverride” “1920×1080+0, 1920×1080+0”
EndSection

Section “Screen”
Identifier “nvidia”
Device “nvidia”
Option “AllowEmptyInitialConfiguration” “Yes”
Option “ConnectedMonitor” “CRT-0”
Option “CustomEDID” “CRT-0:/sys/class/drm/card0-LVDS-1/edid”
Option “IgnoreEDID” “false”
Option “UseEDID” “true”
EndSection

Section “Device”
Identifier “intel”
Driver “modesetting”
BusID “PCI:0:2:0”
Option “AccelMethod” “sna”
EndSection

Section “Screen”
Identifier “intel”
Device “intel”
EndSection

Written by Vivek

July 15, 2015 at 02:47

Posted in Linux

Tagged with ,