← Back to team overview

desktop-packages team mailing list archive

[Bug 1394653] Re: gpu-manager's xorg.conf generation should be configurable

 

I must mention that to make things work, I've written a bash script to
add and set 1600x900 mode to the virtual crt screen at login, so it
matches the resolution of my laptop's screen.

The script is the following:
(VGA-0 is the non-existent display recognized by the nvidia driver)
#!/bin/bash

if prime-select query | grep -q "nvidia"; then
	if xrandr | grep -q "HDMI-0 connected"; then
		xrandr --newmode "1600x900_60.00" 118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync
		xrandr --addmode VGA-0 "1600x900"
		xrandr --output VGA-0 --mode "1600x900"
	fi
fi


** Attachment added: "xorg.0.log with the above config"
   https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1394653/+attachment/4272028/+files/Xorg.0.log

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to ubuntu-drivers-common in Ubuntu.
https://bugs.launchpad.net/bugs/1394653

Title:
  gpu-manager's xorg.conf generation should be configurable

Status in ubuntu-drivers-common package in Ubuntu:
  New

Bug description:
  There is no way to edit xorg.conf permanently, for any modification will be removed by gpu-manager.
  This is not the same issue az bug #1310489.
  My system is a Dell Inspiron N7110 with nvidia optimus.
  I use the closed-source nvidia drivers.
  The problem:
  After a switch with prime-select intel my xorg.conf is removed, which is required to make the intel config operational.
  Upon switching back to nvidia (prime-select nvidia) gpu-manager regenerates my xorg.conf
  The problem is, that the default xorg.conf is broken (does not enable me to use the internal laptop screen), so it needs to be modified.
  This, however, can not be done now, as changes will always be overwritten.

  Note the difference from #1310489: We need a way to configure the
  generation, not just be able to preserve an already present file.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: ubuntu-drivers-common 1:0.2.98.4
  Uname: Linux 3.16.1-031601-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.14.7-0ubuntu8
  Architecture: amd64
  CurrentDesktop: KDE
  Date: Thu Nov 20 17:37:49 2014
  InstallationDate: Installed on 2014-03-11 (254 days ago)
  InstallationMedia: Kubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140311)
  SourcePackage: ubuntu-drivers-common
  UpgradeStatus: Upgraded to utopic on 2014-11-20 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1394653/+subscriptions


References