You are not logged in.

#1 2021-07-15 23:05

mayybe
Member
Registered: 2021-07-15
Posts: 11

Problem with nvidia driver

So today i wanted to install graphics card driver and when i went to nvidia x server settings i got this: "You dont appear to be using the NVIDIA X driver. Please edit your X configuration file (just run 'nvidia-xconfig' as root) and restart the X server.".

My graphics card: gt 520mx

Offline

#2 2021-07-16 00:02

Tolkem
Member
Registered: 2019-10-06
Posts: 487

Re: Problem with nvidia driver

mayybe wrote:

So today i wanted to install graphics card driver and when i went to nvidia x server settings i got this: "You dont appear to be using the NVIDIA X driver. Please edit your X configuration file (just run 'nvidia-xconfig' as root) and restart the X server.".

My graphics card: gt 520mx

Do as the message says: Launch the terminal(konsole)and type

sudo nvidia-xconfig

press Enter, type in your password when asked, hit Enter again, wait for the process to be finished, and reboot.

Offline

#3 2021-07-16 11:13

mayybe
Member
Registered: 2021-07-15
Posts: 11

Re: Problem with nvidia driver

i typed this and i got this:

WARNING: Unable to locate/open X configuration file.

New X configuration file written to '/etc/X11/xorg.conf'


after reboot im stuck in tty1
ctrl + alt + f7 is not working

Offline

#4 2021-07-16 13:05

Tolkem
Member
Registered: 2019-10-06
Posts: 487

Re: Problem with nvidia driver

mayybe wrote:

i typed this and i got this:

WARNING: Unable to locate/open X configuration file.

New X configuration file written to '/etc/X11/xorg.conf'


after reboot im stuck in tty1
ctrl + alt + f7 is not working

Can you log in to your account in tty1? If you can, type in

startx

to see if you can get to the desktop. If the desktop doesn't start, you will need to check X.org logs. FWIW, Nvidia has historically been a pain to use in Linux. I remember having a similar issue some years ago with an integrated nvidia GPU, and if I recall correctly, I had to delete the  "New X configuration file written to '/etc/X11/xorg.conf" to get a working desktop. I bought an AMD GPU, that worked beautifully from day 1. smile

Offline

#5 2021-07-16 13:11

mayybe
Member
Registered: 2021-07-15
Posts: 11

Re: Problem with nvidia driver

after startx i got this:

xf86EnableIOPorts: failed to set IOPL for I/O (operation not permitted)\
fatal server error: (EE) no screens found (EE) Please consult the X.org Foundation support
xinit: giving up
xinit: unable to connect to x server: Connection refused
xinit: server error

Offline

#6 2021-07-16 13:28

Tolkem
Member
Registered: 2019-10-06
Posts: 487

Re: Problem with nvidia driver

mayybe wrote:

after startx i got this:

xf86EnableIOPorts: failed to set IOPL for I/O (operation not permitted)\
fatal server error: (EE) no screens found (EE) Please consult the X.org Foundation support
xinit: giving up
xinit: unable to connect to x server: Connection refused
xinit: server error

OK. Try this:
1. Log in to you account in tty1.
2. Run

sudo cp  /etc/X11/xorg.conf /etc/X11/xorg.conf.bak

this will create a backup of the file.
3. Delete the file with

sudo rm /etc/X11/xorg.conf

4. Reboot.

If on reboot you're still getting no desktop, log in in TTY1, and run

startx

again.

EDIT: Forgot to ask, but, which Q4OS version are you using? Centaurus(Debian Buster) or Gemini(Debian Bullseye)?

Last edited by Tolkem (2021-07-16 13:37)

Offline

#7 2021-07-16 13:35

mayybe
Member
Registered: 2021-07-15
Posts: 11

Re: Problem with nvidia driver

Thank you, i got my desktop back but shame that nvidia x server settings is still not working.

Offline

#8 2021-07-16 13:37

Tolkem
Member
Registered: 2019-10-06
Posts: 487

Re: Problem with nvidia driver

mayybe wrote:

Thank you, i got my desktop back but shame that nvidia x server settings is still not working.

Good. Forgot to ask, but, which Q4OS version are you using? Centaurus(Debian Buster) or Gemini(Debian Bullseye)? By the way, a search on the web indicates that this particular Nvidia card is particularly problematic to make it work under Linux. Some solutions suggest installing bumblebee drivers. https://wiki.debian.org/Bumblebee

