: English -NVIDIA Optimus This page describes how to identify, configure and troubleshoot NVIDIA Optimus enabled systems for Debian. NVIDIA Optimus is a technology that enables dynamic, switchable graphics between the central processing unit's (CPU) embedded graphics capability and the discrete graphics processing unit (GPU) card. Due to the nature of this technology, various software components must be aware of, and configured for, the proper output of the display based on the user's desired configuration. The instructions on this page apply to Debian Wheezy and newer.
NVIDIA Optimus. Contents. Identification The quickest method to determine if your device uses an Optimus card is to search against the documented list on NVIDIA's website. Obtain the NVIDIA GPU identifier of your card with: $ lspci grep 3D Compare the identifier (i.e. GeForce 7XXM, 8XXM, 9XXM) with the list, here: Also note the PCI identifier of the card, which is the 5-digit ID at the beginning of the previous command's output, XX:XX.X. Configuration Configuration of an NVIDIA Optimus enabled system can be somewhat complex, depending upon the desired end state.
This section mentions and details a few of the more common configuration scenarios and how to adjust your Debian installation, accordingly. Dynamic Graphics Disabled - BIOS Rather than enabling the power saving features of dynamic, 'switchable' graphics, one can simply configure the system to output to the local display using only a single graphics provider. The simplest method of setting the graphics provider, if your hardware supports it, is to manually select the embedded CPU or NVIDIA GPU as the display provider in the system's BIOS. Of course, this is vendor specific and you must consult your hardware manufacturer's documentation for further detail.
Network-manager-dbg network management framework (daemon and userspace tools) NetworkManager is a system network service that manages your network devices and connections, attempting to keep active network connectivity when available. To disable Network Manager only for eth1 on Debian, Ubuntu or Linux Mint, you can do the following. First, open the Network Manager configuration file in /etc/NetworkManager with a text editor, and set 'managed=false', typically shown under [ifupdown].
Dynamic Graphics Disabled - xrandr and Display Manager Scripts If your system does not support or provide a BIOS switch, an alternative is to configure X to output through the desired source to the system's attached screen. While this configuration does not take advantage of Optimus' power saving features, it can ensure a consistent desktop graphics experience for 3D applications. Ensure xrandr is installed and available # apt-get install x11-xserver-utils 2. Modify or create (if one doesn't exist) an xorg.conf under /etc/X11/xorg.conf; add the following: Section 'Module' Load 'modesetting' EndSection Section 'Device' Identifier 'nvidia' Driver 'nvidia' BusID 'PCI:X:Y:Z' Option 'AllowEmptyInitialConfiguration' EndSection # Insert any additional custom configurations, below: Where 'BusID' X:Y:Z are the shortened/truncated numbers from the ID gathered.
For example, if the output of lspci displayed a PCI ID of 09:00.0, the BusID entry would read: BusID '9:0:0' 3. Add/create a custom script, /usr/local/bin/switchnvidia.sh: xrandr -setprovideroutputsource modesetting NVIDIA-0 xrandr -auto xrandr -dpi 96 The DPI setting, (-dpi) should be fine for most screens; however, this may need to be adjusted for newer high density pixel screens. Systems with HiDPI screens likely will want to set this to 192. Consult your hardware manufacturer's specification for the appropriate setting.
Make the script executable: # chmod +x /usr/local/bin/switchnvidia.sh 5. Configure your desired to use a setup script during display setup. Configure LightDM 1.
Modify lightdm's configuration and add (if one doesn't already exist) a SeatDefaults section & script config: SeatDefaults display-setup-script=/usr/local/bin/switchnvidia.sh On default Jessie installations, this section will not exist and will need to be added in by hand. Restart lightdm to apply the new configuration and allow lightdm to start X sessions with the NVIDIA card as the source: Jessie and newer: # systemctl restart lightdm.service Wheezy: # service lightdm restart Configure Simple Desktop Display Manager (SDDM) 1. Add call of switchnvidia.sh script to file /usr/share/sddm/scripts/Xsetup: # Xsetup - run as root before the login dialog appears /usr/local/bin/switchnvidia.sh 2. Restart SDDM: # systemctl restart sddm Configure GNOME Display Manager (GDM) 1.
Create a two new.desktop files - /usr/share/gdm/greeter/autostart/optimus.desktop and /etc/xdg/autostart/optimus.desktop about following content: Desktop Entry Type=Application Name=Optimus Exec=sh -c 'xrandr -setprovideroutputsource modesetting NVIDIA-0; xrandr -auto' NoDisplay=true X-GNOME-Autostart-Phase=DisplayServer 2. Restart GNOME Display Manager (GDM): Jessie and newer: # systemctl restart gdm3.service Wheezy: # service gdm3 restart 3. If NVIDIA driver still won't working, you can try use GNOME on Wayland display manager. Content based on. Dynamic Graphics with Bumblebee The proprietary NVIDIA graphics driver can also be used to enable dynamic graphics switching between the embedded and discrete graphics providers through the use of. This method takes advantage of Optimus' power saving features, but can be more complex to successfully enable offloaded 3D applications. Checking drivers You can check if installed drivers support 3D OpenGL graphics by executing following command: $ glxinfo grep OpenGL Hybrid GPUs If you have a hybrid GPU and installed bumblebee driver you can check it for Intel: $ glxinfo grep OpenGL And for NVIDIA: $ optirun glxinfo grep OpenGL Also very recommended is checking displaying 3D OpenGL graphics by running glxgears program.
Troubleshooting TODO See also. (this link is the recent X documentation ).
Kiyop wrote:How about using xubuntu grub2 to boot the installed debian? The following are the steps to do such a thing: 1) Install xubuntu.
2) Install debian on different partitions than those used by the installed xubuntu, by using non-live debian installation media, in order to achieve dual boot of xubuntu and debian. Skip installation of any kernel (boot) loader. 3) Boot the installed xubuntu and execute Code: sudo update-grub 4) Reboot and confirm that a menuentry for booting debian exists in Grub2 menuentries shown at boot time. You can skip the above step '2)', if debian has been installed before the above step 1)'. Do you remember that I posted the following?
Hi guys, thank you very much for your cooperation in this issue. I have followed both recommendations and I just booted back to xubuntu to run the command to update grub.:$ sudo update-grub sudo password for goro: Generating grub configuration file. Warning: Setting GRUBTIMEOUT to a non-zero value when GRUBHIDDENTIMEOUT is set is no longer supported. Found linux image: /boot/vmlinuz-4.2.0-30-generic Found initrd image: /boot/initrd.img-4.2.0-30-generic Found linux image: /boot/vmlinuz-4.2.0-27-generic Found initrd image: /boot/initrd.img-4.2.0-27-generic Found linux image: /boot/vmlinuz-4.2.0-16-generic Found initrd image: /boot/initrd.img-4.2.0-16-generic Found Debian GNU/Linux (8.3) on /dev/sda4 Adding boot menu entry for EFI firmware configuration done I did that and rebooted. Now I can see the GRUB screen that says: GNU GRUB version 2.02-beta2-22+deb8u1 and below that, the options. Debian GNU/Linux and advanced options and Ubuntu 15.10 with advanced options. I am able to boot into both of them.
I dedicated 50% of space to each OS. Now I would like to remove xubuntu al all, it is that possible and be able to keep booting in debian? Also @kiyop and @spacex. I see that after all this. My TouchPad stopped working at all. I cannot find a remedy on this.
The process is active and the device enabled but it is not working. I have a optical mouse that is what I am using. My device is ETPS/2 Elantech Touchpad. It seems like it was disabled somewhere. What is next? Posts: 21 Joined: 2015-03-09 22:29 Location: Costa Rica. Boot into Debian, very important, must be Debian!
Then open a terminal and enter: Code: sudo blkid Post the output here, and I'll outline step by step how to overtake the Ubuntu grub., so that you can wipe your Ubuntu partition afterwords, and use it for whatever. As for the touchpad, what DE are you using for Debian. Is it the default Gnome Desktop? If you are, there should be a 'Mouse and Touchpad' setting, under 'Hardware' in the system settings. Also, make sure this package is installed: 'xserver-xorg-input-synaptics'. Spacex wrote:sudo blkid # blkid /dev/sda1: UUID='7C23-84E1' TYPE='vfat' PARTLABEL='EFI System Partition' PARTUUID='0ea79f55-17cb-4f5f-8f7e-b2de3a300bea' /dev/sda2: UUID='16e7c0d2-19cf-4882-a1e7-cb4cc5a23949' TYPE='ext4' PARTUUID='1b7e704b-2a4f-4bad-8707-5081fe803f85' /dev/sda3: UUID='1b7ab926-b02b-4edc-a9ab-8aabaa6bbf0c' TYPE='swap' PARTUUID='f1561e00-1bf0-40bc-b6c0-eb' /dev/sda4: UUID='607e88b5-ba2c-40e6-9d965ed' TYPE='ext4' PARTUUID='07a8f6ec-cb66-4ea3-87b7-eb' I am using the debian Gnome Desktop.
I see in the Mouse and Touchpad settings that everything is enabled in the xubuntu OS. And in the debian does not appear the ETPS/2 Elantech Touchpad. I had installed that package xserver-xorg-input-synaptics but still does not work. Thanks Posts: 21 Joined: 2015-03-09 22:29 Location: Costa Rica. Ok, let's separate this, and take the boot first. Boot into Debian, and as root, add the below to the file 'etc/fstab': (as the first entry, looks cleaner) Code: # /boot/efi was on /dev/sda1 during installation UUID=7C23-84E1 /boot/efi vfat umask=0077 0 1 2.
Save the file, and reboot back into Debian. Now, the efi partition should be mounted in Debian, and we are ready to overtake the Ubuntu grub.
Open a terminal and do: Code: sudo apt-get update Then: Code: sudo apt-get install -reinstall grub-efi Accept everything, it should add some extra packages(dependencies) and remove grub-pc and other conflicting files. Finally, do this: Code: sudo grub-install /dev/sda Grub should automatically be updated, but just to be 100% sure, do: Code: sudo update-grub 5. Then reboot, and hopefully you will now be booting by Debian, and not xubuntu.
![Device driver manager debian jessie james decker Device driver manager debian jessie james decker](http://i.imgur.com/HE1SKNK.png)
Before actually removing the Xubuntu install itself, let's make sure this work, so let's end here, and report back if you get this working. Spacex wrote:# /boot/efi was on /dev/sda1 during installation UUID=7C23-84E1 /boot/efi vfat umask=0077 0 1 I found that this line was already added: sudo cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5).
# # # / was on /dev/sda4 during installation UUID=607e88b5-ba2c-40e6-9d965ed / ext4 errors=remount-ro 0 1 # /boot/efi was on /dev/sda1 during installation UUID=7C23-84E1 /boot/efi vfat umask=0077 0 1 # swap was on /dev/sda3 during installation UUID=1b7ab926-b02b-4edc-a9ab-8aabaa6bbf0c none swap sw 0 0 /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0 So I moved to step 4 and now I am able to see the menu under UEFI debian. So there I can select what OS to boot to. Let's continue. Posts: 21 Joined: 2015-03-09 22:29 Location: Costa Rica.
Ok, nice that you got it working so far. I address the touchpad issue in the second half of this post. Scroll down if you want to solve that issue first. Well, if you want to remove Xubuntu completely, then it's pretty much just aquestion of what you want to do with the partition that Xubuntu is installed on, which I assume is 'sda2', because efi is sda1, swap is sda3, and debian is sda4. That means that Xubuntu is in partition sda 2, correct? Anyway, I assume it's sda2 for the example. You can format sda2 to whatever in GParted(Gnome Partition Manager), or delete the partition so that you get unallocated space.
Either way, Xubuntu is gone. But if you want to add that space to the Debian partition, you probably will not be able do it, because as it is now, swap is probably between your Debian and Xubuntu partitions, so you won't be able to merge them.
So then it's a matter of what you want to do. I didn't think of swap, as I'm not using it myself. If I had thought of it, I would have asked you to place swap at the end of the disk. Anyway, it still can be solved., the question is what you want to do with the space you gain from removing Xubuntu.
![Device driver manager debian jessie download Device driver manager debian jessie download](/uploads/1/2/5/3/125397594/984877354.jpg)
There is lots of options. 1.You can still add the space to the Debian Partition, but then we need to relocate the swap partition. (Not to difficult to do.) 2. You can use the vacant space for a data-partition/storage (the simplest solution) 3. You could use it to create a separate home-partition (a little more advanced, but fully doable) Of course, there are also other options. You can pretty much do whatever you want with sda2. If you are going with alternative 2, or just want to remove Xubuntu as a first step, then just open GParted(Gnome Partition Manager), Select sda2, right-click, choose format to ext4 or whatever, and remember to 'apply all operations' VOILA, Xubuntu is gone.
Now, in terminal: Code: sudo update-grub Reboot. The Ubuntu-bootloader is still present in EFI, but Xubuntu itself should be gone.
Keeping the bootloader left in there doesn't hurt, but it's easy to remove if you want to. Just open '/boot/efi' as root in your file-manager, and delete the Xubuntu/Ubuntu folder. Anyway, Xubuntu should be gone, and if you want to use the empty partition for anything special, let us know.
##### TOUCHPAD-ISSUE ##################################### As for the touchpad-issue. Let's do a simple little test. Create a file named '50-synaptics.conf', and as root, drop it into: 'etc/X11/xorg.conf.d', create the directory if it doesn't exist.
Goriux wrote:Not good with the touchpad mouse. I created the Create 'etc/X11/xorg.conf.d' because it did not exist. I added the file '50-synaptics.conf', and as root to that directory, I rebooted and nothing happened with the mouse. I uncommented all commented options. Doesn't the touchpad work at all, can't move the cursor at all?
Is this an Acer-pc? I'm not all that into Gnome. I've barely tried it. Perhaps it would be wise to create a separate thread for your touchpad-issue, so that someone who knows Gnome a little more than I do, may chip in. Do that anyways, because it is a separate issue. I'll do a little research myself, but hopefully there is a Gnome-user who has experienced this issue, and have the solution right away.
Make a new thread. Ok @Spacex I will do it.
Will open a new thread. I am not a Gnome user neither, I use XFCE, but I started with gnome because of my first issue.
I have the perception that gnome is more in the ubuntu friendly way that install more packages and dependencies. My Laptop is a Toshiba Satellite Harman/Kardon Intel I7. I will install my XFCE and will continue from there. Thank you very much, sometime you come to visit Costa Rica.
I owe you a Beer. For your help.
Posts: 21 Joined: 2015-03-09 22:29 Location: Costa Rica. Goriux wrote:sorry @spacex, I don't want to mark this post as Solved yet. Can you please help me on how to grant all the available space to debian? Ok, then let's do that. I assume that you will add the space to the existing Debian partition, sda4, right? Well, then let's do that.
Boot into your existing Debian install as normal. As root, comment out the swap-partition in '/etc/fstab', like this: Code: # swap was on /dev/sda3 during installation # UUID=1b7ab926-b02b-4edc-a9ab-8aabaa6bbf0c none swap sw 0 0 Save the file. Open Gparted. Select the swap-partition(sda3), right-click it and choose 'swapoff'. Then right-click the swap-partion again, and DELETE it 4. Right-click the partition where Xubuntu was installed(sda2), and DELETE it.
Let's apply the changes, 'apply all operations' Now then, we should have lot's of unallocated space, so let's continue. Still in GParted.
Note: IF GParted won't let you do the following because sda4(/) is mounted and has to be mounted, then you have to do it with a live-cd from this point on., but it works for me without unmounting the partition. Select sda4(your Debian Partition), right-click it, and choose 'Resize/Move' 7. Now you will get a box showing you the minimum and the maximum size. Set the size to what you want it to be. Important: If you want a swap-partition like you had before(optional), then don't use all available space.
Remember to leave the amount of space you want for a swap-partition. Let's apply the changes (apply all operations) 9.
If you left space for swap, then right-click the unallocated space, choose 'new', and under 'file-system', choose 'linux-swap'., and 'add' 10. Let's apply the changes AGAIN (apply all operations) NOW we are almost finished.IF.
you had to do the previous from a live-cd, then REBOOT back into your ordinary Debian-install.,if not, just continue. In GParted, select the swap-partition, right-click it, and choose 'swapon' 12. As ROOT, open '/etc/fstab', and edit the swap-entry to match the new partition number, and the new UUID. These values can be found by opening a terminal, and: Code: sudo blkid Important: Remember to uncomment the swap-entry again, as you commented it out in the beginning of this process. NOW, that's it.
Hopefully you are fine. Kiyop wrote:Maybe Off-topic: I usually place data not on /home/USERNAME, but on a separate partition mounted on a suitable mount point The usual size of /(root) partition, which contains all real(non-symbolic-link) files under /home/USERNAME, is less than 40 GB for all of my installed debian. He could do that, but he wanted to add all available space to his existing Debian-partition. I told him there were lot's of options, like a separate home-partition, or a partition for static data-files. Or even both. And lots more options.
Only limited by imagination. But he opted to enlarge his existing Debian-partition, and then that is what we're going to do. After all, who are we to tell someone what he 'should' want to do with the space on his harddisk.