Zyratastic - Ubuntu: Difference between revisions

From miki
Jump to navigation Jump to search
 
(23 intermediate revisions by the same user not shown)
Line 22: Line 22:
|'''acpi''' (<tt>acpi</tt>)||
|'''acpi''' (<tt>acpi</tt>)||
|-
|-
|'''nvidia''' (<tt>bumblebee-nvidia nvidia-319 nvidia-settings-319</tt>)||
|'''nvidia''' (<tt>bumblebee-nvidia nvidia-331 nvidia-settings-331</tt>)||Packages installed as 2015/02/19
bumblebee 3.2.1-5
bumblebee-nvidia 3.2.1-5
nvidia-331-updates 331.113-0ubuntu0.0.4
nvidia-libopencl1-331-updates 331.38-0ubuntu7.1
nvidia-opencl-icd-331-updates 331.113-0ubuntu0.0.4
nvidia-settings 331.20-0ubuntu8
|-
|'''unity tweak tool''' (<tt>unity-tweak-tool</tt>)||from ''Software Center''
|-
|'''skype''' (<tt>skype</tt>)||
|-
|'''SSH''' (<tt>ssh</tt>)||
Enable GNOME Keyring at startup such that SSH key is cached at login. In ''Startup Application'', create launcher:
{|
|-
|Name||SSH Key Agent
|-
|Command||<code>/usr/bin/gnome-keyring-daemon --start --components=ssh</code>
|-
|Comment||GNOME Keyring: SSH Agent
|}

|-
|'''LTS Enablement Stacks'''
|
Upgrade to Kernel 3.19 and new X server. See [https://wiki.ubuntu.com/Kernel/LTSEnablementStack]:
<source lang=bash>
sudo apt-get install --install-recommends linux-generic-lts-vivid xserver-xorg-core-lts-vivid xserver-xorg-lts-vivid \
xserver-xorg-video-all-lts-vivid xserver-xorg-input-all-lts-vivid libwayland-egl1-mesa-lts-vivid
</source>
|-
|'''Nvidia'''
|
'''Update to Ubuntu 16.04 Xenial'''
* Again the release update breaks nvidia.
* This time we install the default nvidia driver, no bumblebee:
<source lang=bash>
sudo apt-get purge nvidia* bumblebee
sudo apt-get install nvidia-361 nvidia-prime
# reboot
glxinfo
glxgears
</source>
;Old release (14.04):
Recent update broke the nvidia installation. Instead of installing back again nvidia-331, I followed Osgyan's guide (see below) to install latest nvidia drivers:
<source lang=bash>
# First purge current installation
sudo apt-get remove --auto-remove bumblebee* nvidia*
sudo apt-get purge --auto-remove bumblebee* nvidia*
# Add ppa for latest nvidia drivers
sudo apt-add-repository ppa:xorg-edgers/ppa
sudo apt-add-repository ppa:graphics-drivers/ppa
sudo apt-get update
# Update current installation
sudo apt-get upgrade && sudo apt-get dist-upgrade
# Install nvidia-352
sudo apt-get install bumblebee bumblebee-nvidia primus nvidia-352
sudo gpasswd -a $USER bumblebee
#sudo systemctl enable bumblebeed # U15.04 only - not necessary here
</source>
Then enable modules ''i915'' and ''bbswitch'' (necessary to switch on/off the nvidia card):
<source lang=bash>
sudo vi /etc/modules
# Add the lines:
#
# i915
# bbswitch
</source>
Edit bumblebee configuration file:
<source lang=bash>
sudo vi /etc/bumblebee/bumblebee.conf
# Line 22:
# Driver=nvidia
# line 55:
# KernelDriver=nvidia-352
# line 58:
# LibraryPath=/usr/lib/nvidia-352:/usr/lib32/nvidia-352
# line 61:
# XorgModulePath=/usr/lib/nvidia-349/xorg,/usr/lib/xorg/modules
</source>
If not done yet, blacklist the nvidia module:
<source lang=bash>
# sudo vi /etc/modprobe.d/bumblebee.conf # Not necessary, already done
# Add the below lines to the end:
# #349
# blacklist nvidia-349
</source>
Reboot and check that nvidia driver is in use:
<source lang=bash>
sudo apt-get install mesa-utils
primusrun glxinfo | grep OpenGL
</source>
|}
|}


