View Issue Details

IDProjectCategoryView StatusLast Update
0005652Kali Linux[All Projects] Kali Package Bugpublic2019-12-19 11:02
Reporterk13875656919 Assigned To 
PriorityhighSeveritymajorReproducibilityhave not tried
Status newResolutionopen 
Product Version2019.2 
Target VersionFixed in Version 
Summary0005652: nvidia-settings can't open such that we can't change Xorg to nvidia
Descriptionuname -a
Linux kali 5.2.0-kali2-amd64 0000001 SMP Debian 5.2.9-2kali1 (2019-08-22) x86_64 GNU/Linux


my laptop is ASUS X550VX, it contain two graphic card nvidia and intel.

Intel® Core™ i7 6700HQ Processor
NVIDIA® GeForce® GTX 950M


I just install nvidia drivers as step by step from this site.
(*https://docs.kali.org/general-use/install-nvidia-drivers-on-kali-linux*)

Now,my nvidia GPU is work, but I can't change from intel to nvidia by nvidia-settings.just like this

(*qiancan-chen@kali:~$ nvidia-settings

ERROR: Unable to load info from any available system*)

I guess this problem maybe have some relationship with "software-properties-gtk problem".
when I type software-properties-gtk in terminal, it can't work,prompting some error like this

(*qiancan-chen@kali:~$ software-properties-gtk
ERROR:root:Cannot import UbuntuDrivers: No module named 'UbuntuDrivers'*)

Um...NO UbuntuDrivers...

I give some files about errors,

first one about when I type "apt install -y ocl-icd-libopencl1 nvidia-driver nvidia-cuda-toolkit" in terminal when install finish.

second one about software-properties-gtk in terminal.

Activities

k13875656919

2019-08-25 00:25

reporter  

nvidia-install-finsh.txt (2,269 bytes)
nvidia-current.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.2.0-kali2-amd64/updates/dkms/

nvidia-current-modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.2.0-kali2-amd64/updates/dkms/

nvidia-current-drm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.2.0-kali2-amd64/updates/dkms/

nvidia-current-uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.2.0-kali2-amd64/updates/dkms/

depmod....

DKMS: install completed.
Setting up nvidia-driver (418.88-1) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for initramfs-tools (0.135) ...
update-initramfs: Generating /boot/initrd.img-5.2.0-kali2-amd64
setupcon: The keyboard model is unknown, assuming 'pc105'. Keyboard may be configured incorrectly.
W: Possible missing firmware /lib/firmware/i915/icl_dmc_ver1_07.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_huc_ver01_8_2893.bin for module i915
W: Possible missing firmware /lib/firmware/nvidia/gv100/acr/ucode_load.bin for module nouveau
Processing triggers for update-glx (1.0.0) ...
Processing triggers for glx-alternative-nvidia (1.0.0) ...
update-alternatives: using /usr/lib/nvidia to provide /usr/lib/glx (glx) in auto mode
Processing triggers for glx-alternative-mesa (1.0.0) ...
Processing triggers for systemd (242-4) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for initramfs-tools (0.135) ...
update-initramfs: Generating /boot/initrd.img-5.2.0-kali2-amd64
setupcon: The keyboard model is unknown, assuming 'pc105'. Keyboard may be configured incorrectly.
W: Possible missing firmware /lib/firmware/i915/icl_dmc_ver1_07.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_huc_ver01_8_2893.bin for module i915
W: Possible missing firmware /lib/firmware/nvidia/gv100/acr/ucode_load.bin for module nouveau

nvidia-install-finsh.txt (2,269 bytes)
software.txt (1,014 bytes)
qiancan-chen@kali:~$ software-properties-gtk
ERROR:root:Cannot import UbuntuDrivers: No module named 'UbuntuDrivers'
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 101, in <module>
    app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 109, in __init__
    SoftwareProperties.__init__(self, options=options, datadir=datadir)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)    
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Kali/kali-rolling

software.txt (1,014 bytes)

k13875656919

2019-09-09 16:30

reporter   ~0011072

I think it can work from ubuntu source cause ubuntu driver fix some file from original nvidia driver.

I test the ubuntu driver in ubuntu system, using ppa install nvidia driver, nvdia-setting is working.

so may be we fix software-properties-gtk, and install ubuntu driver, the problem will be solved.

https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa/+packages.

azamet

2019-12-18 08:34

reporter   ~0011709

i have same problem what is the fix for this also did you solved this problem?

pkreuzt

2019-12-18 13:18

reporter   ~0011711

You probably have an Optimus laptop. NVIDIA card cannot use the screen directly on Linux because there is no hybrid graphics support from NVIDIA for us. The solution is to use Prime (from Ubuntu) or Bumblebee:

https://wiki.debian.org/Bumblebee

Bumblebee is better for power management, it switches off NVIDIA card while it is not being used. When you want to use it (for a game, for example) you need to run it vía optirun or primusrun this way:

$ optirun nvidia-settings -c :8

Applications that don't use screen (like CUDA-enabled ones or Hashcat) do not need this aproximation.

azamet

2019-12-19 04:42

reporter   ~0011716

pkreuzt can you please send me a good guide for it? because of i tryed many tutorials but all of them messing up with the drivers

azamet

2019-12-19 11:02

reporter   ~0011721

edit:
i found the solution:
do everything what here says: https://forums.kali.org/showthread.php?35748-TUTORIAL-Installing-official-NVIDIA-driver-in-Optimus-laptop
only one section you should change this is for gnome...
preinstalled kali 2019.4 have xfce and lightdm so you need to do this:
LightDM

For the LightDM display manager:

/etc/lightdm/display_setup.sh

#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

Make the script executable:

# chmod +x /etc/lightdm/display_setup.sh

Now configure lightdm to run the script by editing the [Seat:*] section in /etc/lightdm/lightdm.conf:

/etc/lightdm/lightdm.conf

[Seat:*]
display-setup-script=/etc/lightdm/display_setup.sh

Now reboot and your display manager should start.

Issue History

Date Modified Username Field Change
2019-08-25 00:25 k13875656919 New Issue
2019-08-25 00:25 k13875656919 File Added: nvidia-install-finsh.txt
2019-08-25 00:25 k13875656919 File Added: software.txt
2019-09-09 16:30 k13875656919 Note Added: 0011072
2019-12-18 08:34 azamet Note Added: 0011709
2019-12-18 13:18 pkreuzt Note Added: 0011711
2019-12-19 04:42 azamet Note Added: 0011716
2019-12-19 11:02 azamet Note Added: 0011721