https://www.nvidia.com/en-us/geforce/fo … 20m-linux/
https://forums.linuxmint.com/viewtopic.php?t=308603
https://www.reddit.com/r/linux/comments … r_to_work/

Last edited by Tolkem (2021-07-16 13:42)

Offline

#9 2021-07-16 13:41

mayybe
Member
Registered: 2021-07-15
Posts: 11

Re: Problem with nvidia driver

Centaurus with debian buster

Offline

#10 2021-07-16 13:44

Tolkem
Member
Registered: 2019-10-06
Posts: 487

Re: Problem with nvidia driver

mayybe wrote:

Centaurus with debian buster

Ok. Then you may try installing bumblebee following instructions from Debian wiki for Buster. https://wiki.debian.org/Bumblebee

Offline

#11 2021-07-16 13:49

mayybe
Member
Registered: 2021-07-15
Posts: 11

Re: Problem with nvidia driver

I need to ask
why my sources.list file is empty?

Offline

#12 2021-07-16 14:01

Tolkem
Member
Registered: 2019-10-06
Posts: 487

Re: Problem with nvidia driver

mayybe wrote:

I need to ask
why my sources.list file is empty?

Q4OS doesn't use the sources.list, instead, all the repositories are in /etc/sources.list.d directory. You'll find a few "sources.list" files there:

10_q4os.list
12_qtde.list
20_debian.list
30_debian_backports.list

Are you in "make sure the contrib and non-free components are enabled in your SourcesList file" as stated in that bumblebee wiki?
The file  20_debian.list is where you need to look, here I got this:

# Q4OS essential repository
# **** !!! NEVER touch this CRITICAL system file **** !!!

deb http://deb.debian.org/debian/ bullseye main contrib non-free
#deb-src http://deb.debian.org/debian/ testing main contrib non-free

deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
#deb-src http://deb.debian.org/debian/ testing-updates main contrib non-free

deb http://deb.debian.org/debian-security bullseye-security main
#deb-src http://deb.debian.org/debian-security testing-security main

##deb http://ftp.debian.org/debian/ buster-proposed-updates main contrib non-free
##deb-src http://ftp.debian.org/debian/ buster-proposed-updates main contrib non-free

# mirror chooser service - experimental
##deb http://deb.debian.org/debian/ buster main contrib non-free
##deb-src http://deb.debian.org/debian/ buster main contrib non-free

As you can see, both contrib and non-free are enabled. Check on you're side, and if they're not(but I think they should be), then enable them - delete the "#" symbol.

Last edited by Tolkem (2021-07-16 14:01)

Offline

#13 2021-07-16 14:15

mayybe
Member
Registered: 2021-07-15
Posts: 11

Re: Problem with nvidia driver

here is 20_debian.list
is here everything ok?

# Q4OS essential repository
# **** !!! NEVER touch this CRITICAL system file **** !!!

deb http://ftp.debian.org/debian/ buster main contrib non-free
##deb-src http://ftp.debian.org/debian/ buster main contrib non-free

deb http://security.debian.org/debian-security/ buster/updates main contrib non-free
##deb-src http://security.debian.org/debian-security/ buster/updates main contrib non-free

# buster-updates, previously known as 'volatile'
deb http://ftp.debian.org/debian/ buster-updates main contrib non-free
##deb-src http://ftp.debian.org/debian/ buster-updates main contrib non-free

##deb http://ftp.debian.org/debian/ buster-proposed-updates main contrib non-free
##deb-src http://ftp.debian.org/debian/ buster-proposed-updates main contrib non-free

# mirror chooser service - experimental
##deb http://deb.debian.org/debian/ buster main contrib non-free
##deb-src http://deb.debian.org/debian/ buster main contrib non-free

Offline

#14 2021-07-16 15:11

Tolkem
Member
Registered: 2019-10-06
Posts: 487

Re: Problem with nvidia driver

mayybe wrote:

here is 20_debian.list
is here everything ok?

# Q4OS essential repository
# **** !!! NEVER touch this CRITICAL system file **** !!!

deb http://ftp.debian.org/debian/ buster main contrib non-free
##deb-src http://ftp.debian.org/debian/ buster main contrib non-free