Line 53: Line 145:
|-
|-
|Preferences||
|Preferences||
* '''Appearance''' &mdash; Look &mdash; Launcher Icon Size = 32
* TBC
* '''Appearance''' &mdash; behavior &mdash; Auto-hide the launcher
* '''Appearance''' &mdash; behavior &mdash; Enable workspaces
* '''Compiz''' &mdash; switcher &mdash; Disable show desktop in the switcher
|-
|-
|Miscellaneous||
|Miscellaneous||
Line 70: Line 165:
sudo update-grub
sudo update-grub
sudo apt-get install bumblebee-nvidia nvidia-319 nvidia-settings-319
sudo apt-get install bumblebee-nvidia nvidia-319 nvidia-settings-319
# Hopefully the following will fix our bluetooth issues (patch failure)
# TODO
sudo vi /etc/bluetooth/main.conf # EnableGatt = true
# - fix bluetooth (install ubuntu-support...)
sudo vi /etc/modprobe.d/ath9k.conf # options ath9k btcoex_enable=1
sudo apt-get install bluetooth
</source>
</source>
* Google query "''ubuntu asus n550jv''"
* Ubuntu 13.10 guide '''[http://smiuchin.wordpress.com/2013/10/16/top-things-to-do-after-installing-ubuntu-13-10-saucy-salamander/ top things]'''
* Ubuntu 13.10 guide '''[http://www.noobslab.com/2013/10/tweaksthings-to-do-after-install-of.html tweak things]'''
* Ubuntu 13.10 guide '''[http://www.techdrivein.com/2013/10/15-things-i-did-after-installing-ubuntu1310-saucy-salamander.html 15 things]'''
* [http://rajat-osgyan.blogspot.be/2015/05/how-to-install-latest-nvidia-driver-in.html Osgyan &mdash; How to Install the latest Nvidia Driver in Ubuntu 14.04.2/14.10/15/04 via Bumblebee]
* [http://rajat-osgyan.blogspot.in/2015/03/p-margin-bottom-0.html Osgyan &mdash; How does Bumblebee work with Optimus NVIDIA GPU]
: This guide explains the reasons of the whitelisting of modules i915 and bbswitch, and why the nvidia module must be blacklisted.


=== Issues ===
=== Issues ===
See [[Common Issues]].
<ul>
<li> '''Issue''' — Fn-F2 (WLAN / Bluetooth switch) and Fn-F5/Fn-F6 (screen brightness) do not work.</li>
* ('''NOK''') Add <code>acpi_osi='!Windows 2012'</code> to ''/etc/default/grub'' (see [https://help.ubuntu.com/community/AsusZenbookPrime], and also [https://bbs.archlinux.org/viewtopic.php?id=147804], [https://bugs.freedesktop.org/show_bug.cgi?id=45452], [http://msdn.microsoft.com/en-us/library/windows/hardware/jj159305.aspx]) &mdash; Fn-F5/F6 still do not work, but Fn-F2 does work now!!!
* ('''NOK''') Add <code>acpi=</code> to ''/etc/default/grub'' (as per [https://wiki.debian.org/InstallingDebianOn/Asus/N750JV/Jessie]) &mdash; Does not work either (even got '''black screen''' &rarr; {{kb|Ctrl-Alt-BS}} to get out)
* ({{green|'''Solved'''}}) Add <code>acpi_osi=</code> to ''/etc/default/grub'' (see guide N550JV)

<li> '''Issue''' — NVidia GT750M card not detected.</li>
* Install [https://launchpad.net/~xorg-edgers/+archive/ppa xorg-edgers] (see [http://ubuntuforums.org/showthread.php?t=2189994])
sudo apt-add-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-331 nvidia-settings-331 nvidia-prime
* Reboot. Multiple issues from ''apport'' (&rarr; disabled now)
* Nvidia card works with accelerated OpenGL, but keyboard is stuck to US layout, and Bluetooth is lost. Fonts are not rendered as usual it seems.
* Purge xorg-edgers to see if we can revert back to previous situation:
sudo ppa-purge xorg-edgers
sudo apt-get autoremove nvidia-prime
* ({{green|'''Solved'''}}) Install ''bumblebee'' and ''nvidia drivers v319'' (see guide N550JV)

<li> '''Issue''' — '''Minecraft''' &mdash; Graphics glitches, missing limbs on intel card.</li>
* (NOK) Changing settings, to no avail: Graphics: Fast / Fancy, View Bobbing: ON / OFF: Advanced OpenGL: OFF/Fast/Fancy
* (NOK) Tried these VM, and they have glitches: OpenJDK 7 64, Oracle JDK 7 64.
* (NOK) From [http://www.mpgh.net/forum/422-minecraft-tutorials/716970-optifine-ubuntu-linux.html].
** Run MC with <code>-Xmx512M</code>
** Run in fullscreen
** OpenGL / Multicore settings: Smooth FPS: On, Load Far: Off, Chunk UpF: 2, Lazy CL: On, Smooth World: On, Preload Chunks: Off, Dynamic Updates: On
** Setting priority of proSeems to workcess ''java'' to ''high'' (aka <code>sudo -k nice -n -5 su -c "..." -USER</code>, see [http://askubuntu.com/questions/178491/nice-command-without-root-privileges])
* (NOK) Disable ''compiz'' before launching minecraft (see [http://ubuntuforums.org/showthread.php?t=1741768])
sudo apt-get install metacity
metacity --replace && ./launch-minecraft-now && unity --replace &
* Check more solution from google query "''optifine missing limbs''" &mdash; ...
* ({{green|Alt. solution}}) Disable '''OptiFine'''
* ({{green|'''Solved'''}}) &mdash; use '''NVIDIA''' OpenGL (via ''bumblebee'')

<li> '''{{red|Issue}}''' — Image really dark</li>
* Use <code>xrandr</code> (see [http://askubuntu.com/questions/371630/change-contrast-gamma-in-external-monitor]):
<source lang=bash>
xrandr --output eDP1 --gamma 1.4:1.4:1.4
xrandr --verbose
</source>
* '''Q?''' &mdash; How to make that settings permanent (setting is lost after quit / restart)?
** I could make a custom script per seat, that is run right before launching minecraft.
<li> '''{{red|To Do}}''' — '''Minecraft''' &mdash; Do we get more FPS if we disable compiz (or any compositor, like ''metacity'')?</li>
<li> '''{{red|Issue}}''' — '''Bluetooth''' &mdash; Bluetooth sometimes not active, even with nvidia disabled</li>
sudo modprobe -r aht3k; sleep 1; sudo modprobe ath3k # work-around
<li> '''Done''' — Check BIOS version and upgrade if necessary (see [http://support.asus.com/download.aspx?SLanguage=en&p=3&s=529&m=N550JV&os=&hashedid=dad5aYI8mC6sfoNV])</li>
* We have version '''204'''. Updated to version '''207'''
<li> '''{{red|To Do}}''' — Check install guides above.</li>
<li> '''{{red|To Do}}''' — Try latest nvidia drivers from xorg-edgers.</li>
<li> '''Issue''' — '''Minecraft''' &mdash; FPS stuck at 60 FPS.</li>
* {{green|'''Solved'''}} &mdash; This is due to vsync. Disable it with env. var ''vblank_mode'' ([http://stackoverflow.com/questions/17196117/disable-vertical-sync-for-glxgears]):
vblank_mode=0 java ...
</ul>

=== Done & Fixed ===
* '''{{green|Fixed}}''' — Issue description<br/>Fix description
* '''{{green|Done}}''' — Description

Latest revision as of 21:36, 5 September 2016

Introduction

This is the configuration page for the Ubuntu partition on Zyratastic.

Configuration Files

All configuration files can be found here.

Installed Applications

Common applications

See Common configuration for Linux.

Essential

Metacity (metacity)
  • To replace compiz when running games
Oracle JDK 7 (oracle-java7-installer, repo webupd8team) See Linux_Software#Oracle / Sun Java
ack-grep (ack-grep)
acpi (acpi)
nvidia (bumblebee-nvidia nvidia-331 nvidia-settings-331) Packages installed as 2015/02/19
bumblebee                     3.2.1-5
bumblebee-nvidia              3.2.1-5
nvidia-331-updates            331.113-0ubuntu0.0.4
nvidia-libopencl1-331-updates 331.38-0ubuntu7.1
nvidia-opencl-icd-331-updates 331.113-0ubuntu0.0.4
nvidia-settings               331.20-0ubuntu8
unity tweak tool (unity-tweak-tool) from Software Center
skype (skype)
SSH (ssh)

Enable GNOME Keyring at startup such that SSH key is cached at login. In Startup Application, create launcher:

Name SSH Key Agent
Command /usr/bin/gnome-keyring-daemon --start --components=ssh
Comment GNOME Keyring: SSH Agent
LTS Enablement Stacks

Upgrade to Kernel 3.19 and new X server. See [1]:

sudo apt-get install --install-recommends linux-generic-lts-vivid xserver-xorg-core-lts-vivid xserver-xorg-lts-vivid \
  xserver-xorg-video-all-lts-vivid xserver-xorg-input-all-lts-vivid libwayland-egl1-mesa-lts-vivid
Nvidia

Update to Ubuntu 16.04 Xenial

  • Again the release update breaks nvidia.
  • This time we install the default nvidia driver, no bumblebee:
sudo apt-get purge nvidia* bumblebee
sudo apt-get install nvidia-361 nvidia-prime
# reboot
glxinfo
glxgears
Old release (14.04)

Recent update broke the nvidia installation. Instead of installing back again nvidia-331, I followed Osgyan's guide (see below) to install latest nvidia drivers:

# First purge current installation
sudo apt-get remove --auto-remove bumblebee* nvidia*
sudo apt-get purge --auto-remove bumblebee* nvidia*
# Add ppa for latest nvidia drivers
sudo apt-add-repository ppa:xorg-edgers/ppa
sudo apt-add-repository ppa:graphics-drivers/ppa
sudo apt-get update
# Update current installation
sudo apt-get upgrade && sudo apt-get dist-upgrade
# Install nvidia-352
sudo apt-get install bumblebee bumblebee-nvidia primus nvidia-352
sudo gpasswd -a $USER bumblebee
#sudo systemctl enable bumblebeed     # U15.04 only - not necessary here

Then enable modules i915 and bbswitch (necessary to switch on/off the nvidia card):

sudo vi /etc/modules 
# Add the lines:
#
#   i915
#   bbswitch

Edit bumblebee configuration file:

sudo vi /etc/bumblebee/bumblebee.conf 
# Line 22:
#   Driver=nvidia
# line 55:
#   KernelDriver=nvidia-352
# line 58:
#   LibraryPath=/usr/lib/nvidia-352:/usr/lib32/nvidia-352
# line 61:
#   XorgModulePath=/usr/lib/nvidia-349/xorg,/usr/lib/xorg/modules

If not done yet, blacklist the nvidia module:

# sudo vi /etc/modprobe.d/bumblebee.conf   # Not necessary, already done
# Add the below lines to the end:
#   #349
#   blacklist nvidia-349

Reboot and check that nvidia driver is in use:

sudo apt-get install mesa-utils
primusrun glxinfo | grep OpenGL

Local

Application (package) [YYYY-MM-DD] Update
Additional configuration settings

Uninstalled

Application (package) [YYYY-MM-DD] Update
Additional configuration settings

System Settings

1st install
  • TBC
File system
  • TBC
Network
  • TBC
Preferences
  • Appearance — Look — Launcher Icon Size = 32
  • Appearance — behavior — Auto-hide the launcher
  • Appearance — behavior — Enable workspaces
  • Compiz — switcher — Disable show desktop in the switcher
Miscellaneous
  • TBC

To Do

References

# DONE
sudo apt-get install acpi           # acpi util, to access acpi info from command line
sudo vi /etc/default/grub           # GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="
sudo update-grub
sudo apt-get install bumblebee-nvidia nvidia-319 nvidia-settings-319
# Hopefully the following will fix our bluetooth issues (patch failure)
sudo vi /etc/bluetooth/main.conf    # EnableGatt = true
sudo vi /etc/modprobe.d/ath9k.conf  # options ath9k btcoex_enable=1
sudo apt-get install bluetooth
This guide explains the reasons of the whitelisting of modules i915 and bbswitch, and why the nvidia module must be blacklisted.

Issues

See Common Issues.