deb http://security.debian.org/debian-security/ buster/updates main contrib non-free
##deb-src http://security.debian.org/debian-security/ buster/updates main contrib non-free

# buster-updates, previously known as 'volatile'
deb http://ftp.debian.org/debian/ buster-updates main contrib non-free
##deb-src http://ftp.debian.org/debian/ buster-updates main contrib non-free

##deb http://ftp.debian.org/debian/ buster-proposed-updates main contrib non-free
##deb-src http://ftp.debian.org/debian/ buster-proposed-updates main contrib non-free

# mirror chooser service - experimental
##deb http://deb.debian.org/debian/ buster main contrib non-free
##deb-src http://deb.debian.org/debian/ buster main contrib non-free

Yes, everything looks fine. By the way, I would recommend installing timeshift

sudo apt-get install timeshift

once installed, launch the app, and create a snapshot of the system, just in case something goes wrong, you can restore your system to a previous working state. Also, try to save the snapshot in a different location/disk/partition with an ext4 filesystem.

Last edited by Tolkem (2021-07-16 15:15)

Offline

#15 2021-07-16 15:13

mayybe
Member
Registered: 2021-07-15
Posts: 11

Re: Problem with nvidia driver

Nice.
I installed this bumblebee driver.
How i should check that he is working?

Offline

#16 2021-07-16 15:20

Tolkem
Member
Registered: 2019-10-06
Posts: 487

Re: Problem with nvidia driver

mayybe wrote:

Nice.
I installed this bumblebee driver.
How i should check that he is working?

Have you already rebooted? Is everything working? Launch konsole(terminal)and run

inxi -G

this will display graphics information. If inxi is not installed, you may install it with

sudo apt-get install inxi

once it is, run the above command. Another way is

lspci | grep -i --color 'vga\|3d\|2d'

this works without installing anything else.

Offline

#17 2021-07-16 15:27

mayybe
Member
Registered: 2021-07-15
Posts: 11

Re: Problem with nvidia driver

After reboot i think everything works fine.

runned inxi -G:

Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
  driver: i915 v: kernel
  Device-2: NVIDIA GF119M [GeForce GT 520MX] driver: nvidia v: 390.143
  Display: tty server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa
  resolution: 1600x900~60Hz
  Message: Unable to show advanced data. Required tool glxinfo missing

Offline

#18 2021-07-16 16:15

mayybe
Member
Registered: 2021-07-15
Posts: 11

Re: Problem with nvidia driver

Is there power management that i can install?

Offline

#19 2021-07-16 16:39

Tolkem
Member
Registered: 2019-10-06
Posts: 487

Re: Problem with nvidia driver

mayybe wrote:

After reboot i think everything works fine.

runned inxi -G:

Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
  driver: i915 v: kernel
  Device-2: NVIDIA GF119M [GeForce GT 520MX] driver: nvidia v: 390.143
  Display: tty server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa
  resolution: 1600x900~60Hz
  Message: Unable to show advanced data. Required tool glxinfo missing

Well, inxi output shows that the GPU is using the nvidia driver: driver: nvidia v: 390.143 so I guess it worked.

mayybe wrote:

Is there power management that i can install?

Both Q4OS versions; Trinity and Plasma, have an integrated power manager tool, in Plasma it is in system setting > hardware can't remember where it is in Trinity, sorry, I use Plasma. However, you can install a different one too:
1. xfce4-power-manager https://docs.xfce.org/xfce/xfce4-power- … references

sudo apt-get install xfce4-power-manager

2. lxqt-powermanagement https://manual.lubuntu.me/stable/3/3.2/ … ement.html

sudo apt-get install lxqt-powermanagement

Offline

#20 2021-07-16 22:48

mayybe
Member
Registered: 2021-07-15
Posts: 11

Re: Problem with nvidia driver

Bumblebee have own power management for graphics card?
If yes how i can run him?

Offline

#21 2021-07-17 08:39

aluma
Member
From: Ukraine
Registered: 2018-03-12
Posts: 136

Re: Problem with nvidia driver

mayybe wrote:

Bumblebee have own power management for graphics card?
If yes how i can run him?

Here it is written https://wiki.debian.org/Bumblebee
The technology Optimus is well described in the Ubuntu wiki, but I have a link only in Russian  https://help.ubuntu.ru/wiki/bumblebee

Offline

Board footer

Powered by FluxBB